diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml
index 7985390da42c..c567de27e10f 100644
--- a/.github/workflows/hermetic_library_generation.yaml
+++ b/.github/workflows/hermetic_library_generation.yaml
@@ -37,7 +37,7 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
- - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.0
+ - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.1
if: env.SHOULD_RUN == 'true'
with:
base_ref: ${{ github.base_ref }}
diff --git a/generation_config.yaml b/generation_config.yaml
index 0285f87b9360..87a3f8727ace 100644
--- a/generation_config.yaml
+++ b/generation_config.yaml
@@ -1,6 +1,6 @@
-gapic_generator_version: 2.66.0
-googleapis_commitish: af232e71d7b67e84811f55b48c51de867f98f35b
-libraries_bom_version: 26.74.0
+gapic_generator_version: 2.66.1
+googleapis_commitish: 466a47d6cd89f3e252f2d26fb26fc27b53a6add7
+libraries_bom_version: 26.75.0
# the libraries are ordered with respect to library name, which is
# java-{library.library_name} or java-{library.api-shortname} when
diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md
index eea259b28db5..57363b8f3ada 100644
--- a/java-accessapproval/README.md
+++ b/java-accessapproval/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
ListAnnotations
Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights.
Lists Annotations belongs to a dataitem.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -3258,8 +3257,7 @@ public final ListAnnotationsPagedResponse listAnnotations(DataItemName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *
Sample code: * @@ -3289,8 +3287,7 @@ public final ListAnnotationsPagedResponse listAnnotations(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *
Sample code: * @@ -3326,8 +3323,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *
Sample code: * @@ -3364,8 +3360,7 @@ public final ListAnnotationsPagedResponse listAnnotations(ListAnnotationsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. - * It is only used for exporting conversation data to CCAI Insights. + * Lists Annotations belongs to a dataitem. * *
Sample code:
*
diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java
index 3fd69a65d883..da119a4d11c2 100644
--- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java
+++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClient.java
@@ -1125,6 +1125,7 @@ public final OperationFuture
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
default void listAnnotations(
@@ -1573,9 +1571,7 @@ public void getAnnotationSpec(
*
*
*
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
public void listAnnotations(
@@ -1860,9 +1856,7 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec(
*
*
*
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations(
@@ -2130,9 +2124,7 @@ public com.google.cloud.aiplatform.v1.AnnotationSpec getAnnotationSpec(
*
*
*
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
public com.google.cloud.aiplatform.v1.ListAnnotationsResponse listAnnotations(
@@ -2409,9 +2401,7 @@ protected DatasetServiceFutureStub build(
*
*
*
- * Lists Annotations belongs to a dataitem
- * This RPC is only available in InternalDatasetService. It is only used for
- * exporting conversation data to CCAI Insights.
+ * Lists Annotations belongs to a dataitem.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
index 702f5aaa4952..1a36f8c9c5e0 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
@@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_Part_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_Part_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_Blob_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -88,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_ImageConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_ImageConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_GenerationConfig_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -224,7 +232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\007Content\022\021\n"
+ "\004role\030\001 \001(\tB\003\340A\001\0224\n"
+ "\005parts\030\002 \003(\0132"
- + " .google.cloud.aiplatform.v1.PartB\003\340A\002\"\350\004\n"
+ + " .google.cloud.aiplatform.v1.PartB\003\340A\002\"\271\007\n"
+ "\004Part\022\023\n"
+ "\004text\030\001 \001(\tB\003\340A\001H\000\022<\n"
+ "\013inline_data\030\002 \001(\0132"
@@ -243,20 +251,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\010B\003\340A\001\022\036\n"
+ "\021thought_signature\030\013 \001(\014B\003\340A\001\022H\n"
+ "\016video_metadata\030\004"
- + " \001(\0132).google.cloud.aiplatform.v1.VideoMetadataB\003\340A\001H\001B\006\n"
- + "\004dataB\n"
- + "\n"
+ + " \001(\0132).google.cloud.aiplatform.v1.VideoMetadataB\003\340A\001H\001\022J\n"
+ + "\020media_resolution\030\014"
+ + " \001(\01320.google.cloud.aiplatform.v1.Part.MediaResolution\032\202\002\n"
+ + "\017MediaResolution\022G\n"
+ + "\005level\030\001 \001(\01626.google.cloud.aip"
+ + "latform.v1.Part.MediaResolution.LevelH\000\"\234\001\n"
+ + "\005Level\022 \n"
+ + "\034MEDIA_RESOLUTION_UNSPECIFIED\020\000\022\030\n"
+ + "\024MEDIA_RESOLUTION_LOW\020\001\022\033\n"
+ + "\027MEDIA_RESOLUTION_MEDIUM\020\002\022\031\n"
+ + "\025MEDIA_RESOLUTION_HIGH\020\003\022\037\n"
+ + "\033MEDIA_RESOLUTION_ULTRA_HIGH\020\004B\007\n"
+ + "\005valueB\006\n"
+ + "\004dataB\n\n"
+ "\010metadata\"1\n"
+ "\004Blob\022\026\n"
+ "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n"
+ "\004data\030\002 \001(\014B\003\340A\002\"9\n"
+ "\010FileData\022\026\n"
+ "\tmime_type\030\001 \001(\tB\003\340A\002\022\025\n"
- + "\010file_uri\030\002 \001(\tB\003\340A\002\"y\n\r"
+ + "\010file_uri\030\002 \001(\tB\003\340A\002\"\213\001\n\r"
+ "VideoMetadata\0224\n"
+ "\014start_offset\030\001"
+ " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0222\n\n"
- + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"=\n"
+ + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\020\n"
+ + "\003fps\030\003 \001(\001B\003\340A\001\"=\n"
+ "\023PrebuiltVoiceConfig\022\027\n\n"
+ "voice_name\030\001 \001(\tH\000\210\001\001B\r\n"
+ "\013_voice_name\"P\n"
@@ -264,27 +284,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tmime_type\030\001 \001(\tB\003\340A\001\022\037\n"
+ "\022voice_sample_audio\030\002 \001(\014B\003\340A\001\"\312\001\n"
+ "\013VoiceConfig\022P\n"
- + "\025prebuilt_voice_config\030\001 \001(\0132/.go"
- + "ogle.cloud.aiplatform.v1.PrebuiltVoiceConfigH\000\022Y\n"
- + "\027replicated_voice_config\030\003 \001(\0132"
- + "1.google.cloud.aiplatform.v1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n"
+ + "\025prebuilt_voice_config\030\001 \001(\0132/.google"
+ + ".cloud.aiplatform.v1.PrebuiltVoiceConfigH\000\022Y\n"
+ + "\027replicated_voice_config\030\003 \001(\01321.go"
+ + "ogle.cloud.aiplatform.v1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n"
+ "\014voice_config\"n\n"
+ "\022SpeakerVoiceConfig\022\024\n"
+ "\007speaker\030\001 \001(\tB\003\340A\002\022B\n"
+ "\014voice_config\030\002"
+ " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfigB\003\340A\002\"m\n"
+ "\027MultiSpeakerVoiceConfig\022R\n"
- + "\025speaker_voice_configs\030\002 "
- + "\003(\0132..google.cloud.aiplatform.v1.SpeakerVoiceConfigB\003\340A\002\"\302\001\n"
+ + "\025speaker_voice_configs\030\002 \003(\0132"
+ + "..google.cloud.aiplatform.v1.SpeakerVoiceConfigB\003\340A\002\"\302\001\n"
+ "\014SpeechConfig\022=\n"
+ "\014voice_config\030\001"
+ " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfig\022\032\n\r"
+ "language_code\030\002 \001(\tB\003\340A\001\022W\n"
- + "\032multi_speaker_voice_config\030\003 \001(\013"
- + "23.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig\">\n"
- + "\013ImageConfig\022\036\n"
- + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\000\210\001\001B\017\n\r"
- + "_aspect_ratio\"\257\016\n"
+ + "\032multi_speaker_voice_config\030\003 \001(\01323.g"
+ + "oogle.cloud.aiplatform.v1.MultiSpeakerVoiceConfig\"\304\004\n"
+ + "\013ImageConfig\022b\n"
+ + "\024image_output_options\030\001 \001(\0132:.google.cloud.aiplatfor"
+ + "m.v1.ImageConfig.ImageOutputOptionsB\003\340A\001H\000\210\001\001\022\036\n"
+ + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\001\210\001\001\022]\n"
+ + "\021person_generation\030\003 \001(\01628.google.cloud."
+ + "aiplatform.v1.ImageConfig.PersonGenerationB\003\340A\001H\002\210\001\001\022\034\n\n"
+ + "image_size\030\004 \001(\tB\003\340A\001H\003\210\001\001\032~\n"
+ + "\022ImageOutputOptions\022\033\n"
+ + "\tmime_type\030\001 \001(\tB\003\340A\001H\000\210\001\001\022%\n"
+ + "\023compression_quality\030\002 \001(\005B\003\340A\001H\001\210\001\001B\014\n\n"
+ + "_mime_typeB\026\n"
+ + "\024_compression_quality\"e\n"
+ + "\020PersonGeneration\022!\n"
+ + "\035PERSON_GENERATION_UNSPECIFIED\020\000\022\r\n"
+ + "\tALLOW_ALL\020\001\022\017\n"
+ + "\013ALLOW_ADULT\020\002\022\016\n\n"
+ + "ALLOW_NONE\020\003B\027\n"
+ + "\025_image_output_optionsB\017\n\r"
+ + "_aspect_ratioB\024\n"
+ + "\022_person_generationB\r\n"
+ + "\013_image_size\"\341\023\n"
+ "\020GenerationConfig\022\035\n"
+ "\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n"
+ "\005top_p\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n"
@@ -304,24 +342,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\210\001\001\022>\n"
+ "\024response_json_schema\030\034"
+ " \001(\0132\026.google.protobuf.ValueB\003\340A\001H\013\210\001\001\022\\\n"
- + "\016routing_config\030\021 \001(\0132:.goo"
- + "gle.cloud.aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022I\n\r"
+ + "\016routing_config\030\021 \001(\0132:.google.c"
+ + "loud.aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022!\n"
+ + "\017audio_timestamp\030\024 \001(\010B\003\340A\001H\r"
+ + "\210\001\001\022W\n"
+ + "\023response_modalities\030\025 "
+ + "\003(\01625.google.cloud.aiplatform.v1.GenerationConfig.ModalityB\003\340A\001\022`\n"
+ + "\020media_resolution\030\026 \001(\0162<.google.cloud.aiplatform.v1.G"
+ + "enerationConfig.MediaResolutionB\003\340A\001H\016\210\001\001\022I\n\r"
+ "speech_config\030\027"
- + " \001(\0132(.google.cloud.aiplatform.v1.SpeechConfigB\003\340A\001H\r"
- + "\210\001\001\022Y\n"
- + "\017thinking_config\030\031"
- + " \001(\0132;.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n"
- + "\014image_config\030\036"
- + " \001(\0132\'.google.cloud.aiplatform.v1.ImageConfigB\003\340A\001H\016\210\001\001\032\302\004\n\r"
+ + " \001(\0132(.google.cloud.aiplatform.v1.SpeechConfigB\003\340A\001H\017\210\001\001\022Y\n"
+ + "\017thinking_config\030\031 \001(\0132;.google.cloud.aip"
+ + "latform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n"
+ + "\014image_config\030\036 \001(\0132\'.google.c"
+ + "loud.aiplatform.v1.ImageConfigB\003\340A\001H\020\210\001\001\032\302\004\n\r"
+ "RoutingConfig\022_\n"
- + "\tauto_mode\030\001 \001(\0132J.google.cloud.aipl"
- + "atform.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n"
- + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplatform.v1.GenerationC"
- + "onfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n"
+ + "\tauto_mode\030\001 \001(\0132J."
+ + "google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n"
+ + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplatfo"
+ + "rm.v1.GenerationConfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n"
+ "\017AutoRoutingMode\022\210\001\n"
- + "\030model_routing_preference\030\001 \001(\0162a.google.cloud.aiplatform"
- + ".v1.GenerationConfig.RoutingConfig.AutoR"
- + "outingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n"
+ + "\030model_routing_preference\030\001 \001(\0162a.google"
+ + ".cloud.aiplatform.v1.GenerationConfig.Ro"
+ + "utingConfig.AutoRoutingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n"
+ "\026ModelRoutingPreference\022\013\n"
+ "\007UNKNOWN\020\000\022\026\n"
+ "\022PRIORITIZE_QUALITY\020\001\022\014\n"
@@ -331,12 +374,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021ManualRoutingMode\022\027\n\n"
+ "model_name\030\001 \001(\tH\000\210\001\001B\r\n"
+ "\013_model_nameB\020\n"
- + "\016routing_config\032\200\001\n"
+ + "\016routing_config\032\335\002\n"
+ "\016ThinkingConfig\022\"\n"
+ "\020include_thoughts\030\001 \001(\010B\003\340A\001H\000\210\001\001\022!\n"
- + "\017thinking_budget\030\003 \001(\005B\003\340A\001H\001\210\001\001B\023\n"
+ + "\017thinking_budget\030\003 \001(\005B\003\340A\001H\001\210\001\001\022k\n"
+ + "\016thinking_level\030\004 \001(\0162I.google.cloud.aiplatfor"
+ + "m.v1.GenerationConfig.ThinkingConfig.ThinkingLevelB\003\340A\001H\002\210\001\001\"[\n\r"
+ + "ThinkingLevel\022\036\n"
+ + "\032THINKING_LEVEL_UNSPECIFIED\020\000\022\007\n"
+ + "\003LOW\020\001\022\n"
+ + "\n"
+ + "\006MEDIUM\020\002\022\010\n"
+ + "\004HIGH\020\003\022\013\n"
+ + "\007MINIMAL\020\004B\023\n"
+ "\021_include_thoughtsB\022\n"
- + "\020_thinking_budgetB\016\n"
+ + "\020_thinking_budgetB\021\n"
+ + "\017_thinking_level\"D\n"
+ + "\010Modality\022\030\n"
+ + "\024MODALITY_UNSPECIFIED\020\000\022\010\n"
+ + "\004TEXT\020\001\022\t\n"
+ + "\005IMAGE\020\002\022\t\n"
+ + "\005AUDIO\020\003\"\205\001\n"
+ + "\017MediaResolution\022 \n"
+ + "\034MEDIA_RESOLUTION_UNSPECIFIED\020\000\022\030\n"
+ + "\024MEDIA_RESOLUTION_LOW\020\001\022\033\n"
+ + "\027MEDIA_RESOLUTION_MEDIUM\020\002\022\031\n"
+ + "\025MEDIA_RESOLUTION_HIGH\020\003B\016\n"
+ "\014_temperatureB\010\n"
+ "\006_top_pB\010\n"
+ "\006_top_kB\022\n"
@@ -349,16 +412,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005_seedB\022\n"
+ "\020_response_schemaB\027\n"
+ "\025_response_json_schemaB\021\n"
- + "\017_routing_configB\020\n"
+ + "\017_routing_configB\022\n"
+ + "\020_audio_timestampB\023\n"
+ + "\021_media_resolutionB\020\n"
+ "\016_speech_configB\017\n\r"
+ "_image_config\"\353\003\n\r"
+ "SafetySetting\022?\n"
- + "\010category\030\001 \001(\0162(.go"
- + "ogle.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n"
- + "\tthreshold\030\002 \001(\0162<.google.cloud.aip"
- + "latform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n"
- + "\006method\030\004 \001(\01629.google.cloud."
- + "aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n"
+ + "\010category\030\001 \001(\016"
+ + "2(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n"
+ + "\tthreshold\030\002 \001(\0162<.google.clou"
+ + "d.aiplatform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n"
+ + "\006method\030\004 \001(\01629.google.c"
+ + "loud.aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n"
+ "\022HarmBlockThreshold\022$\n"
+ " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n"
+ "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n"
@@ -373,11 +438,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014SafetyRating\022?\n"
+ "\010category\030\001"
+ " \001(\0162(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\003\022R\n"
- + "\013probability\030\002 \001(\01628.g"
- + "oogle.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n"
+ + "\013probability\030\002 \001("
+ + "\01628.google.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n"
+ "\021probability_score\030\005 \001(\002B\003\340A\003\022L\n"
- + "\010severity\030\006 \001(\01625.google.c"
- + "loud.aiplatform.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n"
+ + "\010severity\030\006 \001(\01625.goo"
+ + "gle.cloud.aiplatform.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n"
+ "\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n"
+ "\007blocked\030\003 \001(\010B\003\340A\003\"b\n"
+ "\017HarmProbability\022 \n"
@@ -393,8 +458,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\024HARM_SEVERITY_MEDIUM\020\003\022\026\n"
+ "\022HARM_SEVERITY_HIGH\020\004\"P\n"
+ "\020CitationMetadata\022<\n"
- + "\tcitations\030\001"
- + " \003(\0132$.google.cloud.aiplatform.v1.CitationB\003\340A\003\"\252\001\n"
+ + "\tcitations\030\001 \003(\0132$.go"
+ + "ogle.cloud.aiplatform.v1.CitationB\003\340A\003\"\252\001\n"
+ "\010Citation\022\030\n"
+ "\013start_index\030\001 \001(\005B\003\340A\003\022\026\n"
+ "\tend_index\030\002 \001(\005B\003\340A\003\022\020\n"
@@ -410,17 +475,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014avg_logprobs\030\t \001(\001B\003\340A\003\022H\n"
+ "\017logprobs_result\030\n"
+ " \001(\0132*.google.cloud.aiplatform.v1.LogprobsResultB\003\340A\003\022N\n\r"
- + "finish_reason\030\003 "
- + "\001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n"
+ + "finish_reason\030\003"
+ + " \001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n"
+ "\016safety_ratings\030\004"
+ " \003(\0132(.google.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022 \n"
+ "\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n"
- + "\021citation_metadata\030\006 \001(\0132,.googl"
- + "e.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n"
- + "\022grounding_metadata\030\007 \001(\0132-.google"
- + ".cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n"
- + "\024url_context_metadata\030\013 \001(\0132..goog"
- + "le.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n"
+ + "\021citation_metadata\030\006 \001(\0132,."
+ + "google.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n"
+ + "\022grounding_metadata\030\007 \001(\0132-.g"
+ + "oogle.cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n"
+ + "\024url_context_metadata\030\013 \001(\0132."
+ + ".google.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n"
+ "\014FinishReason\022\035\n"
+ "\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n"
+ "\004STOP\020\001\022\016\n\n"
@@ -436,21 +501,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "B\021\n"
+ "\017_finish_message\"X\n"
+ "\022UrlContextMetadata\022B\n"
- + "\014url_metadata\030\001 \003(\0132\'."
- + "google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n"
+ + "\014url_metadata\030\001 \003"
+ + "(\0132\'.google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n"
+ "\013UrlMetadata\022\025\n\r"
+ "retrieved_url\030\001 \001(\t\022X\n"
- + "\024url_retrieval_status\030\002 \001(\0162:.googl"
- + "e.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n"
+ + "\024url_retrieval_status\030\002 \001(\0162:."
+ + "google.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n"
+ "\022UrlRetrievalStatus\022$\n"
+ " URL_RETRIEVAL_STATUS_UNSPECIFIED\020\000\022 \n"
+ "\034URL_RETRIEVAL_STATUS_SUCCESS\020\001\022\036\n"
+ "\032URL_RETRIEVAL_STATUS_ERROR\020\002\"\217\003\n"
+ "\016LogprobsResult\022P\n"
- + "\016top_candidates\030\001 \003(\01328.google.cloud.aip"
- + "latform.v1.LogprobsResult.TopCandidates\022O\n"
- + "\021chosen_candidates\030\002 \003(\01324.google.clou"
- + "d.aiplatform.v1.LogprobsResult.Candidate\032\177\n"
+ + "\016top_candidates\030\001 \003(\01328.google.clou"
+ + "d.aiplatform.v1.LogprobsResult.TopCandidates\022O\n"
+ + "\021chosen_candidates\030\002 \003(\01324.google"
+ + ".cloud.aiplatform.v1.LogprobsResult.Candidate\032\177\n"
+ "\tCandidate\022\022\n"
+ "\005token\030\001 \001(\tH\000\210\001\001\022\025\n"
+ "\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n"
@@ -468,10 +533,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004text\030\004 \001(\tB\003\340A\003\"\322\007\n"
+ "\016GroundingChunk\022=\n"
+ "\003web\030\001 \001(\0132..google.cloud.aiplatform.v1.GroundingChunk.WebH\000\022X\n"
- + "\021retrieved_context\030\002 \001(\0132;.goo"
- + "gle.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n"
- + "\004maps\030\003 \001(\0132/.google"
- + ".cloud.aiplatform.v1.GroundingChunk.MapsH\000\032=\n"
+ + "\021retrieved_context\030\002 \001(\0132"
+ + ";.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n"
+ + "\004maps\030\003 \001(\0132/.g"
+ + "oogle.cloud.aiplatform.v1.GroundingChunk.MapsH\000\032=\n"
+ "\003Web\022\020\n"
+ "\003uri\030\001 \001(\tH\000\210\001\001\022\022\n"
+ "\005title\030\002 \001(\tH\001\210\001\001B\006\n"
@@ -493,11 +558,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005title\030\002 \001(\tH\001\210\001\001\022\021\n"
+ "\004text\030\003 \001(\tH\002\210\001\001\022\025\n"
+ "\010place_id\030\004 \001(\tH\003\210\001\001\022`\n"
- + "\024place_answer_sources\030\005 \001(\0132B.google.cloud.aiplat"
- + "form.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n"
+ + "\024place_answer_sources\030\005 \001(\0132B.google.cloud.a"
+ + "iplatform.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n"
+ "\022PlaceAnswerSources\022i\n"
- + "\017review_snippets\030\001 \003(\0132P.google.cloud.aiplatform"
- + ".v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r"
+ + "\017review_snippets\030\001 \003(\0132P.google.cloud.aipla"
+ + "tform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r"
+ "ReviewSnippet\022\021\n"
+ "\treview_id\030\001 \001(\t\022\027\n"
+ "\017google_maps_uri\030\002 \001(\t\022\r\n"
@@ -515,18 +580,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010_segment\"\240\005\n"
+ "\021GroundingMetadata\022\037\n"
+ "\022web_search_queries\030\001 \003(\tB\003\340A\001\022R\n"
- + "\022search_entry_point\030\004"
- + " \001(\0132,.google.cloud.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n"
+ + "\022search_entry_point\030\004 \001(\0132,.google.clou"
+ + "d.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n"
+ "\020grounding_chunks\030\005"
+ " \003(\0132*.google.cloud.aiplatform.v1.GroundingChunk\022M\n"
+ "\022grounding_supports\030\006"
+ " \003(\0132,.google.cloud.aiplatform.v1.GroundingSupportB\003\340A\001\022V\n"
- + "\022retrieval_metadata\030\007"
- + " \001(\0132-.google.cloud.aiplatform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n"
+ + "\022retrieval_metadata\030\007 \001(\0132-.google.cloud.aipla"
+ + "tform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n"
+ " google_maps_widget_context_token\030\010 \001("
+ "\tB\006\340A\001\340A\003H\002\210\001\001\022]\n"
- + "\024source_flagging_uris\030\t \003(\0132"
- + "?.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri\032@\n"
+ + "\024source_flagging_uris\030\t"
+ + " \003(\0132?.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri\032@\n"
+ "\021SourceFlaggingUri\022\021\n"
+ "\tsource_id\030\001 \001(\t\022\030\n"
+ "\020flag_content_uri\030\002 \001(\tB\025\n"
@@ -561,12 +626,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005VIDEO\020\003\022\t\n"
+ "\005AUDIO\020\004\022\014\n"
+ "\010DOCUMENT\020\005B\257\002\n"
- + "\036com.google.cloud.aiplatform.v1B\014ContentProtoP\001Z>cloud.googl"
- + "e.com/go/aiplatform/apiv1/aiplatformpb;a"
- + "iplatformpb\252\002\032Google.Cloud.AIPlatform.V1"
- + "\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352Ab\n"
- + "\"modelarmor.googleapis.com/Template\022
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -126,10 +128,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1827,10 +1831,12 @@ public Builder mergeFrom(
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -1852,10 +1858,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1877,10 +1885,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The name to set.
@@ -1901,10 +1911,12 @@ public Builder setName(java.lang.String value) {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
@@ -1921,10 +1933,12 @@ public Builder clearName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java
index 256f5a4f2d5a..b9efeb327ab1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java
@@ -31,10 +31,12 @@ public interface DatasetOrBuilder
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -46,10 +48,12 @@ public interface DatasetOrBuilder
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java
index 5fe1d8dc6b66..5382d978b4a2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java
@@ -88,9 +88,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "urce.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\032#google/cloud/aipla"
+ "tform/v1/io.proto\032,google/cloud/aiplatfo"
+ "rm/v1/saved_query.proto\032\034google/protobuf"
- + "/struct.proto\032\037google/protobuf/timestamp.proto\"\206\006\n"
- + "\007Dataset\022\024\n"
- + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n"
+ + "/struct.proto\032\037google/protobuf/timestamp.proto\"\254\006\n"
+ + "\007Dataset\022:\n"
+ + "\004name\030\001 \001(\tB,\340A\003\340A\010\372A#\n"
+ + "!aiplatform.googleapis.com/Dataset\022\031\n"
+ "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n"
+ "\013description\030\020 \001(\t\022 \n"
+ "\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n"
@@ -103,8 +104,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004etag\030\006 \001(\t\022?\n"
+ "\006labels\030\007 \003(\0132/.google.cloud.aiplatform.v1.Dataset.LabelsEntry\022=\n\r"
+ "saved_queries\030\t \003(\0132&.google.cloud.aiplatform.v1.SavedQuery\022C\n"
- + "\017encryption_spec\030\013 \001(\0132*.goo"
- + "gle.cloud.aiplatform.v1.EncryptionSpec\022\036\n"
+ + "\017encryption_spec\030\013"
+ + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022\036\n"
+ "\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n"
+ "\017model_reference\030\022 \001(\tB\003\340A\001\022\032\n\r"
+ "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r"
@@ -112,17 +113,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:b\352A_\n"
- + "!aiplatform.googleapis.com/Data"
- + "set\022:projects/{project}/locations/{location}/datasets/{dataset}\"\244\003\n"
+ + "!aiplatform.googleapis.com/Datase"
+ + "t\022:projects/{project}/locations/{location}/datasets/{dataset}\"\244\003\n"
+ "\020ImportDataConfig\022;\n\n"
+ "gcs_source\030\001 \001(\0132%.google.cloud.aiplatform.v1.GcsSourceH\000\022Z\n"
+ "\020data_item_labels\030\002"
+ " \003(\0132@.google.cloud.aiplatform.v1.ImportDataConfig.DataItemLabelsEntry\022]\n"
- + "\021annotation_labels\030\003 \003(\0132B.google.cloud."
- + "aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry\022\036\n"
+ + "\021annotation_labels\030\003 \003(\0132B.google.cloud.ai"
+ + "platform.v1.ImportDataConfig.AnnotationLabelsEntry\022\036\n"
+ "\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n"
+ "\023DataItemLabelsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022\r\n"
+ + "\003key\030\001 \001(\t\022\r"
+ + "\n"
+ "\005value\030\002 \001(\t:\0028\001\0327\n"
+ "\025AnnotationLabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
@@ -131,15 +133,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020ExportDataConfig\022E\n"
+ "\017gcs_destination\030\001"
+ " \001(\0132*.google.cloud.aiplatform.v1.GcsDestinationH\000\022I\n"
- + "\016fraction_split\030\005 \001"
- + "(\0132/.google.cloud.aiplatform.v1.ExportFractionSplitH\001\022E\n"
- + "\014filter_split\030\007 \001(\0132-.go"
- + "ogle.cloud.aiplatform.v1.ExportFilterSplitH\001\022\032\n"
+ + "\016fraction_split\030\005 \001(\013"
+ + "2/.google.cloud.aiplatform.v1.ExportFractionSplitH\001\022E\n"
+ + "\014filter_split\030\007 \001(\0132-.goog"
+ + "le.cloud.aiplatform.v1.ExportFilterSplitH\001\022\032\n"
+ "\022annotations_filter\030\002 \001(\t\022\026\n"
+ "\016saved_query_id\030\013 \001(\t\022\035\n"
+ "\025annotation_schema_uri\030\014 \001(\t\022J\n\n"
- + "export_use\030\004 \001(\01626.google.clo"
- + "ud.aiplatform.v1.ExportDataConfig.ExportUse\"A\n"
+ + "export_use\030\004 \001(\01626.google.cloud"
+ + ".aiplatform.v1.ExportDataConfig.ExportUse\"A\n"
+ "\tExportUse\022\032\n"
+ "\026EXPORT_USE_UNSPECIFIED\020\000\022\030\n"
+ "\024CUSTOM_CODE_TRAINING\020\006B\r\n"
@@ -153,11 +155,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017training_filter\030\001 \001(\tB\003\340A\002\022\036\n"
+ "\021validation_filter\030\002 \001(\tB\003\340A\002\022\030\n"
+ "\013test_filter\030\003 \001(\tB\003\340A\002B\312\001\n"
- + "\036com.google.cloud.aiplatform.v1B\014DatasetProtoP\001Z>cl"
- + "oud.google.com/go/aiplatform/apiv1/aipla"
- + "tformpb;aiplatformpb\252\002\032Google.Cloud.AIPl"
- + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002"
- + "\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "\036com.google.cloud.aiplatform.v1B\014DatasetProtoP\001Z>clou"
+ + "d.google.com/go/aiplatform/apiv1/aiplatf"
+ + "ormpb;aiplatformpb\252\002\032Google.Cloud.AIPlat"
+ + "form.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035G"
+ + "oogle::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -270,6 +272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java
index e19ad7b812e1..e5b26252a3a7 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java
@@ -85,10 +85,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -111,10 +113,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1117,10 +1121,12 @@ public Builder mergeFrom(
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -1142,10 +1148,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1167,10 +1175,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The name to set.
@@ -1191,10 +1201,12 @@ public Builder setName(java.lang.String value) {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
@@ -1211,10 +1223,12 @@ public Builder clearName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java
index 186ae65ce212..c1d6203b8cde 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java
@@ -31,10 +31,12 @@ public interface DatasetVersionOrBuilder
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -46,10 +48,12 @@ public interface DatasetVersionOrBuilder
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java
index 5bbdea7e182b..e35165f047f5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java
@@ -53,33 +53,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n"
- + "0google/cloud/aiplatform/v1/dataset_ver"
+ "\n0google/cloud/aiplatform/v1/dataset_ver"
+ "sion.proto\022\032google.cloud.aiplatform.v1\032\037"
+ "google/api/field_behavior.proto\032\031google/"
+ "api/resource.proto\032\034google/protobuf/stru"
- + "ct.proto\032\037google/protobuf/timestamp.proto\"\362\003\n"
- + "\016DatasetVersion\022\024\n"
- + "\004name\030\001 \001(\tB\006\340A\003\340A\010\0224\n"
- + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
- + "\013update_time\030\006"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n"
- + "\004etag\030\003 \001(\t\022#\n"
- + "\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024\n"
- + "\014display_name\030\007 \001(\t\0220\n"
- + "\010metadata\030\010"
- + " \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034\n"
- + "\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\r"
- + "satisfies_pzs\030\n"
- + " \001(\010B\003\340A\003\022\032\n\r"
- + "satisfies_pzi\030\013 \001(\010B\003\340A\003:\214\001\352A\210\001\n"
- + "(aiplatform.googleapis.com/DatasetVersion\022\\projects/{project}/locations/{"
- + "location}/datasets/{dataset}/datasetVersions/{dataset_version}B\321\001\n"
- + "\036com.google.cloud.aiplatform.v1B\023DatasetVersionProtoP\001"
- + "Z>cloud.google.com/go/aiplatform/apiv1/a"
- + "iplatformpb;aiplatformpb\252\002\032Google.Cloud."
- + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\"
- + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "ct.proto\032\037google/protobuf/timestamp.prot"
+ + "o\"\237\004\n\016DatasetVersion\022A\n\004name\030\001 \001(\tB3\340A\003\340"
+ + "A\010\372A*\n(aiplatform.googleapis.com/Dataset"
+ + "Version\0224\n\013create_time\030\002 \001(\0132\032.google.pr"
+ + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001"
+ + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n\004e"
+ + "tag\030\003 \001(\t\022#\n\026big_query_dataset_name\030\004 \001("
+ + "\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010metadata"
+ + "\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034"
+ + "\n\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\rsatisfie"
+ + "s_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\013 \001(\010B"
+ + "\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis.com/D"
+ + "atasetVersion\022\\projects/{project}/locati"
+ + "ons/{location}/datasets/{dataset}/datase"
+ + "tVersions/{dataset_version}B\321\001\n\036com.goog"
+ + "le.cloud.aiplatform.v1B\023DatasetVersionPr"
+ + "otoP\001Z>cloud.google.com/go/aiplatform/ap"
+ + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C"
+ + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat"
+ + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b"
+ + "\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -116,6 +114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java
index 6137ecaef128..00973564bf13 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java
@@ -54,6 +54,8 @@ private GenerationConfig(com.google.protobuf.GeneratedMessage.Builder> builder
private GenerationConfig() {
stopSequences_ = com.google.protobuf.LazyStringArrayList.emptyList();
responseMimeType_ = "";
+ responseModalities_ = emptyIntList();
+ mediaResolution_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -71,6 +73,392 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.GenerationConfig.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * The modalities of the response.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.GenerationConfig.Modality}
+ */
+ public enum Modality implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified modality. Will be processed as text.
+ *
+ *
+ * MODALITY_UNSPECIFIED = 0;
+ */
+ MODALITY_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Text modality.
+ *
+ *
+ * TEXT = 1;
+ */
+ TEXT(1),
+ /**
+ *
+ *
+ *
+ * Image modality.
+ *
+ *
+ * IMAGE = 2;
+ */
+ IMAGE(2),
+ /**
+ *
+ *
+ *
+ * Audio modality.
+ *
+ *
+ * AUDIO = 3;
+ */
+ AUDIO(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "Modality");
+ }
+
+ /**
+ *
+ *
+ *
+ * Unspecified modality. Will be processed as text.
+ *
+ *
+ * MODALITY_UNSPECIFIED = 0;
+ */
+ public static final int MODALITY_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Text modality.
+ *
+ *
+ * TEXT = 1;
+ */
+ public static final int TEXT_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Image modality.
+ *
+ *
+ * IMAGE = 2;
+ */
+ public static final int IMAGE_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Audio modality.
+ *
+ *
+ * AUDIO = 3;
+ */
+ public static final int AUDIO_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Modality valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Modality forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MODALITY_UNSPECIFIED;
+ case 1:
+ return TEXT;
+ case 2:
+ return IMAGE;
+ case 3:
+ return AUDIO;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Media resolution for the input media.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.GenerationConfig.MediaResolution}
+ */
+ public enum MediaResolution implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Media resolution has not been set.
+ *
+ *
+ * MEDIA_RESOLUTION_UNSPECIFIED = 0;
+ */
+ MEDIA_RESOLUTION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Media resolution set to low (64 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_LOW = 1;
+ */
+ MEDIA_RESOLUTION_LOW(1),
+ /**
+ *
+ *
+ *
+ * Media resolution set to medium (256 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_MEDIUM = 2;
+ */
+ MEDIA_RESOLUTION_MEDIUM(2),
+ /**
+ *
+ *
+ *
+ * Media resolution set to high (zoomed reframing with 256 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_HIGH = 3;
+ */
+ MEDIA_RESOLUTION_HIGH(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "MediaResolution");
+ }
+
+ /**
+ *
+ *
+ *
+ * Media resolution has not been set.
+ *
+ *
+ * MEDIA_RESOLUTION_UNSPECIFIED = 0;
+ */
+ public static final int MEDIA_RESOLUTION_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to low (64 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_LOW = 1;
+ */
+ public static final int MEDIA_RESOLUTION_LOW_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to medium (256 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_MEDIUM = 2;
+ */
+ public static final int MEDIA_RESOLUTION_MEDIUM_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to high (zoomed reframing with 256 tokens).
+ *
+ *
+ * MEDIA_RESOLUTION_HIGH = 3;
+ */
+ public static final int MEDIA_RESOLUTION_HIGH_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static MediaResolution valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static MediaResolution forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MEDIA_RESOLUTION_UNSPECIFIED;
+ case 1:
+ return MEDIA_RESOLUTION_LOW;
+ case 2:
+ return MEDIA_RESOLUTION_MEDIUM;
+ case 3:
+ return MEDIA_RESOLUTION_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
- * Config for thinking features.
- *
- *
- * Protobuf type {@code google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig}
- */
- public static final class ThinkingConfig extends com.google.protobuf.GeneratedMessage
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
- ThinkingConfigOrBuilder {
- private static final long serialVersionUID = 0L;
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the thinkingLevel field is set.
+ */
+ boolean hasThinkingLevel();
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for thinkingLevel.
+ */
+ int getThinkingLevelValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The thinkingLevel.
+ */
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel getThinkingLevel();
+ }
+
+ /**
+ *
+ *
+ *
+ * Config for thinking features.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig}
+ */
+ public static final class ThinkingConfig extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
+ ThinkingConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 33,
@@ -3095,7 +3528,9 @@ private ThinkingConfig(com.google.protobuf.GeneratedMessage.Builder> builder)
super(builder);
}
- private ThinkingConfig() {}
+ private ThinkingConfig() {
+ thinkingLevel_ = 0;
+ }
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.aiplatform.v1.ContentProto
@@ -3112,6 +3547,226 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * The thinking level for the model.
+ *
+ *
+ * Protobuf enum {@code
+ * google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel}
+ */
+ public enum ThinkingLevel implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified thinking level.
+ *
+ *
+ * THINKING_LEVEL_UNSPECIFIED = 0;
+ */
+ THINKING_LEVEL_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Low thinking level.
+ *
+ *
+ * LOW = 1;
+ */
+ LOW(1),
+ /**
+ *
+ *
+ *
+ * Medium thinking level.
+ *
+ *
+ * MEDIUM = 2;
+ */
+ MEDIUM(2),
+ /**
+ *
+ *
+ *
+ * High thinking level.
+ *
+ *
+ * HIGH = 3;
+ */
+ HIGH(3),
+ /**
+ *
+ *
+ *
+ * MINIMAL thinking level.
+ *
+ *
+ * MINIMAL = 4;
+ */
+ MINIMAL(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ThinkingLevel");
+ }
+
+ /**
+ *
+ *
+ *
+ * Unspecified thinking level.
+ *
+ *
+ * THINKING_LEVEL_UNSPECIFIED = 0;
+ */
+ public static final int THINKING_LEVEL_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Low thinking level.
+ *
+ *
+ * LOW = 1;
+ */
+ public static final int LOW_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Medium thinking level.
+ *
+ *
+ * MEDIUM = 2;
+ */
+ public static final int MEDIUM_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * High thinking level.
+ *
+ *
+ * HIGH = 3;
+ */
+ public static final int HIGH_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * MINIMAL thinking level.
+ *
+ *
+ * MINIMAL = 4;
+ */
+ public static final int MINIMAL_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ThinkingLevel valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ThinkingLevel forNumber(int value) {
+ switch (value) {
+ case 0:
+ return THINKING_LEVEL_UNSPECIFIED;
+ case 1:
+ return LOW;
+ case 2:
+ return MEDIUM;
+ case 3:
+ return HIGH;
+ case 4:
+ return MINIMAL;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the thinkingLevel field is set.
+ */
+ @java.lang.Override
+ public boolean hasThinkingLevel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for thinkingLevel.
+ */
+ @java.lang.Override
+ public int getThinkingLevelValue() {
+ return thinkingLevel_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The thinkingLevel.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel
+ getThinkingLevel() {
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel.forNumber(
+ thinkingLevel_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel
+ .UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -3207,6 +3926,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(3, thinkingBudget_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeEnum(4, thinkingLevel_);
+ }
getUnknownFields().writeTo(output);
}
@@ -3222,6 +3944,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, thinkingBudget_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, thinkingLevel_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3246,6 +3971,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasThinkingBudget()) {
if (getThinkingBudget() != other.getThinkingBudget()) return false;
}
+ if (hasThinkingLevel() != other.hasThinkingLevel()) return false;
+ if (hasThinkingLevel()) {
+ if (thinkingLevel_ != other.thinkingLevel_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3265,6 +3994,10 @@ public int hashCode() {
hash = (37 * hash) + THINKING_BUDGET_FIELD_NUMBER;
hash = (53 * hash) + getThinkingBudget();
}
+ if (hasThinkingLevel()) {
+ hash = (37 * hash) + THINKING_LEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + thinkingLevel_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -3408,6 +4141,7 @@ public Builder clear() {
bitField0_ = 0;
includeThoughts_ = false;
thinkingBudget_ = 0;
+ thinkingLevel_ = 0;
return this;
}
@@ -3455,6 +4189,10 @@ private void buildPartial0(
result.thinkingBudget_ = thinkingBudget_;
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.thinkingLevel_ = thinkingLevel_;
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -3479,6 +4217,9 @@ public Builder mergeFrom(
if (other.hasThinkingBudget()) {
setThinkingBudget(other.getThinkingBudget());
}
+ if (other.hasThinkingLevel()) {
+ setThinkingLevelValue(other.getThinkingLevelValue());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -3517,6 +4258,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 24
+ case 32:
+ {
+ thinkingLevel_ = input.readEnum();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 32
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3688,25 +4435,154 @@ public Builder clearThinkingBudget() {
return this;
}
- // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
- private static final com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig();
- }
+ private int thinkingLevel_ = 0;
- public static com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the thinkingLevel field is set.
+ */
+ @java.lang.Override
+ public boolean hasThinkingLevel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
- private static final com.google.protobuf.Parser
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for thinkingLevel.
+ */
+ @java.lang.Override
+ public int getThinkingLevelValue() {
+ return thinkingLevel_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for thinkingLevel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setThinkingLevelValue(int value) {
+ thinkingLevel_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The thinkingLevel.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel
+ getThinkingLevel() {
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel.forNumber(
+ thinkingLevel_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel
+ .UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The thinkingLevel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setThinkingLevel(
+ com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ thinkingLevel_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of thoughts tokens that the model should generate.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearThinkingLevel() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ thinkingLevel_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig)
+ private static final com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the audioTimestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasAudioTimestamp() {
+ return ((bitField0_ & 0x00002000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audioTimestamp.
+ */
+ @java.lang.Override
+ public boolean getAudioTimestamp() {
+ return audioTimestamp_;
+ }
+
+ public static final int RESPONSE_MODALITIES_FIELD_NUMBER = 21;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.IntList responseModalities_ = emptyIntList();
+
+ private static final com.google.protobuf.Internal.IntListAdapter.IntConverter<
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality>
+ responseModalities_converter_ =
+ new com.google.protobuf.Internal.IntListAdapter.IntConverter<
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality>() {
+ public com.google.cloud.aiplatform.v1.GenerationConfig.Modality convert(int from) {
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality.forNumber(from);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.Modality.UNRECOGNIZED
+ : result;
+ }
+ };
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the responseModalities.
+ */
+ @java.lang.Override
+ public java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of responseModalities.
+ */
+ @java.lang.Override
+ public int getResponseModalitiesCount() {
+ return responseModalities_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The responseModalities at the given index.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(int index) {
+ return responseModalities_converter_.convert(responseModalities_.getInt(index));
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the enum numeric values on the wire for responseModalities.
+ */
+ @java.lang.Override
+ public java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of responseModalities at the given index.
+ */
+ @java.lang.Override
+ public int getResponseModalitiesValue(int index) {
+ return responseModalities_.getInt(index);
+ }
+
+ private int responseModalitiesMemoizedSerializedSize;
+
+ public static final int MEDIA_RESOLUTION_FIELD_NUMBER = 22;
+ private int mediaResolution_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ @java.lang.Override
+ public boolean hasMediaResolution() {
+ return ((bitField0_ & 0x00004000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for mediaResolution.
+ */
+ @java.lang.Override
+ public int getMediaResolutionValue() {
+ return mediaResolution_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaResolution.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution() {
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.forNumber(mediaResolution_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.UNRECOGNIZED
+ : result;
+ }
+
public static final int SPEECH_CONFIG_FIELD_NUMBER = 23;
private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_;
@@ -4546,7 +5668,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC
*/
@java.lang.Override
public boolean hasSpeechConfig() {
- return ((bitField0_ & 0x00002000) != 0);
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
@@ -4607,7 +5729,7 @@ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBui
*/
@java.lang.Override
public boolean hasThinkingConfig() {
- return ((bitField0_ & 0x00004000) != 0);
+ return ((bitField0_ & 0x00010000) != 0);
}
/**
@@ -4671,7 +5793,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig getThinkin
*/
@java.lang.Override
public boolean hasImageConfig() {
- return ((bitField0_ & 0x00008000) != 0);
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
@@ -4726,6 +5848,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ getSerializedSize();
if (((bitField0_ & 0x00000001) != 0)) {
output.writeFloat(1, temperature_);
}
@@ -4769,15 +5892,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeBool(18, responseLogprobs_);
}
if (((bitField0_ & 0x00002000) != 0)) {
- output.writeMessage(23, getSpeechConfig());
+ output.writeBool(20, audioTimestamp_);
+ }
+ if (getResponseModalitiesList().size() > 0) {
+ output.writeUInt32NoTag(170);
+ output.writeUInt32NoTag(responseModalitiesMemoizedSerializedSize);
+ }
+ for (int i = 0; i < responseModalities_.size(); i++) {
+ output.writeEnumNoTag(responseModalities_.getInt(i));
}
if (((bitField0_ & 0x00004000) != 0)) {
+ output.writeEnum(22, mediaResolution_);
+ }
+ if (((bitField0_ & 0x00008000) != 0)) {
+ output.writeMessage(23, getSpeechConfig());
+ }
+ if (((bitField0_ & 0x00010000) != 0)) {
output.writeMessage(25, getThinkingConfig());
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(28, getResponseJsonSchema());
}
- if (((bitField0_ & 0x00008000) != 0)) {
+ if (((bitField0_ & 0x00020000) != 0)) {
output.writeMessage(30, getImageConfig());
}
getUnknownFields().writeTo(output);
@@ -4837,15 +5973,35 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_);
}
if (((bitField0_ & 0x00002000) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig());
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, audioTimestamp_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < responseModalities_.size(); i++) {
+ dataSize +=
+ com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
+ responseModalities_.getInt(i));
+ }
+ size += dataSize;
+ if (!getResponseModalitiesList().isEmpty()) {
+ size += 2;
+ size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
+ }
+ responseModalitiesMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00004000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, mediaResolution_);
+ }
+ if (((bitField0_ & 0x00008000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig());
+ }
+ if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getThinkingConfig());
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getResponseJsonSchema());
}
- if (((bitField0_ & 0x00008000) != 0)) {
+ if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getImageConfig());
}
size += getUnknownFields().getSerializedSize();
@@ -4923,6 +6079,15 @@ public boolean equals(final java.lang.Object obj) {
if (hasRoutingConfig()) {
if (!getRoutingConfig().equals(other.getRoutingConfig())) return false;
}
+ if (hasAudioTimestamp() != other.hasAudioTimestamp()) return false;
+ if (hasAudioTimestamp()) {
+ if (getAudioTimestamp() != other.getAudioTimestamp()) return false;
+ }
+ if (!responseModalities_.equals(other.responseModalities_)) return false;
+ if (hasMediaResolution() != other.hasMediaResolution()) return false;
+ if (hasMediaResolution()) {
+ if (mediaResolution_ != other.mediaResolution_) return false;
+ }
if (hasSpeechConfig() != other.hasSpeechConfig()) return false;
if (hasSpeechConfig()) {
if (!getSpeechConfig().equals(other.getSpeechConfig())) return false;
@@ -5004,6 +6169,18 @@ public int hashCode() {
hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getRoutingConfig().hashCode();
}
+ if (hasAudioTimestamp()) {
+ hash = (37 * hash) + AUDIO_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAudioTimestamp());
+ }
+ if (getResponseModalitiesCount() > 0) {
+ hash = (37 * hash) + RESPONSE_MODALITIES_FIELD_NUMBER;
+ hash = (53 * hash) + responseModalities_.hashCode();
+ }
+ if (hasMediaResolution()) {
+ hash = (37 * hash) + MEDIA_RESOLUTION_FIELD_NUMBER;
+ hash = (53 * hash) + mediaResolution_;
+ }
if (hasSpeechConfig()) {
hash = (37 * hash) + SPEECH_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getSpeechConfig().hashCode();
@@ -5197,6 +6374,9 @@ public Builder clear() {
routingConfigBuilder_.dispose();
routingConfigBuilder_ = null;
}
+ audioTimestamp_ = false;
+ responseModalities_ = emptyIntList();
+ mediaResolution_ = 0;
speechConfig_ = null;
if (speechConfigBuilder_ != null) {
speechConfigBuilder_.dispose();
@@ -5314,19 +6494,31 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GenerationConfig resul
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
- result.speechConfig_ =
- speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build();
+ result.audioTimestamp_ = audioTimestamp_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
+ responseModalities_.makeImmutable();
+ result.responseModalities_ = responseModalities_;
+ }
+ if (((from_bitField0_ & 0x00020000) != 0)) {
+ result.mediaResolution_ = mediaResolution_;
+ to_bitField0_ |= 0x00004000;
+ }
+ if (((from_bitField0_ & 0x00040000) != 0)) {
+ result.speechConfig_ =
+ speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build();
+ to_bitField0_ |= 0x00008000;
+ }
+ if (((from_bitField0_ & 0x00080000) != 0)) {
result.thinkingConfig_ =
thinkingConfigBuilder_ == null ? thinkingConfig_ : thinkingConfigBuilder_.build();
- to_bitField0_ |= 0x00004000;
+ to_bitField0_ |= 0x00010000;
}
- if (((from_bitField0_ & 0x00020000) != 0)) {
+ if (((from_bitField0_ & 0x00100000) != 0)) {
result.imageConfig_ =
imageConfigBuilder_ == null ? imageConfig_ : imageConfigBuilder_.build();
- to_bitField0_ |= 0x00008000;
+ to_bitField0_ |= 0x00020000;
}
result.bitField0_ |= to_bitField0_;
}
@@ -5398,6 +6590,23 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerationConfig other)
if (other.hasRoutingConfig()) {
mergeRoutingConfig(other.getRoutingConfig());
}
+ if (other.hasAudioTimestamp()) {
+ setAudioTimestamp(other.getAudioTimestamp());
+ }
+ if (!other.responseModalities_.isEmpty()) {
+ if (responseModalities_.isEmpty()) {
+ responseModalities_ = other.responseModalities_;
+ responseModalities_.makeImmutable();
+ bitField0_ |= 0x00010000;
+ } else {
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.addAll(other.responseModalities_);
+ }
+ onChanged();
+ }
+ if (other.hasMediaResolution()) {
+ setMediaResolutionValue(other.getMediaResolutionValue());
+ }
if (other.hasSpeechConfig()) {
mergeSpeechConfig(other.getSpeechConfig());
}
@@ -5520,18 +6729,48 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 144
+ case 160:
+ {
+ audioTimestamp_ = input.readBool();
+ bitField0_ |= 0x00008000;
+ break;
+ } // case 160
+ case 168:
+ {
+ int tmpRaw = input.readEnum();
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.addInt(tmpRaw);
+ break;
+ } // case 168
+ case 170:
+ {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ ensureResponseModalitiesIsMutable();
+ while (input.getBytesUntilLimit() > 0) {
+ responseModalities_.addInt(input.readEnum());
+ }
+ input.popLimit(limit);
+ break;
+ } // case 170
+ case 176:
+ {
+ mediaResolution_ = input.readEnum();
+ bitField0_ |= 0x00020000;
+ break;
+ } // case 176
case 186:
{
input.readMessage(
internalGetSpeechConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
break;
} // case 186
case 202:
{
input.readMessage(
internalGetThinkingConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
break;
} // case 202
case 226:
@@ -5545,7 +6784,7 @@ public Builder mergeFrom(
{
input.readMessage(
internalGetImageConfigFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
break;
} // case 242
default:
@@ -7320,160 +8559,659 @@ public com.google.protobuf.Value.Builder getResponseJsonSchemaBuilder() {
* - `additionalProperties`
* - `required`
*
- * The non-standard `propertyOrdering` property may also be set.
+ * The non-standard `propertyOrdering` property may also be set.
+ *
+ * Cyclic references are unrolled to a limited degree and, as such, may only
+ * be used within non-required properties. (Nullable properties are not
+ * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
+ * for than those starting as a `$`, may be set.
+ *
+ *
+ *
+ * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder() {
+ if (responseJsonSchemaBuilder_ != null) {
+ return responseJsonSchemaBuilder_.getMessageOrBuilder();
+ } else {
+ return responseJsonSchema_ == null
+ ? com.google.protobuf.Value.getDefaultInstance()
+ : responseJsonSchema_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Output schema of the generated response. This is an alternative
+ * to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
+ *
+ * If set, `response_schema` must be omitted, but `response_mime_type` is
+ * required.
+ *
+ * While the full JSON Schema may be sent, not all features are supported.
+ * Specifically, only the following properties are supported:
+ *
+ * - `$id`
+ * - `$defs`
+ * - `$ref`
+ * - `$anchor`
+ * - `type`
+ * - `format`
+ * - `title`
+ * - `description`
+ * - `enum` (for strings and numbers)
+ * - `items`
+ * - `prefixItems`
+ * - `minItems`
+ * - `maxItems`
+ * - `minimum`
+ * - `maximum`
+ * - `anyOf`
+ * - `oneOf` (interpreted the same as `anyOf`)
+ * - `properties`
+ * - `additionalProperties`
+ * - `required`
+ *
+ * The non-standard `propertyOrdering` property may also be set.
+ *
+ * Cyclic references are unrolled to a limited degree and, as such, may only
+ * be used within non-required properties. (Nullable properties are not
+ * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
+ * for than those starting as a `$`, may be set.
+ *
+ *
+ *
+ * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Value,
+ com.google.protobuf.Value.Builder,
+ com.google.protobuf.ValueOrBuilder>
+ internalGetResponseJsonSchemaFieldBuilder() {
+ if (responseJsonSchemaBuilder_ == null) {
+ responseJsonSchemaBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Value,
+ com.google.protobuf.Value.Builder,
+ com.google.protobuf.ValueOrBuilder>(
+ getResponseJsonSchema(), getParentForChildren(), isClean());
+ responseJsonSchema_ = null;
+ }
+ return responseJsonSchemaBuilder_;
+ }
+
+ private com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routingConfig_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>
+ routingConfigBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the routingConfig field is set.
+ */
+ public boolean hasRoutingConfig() {
+ return ((bitField0_ & 0x00004000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The routingConfig.
+ */
+ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingConfig() {
+ if (routingConfigBuilder_ == null) {
+ return routingConfig_ == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance()
+ : routingConfig_;
+ } else {
+ return routingConfigBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRoutingConfig(
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) {
+ if (routingConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ routingConfig_ = value;
+ } else {
+ routingConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRoutingConfig(
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder builderForValue) {
+ if (routingConfigBuilder_ == null) {
+ routingConfig_ = builderForValue.build();
+ } else {
+ routingConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRoutingConfig(
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) {
+ if (routingConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00004000) != 0)
+ && routingConfig_ != null
+ && routingConfig_
+ != com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig
+ .getDefaultInstance()) {
+ getRoutingConfigBuilder().mergeFrom(value);
+ } else {
+ routingConfig_ = value;
+ }
+ } else {
+ routingConfigBuilder_.mergeFrom(value);
+ }
+ if (routingConfig_ != null) {
+ bitField0_ |= 0x00004000;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRoutingConfig() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ routingConfig_ = null;
+ if (routingConfigBuilder_ != null) {
+ routingConfigBuilder_.dispose();
+ routingConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder
+ getRoutingConfigBuilder() {
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return internalGetRoutingConfigFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder
+ getRoutingConfigOrBuilder() {
+ if (routingConfigBuilder_ != null) {
+ return routingConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return routingConfig_ == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance()
+ : routingConfig_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Routing configuration.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>
+ internalGetRoutingConfigFieldBuilder() {
+ if (routingConfigBuilder_ == null) {
+ routingConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
+ com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>(
+ getRoutingConfig(), getParentForChildren(), isClean());
+ routingConfig_ = null;
+ }
+ return routingConfigBuilder_;
+ }
+
+ private boolean audioTimestamp_;
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the audioTimestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasAudioTimestamp() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audioTimestamp.
+ */
+ @java.lang.Override
+ public boolean getAudioTimestamp() {
+ return audioTimestamp_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The audioTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudioTimestamp(boolean value) {
+
+ audioTimestamp_ = value;
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAudioTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ audioTimestamp_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.IntList responseModalities_ = emptyIntList();
+
+ private void ensureResponseModalitiesIsMutable() {
+ if (!responseModalities_.isModifiable()) {
+ responseModalities_ = makeMutableCopy(responseModalities_);
+ }
+ bitField0_ |= 0x00010000;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the responseModalities.
+ */
+ public java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of responseModalities.
+ */
+ public int getResponseModalitiesCount() {
+ return responseModalities_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The responseModalities at the given index.
+ */
+ public com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(
+ int index) {
+ return responseModalities_converter_.convert(responseModalities_.getInt(index));
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The responseModalities to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseModalities(
+ int index, com.google.cloud.aiplatform.v1.GenerationConfig.Modality value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.setInt(index, value.getNumber());
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The responseModalities to add.
+ * @return This builder for chaining.
+ */
+ public Builder addResponseModalities(
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.addInt(value.getNumber());
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
*
- * Cyclic references are unrolled to a limited degree and, as such, may only
- * be used within non-required properties. (Nullable properties are not
- * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
- * for than those starting as a `$`, may be set.
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param values The responseModalities to add.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder() {
- if (responseJsonSchemaBuilder_ != null) {
- return responseJsonSchemaBuilder_.getMessageOrBuilder();
- } else {
- return responseJsonSchema_ == null
- ? com.google.protobuf.Value.getDefaultInstance()
- : responseJsonSchema_;
+ public Builder addAllResponseModalities(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.GenerationConfig.Modality>
+ values) {
+ ensureResponseModalitiesIsMutable();
+ for (com.google.cloud.aiplatform.v1.GenerationConfig.Modality value : values) {
+ responseModalities_.addInt(value.getNumber());
}
+ onChanged();
+ return this;
}
/**
*
*
*
- * Optional. Output schema of the generated response. This is an alternative
- * to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
- *
- * If set, `response_schema` must be omitted, but `response_mime_type` is
- * required.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
*
- * While the full JSON Schema may be sent, not all features are supported.
- * Specifically, only the following properties are supported:
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
- * - `$id`
- * - `$defs`
- * - `$ref`
- * - `$anchor`
- * - `type`
- * - `format`
- * - `title`
- * - `description`
- * - `enum` (for strings and numbers)
- * - `items`
- * - `prefixItems`
- * - `minItems`
- * - `maxItems`
- * - `minimum`
- * - `maximum`
- * - `anyOf`
- * - `oneOf` (interpreted the same as `anyOf`)
- * - `properties`
- * - `additionalProperties`
- * - `required`
+ * @return This builder for chaining.
+ */
+ public Builder clearResponseModalities() {
+ responseModalities_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00010000);
+ onChanged();
+ return this;
+ }
+
+ /**
*
- * The non-standard `propertyOrdering` property may also be set.
*
- * Cyclic references are unrolled to a limited degree and, as such, may only
- * be used within non-required properties. (Nullable properties are not
- * sufficient.) If `$ref` is set on a sub-schema, no other properties, except
- * for than those starting as a `$`, may be set.
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return A list containing the enum numeric values on the wire for responseModalities.
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Value,
- com.google.protobuf.Value.Builder,
- com.google.protobuf.ValueOrBuilder>
- internalGetResponseJsonSchemaFieldBuilder() {
- if (responseJsonSchemaBuilder_ == null) {
- responseJsonSchemaBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.protobuf.Value,
- com.google.protobuf.Value.Builder,
- com.google.protobuf.ValueOrBuilder>(
- getResponseJsonSchema(), getParentForChildren(), isClean());
- responseJsonSchema_ = null;
- }
- return responseJsonSchemaBuilder_;
+ public java.util.List
- * Optional. Routing configuration.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return Whether the routingConfig field is set.
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of responseModalities at the given index.
*/
- public boolean hasRoutingConfig() {
- return ((bitField0_ & 0x00004000) != 0);
+ public int getResponseModalitiesValue(int index) {
+ return responseModalities_.getInt(index);
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return The routingConfig.
+ * @param index The index to set the value at.
+ * @param value The enum numeric value on the wire for responseModalities to set.
+ * @return This builder for chaining.
*/
- public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingConfig() {
- if (routingConfigBuilder_ == null) {
- return routingConfig_ == null
- ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance()
- : routingConfig_;
- } else {
- return routingConfigBuilder_.getMessage();
- }
+ public Builder setResponseModalitiesValue(int index, int value) {
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.setInt(index, value);
+ onChanged();
+ return this;
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param value The enum numeric value on the wire for responseModalities to add.
+ * @return This builder for chaining.
*/
- public Builder setRoutingConfig(
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) {
- if (routingConfigBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- routingConfig_ = value;
- } else {
- routingConfigBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00004000;
+ public Builder addResponseModalitiesValue(int value) {
+ ensureResponseModalitiesIsMutable();
+ responseModalities_.addInt(value);
onChanged();
return this;
}
@@ -7482,76 +9220,98 @@ public Builder setRoutingConfig(
*
*
*
- * Optional. Routing configuration.
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param values The enum numeric values on the wire for responseModalities to add.
+ * @return This builder for chaining.
*/
- public Builder setRoutingConfig(
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder builderForValue) {
- if (routingConfigBuilder_ == null) {
- routingConfig_ = builderForValue.build();
- } else {
- routingConfigBuilder_.setMessage(builderForValue.build());
+ public Builder addAllResponseModalitiesValue(java.lang.Iterable
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return Whether the mediaResolution field is set.
*/
- public Builder mergeRoutingConfig(
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig value) {
- if (routingConfigBuilder_ == null) {
- if (((bitField0_ & 0x00004000) != 0)
- && routingConfig_ != null
- && routingConfig_
- != com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig
- .getDefaultInstance()) {
- getRoutingConfigBuilder().mergeFrom(value);
- } else {
- routingConfig_ = value;
- }
- } else {
- routingConfigBuilder_.mergeFrom(value);
- }
- if (routingConfig_ != null) {
- bitField0_ |= 0x00004000;
- onChanged();
- }
- return this;
+ @java.lang.Override
+ public boolean hasMediaResolution() {
+ return ((bitField0_ & 0x00020000) != 0);
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return The enum numeric value on the wire for mediaResolution.
*/
- public Builder clearRoutingConfig() {
- bitField0_ = (bitField0_ & ~0x00004000);
- routingConfig_ = null;
- if (routingConfigBuilder_ != null) {
- routingConfigBuilder_.dispose();
- routingConfigBuilder_ = null;
- }
+ @java.lang.Override
+ public int getMediaResolutionValue() {
+ return mediaResolution_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for mediaResolution to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaResolutionValue(int value) {
+ mediaResolution_ = value;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -7560,68 +9320,83 @@ public Builder clearRoutingConfig() {
*
*
*
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return The mediaResolution.
*/
- public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder
- getRoutingConfigBuilder() {
- bitField0_ |= 0x00004000;
- onChanged();
- return internalGetRoutingConfigFieldBuilder().getBuilder();
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution() {
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution result =
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.forNumber(
+ mediaResolution_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution.UNRECOGNIZED
+ : result;
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param value The mediaResolution to set.
+ * @return This builder for chaining.
*/
- public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder
- getRoutingConfigOrBuilder() {
- if (routingConfigBuilder_ != null) {
- return routingConfigBuilder_.getMessageOrBuilder();
- } else {
- return routingConfig_ == null
- ? com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.getDefaultInstance()
- : routingConfig_;
+ public Builder setMediaResolution(
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ bitField0_ |= 0x00020000;
+ mediaResolution_ = value.getNumber();
+ onChanged();
+ return this;
}
/**
*
*
*
- * Optional. Routing configuration.
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
*
*
*
- * optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return This builder for chaining.
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>
- internalGetRoutingConfigFieldBuilder() {
- if (routingConfigBuilder_ == null) {
- routingConfigBuilder_ =
- new com.google.protobuf.SingleFieldBuilder<
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig,
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.Builder,
- com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder>(
- getRoutingConfig(), getParentForChildren(), isClean());
- routingConfig_ = null;
- }
- return routingConfigBuilder_;
+ public Builder clearMediaResolution() {
+ bitField0_ = (bitField0_ & ~0x00020000);
+ mediaResolution_ = 0;
+ onChanged();
+ return this;
}
private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_;
@@ -7645,7 +9420,7 @@ public Builder clearRoutingConfig() {
* @return Whether the speechConfig field is set.
*/
public boolean hasSpeechConfig() {
- return ((bitField0_ & 0x00008000) != 0);
+ return ((bitField0_ & 0x00040000) != 0);
}
/**
@@ -7691,7 +9466,7 @@ public Builder setSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value
} else {
speechConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -7714,7 +9489,7 @@ public Builder setSpeechConfig(
} else {
speechConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -7732,7 +9507,7 @@ public Builder setSpeechConfig(
*/
public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value) {
if (speechConfigBuilder_ == null) {
- if (((bitField0_ & 0x00008000) != 0)
+ if (((bitField0_ & 0x00040000) != 0)
&& speechConfig_ != null
&& speechConfig_ != com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()) {
getSpeechConfigBuilder().mergeFrom(value);
@@ -7743,7 +9518,7 @@ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig val
speechConfigBuilder_.mergeFrom(value);
}
if (speechConfig_ != null) {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
onChanged();
}
return this;
@@ -7761,7 +9536,7 @@ public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig val
*
*/
public Builder clearSpeechConfig() {
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00040000);
speechConfig_ = null;
if (speechConfigBuilder_ != null) {
speechConfigBuilder_.dispose();
@@ -7783,7 +9558,7 @@ public Builder clearSpeechConfig() {
*
*/
public com.google.cloud.aiplatform.v1.SpeechConfig.Builder getSpeechConfigBuilder() {
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00040000;
onChanged();
return internalGetSpeechConfigFieldBuilder().getBuilder();
}
@@ -7860,7 +9635,7 @@ public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBui
* @return Whether the thinkingConfig field is set.
*/
public boolean hasThinkingConfig() {
- return ((bitField0_ & 0x00010000) != 0);
+ return ((bitField0_ & 0x00080000) != 0);
}
/**
@@ -7911,7 +9686,7 @@ public Builder setThinkingConfig(
} else {
thinkingConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -7936,7 +9711,7 @@ public Builder setThinkingConfig(
} else {
thinkingConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
onChanged();
return this;
}
@@ -7957,7 +9732,7 @@ public Builder setThinkingConfig(
public Builder mergeThinkingConfig(
com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig value) {
if (thinkingConfigBuilder_ == null) {
- if (((bitField0_ & 0x00010000) != 0)
+ if (((bitField0_ & 0x00080000) != 0)
&& thinkingConfig_ != null
&& thinkingConfig_
!= com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
@@ -7970,7 +9745,7 @@ public Builder mergeThinkingConfig(
thinkingConfigBuilder_.mergeFrom(value);
}
if (thinkingConfig_ != null) {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
onChanged();
}
return this;
@@ -7990,7 +9765,7 @@ public Builder mergeThinkingConfig(
*
*/
public Builder clearThinkingConfig() {
- bitField0_ = (bitField0_ & ~0x00010000);
+ bitField0_ = (bitField0_ & ~0x00080000);
thinkingConfig_ = null;
if (thinkingConfigBuilder_ != null) {
thinkingConfigBuilder_.dispose();
@@ -8015,7 +9790,7 @@ public Builder clearThinkingConfig() {
*/
public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder
getThinkingConfigBuilder() {
- bitField0_ |= 0x00010000;
+ bitField0_ |= 0x00080000;
onChanged();
return internalGetThinkingConfigFieldBuilder().getBuilder();
}
@@ -8095,7 +9870,7 @@ public Builder clearThinkingConfig() {
* @return Whether the imageConfig field is set.
*/
public boolean hasImageConfig() {
- return ((bitField0_ & 0x00020000) != 0);
+ return ((bitField0_ & 0x00100000) != 0);
}
/**
@@ -8141,7 +9916,7 @@ public Builder setImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value)
} else {
imageConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -8164,7 +9939,7 @@ public Builder setImageConfig(
} else {
imageConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
onChanged();
return this;
}
@@ -8182,7 +9957,7 @@ public Builder setImageConfig(
*/
public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value) {
if (imageConfigBuilder_ == null) {
- if (((bitField0_ & 0x00020000) != 0)
+ if (((bitField0_ & 0x00100000) != 0)
&& imageConfig_ != null
&& imageConfig_ != com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) {
getImageConfigBuilder().mergeFrom(value);
@@ -8193,7 +9968,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value
imageConfigBuilder_.mergeFrom(value);
}
if (imageConfig_ != null) {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
onChanged();
}
return this;
@@ -8211,7 +9986,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value
*
*/
public Builder clearImageConfig() {
- bitField0_ = (bitField0_ & ~0x00020000);
+ bitField0_ = (bitField0_ & ~0x00100000);
imageConfig_ = null;
if (imageConfigBuilder_ != null) {
imageConfigBuilder_.dispose();
@@ -8233,7 +10008,7 @@ public Builder clearImageConfig() {
*
*/
public com.google.cloud.aiplatform.v1.ImageConfig.Builder getImageConfigBuilder() {
- bitField0_ |= 0x00020000;
+ bitField0_ |= 0x00100000;
onChanged();
return internalGetImageConfigFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java
index 5b087c47d539..ec50bdb56777 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java
@@ -631,6 +631,189 @@ public interface GenerationConfigOrBuilder
com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder
getRoutingConfigOrBuilder();
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the audioTimestamp field is set.
+ */
+ boolean hasAudioTimestamp();
+
+ /**
+ *
+ *
+ *
+ * Optional. If enabled, audio timestamps will be included in the request to
+ * the model. This can be useful for synchronizing audio with other modalities
+ * in the response.
+ *
+ *
+ * optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The audioTimestamp.
+ */
+ boolean getAudioTimestamp();
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the responseModalities.
+ */
+ java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of responseModalities.
+ */
+ int getResponseModalitiesCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The responseModalities at the given index.
+ */
+ com.google.cloud.aiplatform.v1.GenerationConfig.Modality getResponseModalities(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the enum numeric values on the wire for responseModalities.
+ */
+ java.util.List
+ * Optional. The modalities of the response. The model will generate a
+ * response that includes all the specified modalities. For example, if this
+ * is set to `[TEXT, IMAGE]`, the response will include both text and an
+ * image.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of responseModalities at the given index.
+ */
+ int getResponseModalitiesValue(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ boolean hasMediaResolution();
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for mediaResolution.
+ */
+ int getMediaResolutionValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. The token resolution at which input media content is sampled.
+ * This is used to control the trade-off between the quality of the response
+ * and the number of tokens used to represent the media. A higher resolution
+ * allows the model to perceive more detail, which can lead to a more nuanced
+ * response, but it will also use more tokens. This does not affect the
+ * image dimensions sent to the model.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The mediaResolution.
+ */
+ com.google.cloud.aiplatform.v1.GenerationConfig.MediaResolution getMediaResolution();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java
index 205ddbd34919..8cfe877ca570 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetRequest.java
@@ -26,7 +26,6 @@
*
* Request message for
* [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
- * Next ID: 4
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetRequest}
@@ -359,7 +358,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
* Request message for
* [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
- * Next ID: 4
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetRequest}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java
index 31108ef249cb..da7902cf625d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java
@@ -26,7 +26,6 @@
*
* Request message for
* [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
- * Next ID: 4
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest}
@@ -364,7 +363,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
*
* Request message for
* [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
- * Next ID: 4
*
*
* Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java
index cd8d28aee20c..91b2c2c7b2fb 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfig.java
@@ -53,6 +53,8 @@ private ImageConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
private ImageConfig() {
aspectRatio_ = "";
+ personGeneration_ = 0;
+ imageSize_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -70,7 +72,1102 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.ImageConfig.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * Enum for controlling the generation of people in images.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.ImageConfig.PersonGeneration}
+ */
+ public enum PersonGeneration implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * The default behavior is unspecified. The model will decide whether to
+ * generate images of people.
+ *
+ *
+ * PERSON_GENERATION_UNSPECIFIED = 0;
+ */
+ PERSON_GENERATION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Allows the model to generate images of people, including adults and
+ * children.
+ *
+ *
+ * ALLOW_ALL = 1;
+ */
+ ALLOW_ALL(1),
+ /**
+ *
+ *
+ *
+ * Allows the model to generate images of adults, but not children.
+ *
+ *
+ * ALLOW_ADULT = 2;
+ */
+ ALLOW_ADULT(2),
+ /**
+ *
+ *
+ *
+ * Prevents the model from generating images of people.
+ *
+ *
+ * ALLOW_NONE = 3;
+ */
+ ALLOW_NONE(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "PersonGeneration");
+ }
+
+ /**
+ *
+ *
+ *
+ * The default behavior is unspecified. The model will decide whether to
+ * generate images of people.
+ *
+ *
+ * PERSON_GENERATION_UNSPECIFIED = 0;
+ */
+ public static final int PERSON_GENERATION_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Allows the model to generate images of people, including adults and
+ * children.
+ *
+ *
+ * ALLOW_ALL = 1;
+ */
+ public static final int ALLOW_ALL_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Allows the model to generate images of adults, but not children.
+ *
+ *
+ * ALLOW_ADULT = 2;
+ */
+ public static final int ALLOW_ADULT_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Prevents the model from generating images of people.
+ *
+ *
+ * ALLOW_NONE = 3;
+ */
+ public static final int ALLOW_NONE_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static PersonGeneration valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static PersonGeneration forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PERSON_GENERATION_UNSPECIFIED;
+ case 1:
+ return ALLOW_ALL;
+ case 2:
+ return ALLOW_ADULT;
+ case 3:
+ return ALLOW_NONE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the mimeType field is set.
+ */
+ boolean hasMimeType();
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ java.lang.String getMimeType();
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ com.google.protobuf.ByteString getMimeTypeBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the compressionQuality field is set.
+ */
+ boolean hasCompressionQuality();
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The compressionQuality.
+ */
+ int getCompressionQuality();
+ }
+
+ /**
+ *
+ *
+ *
+ * The image output format for generated images.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions}
+ */
+ public static final class ImageOutputOptions extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions)
+ ImageOutputOptionsOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ImageOutputOptions");
+ }
+
+ // Use ImageOutputOptions.newBuilder() to construct.
+ private ImageOutputOptions(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ImageOutputOptions() {
+ mimeType_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_ImageConfig_ImageOutputOptions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.class,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int MIME_TYPE_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object mimeType_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the mimeType field is set.
+ */
+ @java.lang.Override
+ public boolean hasMimeType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ @java.lang.Override
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mimeType_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COMPRESSION_QUALITY_FIELD_NUMBER = 2;
+ private int compressionQuality_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the compressionQuality field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressionQuality() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The compressionQuality.
+ */
+ @java.lang.Override
+ public int getCompressionQuality() {
+ return compressionQuality_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, mimeType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt32(2, compressionQuality_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mimeType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, compressionQuality_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions other =
+ (com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions) obj;
+
+ if (hasMimeType() != other.hasMimeType()) return false;
+ if (hasMimeType()) {
+ if (!getMimeType().equals(other.getMimeType())) return false;
+ }
+ if (hasCompressionQuality() != other.hasCompressionQuality()) return false;
+ if (hasCompressionQuality()) {
+ if (getCompressionQuality() != other.getCompressionQuality()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMimeType()) {
+ hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMimeType().hashCode();
+ }
+ if (hasCompressionQuality()) {
+ hash = (37 * hash) + COMPRESSION_QUALITY_FIELD_NUMBER;
+ hash = (53 * hash) + getCompressionQuality();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The image output format for generated images.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the mimeType field is set.
+ */
+ public boolean hasMimeType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The mimeType.
+ */
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mimeType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for mimeType.
+ */
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mimeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMimeType() {
+ mimeType_ = getDefaultInstance().getMimeType();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image format that the output should be saved as.
+ *
+ *
+ * optional string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ mimeType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int compressionQuality_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the compressionQuality field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompressionQuality() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The compressionQuality.
+ */
+ @java.lang.Override
+ public int getCompressionQuality() {
+ return compressionQuality_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The compressionQuality to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCompressionQuality(int value) {
+
+ compressionQuality_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The compression quality of the output image.
+ *
+ *
+ * optional int32 compression_quality = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCompressionQuality() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ compressionQuality_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions)
+ private static final com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions();
+ }
+
+ public static com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the imageOutputOptions field is set.
+ */
+ @java.lang.Override
+ public boolean hasImageOutputOptions() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The imageOutputOptions.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions() {
+ return imageOutputOptions_ == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()
+ : imageOutputOptions_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder
+ getImageOutputOptionsOrBuilder() {
+ return imageOutputOptions_ == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()
+ : imageOutputOptions_;
+ }
+
public static final int ASPECT_RATIO_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
@@ -97,7 +1194,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasAspectRatio() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
@@ -164,6 +1261,139 @@ public com.google.protobuf.ByteString getAspectRatioBytes() {
}
}
+ public static final int PERSON_GENERATION_FIELD_NUMBER = 3;
+ private int personGeneration_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the personGeneration field is set.
+ */
+ @java.lang.Override
+ public boolean hasPersonGeneration() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for personGeneration.
+ */
+ @java.lang.Override
+ public int getPersonGenerationValue() {
+ return personGeneration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The personGeneration.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration() {
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration result =
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.forNumber(personGeneration_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int IMAGE_SIZE_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object imageSize_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the imageSize field is set.
+ */
+ @java.lang.Override
+ public boolean hasImageSize() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The imageSize.
+ */
+ @java.lang.Override
+ public java.lang.String getImageSize() {
+ java.lang.Object ref = imageSize_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ imageSize_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for imageSize.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getImageSizeBytes() {
+ java.lang.Object ref = imageSize_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ imageSize_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -179,8 +1409,17 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getImageOutputOptions());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, aspectRatio_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeEnum(3, personGeneration_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, imageSize_);
+ }
getUnknownFields().writeTo(output);
}
@@ -191,8 +1430,17 @@ public int getSerializedSize() {
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getImageOutputOptions());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, aspectRatio_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, personGeneration_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, imageSize_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -209,10 +1457,22 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloud.aiplatform.v1.ImageConfig other =
(com.google.cloud.aiplatform.v1.ImageConfig) obj;
+ if (hasImageOutputOptions() != other.hasImageOutputOptions()) return false;
+ if (hasImageOutputOptions()) {
+ if (!getImageOutputOptions().equals(other.getImageOutputOptions())) return false;
+ }
if (hasAspectRatio() != other.hasAspectRatio()) return false;
if (hasAspectRatio()) {
if (!getAspectRatio().equals(other.getAspectRatio())) return false;
}
+ if (hasPersonGeneration() != other.hasPersonGeneration()) return false;
+ if (hasPersonGeneration()) {
+ if (personGeneration_ != other.personGeneration_) return false;
+ }
+ if (hasImageSize() != other.hasImageSize()) return false;
+ if (hasImageSize()) {
+ if (!getImageSize().equals(other.getImageSize())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -224,10 +1484,22 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasImageOutputOptions()) {
+ hash = (37 * hash) + IMAGE_OUTPUT_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getImageOutputOptions().hashCode();
+ }
if (hasAspectRatio()) {
hash = (37 * hash) + ASPECT_RATIO_FIELD_NUMBER;
hash = (53 * hash) + getAspectRatio().hashCode();
}
+ if (hasPersonGeneration()) {
+ hash = (37 * hash) + PERSON_GENERATION_FIELD_NUMBER;
+ hash = (53 * hash) + personGeneration_;
+ }
+ if (hasImageSize()) {
+ hash = (37 * hash) + IMAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getImageSize().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -358,17 +1630,33 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.aiplatform.v1.ImageConfig.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ internalGetImageOutputOptionsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
+ imageOutputOptions_ = null;
+ if (imageOutputOptionsBuilder_ != null) {
+ imageOutputOptionsBuilder_.dispose();
+ imageOutputOptionsBuilder_ = null;
+ }
aspectRatio_ = "";
+ personGeneration_ = 0;
+ imageSize_ = "";
return this;
}
@@ -407,9 +1695,24 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.ImageConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
- result.aspectRatio_ = aspectRatio_;
+ result.imageOutputOptions_ =
+ imageOutputOptionsBuilder_ == null
+ ? imageOutputOptions_
+ : imageOutputOptionsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.aspectRatio_ = aspectRatio_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.personGeneration_ = personGeneration_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.imageSize_ = imageSize_;
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -421,65 +1724,314 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
super.mergeFrom(other);
return this;
}
- }
-
- public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImageConfig other) {
- if (other == com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) return this;
- if (other.hasAspectRatio()) {
- aspectRatio_ = other.aspectRatio_;
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImageConfig other) {
+ if (other == com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) return this;
+ if (other.hasImageOutputOptions()) {
+ mergeImageOutputOptions(other.getImageOutputOptions());
+ }
+ if (other.hasAspectRatio()) {
+ aspectRatio_ = other.aspectRatio_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.hasPersonGeneration()) {
+ setPersonGenerationValue(other.getPersonGenerationValue());
+ }
+ if (other.hasImageSize()) {
+ imageSize_ = other.imageSize_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ input.readMessage(
+ internalGetImageOutputOptionsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ aspectRatio_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 24:
+ {
+ personGeneration_ = input.readEnum();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 34:
+ {
+ imageSize_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions imageOutputOptions_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder>
+ imageOutputOptionsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the imageOutputOptions field is set.
+ */
+ public boolean hasImageOutputOptions() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The imageOutputOptions.
+ */
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions() {
+ if (imageOutputOptionsBuilder_ == null) {
+ return imageOutputOptions_ == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()
+ : imageOutputOptions_;
+ } else {
+ return imageOutputOptionsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImageOutputOptions(
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions value) {
+ if (imageOutputOptionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ imageOutputOptions_ = value;
+ } else {
+ imageOutputOptionsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setImageOutputOptions(
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder builderForValue) {
+ if (imageOutputOptionsBuilder_ == null) {
+ imageOutputOptions_ = builderForValue.build();
+ } else {
+ imageOutputOptionsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeImageOutputOptions(
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions value) {
+ if (imageOutputOptionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && imageOutputOptions_ != null
+ && imageOutputOptions_
+ != com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions
+ .getDefaultInstance()) {
+ getImageOutputOptionsBuilder().mergeFrom(value);
+ } else {
+ imageOutputOptions_ = value;
+ }
+ } else {
+ imageOutputOptionsBuilder_.mergeFrom(value);
+ }
+ if (imageOutputOptions_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearImageOutputOptions() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ imageOutputOptions_ = null;
+ if (imageOutputOptionsBuilder_ != null) {
+ imageOutputOptionsBuilder_.dispose();
+ imageOutputOptionsBuilder_ = null;
+ }
onChanged();
return this;
}
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder
+ getImageOutputOptionsBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetImageOutputOptionsFieldBuilder().getBuilder();
}
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder
+ getImageOutputOptionsOrBuilder() {
+ if (imageOutputOptionsBuilder_ != null) {
+ return imageOutputOptionsBuilder_.getMessageOrBuilder();
+ } else {
+ return imageOutputOptions_ == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.getDefaultInstance()
+ : imageOutputOptions_;
}
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 18:
- {
- aspectRatio_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000001;
- break;
- } // case 18
- default:
- {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
}
- private int bitField0_;
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder>
+ internalGetImageOutputOptionsFieldBuilder() {
+ if (imageOutputOptionsBuilder_ == null) {
+ imageOutputOptionsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions.Builder,
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder>(
+ getImageOutputOptions(), getParentForChildren(), isClean());
+ imageOutputOptions_ = null;
+ }
+ return imageOutputOptionsBuilder_;
+ }
private java.lang.Object aspectRatio_ = "";
@@ -503,7 +2055,7 @@ public Builder mergeFrom(
* @return Whether the aspectRatio field is set.
*/
public boolean hasAspectRatio() {
- return ((bitField0_ & 0x00000001) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
@@ -593,7 +2145,7 @@ public Builder setAspectRatio(java.lang.String value) {
throw new NullPointerException();
}
aspectRatio_ = value;
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -619,7 +2171,7 @@ public Builder setAspectRatio(java.lang.String value) {
*/
public Builder clearAspectRatio() {
aspectRatio_ = getDefaultInstance().getAspectRatio();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -650,7 +2202,265 @@ public Builder setAspectRatioBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
aspectRatio_ = value;
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private int personGeneration_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the personGeneration field is set.
+ */
+ @java.lang.Override
+ public boolean hasPersonGeneration() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for personGeneration.
+ */
+ @java.lang.Override
+ public int getPersonGenerationValue() {
+ return personGeneration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for personGeneration to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPersonGenerationValue(int value) {
+ personGeneration_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The personGeneration.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration() {
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration result =
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.forNumber(personGeneration_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The personGeneration to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPersonGeneration(
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ personGeneration_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPersonGeneration() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ personGeneration_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object imageSize_ = "";
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the imageSize field is set.
+ */
+ public boolean hasImageSize() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The imageSize.
+ */
+ public java.lang.String getImageSize() {
+ java.lang.Object ref = imageSize_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ imageSize_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for imageSize.
+ */
+ public com.google.protobuf.ByteString getImageSizeBytes() {
+ java.lang.Object ref = imageSize_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ imageSize_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The imageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImageSize(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ imageSize_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearImageSize() {
+ imageSize_ = getDefaultInstance().getImageSize();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for imageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImageSizeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ imageSize_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java
index eb4736457b23..6e1689404161 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImageConfigOrBuilder.java
@@ -26,6 +26,50 @@ public interface ImageConfigOrBuilder
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ImageConfig)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the imageOutputOptions field is set.
+ */
+ boolean hasImageOutputOptions();
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The imageOutputOptions.
+ */
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions getImageOutputOptions();
+
+ /**
+ *
+ *
+ *
+ * Optional. The image output format for generated images.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptions image_output_options = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.ImageConfig.ImageOutputOptionsOrBuilder
+ getImageOutputOptionsOrBuilder();
+
/**
*
*
@@ -88,4 +132,91 @@ public interface ImageConfigOrBuilder
* @return The bytes for aspectRatio.
*/
com.google.protobuf.ByteString getAspectRatioBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the personGeneration field is set.
+ */
+ boolean hasPersonGeneration();
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for personGeneration.
+ */
+ int getPersonGenerationValue();
+
+ /**
+ *
+ *
+ *
+ * Optional. Controls whether the model can generate people.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.ImageConfig.PersonGeneration person_generation = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The personGeneration.
+ */
+ com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration getPersonGeneration();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return Whether the imageSize field is set.
+ */
+ boolean hasImageSize();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The imageSize.
+ */
+ java.lang.String getImageSize();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the size of generated images. Supported values are
+ * `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ *
+ *
+ * optional string image_size = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for imageSize.
+ */
+ com.google.protobuf.ByteString getImageSizeBytes();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java
index 006606faeffb..013ab12cac35 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java
@@ -76,6 +76,948 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.Part.Builder.class);
}
+ public interface MediaResolutionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Part.MediaResolution)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return Whether the level field is set.
+ */
+ boolean hasLevel();
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The enum numeric value on the wire for level.
+ */
+ int getLevelValue();
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The level.
+ */
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel();
+
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.ValueCase getValueCase();
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Part.MediaResolution}
+ */
+ public static final class MediaResolution extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Part.MediaResolution)
+ MediaResolutionOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "MediaResolution");
+ }
+
+ // Use MediaResolution.newBuilder() to construct.
+ private MediaResolution(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private MediaResolution() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_Part_MediaResolution_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.class,
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * The media resolution level.
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1.Part.MediaResolution.Level}
+ */
+ public enum Level implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Media resolution has not been set.
+ *
+ *
+ * MEDIA_RESOLUTION_UNSPECIFIED = 0;
+ */
+ MEDIA_RESOLUTION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Media resolution set to low.
+ *
+ *
+ * MEDIA_RESOLUTION_LOW = 1;
+ */
+ MEDIA_RESOLUTION_LOW(1),
+ /**
+ *
+ *
+ *
+ * Media resolution set to medium.
+ *
+ *
+ * MEDIA_RESOLUTION_MEDIUM = 2;
+ */
+ MEDIA_RESOLUTION_MEDIUM(2),
+ /**
+ *
+ *
+ *
+ * Media resolution set to high.
+ *
+ *
+ * MEDIA_RESOLUTION_HIGH = 3;
+ */
+ MEDIA_RESOLUTION_HIGH(3),
+ /**
+ *
+ *
+ *
+ * Media resolution set to ultra high. This is for image only.
+ *
+ *
+ * MEDIA_RESOLUTION_ULTRA_HIGH = 4;
+ */
+ MEDIA_RESOLUTION_ULTRA_HIGH(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "Level");
+ }
+
+ /**
+ *
+ *
+ *
+ * Media resolution has not been set.
+ *
+ *
+ * MEDIA_RESOLUTION_UNSPECIFIED = 0;
+ */
+ public static final int MEDIA_RESOLUTION_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to low.
+ *
+ *
+ * MEDIA_RESOLUTION_LOW = 1;
+ */
+ public static final int MEDIA_RESOLUTION_LOW_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to medium.
+ *
+ *
+ * MEDIA_RESOLUTION_MEDIUM = 2;
+ */
+ public static final int MEDIA_RESOLUTION_MEDIUM_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to high.
+ *
+ *
+ * MEDIA_RESOLUTION_HIGH = 3;
+ */
+ public static final int MEDIA_RESOLUTION_HIGH_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * Media resolution set to ultra high. This is for image only.
+ *
+ *
+ * MEDIA_RESOLUTION_ULTRA_HIGH = 4;
+ */
+ public static final int MEDIA_RESOLUTION_ULTRA_HIGH_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Level valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Level forNumber(int value) {
+ switch (value) {
+ case 0:
+ return MEDIA_RESOLUTION_UNSPECIFIED;
+ case 1:
+ return MEDIA_RESOLUTION_LOW;
+ case 2:
+ return MEDIA_RESOLUTION_MEDIUM;
+ case 3:
+ return MEDIA_RESOLUTION_HIGH;
+ case 4:
+ return MEDIA_RESOLUTION_ULTRA_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return Whether the level field is set.
+ */
+ public boolean hasLevel() {
+ return valueCase_ == 1;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The enum numeric value on the wire for level.
+ */
+ public int getLevelValue() {
+ if (valueCase_ == 1) {
+ return (java.lang.Integer) value_;
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The level.
+ */
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel() {
+ if (valueCase_ == 1) {
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level result =
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.forNumber(
+ (java.lang.Integer) value_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.UNRECOGNIZED
+ : result;
+ }
+ return com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.MEDIA_RESOLUTION_UNSPECIFIED;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (valueCase_ == 1) {
+ output.writeEnum(1, ((java.lang.Integer) value_));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (valueCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) value_));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.aiplatform.v1.Part.MediaResolution)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.Part.MediaResolution other =
+ (com.google.cloud.aiplatform.v1.Part.MediaResolution) obj;
+
+ if (!getValueCase().equals(other.getValueCase())) return false;
+ switch (valueCase_) {
+ case 1:
+ if (getLevelValue() != other.getLevelValue()) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (valueCase_) {
+ case 1:
+ hash = (37 * hash) + LEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + getLevelValue();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.aiplatform.v1.Part.MediaResolution prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.Part.MediaResolution}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return Whether the level field is set.
+ */
+ @java.lang.Override
+ public boolean hasLevel() {
+ return valueCase_ == 1;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The enum numeric value on the wire for level.
+ */
+ @java.lang.Override
+ public int getLevelValue() {
+ if (valueCase_ == 1) {
+ return ((java.lang.Integer) value_).intValue();
+ }
+ return 0;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @param value The enum numeric value on the wire for level to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLevelValue(int value) {
+ valueCase_ = 1;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return The level.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution.Level getLevel() {
+ if (valueCase_ == 1) {
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level result =
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.forNumber(
+ (java.lang.Integer) value_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.Level.UNRECOGNIZED
+ : result;
+ }
+ return com.google.cloud.aiplatform.v1.Part.MediaResolution.Level
+ .MEDIA_RESOLUTION_UNSPECIFIED;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @param value The level to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLevel(com.google.cloud.aiplatform.v1.Part.MediaResolution.Level value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueCase_ = 1;
+ value_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The tokenization quality used for given media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution.Level level = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLevel() {
+ if (valueCase_ == 1) {
+ valueCase_ = 0;
+ value_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Part.MediaResolution)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Part.MediaResolution)
+ private static final com.google.cloud.aiplatform.v1.Part.MediaResolution DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Part.MediaResolution();
+ }
+
+ public static com.google.cloud.aiplatform.v1.Part.MediaResolution getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ @java.lang.Override
+ public boolean hasMediaResolution() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return The mediaResolution.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution() {
+ return mediaResolution_ == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()
+ : mediaResolution_;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder
+ getMediaResolutionOrBuilder() {
+ return mediaResolution_ == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()
+ : mediaResolution_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -783,6 +1782,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!thoughtSignature_.isEmpty()) {
output.writeBytes(11, thoughtSignature_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(12, getMediaResolution());
+ }
getUnknownFields().writeTo(output);
}
@@ -836,6 +1838,9 @@ public int getSerializedSize() {
if (!thoughtSignature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, thoughtSignature_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMediaResolution());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -853,6 +1858,10 @@ public boolean equals(final java.lang.Object obj) {
if (getThought() != other.getThought()) return false;
if (!getThoughtSignature().equals(other.getThoughtSignature())) return false;
+ if (hasMediaResolution() != other.hasMediaResolution()) return false;
+ if (hasMediaResolution()) {
+ if (!getMediaResolution().equals(other.getMediaResolution())) return false;
+ }
if (!getDataCase().equals(other.getDataCase())) return false;
switch (dataCase_) {
case 1:
@@ -902,6 +1911,10 @@ public int hashCode() {
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThought());
hash = (37 * hash) + THOUGHT_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getThoughtSignature().hashCode();
+ if (hasMediaResolution()) {
+ hash = (37 * hash) + MEDIA_RESOLUTION_FIELD_NUMBER;
+ hash = (53 * hash) + getMediaResolution().hashCode();
+ }
switch (dataCase_) {
case 1:
hash = (37 * hash) + TEXT_FIELD_NUMBER;
@@ -1077,10 +2090,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.aiplatform.v1.Part.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ internalGetMediaResolutionFieldBuilder();
+ }
}
@java.lang.Override
@@ -1110,6 +2132,11 @@ public Builder clear() {
if (videoMetadataBuilder_ != null) {
videoMetadataBuilder_.clear();
}
+ mediaResolution_ = null;
+ if (mediaResolutionBuilder_ != null) {
+ mediaResolutionBuilder_.dispose();
+ mediaResolutionBuilder_ = null;
+ }
dataCase_ = 0;
data_ = null;
metadataCase_ = 0;
@@ -1156,6 +2183,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Part result) {
if (((from_bitField0_ & 0x00000100) != 0)) {
result.thoughtSignature_ = thoughtSignature_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.mediaResolution_ =
+ mediaResolutionBuilder_ == null ? mediaResolution_ : mediaResolutionBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Part result) {
@@ -1204,6 +2238,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Part other) {
if (!other.getThoughtSignature().isEmpty()) {
setThoughtSignature(other.getThoughtSignature());
}
+ if (other.hasMediaResolution()) {
+ mergeMediaResolution(other.getMediaResolution());
+ }
switch (other.getDataCase()) {
case TEXT:
{
@@ -1352,6 +2389,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000100;
break;
} // case 90
+ case 98:
+ {
+ input.readMessage(
+ internalGetMediaResolutionFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 98
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3358,6 +4402,212 @@ public com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrB
return videoMetadataBuilder_;
}
+ private com.google.cloud.aiplatform.v1.Part.MediaResolution mediaResolution_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.Part.MediaResolution,
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder,
+ com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder>
+ mediaResolutionBuilder_;
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ public boolean hasMediaResolution() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return The mediaResolution.
+ */
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution() {
+ if (mediaResolutionBuilder_ == null) {
+ return mediaResolution_ == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()
+ : mediaResolution_;
+ } else {
+ return mediaResolutionBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public Builder setMediaResolution(com.google.cloud.aiplatform.v1.Part.MediaResolution value) {
+ if (mediaResolutionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mediaResolution_ = value;
+ } else {
+ mediaResolutionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public Builder setMediaResolution(
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder builderForValue) {
+ if (mediaResolutionBuilder_ == null) {
+ mediaResolution_ = builderForValue.build();
+ } else {
+ mediaResolutionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public Builder mergeMediaResolution(com.google.cloud.aiplatform.v1.Part.MediaResolution value) {
+ if (mediaResolutionBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0)
+ && mediaResolution_ != null
+ && mediaResolution_
+ != com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()) {
+ getMediaResolutionBuilder().mergeFrom(value);
+ } else {
+ mediaResolution_ = value;
+ }
+ } else {
+ mediaResolutionBuilder_.mergeFrom(value);
+ }
+ if (mediaResolution_ != null) {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public Builder clearMediaResolution() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ mediaResolution_ = null;
+ if (mediaResolutionBuilder_ != null) {
+ mediaResolutionBuilder_.dispose();
+ mediaResolutionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder getMediaResolutionBuilder() {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return internalGetMediaResolutionFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ public com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder
+ getMediaResolutionOrBuilder() {
+ if (mediaResolutionBuilder_ != null) {
+ return mediaResolutionBuilder_.getMessageOrBuilder();
+ } else {
+ return mediaResolution_ == null
+ ? com.google.cloud.aiplatform.v1.Part.MediaResolution.getDefaultInstance()
+ : mediaResolution_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.Part.MediaResolution,
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder,
+ com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder>
+ internalGetMediaResolutionFieldBuilder() {
+ if (mediaResolutionBuilder_ == null) {
+ mediaResolutionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.aiplatform.v1.Part.MediaResolution,
+ com.google.cloud.aiplatform.v1.Part.MediaResolution.Builder,
+ com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder>(
+ getMediaResolution(), getParentForChildren(), isClean());
+ mediaResolution_ = null;
+ }
+ return mediaResolutionBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Part)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java
index b28fd4b633c0..39cf77b7d299 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java
@@ -411,6 +411,46 @@ public interface PartOrBuilder
*/
com.google.cloud.aiplatform.v1.VideoMetadataOrBuilder getVideoMetadataOrBuilder();
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return Whether the mediaResolution field is set.
+ */
+ boolean hasMediaResolution();
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ *
+ * @return The mediaResolution.
+ */
+ com.google.cloud.aiplatform.v1.Part.MediaResolution getMediaResolution();
+
+ /**
+ *
+ *
+ *
+ * per part media resolution.
+ * Media resolution for the input media.
+ *
+ *
+ * .google.cloud.aiplatform.v1.Part.MediaResolution media_resolution = 12;
+ */
+ com.google.cloud.aiplatform.v1.Part.MediaResolutionOrBuilder getMediaResolutionOrBuilder();
+
com.google.cloud.aiplatform.v1.Part.DataCase getDataCase();
com.google.cloud.aiplatform.v1.Part.MetadataCase getMetadataCase();
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java
index f81c6b40d389..8322f52ea1bf 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java
@@ -1217,7 +1217,7 @@ public com.google.protobuf.ByteString getDatasetBytes() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The savedQuery.
*/
@java.lang.Override
@@ -1248,7 +1248,7 @@ public java.lang.String getSavedQuery() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The bytes for savedQuery.
*/
@java.lang.Override
@@ -1418,7 +1418,7 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated.
- * See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The annotationsFilter.
*/
@java.lang.Override
@@ -1447,7 +1447,7 @@ public java.lang.String getAnnotationsFilter() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated.
- * See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The bytes for annotationsFilter.
*/
@java.lang.Override
@@ -1657,7 +1657,7 @@ public int getPageSize() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The orderBy.
*/
@java.lang.Override
@@ -1685,7 +1685,7 @@ public java.lang.String getOrderBy() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The bytes for orderBy.
*/
@java.lang.Override
@@ -2987,7 +2987,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The savedQuery.
*/
@java.lang.Deprecated
@@ -3017,7 +3017,7 @@ public java.lang.String getSavedQuery() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The bytes for savedQuery.
*/
@java.lang.Deprecated
@@ -3047,7 +3047,7 @@ public com.google.protobuf.ByteString getSavedQueryBytes() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @param value The savedQuery to set.
* @return This builder for chaining.
*/
@@ -3076,7 +3076,7 @@ public Builder setSavedQuery(java.lang.String value) {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -3101,7 +3101,7 @@ public Builder clearSavedQuery() {
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @param value The bytes for savedQuery to set.
* @return This builder for chaining.
*/
@@ -3428,7 +3428,7 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The annotationsFilter.
*/
@java.lang.Deprecated
@@ -3456,7 +3456,7 @@ public java.lang.String getAnnotationsFilter() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The bytes for annotationsFilter.
*/
@java.lang.Deprecated
@@ -3484,7 +3484,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @param value The annotationsFilter to set.
* @return This builder for chaining.
*/
@@ -3511,7 +3511,7 @@ public Builder setAnnotationsFilter(java.lang.String value) {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -3534,7 +3534,7 @@ public Builder clearAnnotationsFilter() {
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is
- * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @param value The bytes for annotationsFilter to set.
* @return This builder for chaining.
*/
@@ -4102,7 +4102,7 @@ public Builder clearPageSize() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The orderBy.
*/
@java.lang.Deprecated
@@ -4129,7 +4129,7 @@ public java.lang.String getOrderBy() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The bytes for orderBy.
*/
@java.lang.Deprecated
@@ -4156,7 +4156,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @param value The orderBy to set.
* @return This builder for chaining.
*/
@@ -4182,7 +4182,7 @@ public Builder setOrderBy(java.lang.String value) {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -4204,7 +4204,7 @@ public Builder clearOrderBy() {
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @param value The bytes for orderBy to set.
* @return This builder for chaining.
*/
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java
index 7fb8a7181d8f..e1ed9c9d4655 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java
@@ -160,7 +160,7 @@ public interface SearchDataItemsRequestOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The savedQuery.
*/
@java.lang.Deprecated
@@ -180,7 +180,7 @@ public interface SearchDataItemsRequestOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=686
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=682
* @return The bytes for savedQuery.
*/
@java.lang.Deprecated
@@ -280,7 +280,7 @@ public interface SearchDataItemsRequestOrBuilder
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated.
- * See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The annotationsFilter.
*/
@java.lang.Deprecated
@@ -298,7 +298,7 @@ public interface SearchDataItemsRequestOrBuilder
* string annotations_filter = 5 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated.
- * See google/cloud/aiplatform/v1/dataset_service.proto;l=717
+ * See google/cloud/aiplatform/v1/dataset_service.proto;l=713
* @return The bytes for annotationsFilter.
*/
@java.lang.Deprecated
@@ -454,7 +454,7 @@ public interface SearchDataItemsRequestOrBuilder
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The orderBy.
*/
@java.lang.Deprecated
@@ -471,7 +471,7 @@ public interface SearchDataItemsRequestOrBuilder
* string order_by = 9 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See
- * google/cloud/aiplatform/v1/dataset_service.proto;l=741
+ * google/cloud/aiplatform/v1/dataset_service.proto;l=737
* @return The bytes for orderBy.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java
index cdff9015a01f..f4e8524da860 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadata.java
@@ -173,6 +173,26 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
}
+ public static final int FPS_FIELD_NUMBER = 3;
+ private double fps_ = 0D;
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The fps.
+ */
+ @java.lang.Override
+ public double getFps() {
+ return fps_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -193,6 +213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getEndOffset());
}
+ if (java.lang.Double.doubleToRawLongBits(fps_) != 0) {
+ output.writeDouble(3, fps_);
+ }
getUnknownFields().writeTo(output);
}
@@ -208,6 +231,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset());
}
+ if (java.lang.Double.doubleToRawLongBits(fps_) != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, fps_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -232,6 +258,8 @@ public boolean equals(final java.lang.Object obj) {
if (hasEndOffset()) {
if (!getEndOffset().equals(other.getEndOffset())) return false;
}
+ if (java.lang.Double.doubleToLongBits(getFps())
+ != java.lang.Double.doubleToLongBits(other.getFps())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -251,6 +279,10 @@ public int hashCode() {
hash = (37 * hash) + END_OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getEndOffset().hashCode();
}
+ hash = (37 * hash) + FPS_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getFps()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -411,6 +443,7 @@ public Builder clear() {
endOffsetBuilder_.dispose();
endOffsetBuilder_ = null;
}
+ fps_ = 0D;
return this;
}
@@ -457,6 +490,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.VideoMetadata result)
result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.fps_ = fps_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -478,6 +514,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.VideoMetadata other) {
if (other.hasEndOffset()) {
mergeEndOffset(other.getEndOffset());
}
+ if (java.lang.Double.doubleToRawLongBits(other.getFps()) != 0) {
+ setFps(other.getFps());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -518,6 +557,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 25:
+ {
+ fps_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -939,6 +984,65 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
return endOffsetBuilder_;
}
+ private double fps_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The fps.
+ */
+ @java.lang.Override
+ public double getFps() {
+ return fps_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The fps to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFps(double value) {
+
+ fps_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFps() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ fps_ = 0D;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.VideoMetadata)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java
index f17652609962..8945b1f74515 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VideoMetadataOrBuilder.java
@@ -105,4 +105,18 @@ public interface VideoMetadataOrBuilder
*
*/
com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. The frame rate of the video sent to the model. If not specified,
+ * the default value is 1.0. The valid range is (0.0, 24.0].
+ *
+ *
+ * double fps = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The fps.
+ */
+ double getFps();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
index 55041862d78c..fc656beea9b4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -108,6 +108,33 @@ message Content {
// A `Part` must have a fixed IANA MIME type identifying the type and subtype
// of the media if `inline_data` or `file_data` field is filled with raw bytes.
message Part {
+ // per part media resolution.
+ // Media resolution for the input media.
+ message MediaResolution {
+ // The media resolution level.
+ enum Level {
+ // Media resolution has not been set.
+ MEDIA_RESOLUTION_UNSPECIFIED = 0;
+
+ // Media resolution set to low.
+ MEDIA_RESOLUTION_LOW = 1;
+
+ // Media resolution set to medium.
+ MEDIA_RESOLUTION_MEDIUM = 2;
+
+ // Media resolution set to high.
+ MEDIA_RESOLUTION_HIGH = 3;
+
+ // Media resolution set to ultra high. This is for image only.
+ MEDIA_RESOLUTION_ULTRA_HIGH = 4;
+ }
+
+ oneof value {
+ // The tokenization quality used for given media.
+ Level level = 1;
+ }
+ }
+
oneof data {
// Optional. Text part (can be code).
string text = 1 [(google.api.field_behavior) = OPTIONAL];
@@ -150,6 +177,10 @@ message Part {
// video data is presented in inline_data or file_data.
VideoMetadata video_metadata = 4 [(google.api.field_behavior) = OPTIONAL];
}
+
+ // per part media resolution.
+ // Media resolution for the input media.
+ MediaResolution media_resolution = 12;
}
// Content blob.
@@ -182,6 +213,10 @@ message VideoMetadata {
// Optional. The end offset of the video.
google.protobuf.Duration end_offset = 2
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The frame rate of the video sent to the model. If not specified,
+ // the default value is 1.0. The valid range is (0.0, 24.0].
+ double fps = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Configuration for a prebuilt voice.
@@ -202,7 +237,6 @@ message ReplicatedVoiceConfig {
bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL];
}
-
// Configuration for a voice.
message VoiceConfig {
// The configuration for the speaker to use.
@@ -250,6 +284,37 @@ message SpeechConfig {
// Config for image generation features.
message ImageConfig {
+ // The image output format for generated images.
+ message ImageOutputOptions {
+ // Optional. The image format that the output should be saved as.
+ optional string mime_type = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The compression quality of the output image.
+ optional int32 compression_quality = 2
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Enum for controlling the generation of people in images.
+ enum PersonGeneration {
+ // The default behavior is unspecified. The model will decide whether to
+ // generate images of people.
+ PERSON_GENERATION_UNSPECIFIED = 0;
+
+ // Allows the model to generate images of people, including adults and
+ // children.
+ ALLOW_ALL = 1;
+
+ // Allows the model to generate images of adults, but not children.
+ ALLOW_ADULT = 2;
+
+ // Prevents the model from generating images of people.
+ ALLOW_NONE = 3;
+ }
+
+ // Optional. The image output format for generated images.
+ optional ImageOutputOptions image_output_options = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
// Optional. The desired aspect ratio for the generated images. The following
// aspect ratios are supported:
//
@@ -260,6 +325,14 @@ message ImageConfig {
// "9:16", "16:9"
// "21:9"
optional string aspect_ratio = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Controls whether the model can generate people.
+ optional PersonGeneration person_generation = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Specifies the size of generated images. Supported values are
+ // `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
+ optional string image_size = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Generation config.
@@ -308,6 +381,24 @@ message GenerationConfig {
// Config for thinking features.
message ThinkingConfig {
+ // The thinking level for the model.
+ enum ThinkingLevel {
+ // Unspecified thinking level.
+ THINKING_LEVEL_UNSPECIFIED = 0;
+
+ // Low thinking level.
+ LOW = 1;
+
+ // Medium thinking level.
+ MEDIUM = 2;
+
+ // High thinking level.
+ HIGH = 3;
+
+ // MINIMAL thinking level.
+ MINIMAL = 4;
+ }
+
// Indicates whether to include thoughts in the response.
// If true, thoughts are returned only when available.
optional bool include_thoughts = 1 [(google.api.field_behavior) = OPTIONAL];
@@ -315,6 +406,40 @@ message GenerationConfig {
// Optional. Indicates the thinking budget in tokens.
// This is only applied when enable_thinking is true.
optional int32 thinking_budget = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The number of thoughts tokens that the model should generate.
+ optional ThinkingLevel thinking_level = 4
+ [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The modalities of the response.
+ enum Modality {
+ // Unspecified modality. Will be processed as text.
+ MODALITY_UNSPECIFIED = 0;
+
+ // Text modality.
+ TEXT = 1;
+
+ // Image modality.
+ IMAGE = 2;
+
+ // Audio modality.
+ AUDIO = 3;
+ }
+
+ // Media resolution for the input media.
+ enum MediaResolution {
+ // Media resolution has not been set.
+ MEDIA_RESOLUTION_UNSPECIFIED = 0;
+
+ // Media resolution set to low (64 tokens).
+ MEDIA_RESOLUTION_LOW = 1;
+
+ // Media resolution set to medium (256 tokens).
+ MEDIA_RESOLUTION_MEDIUM = 2;
+
+ // Media resolution set to high (zoomed reframing with 256 tokens).
+ MEDIA_RESOLUTION_HIGH = 3;
}
// Optional. Controls the randomness of predictions.
@@ -411,6 +536,27 @@ message GenerationConfig {
optional RoutingConfig routing_config = 17
[(google.api.field_behavior) = OPTIONAL];
+ // Optional. If enabled, audio timestamps will be included in the request to
+ // the model. This can be useful for synchronizing audio with other modalities
+ // in the response.
+ optional bool audio_timestamp = 20 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The modalities of the response. The model will generate a
+ // response that includes all the specified modalities. For example, if this
+ // is set to `[TEXT, IMAGE]`, the response will include both text and an
+ // image.
+ repeated Modality response_modalities = 21
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The token resolution at which input media content is sampled.
+ // This is used to control the trade-off between the quality of the response
+ // and the number of tokens used to represent the media. A higher resolution
+ // allows the model to perceive more detail, which can lead to a more nuanced
+ // response, but it will also use more tokens. This does not affect the
+ // image dimensions sent to the model.
+ optional MediaResolution media_resolution = 22
+ [(google.api.field_behavior) = OPTIONAL];
+
// Optional. The speech generation config.
optional SpeechConfig speech_config = 23
[(google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto
index 9a6b7f607f72..a515e4b64185 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -40,9 +40,14 @@ message Dataset {
};
// Output only. Identifier. The resource name of the Dataset.
+ // Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}`
string name = 1 [
(google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IDENTIFIER
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Dataset"
+ }
];
// Required. The user-defined name of the Dataset.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto
index e234e3ba6ff6..6fa941371b14 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -259,9 +259,7 @@ service DatasetService {
option (google.api.method_signature) = "name";
}
- // Lists Annotations belongs to a dataitem
- // This RPC is only available in InternalDatasetService. It is only used for
- // exporting conversation data to CCAI Insights.
+ // Lists Annotations belongs to a dataitem.
rpc ListAnnotations(ListAnnotationsRequest)
returns (ListAnnotationsResponse) {
option (google.api.http) = {
@@ -296,7 +294,6 @@ message CreateDatasetOperationMetadata {
// Request message for
// [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset].
-// Next ID: 4
message GetDatasetRequest {
// Required. The name of the Dataset resource.
string name = 1 [
@@ -528,7 +525,6 @@ message DeleteDatasetVersionRequest {
// Request message for
// [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
-// Next ID: 4
message GetDatasetVersionRequest {
// Required. The resource name of the Dataset version to delete.
// Format:
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto
index 0998c614fa5f..226c2f2afc79 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -37,9 +37,14 @@ message DatasetVersion {
};
// Output only. Identifier. The resource name of the DatasetVersion.
+ // Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
string name = 1 [
(google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IDENTIFIER
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/DatasetVersion"
+ }
];
// Output only. Timestamp when this DatasetVersion was created.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java
index cf2e82ea032a..0f31ddbc365f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java
@@ -100,10 +100,12 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -126,10 +128,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1829,10 +1833,12 @@ public Builder mergeFrom(
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -1854,10 +1860,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1879,10 +1887,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The name to set.
@@ -1903,10 +1913,12 @@ public Builder setName(java.lang.String value) {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
@@ -1923,10 +1935,12 @@ public Builder clearName() {
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java
index a2f0eee43956..fa2521cc6928 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java
@@ -31,10 +31,12 @@ public interface DatasetOrBuilder
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -46,10 +48,12 @@ public interface DatasetOrBuilder
*
*
* Output only. Identifier. The resource name of the Dataset.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java
index 3fc18e403284..700bac0d1e7b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java
@@ -82,9 +82,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\032\037google/api/field_behavior.proto\032\031googl"
+ "e/api/resource.proto\0325google/cloud/aiplatform/v1beta1/encryption_spec.proto\032(goo"
+ "gle/cloud/aiplatform/v1beta1/io.proto\0321google/cloud/aiplatform/v1beta1/saved_que"
- + "ry.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\225\006\n"
- + "\007Dataset\022\024\n"
- + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\031\n"
+ + "ry.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\273\006\n"
+ + "\007Dataset\022:\n"
+ + "\004name\030\001 \001(\tB,\340A\003\340A\010\372A#\n"
+ + "!aiplatform.googleapis.com/Dataset\022\031\n"
+ "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n"
+ "\013description\030\020 \001(\t\022 \n"
+ "\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n"
@@ -95,11 +96,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013update_time\030\005"
+ " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n"
+ "\004etag\030\006 \001(\t\022D\n"
- + "\006labels\030\007 \003"
- + "(\01324.google.cloud.aiplatform.v1beta1.Dataset.LabelsEntry\022B\n\r"
+ + "\006labels\030\007 \003(\013"
+ + "24.google.cloud.aiplatform.v1beta1.Dataset.LabelsEntry\022B\n\r"
+ "saved_queries\030\t \003(\0132+.google.cloud.aiplatform.v1beta1.SavedQuery\022H\n"
- + "\017encryption_spec\030\013 \001(\0132/.google.c"
- + "loud.aiplatform.v1beta1.EncryptionSpec\022\036\n"
+ + "\017encryption_spec\030\013"
+ + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022\036\n"
+ "\021metadata_artifact\030\021 \001(\tB\003\340A\003\022\034\n"
+ "\017model_reference\030\022 \001(\tB\003\340A\001\022\032\n\r"
+ "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r"
@@ -107,14 +108,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013LabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:b\352A_\n"
- + "!aiplatform.googleapis.com/Data"
- + "set\022:projects/{project}/locations/{location}/datasets/{dataset}\"\263\003\n"
+ + "!aiplatform.googleapis.com/Datase"
+ + "t\022:projects/{project}/locations/{location}/datasets/{dataset}\"\263\003\n"
+ "\020ImportDataConfig\022@\n\n"
+ "gcs_source\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022_\n"
- + "\020data_item_labels\030\002 \003(\0132E.google.cloud.aiplatfo"
- + "rm.v1beta1.ImportDataConfig.DataItemLabelsEntry\022b\n"
- + "\021annotation_labels\030\003 \003(\0132G.goo"
- + "gle.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry\022\036\n"
+ + "\020data_item_labels\030\002 \003(\0132E.google.cloud.aiplatform"
+ + ".v1beta1.ImportDataConfig.DataItemLabelsEntry\022b\n"
+ + "\021annotation_labels\030\003 \003(\0132G.googl"
+ + "e.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry\022\036\n"
+ "\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n"
+ "\023DataItemLabelsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
@@ -124,10 +125,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005value\030\002 \001(\t:\0028\001B\010\n"
+ "\006source\"\342\001\n"
+ "\020ExportDataConfig\022J\n"
- + "\017gcs_destination\030\001 \001(\0132/.google.clo"
- + "ud.aiplatform.v1beta1.GcsDestinationH\000\022N\n"
- + "\016fraction_split\030\005 \001(\01324.google.cloud.ai"
- + "platform.v1beta1.ExportFractionSplitH\001\022\032\n"
+ + "\017gcs_destination\030\001"
+ + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000\022N\n"
+ + "\016fraction_split\030\005"
+ + " \001(\01324.google.cloud.aiplatform.v1beta1.ExportFractionSplitH\001\022\032\n"
+ "\022annotations_filter\030\002 \001(\tB\r\n"
+ "\013destinationB\007\n"
+ "\005split\"d\n"
@@ -135,11 +136,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\021training_fraction\030\001 \001(\001\022\033\n"
+ "\023validation_fraction\030\002 \001(\001\022\025\n\r"
+ "test_fraction\030\003 \001(\001B\343\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\014Datase"
- + "tProtoP\001ZCcloud.google.com/go/aiplatform"
- + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037"
- + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google"
- + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "#com.google.cloud.aiplatform.v1beta1B\014DatasetP"
+ + "rotoP\001ZCcloud.google.com/go/aiplatform/a"
+ + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go"
+ + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C"
+ + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -238,6 +239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java
index 8a30fe5d9a80..642378186061 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java
@@ -85,10 +85,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -111,10 +113,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1118,10 +1122,12 @@ public Builder mergeFrom(
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -1143,10 +1149,12 @@ public java.lang.String getName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
@@ -1168,10 +1176,12 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The name to set.
@@ -1192,10 +1202,12 @@ public Builder setName(java.lang.String value) {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
@@ -1212,10 +1224,12 @@ public Builder clearName() {
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java
index 5cc81f2db9ab..dd29d0c07a16 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java
@@ -31,10 +31,12 @@ public interface DatasetVersionOrBuilder
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The name.
@@ -46,10 +48,12 @@ public interface DatasetVersionOrBuilder
*
*
* Output only. Identifier. The resource name of the DatasetVersion.
+ * Format:
+ * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
*
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java
index 496a098d7253..4f57711955e4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java
@@ -53,30 +53,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n5google/cloud/aiplatform/v1beta1/datase"
- + "t_version.proto\022\037google.cloud.aiplatform"
+ "\n"
+ + "5google/cloud/aiplatform/v1beta1/dataset_version.proto\022\037google.cloud.aiplatform"
+ ".v1beta1\032\037google/api/field_behavior.prot"
+ "o\032\031google/api/resource.proto\032\034google/pro"
- + "tobuf/struct.proto\032\037google/protobuf/time"
- + "stamp.proto\"\362\003\n\016DatasetVersion\022\024\n\004name\030\001"
- + " \001(\tB\006\340A\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.goog"
- + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim"
- + "e\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
- + "\022\014\n\004etag\030\003 \001(\t\022#\n\026big_query_dataset_name"
- + "\030\004 \001(\tB\003\340A\003\022\024\n\014display_name\030\007 \001(\t\0220\n\010met"
- + "adata\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003"
- + "\340A\002\022\034\n\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\rsat"
- + "isfies_pzs\030\n \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\013"
- + " \001(\010B\003\340A\003:\214\001\352A\210\001\n(aiplatform.googleapis."
- + "com/DatasetVersion\022\\projects/{project}/l"
- + "ocations/{location}/datasets/{dataset}/d"
- + "atasetVersions/{dataset_version}B\352\001\n#com"
- + ".google.cloud.aiplatform.v1beta1B\023Datase"
- + "tVersionProtoP\001ZCcloud.google.com/go/aip"
- + "latform/apiv1beta1/aiplatformpb;aiplatfo"
- + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002"
- + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl"
- + "e::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "tobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\237\004\n"
+ + "\016DatasetVersion\022A\n"
+ + "\004name\030\001 \001(\tB3\340A\003\340A\010\372A*\n"
+ + "(aiplatform.googleapis.com/DatasetVersion\0224\n"
+ + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ + "\013update_time\030\006"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n"
+ + "\004etag\030\003 \001(\t\022#\n"
+ + "\026big_query_dataset_name\030\004 \001(\tB\003\340A\003\022\024\n"
+ + "\014display_name\030\007 \001(\t\0220\n"
+ + "\010metadata\030\010"
+ + " \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002\022\034\n"
+ + "\017model_reference\030\t \001(\tB\003\340A\003\022\032\n\r"
+ + "satisfies_pzs\030\n"
+ + " \001(\010B\003\340A\003\022\032\n\r"
+ + "satisfies_pzi\030\013 \001(\010B\003\340A\003:\214\001\352A\210\001\n"
+ + "(aiplatform.googleapis.com/DatasetVersion\022\\projects/{proje"
+ + "ct}/locations/{location}/datasets/{datas"
+ + "et}/datasetVersions/{dataset_version}B\352\001\n"
+ + "#com.google.cloud.aiplatform.v1beta1B\023DatasetVersionProtoP\001ZCcloud.google.com/g"
+ + "o/aiplatform/apiv1beta1/aiplatformpb;aip"
+ + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be"
+ + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\""
+ + "Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -113,6 +117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java
index 7d2fb89cd9a1..f86f8f11d4c0 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequest.java
@@ -153,6 +153,26 @@ public boolean getForce() {
return force_;
}
+ public static final int FORCE_DELETE_FIELD_NUMBER = 3;
+ private boolean forceDelete_ = false;
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The forceDelete.
+ */
+ @java.lang.Override
+ public boolean getForceDelete() {
+ return forceDelete_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -173,6 +193,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (force_ != false) {
output.writeBool(2, force_);
}
+ if (forceDelete_ != false) {
+ output.writeBool(3, forceDelete_);
+ }
getUnknownFields().writeTo(output);
}
@@ -188,6 +211,9 @@ public int getSerializedSize() {
if (force_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_);
}
+ if (forceDelete_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, forceDelete_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -206,6 +232,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getName().equals(other.getName())) return false;
if (getForce() != other.getForce()) return false;
+ if (getForceDelete() != other.getForceDelete()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -221,6 +248,8 @@ public int hashCode() {
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + FORCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce());
+ hash = (37 * hash) + FORCE_DELETE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceDelete());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -365,6 +394,7 @@ public Builder clear() {
bitField0_ = 0;
name_ = "";
force_ = false;
+ forceDelete_ = false;
return this;
}
@@ -407,6 +437,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRe
if (((from_bitField0_ & 0x00000002) != 0)) {
result.force_ = force_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.forceDelete_ = forceDelete_;
+ }
}
@java.lang.Override
@@ -430,6 +463,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequ
if (other.getForce() != false) {
setForce(other.getForce());
}
+ if (other.getForceDelete() != false) {
+ setForceDelete(other.getForceDelete());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -468,6 +504,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 16
+ case 24:
+ {
+ forceDelete_ = input.readBool();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -680,6 +722,65 @@ public Builder clearForce() {
return this;
}
+ private boolean forceDelete_;
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The forceDelete.
+ */
+ @java.lang.Override
+ public boolean getForceDelete() {
+ return forceDelete_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The forceDelete to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForceDelete(boolean value) {
+
+ forceDelete_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearForceDelete() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ forceDelete_ = false;
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteRagCorpusRequest)
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java
index ed1d4e4ed5d3..3ad21ad3cff2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteRagCorpusRequestOrBuilder.java
@@ -74,4 +74,18 @@ public interface DeleteRagCorpusRequestOrBuilder
* @return The force.
*/
boolean getForce();
+
+ /**
+ *
+ *
+ *
+ * Optional. If set to true, any errors generated by external vector database
+ * during the deletion will be ignored. The default value is false.
+ *
+ *
+ * bool force_delete = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The forceDelete.
+ */
+ boolean getForceDelete();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java
index b6bb83106a3f..2429ecc1cb68 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceProto.java
@@ -129,163 +129,165 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n"
- + "=google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto\022\037google.cloud.ai"
+ "\n=google/cloud/aiplatform/v1beta1/vertex"
+ + "_rag_data_service.proto\022\037google.cloud.ai"
+ "platform.v1beta1\032\034google/api/annotations"
+ ".proto\032\027google/api/client.proto\032\037google/"
+ "api/field_behavior.proto\032\031google/api/res"
- + "ource.proto\032/google/cloud/aiplatform/v1beta1/operation.proto\0325google/cloud/aipla"
+ + "ource.proto\032/google/cloud/aiplatform/v1b"
+ + "eta1/operation.proto\0325google/cloud/aipla"
+ "tform/v1beta1/vertex_rag_data.proto\032#goo"
+ "gle/longrunning/operations.proto\032\033google"
- + "/protobuf/empty.proto\032\027google/rpc/status.proto\"\230\001\n"
- + "\026CreateRagCorpusRequest\0229\n"
- + "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
- + "!locations.googleapis.com/Location\022C\n\n"
- + "rag_corpus\030\002 \001(\0132*.googl"
- + "e.cloud.aiplatform.v1beta1.RagCorpusB\003\340A\002\"P\n"
- + "\023GetRagCorpusRequest\0229\n"
- + "\004name\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\"\203\001\n"
- + "\025ListRagCorporaRequest\0229\n"
- + "\006parent\030\001 \001(\tB)\340A\002\372A#\n"
- + "!locations.googleapis.com/Location\022\026\n"
- + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n"
- + "page_token\030\003 \001(\tB\003\340A\001\"r\n"
- + "\026ListRagCorporaResponse\022?\n"
- + "\013rag_corpora\030\001"
- + " \003(\0132*.google.cloud.aiplatform.v1beta1.RagCorpus\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"g\n"
- + "\026DeleteRagCorpusRequest\0229\n"
- + "\004name\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\022\022\n"
- + "\005force\030\002 \001(\010B\003\340A\001\"\357\001\n"
- + "\024UploadRagFileRequest\022;\n"
- + "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\022?\n"
- + "\010rag_file\030\002"
- + " \001(\0132(.google.cloud.aiplatform.v1beta1.RagFileB\003\340A\002\022Y\n"
- + "\026upload_rag_file_config\030\005 \001(\01324.google.cloud.aip"
- + "latform.v1beta1.UploadRagFileConfigB\003\340A\002\"\204\001\n"
- + "\025UploadRagFileResponse\022<\n"
- + "\010rag_file\030\001 \001(\0132(.google.cloud.aiplatform.v1beta1.RagFileH\000\022#\n"
- + "\005error\030\004 \001(\0132\022.google.rpc.StatusH\000B\010\n"
- + "\006result\"\261\001\n"
- + "\025ImportRagFilesRequest\022;\n"
- + "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\022[\n"
- + "\027import_rag_files_config\030\002"
- + " \001(\01325.google.cloud.aiplatform.v1beta1.ImportRagFilesConfigB\003\340A\002\"\343\001\n"
- + "\026ImportRagFilesResponse\022#\n"
- + "\031partial_failures_gcs_path\030\004 \001(\tH\000\022)\n"
- + "\037partial_failures_bigquery_table\030\005 \001(\tH\000\022 \n"
- + "\030imported_rag_files_count\030\001 \001(\003\022\036\n"
- + "\026failed_rag_files_count\030\002 \001(\003\022\037\n"
- + "\027skipped_rag_files_count\030\003 \001(\003B\026\n"
- + "\024partial_failure_sink\"L\n"
- + "\021GetRagFileRequest\0227\n"
- + "\004name\030\001 \001(\tB)\340A\002\372A#\n"
- + "!aiplatform.googleapis.com/RagFile\"\203\001\n"
- + "\023ListRagFilesRequest\022;\n"
- + "\006parent\030\001 \001(\tB+\340A\002\372A%\n"
- + "#aiplatform.googleapis.com/RagCorpus\022\026\n"
- + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n"
- + "page_token\030\003 \001(\tB\003\340A\001\"l\n"
- + "\024ListRagFilesResponse\022;\n"
- + "\trag_files\030\001 \003(\0132(.google.cloud.aiplatform.v1beta1.RagFile\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"j\n"
- + "\024DeleteRagFileRequest\0227\n"
- + "\004name\030\001 \001(\tB)\340A\002\372A#\n"
- + "!aiplatform.googleapis.com/RagFile\022\031\n"
- + "\014force_delete\030\002 \001(\010B\003\340A\001\"w\n"
- + " CreateRagCorpusOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329."
- + "google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\\\n"
- + "\031GetRagEngineConfigRequest\022?\n"
- + "\004name\030\001 \001(\tB1\340A\002\372A+\n"
- + ")aiplatform.googleapis.com/RagEngineConfig\"]\n"
- + "\026UpdateRagCorpusRequest\022C\n\n"
- + "rag_corpus\030\001 \001(\0132*.g"
- + "oogle.cloud.aiplatform.v1beta1.RagCorpusB\003\340A\002\"w\n"
- + " UpdateRagCorpusOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.google.clo"
- + "ud.aiplatform.v1beta1.GenericOperationMetadata\"\207\002\n"
- + "\037ImportRagFilesOperationMetadata\022S\n"
- + "\020generic_metadata\030\001 \001(\01329.google.cl"
- + "oud.aiplatform.v1beta1.GenericOperationMetadata\022\025\n\r"
- + "rag_corpus_id\030\002 \001(\003\022[\n"
- + "\027import_rag_files_config\030\003 \001(\01325.google.cloud.a"
- + "iplatform.v1beta1.ImportRagFilesConfigB\003\340A\003\022\033\n"
- + "\023progress_percentage\030\004 \001(\005\"p\n"
- + "\034UpdateRagEngineConfigRequest\022P\n"
- + "\021rag_engine_config\030\001"
- + " \001(\01320.google.cloud.aiplatform.v1beta1.RagEngineConfigB\003\340A\002\"}\n"
- + "&UpdateRagEngineConfigOperationMetadata\022S\n"
- + "\020generic_metadata\030\001"
- + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata2\307\026\n"
- + "\024VertexRagDataService\022\367\001\n"
- + "\017CreateRagCorpus\0227.google.cloud.aiplatform.v1beta1.CreateR"
- + "agCorpusRequest\032\035.google.longrunning.Operation\"\213\001\312A-\n"
- + "\tRagCorpus\022 CreateRagCorpusOperationMetadata\332A\021parent,rag_corpus\202\323\344"
- + "\223\002A\"3/v1beta1/{parent=projects/*/locations/*}/ragCorpora:\n"
- + "rag_corpus\022\373\001\n"
- + "\017UpdateRagCorpus\0227.google.cloud.aiplatform.v1bet"
- + "a1.UpdateRagCorpusRequest\032\035.google.longrunning.Operation\"\217\001\312A-\n"
- + "\tRagCorpus\022 UpdateRagCorpusOperationMetadata\332A\n"
- + "rag_corpus"
- + "\202\323\344\223\002L2>/v1beta1/{rag_corpus.name=projects/*/locations/*/ragCorpora/*}:\n"
- + "rag_corpus\022\264\001\n"
- + "\014GetRagCorpus\0224.google.cloud.aiplatform.v1beta1.GetRagCorpusRequest\032*.goog"
- + "le.cloud.aiplatform.v1beta1.RagCorpus\"B\332"
- + "A\004name\202\323\344\223\0025\0223/v1beta1/{name=projects/*/locations/*/ragCorpora/*}\022\307\001\n"
- + "\016ListRagCorpora\0226.google.cloud.aiplatform.v1beta1.L"
- + "istRagCorporaRequest\0327.google.cloud.aipl"
- + "atform.v1beta1.ListRagCorporaResponse\"D\332"
- + "A\006parent\202\323\344\223\0025\0223/v1beta1/{parent=projects/*/locations/*}/ragCorpora\022\340\001\n"
- + "\017DeleteRagCorpus\0227.google.cloud.aiplatform.v1beta"
- + "1.DeleteRagCorpusRequest\032\035.google.longrunning.Operation\"u\312A0\n"
- + "\025google.protobuf.Em"
- + "pty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002"
- + "5*3/v1beta1/{name=projects/*/locations/*/ragCorpora/*}\022\371\001\n\r"
- + "UploadRagFile\0225.google.cloud.aiplatform.v1beta1.UploadRagFile"
- + "Request\0326.google.cloud.aiplatform.v1beta"
- + "1.UploadRagFileResponse\"y\332A&parent,rag_f"
- + "ile,upload_rag_file_config\202\323\344\223\002J\"E/v1bet"
- + "a1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:upload:\001*\022\227\002\n"
- + "\016ImportRagFiles\0226.google.cloud.aiplatform.v1beta1."
- + "ImportRagFilesRequest\032\035.google.longrunning.Operation\"\255\001\312A9\n"
- + "\026ImportRagFilesResponse\022\037ImportRagFilesOperationMetadata\332A\036pa"
- + "rent,import_rag_files_config\202\323\344\223\002J\"E/v1b"
- + "eta1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles:import:\001*\022\271\001\n\n"
- + "GetRagFile\0222.google.cloud.aiplatform.v1beta1.Ge"
- + "tRagFileRequest\032(.google.cloud.aiplatfor"
- + "m.v1beta1.RagFile\"M\332A\004name\202\323\344\223\002@\022>/v1bet"
- + "a1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}\022\314\001\n"
- + "\014ListRagFiles\0224.google.cloud.aiplatform.v1beta1.ListRagFiles"
- + "Request\0325.google.cloud.aiplatform.v1beta"
- + "1.ListRagFilesResponse\"O\332A\006parent\202\323\344\223\002@\022"
- + ">/v1beta1/{parent=projects/*/locations/*/ragCorpora/*}/ragFiles\022\350\001\n\r"
- + "DeleteRagFile\0225.google.cloud.aiplatform.v1beta1.Dele"
- + "teRagFileRequest\032\035.google.longrunning.Operation\"\200\001\312A0\n"
- + "\025google.protobuf.Empty\022\027De"
- + "leteOperationMetadata\332A\004name\202\323\344\223\002@*>/v1b"
- + "eta1/{name=projects/*/locations/*/ragCorpora/*/ragFiles/*}\022\253\002\n"
- + "\025UpdateRagEngineConfig\022=.google.cloud.aiplatform.v1beta1.U"
- + "pdateRagEngineConfigRequest\032\035.google.longrunning.Operation\"\263\001\312A9\n"
- + "\017RagEngineConfig\022&UpdateRagEngineConfigOperationMetadat"
- + "a\332A\021rag_engine_config\202\323\344\223\002]2H/v1beta1/{r"
- + "ag_engine_config.name=projects/*/locatio"
- + "ns/*/ragEngineConfig}:\021rag_engine_config\022\311\001\n"
- + "\022GetRagEngineConfig\022:.google.cloud.aiplatform.v1beta1.GetRagEngineConfigRequ"
- + "est\0320.google.cloud.aiplatform.v1beta1.Ra"
- + "gEngineConfig\"E\332A\004name\202\323\344\223\0028\0226/v1beta1/{"
- + "name=projects/*/locations/*/ragEngineCon"
- + "fig}\032M\312A\031aiplatform.googleapis.com\322A.htt"
- + "ps://www.googleapis.com/auth/cloud-platformB\360\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\031VertexRagDataServiceProtoP\001ZCcloud."
- + "google.com/go/aiplatform/apiv1beta1/aipl"
- + "atformpb;aiplatformpb\252\002\037Google.Cloud.AIP"
- + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor"
- + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
+ + "/protobuf/empty.proto\032\027google/rpc/status"
+ + ".proto\"\230\001\n\026CreateRagCorpusRequest\0229\n\006par"
+ + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis."
+ + "com/Location\022C\n\nrag_corpus\030\002 \001(\0132*.googl"
+ + "e.cloud.aiplatform.v1beta1.RagCorpusB\003\340A"
+ + "\002\"P\n\023GetRagCorpusRequest\0229\n\004name\030\001 \001(\tB+"
+ + "\340A\002\372A%\n#aiplatform.googleapis.com/RagCor"
+ + "pus\"\203\001\n\025ListRagCorporaRequest\0229\n\006parent\030"
+ + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/"
+ + "Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage"
+ + "_token\030\003 \001(\tB\003\340A\001\"r\n\026ListRagCorporaRespo"
+ + "nse\022?\n\013rag_corpora\030\001 \003(\0132*.google.cloud."
+ + "aiplatform.v1beta1.RagCorpus\022\027\n\017next_pag"
+ + "e_token\030\002 \001(\t\"\202\001\n\026DeleteRagCorpusRequest"
+ + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googl"
+ + "eapis.com/RagCorpus\022\022\n\005force\030\002 \001(\010B\003\340A\001\022"
+ + "\031\n\014force_delete\030\003 \001(\010B\003\340A\001\"\357\001\n\024UploadRag"
+ + "FileRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#aip"
+ + "latform.googleapis.com/RagCorpus\022?\n\010rag_"
+ + "file\030\002 \001(\0132(.google.cloud.aiplatform.v1b"
+ + "eta1.RagFileB\003\340A\002\022Y\n\026upload_rag_file_con"
+ + "fig\030\005 \001(\01324.google.cloud.aiplatform.v1be"
+ + "ta1.UploadRagFileConfigB\003\340A\002\"\204\001\n\025UploadR"
+ + "agFileResponse\022<\n\010rag_file\030\001 \001(\0132(.googl"
+ + "e.cloud.aiplatform.v1beta1.RagFileH\000\022#\n\005"
+ + "error\030\004 \001(\0132\022.google.rpc.StatusH\000B\010\n\006res"
+ + "ult\"\261\001\n\025ImportRagFilesRequest\022;\n\006parent\030"
+ + "\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleapis.com"
+ + "/RagCorpus\022[\n\027import_rag_files_config\030\002 "
+ + "\001(\01325.google.cloud.aiplatform.v1beta1.Im"
+ + "portRagFilesConfigB\003\340A\002\"\343\001\n\026ImportRagFil"
+ + "esResponse\022#\n\031partial_failures_gcs_path\030"
+ + "\004 \001(\tH\000\022)\n\037partial_failures_bigquery_tab"
+ + "le\030\005 \001(\tH\000\022 \n\030imported_rag_files_count\030\001"
+ + " \001(\003\022\036\n\026failed_rag_files_count\030\002 \001(\003\022\037\n\027"
+ + "skipped_rag_files_count\030\003 \001(\003B\026\n\024partial"
+ + "_failure_sink\"L\n\021GetRagFileRequest\0227\n\004na"
+ + "me\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis."
+ + "com/RagFile\"\203\001\n\023ListRagFilesRequest\022;\n\006p"
+ + "arent\030\001 \001(\tB+\340A\002\372A%\n#aiplatform.googleap"
+ + "is.com/RagCorpus\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001"
+ + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"l\n\024ListRagFile"
+ + "sResponse\022;\n\trag_files\030\001 \003(\0132(.google.cl"
+ + "oud.aiplatform.v1beta1.RagFile\022\027\n\017next_p"
+ + "age_token\030\002 \001(\t\"j\n\024DeleteRagFileRequest\022"
+ + "7\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.google"
+ + "apis.com/RagFile\022\031\n\014force_delete\030\002 \001(\010B\003"
+ + "\340A\001\"w\n CreateRagCorpusOperationMetadata\022"
+ + "S\n\020generic_metadata\030\001 \001(\01329.google.cloud"
+ + ".aiplatform.v1beta1.GenericOperationMeta"
+ + "data\"\\\n\031GetRagEngineConfigRequest\022?\n\004nam"
+ + "e\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis.c"
+ + "om/RagEngineConfig\"]\n\026UpdateRagCorpusReq"
+ + "uest\022C\n\nrag_corpus\030\001 \001(\0132*.google.cloud."
+ + "aiplatform.v1beta1.RagCorpusB\003\340A\002\"w\n Upd"
+ + "ateRagCorpusOperationMetadata\022S\n\020generic"
+ + "_metadata\030\001 \001(\01329.google.cloud.aiplatfor"
+ + "m.v1beta1.GenericOperationMetadata\"\207\002\n\037I"
+ + "mportRagFilesOperationMetadata\022S\n\020generi"
+ + "c_metadata\030\001 \001(\01329.google.cloud.aiplatfo"
+ + "rm.v1beta1.GenericOperationMetadata\022\025\n\rr"
+ + "ag_corpus_id\030\002 \001(\003\022[\n\027import_rag_files_c"
+ + "onfig\030\003 \001(\01325.google.cloud.aiplatform.v1"
+ + "beta1.ImportRagFilesConfigB\003\340A\003\022\033\n\023progr"
+ + "ess_percentage\030\004 \001(\005\"p\n\034UpdateRagEngineC"
+ + "onfigRequest\022P\n\021rag_engine_config\030\001 \001(\0132"
+ + "0.google.cloud.aiplatform.v1beta1.RagEng"
+ + "ineConfigB\003\340A\002\"}\n&UpdateRagEngineConfigO"
+ + "perationMetadata\022S\n\020generic_metadata\030\001 \001"
+ + "(\01329.google.cloud.aiplatform.v1beta1.Gen"
+ + "ericOperationMetadata2\307\026\n\024VertexRagDataS"
+ + "ervice\022\367\001\n\017CreateRagCorpus\0227.google.clou"
+ + "d.aiplatform.v1beta1.CreateRagCorpusRequ"
+ + "est\032\035.google.longrunning.Operation\"\213\001\312A-"
+ + "\n\tRagCorpus\022 CreateRagCorpusOperationMet"
+ + "adata\332A\021parent,rag_corpus\202\323\344\223\002A\"3/v1beta"
+ + "1/{parent=projects/*/locations/*}/ragCor"
+ + "pora:\nrag_corpus\022\373\001\n\017UpdateRagCorpus\0227.g"
+ + "oogle.cloud.aiplatform.v1beta1.UpdateRag"
+ + "CorpusRequest\032\035.google.longrunning.Opera"
+ + "tion\"\217\001\312A-\n\tRagCorpus\022 UpdateRagCorpusOp"
+ + "erationMetadata\332A\nrag_corpus\202\323\344\223\002L2>/v1b"
+ + "eta1/{rag_corpus.name=projects/*/locatio"
+ + "ns/*/ragCorpora/*}:\nrag_corpus\022\264\001\n\014GetRa"
+ + "gCorpus\0224.google.cloud.aiplatform.v1beta"
+ + "1.GetRagCorpusRequest\032*.google.cloud.aip"
+ + "latform.v1beta1.RagCorpus\"B\332A\004name\202\323\344\223\0025"
+ + "\0223/v1beta1/{name=projects/*/locations/*/"
+ + "ragCorpora/*}\022\307\001\n\016ListRagCorpora\0226.googl"
+ + "e.cloud.aiplatform.v1beta1.ListRagCorpor"
+ + "aRequest\0327.google.cloud.aiplatform.v1bet"
+ + "a1.ListRagCorporaResponse\"D\332A\006parent\202\323\344\223"
+ + "\0025\0223/v1beta1/{parent=projects/*/location"
+ + "s/*}/ragCorpora\022\340\001\n\017DeleteRagCorpus\0227.go"
+ + "ogle.cloud.aiplatform.v1beta1.DeleteRagC"
+ + "orpusRequest\032\035.google.longrunning.Operat"
+ + "ion\"u\312A0\n\025google.protobuf.Empty\022\027DeleteO"
+ + "perationMetadata\332A\004name\202\323\344\223\0025*3/v1beta1/"
+ + "{name=projects/*/locations/*/ragCorpora/"
+ + "*}\022\371\001\n\rUploadRagFile\0225.google.cloud.aipl"
+ + "atform.v1beta1.UploadRagFileRequest\0326.go"
+ + "ogle.cloud.aiplatform.v1beta1.UploadRagF"
+ + "ileResponse\"y\332A&parent,rag_file,upload_r"
+ + "ag_file_config\202\323\344\223\002J\"E/v1beta1/{parent=p"
+ + "rojects/*/locations/*/ragCorpora/*}/ragF"
+ + "iles:upload:\001*\022\227\002\n\016ImportRagFiles\0226.goog"
+ + "le.cloud.aiplatform.v1beta1.ImportRagFil"
+ + "esRequest\032\035.google.longrunning.Operation"
+ + "\"\255\001\312A9\n\026ImportRagFilesResponse\022\037ImportRa"
+ + "gFilesOperationMetadata\332A\036parent,import_"
+ + "rag_files_config\202\323\344\223\002J\"E/v1beta1/{parent"
+ + "=projects/*/locations/*/ragCorpora/*}/ra"
+ + "gFiles:import:\001*\022\271\001\n\nGetRagFile\0222.google"
+ + ".cloud.aiplatform.v1beta1.GetRagFileRequ"
+ + "est\032(.google.cloud.aiplatform.v1beta1.Ra"
+ + "gFile\"M\332A\004name\202\323\344\223\002@\022>/v1beta1/{name=pro"
+ + "jects/*/locations/*/ragCorpora/*/ragFile"
+ + "s/*}\022\314\001\n\014ListRagFiles\0224.google.cloud.aip"
+ + "latform.v1beta1.ListRagFilesRequest\0325.go"
+ + "ogle.cloud.aiplatform.v1beta1.ListRagFil"
+ + "esResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1beta1/{p"
+ + "arent=projects/*/locations/*/ragCorpora/"
+ + "*}/ragFiles\022\350\001\n\rDeleteRagFile\0225.google.c"
+ + "loud.aiplatform.v1beta1.DeleteRagFileReq"
+ + "uest\032\035.google.longrunning.Operation\"\200\001\312A"
+ + "0\n\025google.protobuf.Empty\022\027DeleteOperatio"
+ + "nMetadata\332A\004name\202\323\344\223\002@*>/v1beta1/{name=p"
+ + "rojects/*/locations/*/ragCorpora/*/ragFi"
+ + "les/*}\022\253\002\n\025UpdateRagEngineConfig\022=.googl"
+ + "e.cloud.aiplatform.v1beta1.UpdateRagEngi"
+ + "neConfigRequest\032\035.google.longrunning.Ope"
+ + "ration\"\263\001\312A9\n\017RagEngineConfig\022&UpdateRag"
+ + "EngineConfigOperationMetadata\332A\021rag_engi"
+ + "ne_config\202\323\344\223\002]2H/v1beta1/{rag_engine_co"
+ + "nfig.name=projects/*/locations/*/ragEngi"
+ + "neConfig}:\021rag_engine_config\022\311\001\n\022GetRagE"
+ + "ngineConfig\022:.google.cloud.aiplatform.v1"
+ + "beta1.GetRagEngineConfigRequest\0320.google"
+ + ".cloud.aiplatform.v1beta1.RagEngineConfi"
+ + "g\"E\332A\004name\202\323\344\223\0028\0226/v1beta1/{name=project"
+ + "s/*/locations/*/ragEngineConfig}\032M\312A\031aip"
+ + "latform.googleapis.com\322A.https://www.goo"
+ + "gleapis.com/auth/cloud-platformB\360\001\n#com."
+ + "google.cloud.aiplatform.v1beta1B\031VertexR"
+ + "agDataServiceProtoP\001ZCcloud.google.com/g"
+ + "o/aiplatform/apiv1beta1/aiplatformpb;aip"
+ + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be"
+ + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\""
+ + "Google::Cloud::AIPlatform::V1beta1b\006prot"
+ + "o3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -339,7 +341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_DeleteRagCorpusRequest_descriptor,
new java.lang.String[] {
- "Name", "Force",
+ "Name", "Force", "ForceDelete",
});
internal_static_google_cloud_aiplatform_v1beta1_UploadRagFileRequest_descriptor =
getDescriptor().getMessageType(5);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto
index 43032debb0c1..d208f8e2ec26 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -40,9 +40,14 @@ message Dataset {
};
// Output only. Identifier. The resource name of the Dataset.
+ // Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}`
string name = 1 [
(google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IDENTIFIER
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Dataset"
+ }
];
// Required. The user-defined name of the Dataset.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto
index 4599081f7426..ecdeb1a0da9c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -37,9 +37,14 @@ message DatasetVersion {
};
// Output only. Identifier. The resource name of the DatasetVersion.
+ // Format:
+ // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
string name = 1 [
(google.api.field_behavior) = OUTPUT_ONLY,
- (google.api.field_behavior) = IDENTIFIER
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/DatasetVersion"
+ }
];
// Output only. Timestamp when this DatasetVersion was created.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto
index 914e9b5108d4..da2f9f6bfa25 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto
@@ -257,6 +257,10 @@ message DeleteRagCorpusRequest {
// deleted. Otherwise, the request will only work if the RagCorpus has no
// RagFiles.
bool force = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If set to true, any errors generated by external vector database
+ // during the deletion will be ignored. The default value is false.
+ bool force_delete = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java
index 4ddc19d9b7e5..17eaa5dc843c 100644
--- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/vertexragdataservice/deleteragcorpus/AsyncDeleteRagCorpus.java
@@ -41,6 +41,7 @@ public static void asyncDeleteRagCorpus() throws Exception {
DeleteRagCorpusRequest.newBuilder()
.setName(RagCorpusName.of("[PROJECT]", "[LOCATION]", "[RAG_CORPUS]").toString())
.setForce(true)
+ .setForceDelete(true)
.build();
ApiFuture
ListLocations
Lists information about the supported locations for this service.
Lists information about the supported locations for this service.This method can be called in two ways: + *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -7123,7 +7130,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -7157,7 +7170,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code:
*
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java
index c84988f9e76e..185058aa92c1 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/FileProto.java
@@ -84,14 +84,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n"
+ ".google/devtools/artifactregistry/v1/file.proto\022#google.devtools.artifactregist"
+ "ry.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032"
- + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\223\001\n"
+ + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\246\001\n"
+ "\004Hash\022@\n"
+ "\004type\030\001 \001(\01622.google.devtools.artifactregistry.v1.Hash.HashType\022\r\n"
- + "\005value\030\002 \001(\014\":\n"
+ + "\005value\030\002 \001(\014\"M\n"
+ "\010HashType\022\031\n"
+ "\025HASH_TYPE_UNSPECIFIED\020\000\022\n\n"
+ "\006SHA256\020\001\022\007\n"
- + "\003MD5\020\002\"\230\004\n"
+ + "\003MD5\020\002\022\021\n\r"
+ + "DIRSUM_SHA256\020\003\"\230\004\n"
+ "\004File\022\014\n"
+ "\004name\030\001 \001(\t\022\022\n\n"
+ "size_bytes\030\003 \001(\003\0229\n"
@@ -100,16 +101,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\r\n"
+ "\005owner\030\007 \001(\t\0223\n\n"
+ "fetch_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n"
- + "\013annotations\030\t \003(\0132:.google.devtools."
- + "artifactregistry.v1.File.AnnotationsEntryB\003\340A\001\0322\n"
+ + "\013annotations\030\t \003(\013"
+ + "2:.google.devtools.artifactregistry.v1.File.AnnotationsEntryB\003\340A\001\0322\n"
+ "\020AnnotationsEntry\022\013\n"
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:y\352Av\n"
- + "$artifactregistry.googleapis.com/File\022Nprojects/{project"
- + "}/locations/{location}/repositories/{repository}/files/{file}\"\231\001\n"
+ + "$artifactregistry.googleapis.com/File\022Nprojects/{project}/locations/{location"
+ + "}/repositories/{repository}/files/{file}\"\231\001\n"
+ "\020ListFilesRequest\022<\n"
- + "\006parent\030\001 \001("
- + "\tB,\340A\002\372A&\022$artifactregistry.googleapis.com/File\022\016\n"
+ + "\006parent\030\001 \001(\tB,\340"
+ + "A\002\372A&\022$artifactregistry.googleapis.com/File\022\016\n"
+ "\006filter\030\004 \001(\t\022\021\n"
+ "\tpage_size\030\002 \001(\005\022\022\n\n"
+ "page_token\030\003 \001(\t\022\020\n"
@@ -124,14 +125,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB,\340A\002\372A&\n"
+ "$artifactregistry.googleapis.com/File\"\207\001\n"
+ "\021UpdateFileRequest\022<\n"
- + "\004file\030\001 \001(\0132).g"
- + "oogle.devtools.artifactregistry.v1.FileB\003\340A\002\0224\n"
+ + "\004file\030\001"
+ + " \001(\0132).google.devtools.artifactregistry.v1.FileB\003\340A\002\0224\n"
+ "\013update_mask\030\002"
+ " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002B\364\001\n"
- + "\'com.google.devtools.artifactregistry.v1B\tFileProtoP\001ZPclo"
- + "ud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002"
- + " Google.Cloud.ArtifactRegistry.V1\312\002 Googl"
- + "e\\Cloud\\ArtifactRegistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3"
+ + "\'com.google.devtools.artifactregistry.v1B\tFileProtoP\001ZPcloud.google.com/go/arti"
+ + "factregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002"
+ + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactRegis"
+ + "try\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java
index c6a05a020f4a..56398a00f2e1 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Hash.java
@@ -111,6 +111,16 @@ public enum HashType implements com.google.protobuf.ProtocolMessageEnum {
* MD5 = 2;
*/
MD5(2),
+ /**
+ *
+ *
+ *
+ * Dirsum SHA256 hash. + *+ * + *
DIRSUM_SHA256 = 3;
+ */
+ DIRSUM_SHA256(3),
UNRECOGNIZED(-1),
;
@@ -157,6 +167,17 @@ public enum HashType implements com.google.protobuf.ProtocolMessageEnum {
*/
public static final int MD5_VALUE = 2;
+ /**
+ *
+ *
+ * + * Dirsum SHA256 hash. + *+ * + *
DIRSUM_SHA256 = 3;
+ */
+ public static final int DIRSUM_SHA256_VALUE = 3;
+
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
@@ -187,6 +208,8 @@ public static HashType forNumber(int value) {
return SHA256;
case 2:
return MD5;
+ case 3:
+ return DIRSUM_SHA256;
default:
return null;
}
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto
index c9da2a5d7be8..67a1b9cf42b6 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/apt_artifact.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
index 691638efd8d6..a61538a9475f 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto
index 7f283f684a87..da05158d2d81 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/attachment.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto
index 2e89c126a96e..890e42a9e0c1 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto
index 35b3ebde6f87..ed5886d9f5e7 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/file.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -41,6 +41,9 @@ message Hash {
// MD5 hash.
MD5 = 2;
+
+ // Dirsum SHA256 hash.
+ DIRSUM_SHA256 = 3;
}
// The algorithm used to compute the hash value.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto
index b26f31a9e783..85c0c10f0ff4 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/generic.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto
index 0f459b4f1cf2..3a5d56918cbb 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/go.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto
index 94641accdbb0..c7e59a59d84b 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/kfp_artifact.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto
index 35ae37ef1e5b..8bb9c0426a71 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/package.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto
index 40fc30a008a7..82bfb3ebf3f3 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto
index cfe5be0ab580..03be67007bdc 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/rule.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto
index b7e7c368092d..0b17ae07be06 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto
index 54f94b30a788..f617db75c128 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/settings.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto
index 3268a2f8ad0c..a7bcb3d59734 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/tag.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto
index 4efa5c15fec3..05a547676135 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/version.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto
index 477bbda9a89f..a2c5b5100b79 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/vpcsc_config.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto
index 3592c8f4896f..b36a13118249 100644
--- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto
+++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/yum_artifact.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/java-asset/README.md b/java-asset/README.md
index 59b045948cdc..f805802fe19d 100644
--- a/java-asset/README.md
+++ b/java-asset/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
+ * Metadata about the source space from which a message was forwarded. + *+ * + * Protobuf type {@code google.chat.v1.ForwardedMetadata} + */ +@com.google.protobuf.Generated +public final class ForwardedMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ForwardedMetadata) + ForwardedMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ForwardedMetadata"); + } + + // Use ForwardedMetadata.newBuilder() to construct. + private ForwardedMetadata(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ForwardedMetadata() { + space_ = ""; + spaceDisplayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ForwardedMetadata.class, + com.google.chat.v1.ForwardedMetadata.Builder.class); + } + + public static final int SPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object space_ = ""; + + /** + * + * + *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The space.
+ */
+ @java.lang.Override
+ public java.lang.String getSpace() {
+ java.lang.Object ref = space_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ space_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for space.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSpaceBytes() {
+ java.lang.Object ref = space_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ space_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SPACE_DISPLAY_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object spaceDisplayName_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The spaceDisplayName.
+ */
+ @java.lang.Override
+ public java.lang.String getSpaceDisplayName() {
+ java.lang.Object ref = spaceDisplayName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ spaceDisplayName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for spaceDisplayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSpaceDisplayNameBytes() {
+ java.lang.Object ref = spaceDisplayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ spaceDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(space_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, space_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceDisplayName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, spaceDisplayName_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(space_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, space_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(spaceDisplayName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, spaceDisplayName_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.chat.v1.ForwardedMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.chat.v1.ForwardedMetadata other = (com.google.chat.v1.ForwardedMetadata) obj;
+
+ if (!getSpace().equals(other.getSpace())) return false;
+ if (!getSpaceDisplayName().equals(other.getSpaceDisplayName())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SPACE_FIELD_NUMBER;
+ hash = (53 * hash) + getSpace().hashCode();
+ hash = (37 * hash) + SPACE_DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSpaceDisplayName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.chat.v1.ForwardedMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata about the source space from which a message was forwarded. + *+ * + * Protobuf type {@code google.chat.v1.ForwardedMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The space.
+ */
+ public java.lang.String getSpace() {
+ java.lang.Object ref = space_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ space_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for space.
+ */
+ public com.google.protobuf.ByteString getSpaceBytes() {
+ java.lang.Object ref = space_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ space_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The space to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpace(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ space_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSpace() {
+ space_ = getDefaultInstance().getSpace();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for space to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpaceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ space_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object spaceDisplayName_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The spaceDisplayName.
+ */
+ public java.lang.String getSpaceDisplayName() {
+ java.lang.Object ref = spaceDisplayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ spaceDisplayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for spaceDisplayName.
+ */
+ public com.google.protobuf.ByteString getSpaceDisplayNameBytes() {
+ java.lang.Object ref = spaceDisplayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ spaceDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The spaceDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpaceDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ spaceDisplayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSpaceDisplayName() {
+ spaceDisplayName_ = getDefaultInstance().getSpaceDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for spaceDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpaceDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ spaceDisplayName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.chat.v1.ForwardedMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.chat.v1.ForwardedMetadata)
+ private static final com.google.chat.v1.ForwardedMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.chat.v1.ForwardedMetadata();
+ }
+
+ public static com.google.chat.v1.ForwardedMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The space.
+ */
+ java.lang.String getSpace();
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of the source space.
+ * Format: spaces/{space}
+ *
+ *
+ *
+ * string space = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for space.
+ */
+ com.google.protobuf.ByteString getSpaceBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The spaceDisplayName.
+ */
+ java.lang.String getSpaceDisplayName();
+
+ /**
+ *
+ *
+ * + * Output only. The display name of the source space or DM at the time of + * forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this + * is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is + * a generated name based on members' first names, limited to 5 including the + * creator (e.g., "User A, User B"). + *+ * + *
string space_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for spaceDisplayName.
+ */
+ com.google.protobuf.ByteString getSpaceDisplayNameBytes();
+}
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java
index 1cbdece1616a..115913969de9 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java
@@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_chat_v1_QuotedMessageMetadata_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_chat_v1_QuotedMessageMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_chat_v1_ForwardedMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_chat_v1_Thread_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -173,28 +181,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001:C\352A@\n"
+ "\033chat.googleapis.com/Message\022!spaces/{space}/messages/{message}\"\037\n"
+ "\013AttachedGif\022\020\n"
- + "\003uri\030\001 \001(\tB\003\340A\003\"\211\002\n"
+ + "\003uri\030\001 \001(\tB\003\340A\003\"\230\004\n"
+ "\025QuotedMessageMetadata\0221\n"
+ "\004name\030\001 \001(\tB#\340A\002\372A\035\n"
+ "\033chat.googleapis.com/Message\0229\n"
+ "\020last_update_time\030\002"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002:\201\001\352A~\n"
- + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{messag"
- + "e}/quotedMessageMetadata/{quoted_message_metadata}\"v\n"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022H\n\n"
+ + "quote_type\030\004"
+ + " \001(\0162/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\003\340A\001\022K\n"
+ + "\027quoted_message_snapshot\030\005"
+ + " \001(\0132%.google.chat.v1.QuotedMessageSnapshotB\003\340A\003\022B\n"
+ + "\022forwarded_metadata\030\006"
+ + " \001(\0132!.google.chat.v1.ForwardedMetadataB\003\340A\003\"2\n"
+ + "\tQuoteType\022\032\n"
+ + "\026QUOTE_TYPE_UNSPECIFIED\020\000\022\t\n"
+ + "\005REPLY\020\001:\201\001\352A~\n"
+ + ")chat.googleapis.com/QuotedMessageMetadata\022Q"
+ + "spaces/{space}/messages/{message}/quoted"
+ + "MessageMetadata/{quoted_message_metadata}\"\310\001\n"
+ + "\025QuotedMessageSnapshot\022\023\n"
+ + "\006sender\030\001 \001(\tB\003\340A\003\022\021\n"
+ + "\004text\030\002 \001(\tB\003\340A\003\022\033\n"
+ + "\016formatted_text\030\003 \001(\tB\003\340A\003\0224\n"
+ + "\013annotations\030\004 \003(\0132\032.google.chat.v1.AnnotationB\003\340A\003\0224\n"
+ + "\013attachments\030\005 \003(\0132\032.google.chat.v1.AttachmentB\003\340A\003\"f\n"
+ + "\021ForwardedMetadata\0220\n"
+ + "\005space\030\001 \001(\tB!\340A\003\372A\033\n"
+ + "\031chat.googleapis.com/Space\022\037\n"
+ + "\022space_display_name\030\002 \001(\tB\003\340A\003\"v\n"
+ "\006Thread\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n"
+ "thread_key\030\003 \001(\tB\003\340A\001:@\352A=\n"
+ "\032chat.googleapis.com/Thread\022\037spaces/{space}/threads/{thread}\"\322\004\n"
+ "\016ActionResponse\022>\n"
- + "\004type\030\001 "
- + "\001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n"
+ + "\004type\030\001"
+ + " \001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n"
+ "\003url\030\002 \001(\tB\003\340A\004\0228\n\r"
+ "dialog_action\030\003 \001(\0132\034.google.chat.v1.DialogActionB\003\340A\004\022I\n"
- + "\016updated_widget\030\004 \001(\0132,.goog"
- + "le.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n"
+ + "\016updated_widget\030\004"
+ + " \001(\0132,.google.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n"
+ "\016SelectionItems\022@\n"
- + "\005items\030\001 \003(\01321."
- + "google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r"
+ + "\005items\030\001"
+ + " \003(\01321.google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r"
+ "UpdatedWidget\022D\n"
+ "\013suggestions\030\001"
+ " \001(\0132-.google.chat.v1.ActionResponse.SelectionItemsH\000\022\016\n"
@@ -229,8 +257,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\007message\030\004 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\022\031\n\n"
+ "thread_key\030\006 \001(\tB\005\030\001\340A\001\022\027\n\n"
+ "request_id\030\007 \001(\tB\003\340A\001\022Z\n"
- + "\024message_reply_option\030\010 \001(\01627.google.chat.v1.Cr"
- + "eateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n"
+ + "\024message_reply_option\030\010 \001(\01627"
+ + ".google.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n"
+ "message_id\030\t \001(\tB\003\340A\001\"\177\n"
+ "\022MessageReplyOption\022$\n"
+ " MESSAGE_REPLY_OPTION_UNSPECIFIED\020\000\022(\n"
@@ -256,10 +284,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "CardWithId\022\017\n"
+ "\007card_id\030\001 \001(\t\022\'\n"
+ "\004card\030\002 \001(\0132\031.google.apps.card.v1.CardB\245\001\n"
- + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.c"
- + "om/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIP"
- + "roto\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps"
- + "\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3"
+ + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat/apiv1/chatp"
+ + "b;chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Cha"
+ + "t.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -326,16 +353,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_QuotedMessageMetadata_descriptor,
new java.lang.String[] {
- "Name", "LastUpdateTime",
+ "Name", "LastUpdateTime", "QuoteType", "QuotedMessageSnapshot", "ForwardedMetadata",
+ });
+ internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor =
+ getDescriptor().getMessageType(3);
+ internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor,
+ new java.lang.String[] {
+ "Sender", "Text", "FormattedText", "Annotations", "Attachments",
+ });
+ internal_static_google_chat_v1_ForwardedMetadata_descriptor = getDescriptor().getMessageType(4);
+ internal_static_google_chat_v1_ForwardedMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_chat_v1_ForwardedMetadata_descriptor,
+ new java.lang.String[] {
+ "Space", "SpaceDisplayName",
});
- internal_static_google_chat_v1_Thread_descriptor = getDescriptor().getMessageType(3);
+ internal_static_google_chat_v1_Thread_descriptor = getDescriptor().getMessageType(5);
internal_static_google_chat_v1_Thread_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_Thread_descriptor,
new java.lang.String[] {
"Name", "ThreadKey",
});
- internal_static_google_chat_v1_ActionResponse_descriptor = getDescriptor().getMessageType(4);
+ internal_static_google_chat_v1_ActionResponse_descriptor = getDescriptor().getMessageType(6);
internal_static_google_chat_v1_ActionResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_ActionResponse_descriptor,
@@ -358,14 +400,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Suggestions", "Widget", "UpdatedWidget",
});
- internal_static_google_chat_v1_AccessoryWidget_descriptor = getDescriptor().getMessageType(5);
+ internal_static_google_chat_v1_AccessoryWidget_descriptor = getDescriptor().getMessageType(7);
internal_static_google_chat_v1_AccessoryWidget_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_AccessoryWidget_descriptor,
new java.lang.String[] {
"ButtonList", "Action",
});
- internal_static_google_chat_v1_GetMessageRequest_descriptor = getDescriptor().getMessageType(6);
+ internal_static_google_chat_v1_GetMessageRequest_descriptor = getDescriptor().getMessageType(8);
internal_static_google_chat_v1_GetMessageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_GetMessageRequest_descriptor,
@@ -373,7 +415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name",
});
internal_static_google_chat_v1_DeleteMessageRequest_descriptor =
- getDescriptor().getMessageType(7);
+ getDescriptor().getMessageType(9);
internal_static_google_chat_v1_DeleteMessageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_DeleteMessageRequest_descriptor,
@@ -381,7 +423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "Force",
});
internal_static_google_chat_v1_UpdateMessageRequest_descriptor =
- getDescriptor().getMessageType(8);
+ getDescriptor().getMessageType(10);
internal_static_google_chat_v1_UpdateMessageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_UpdateMessageRequest_descriptor,
@@ -389,7 +431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Message", "UpdateMask", "AllowMissing",
});
internal_static_google_chat_v1_CreateMessageRequest_descriptor =
- getDescriptor().getMessageType(9);
+ getDescriptor().getMessageType(11);
internal_static_google_chat_v1_CreateMessageRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_CreateMessageRequest_descriptor,
@@ -397,7 +439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "Message", "ThreadKey", "RequestId", "MessageReplyOption", "MessageId",
});
internal_static_google_chat_v1_ListMessagesRequest_descriptor =
- getDescriptor().getMessageType(10);
+ getDescriptor().getMessageType(12);
internal_static_google_chat_v1_ListMessagesRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_ListMessagesRequest_descriptor,
@@ -405,28 +447,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ShowDeleted",
});
internal_static_google_chat_v1_ListMessagesResponse_descriptor =
- getDescriptor().getMessageType(11);
+ getDescriptor().getMessageType(13);
internal_static_google_chat_v1_ListMessagesResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_ListMessagesResponse_descriptor,
new java.lang.String[] {
"Messages", "NextPageToken",
});
- internal_static_google_chat_v1_DialogAction_descriptor = getDescriptor().getMessageType(12);
+ internal_static_google_chat_v1_DialogAction_descriptor = getDescriptor().getMessageType(14);
internal_static_google_chat_v1_DialogAction_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_DialogAction_descriptor,
new java.lang.String[] {
"Dialog", "ActionStatus", "Action",
});
- internal_static_google_chat_v1_Dialog_descriptor = getDescriptor().getMessageType(13);
+ internal_static_google_chat_v1_Dialog_descriptor = getDescriptor().getMessageType(15);
internal_static_google_chat_v1_Dialog_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_Dialog_descriptor,
new java.lang.String[] {
"Body",
});
- internal_static_google_chat_v1_CardWithId_descriptor = getDescriptor().getMessageType(14);
+ internal_static_google_chat_v1_CardWithId_descriptor = getDescriptor().getMessageType(16);
internal_static_google_chat_v1_CardWithId_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_chat_v1_CardWithId_descriptor,
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java
index de3b0b9ea651..9377b036a1bc 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java
@@ -63,6 +63,7 @@ private QuotedMessageMetadata(com.google.protobuf.GeneratedMessage.Builder> bu
private QuotedMessageMetadata() {
name_ = "";
+ quoteType_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -80,6 +81,168 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.chat.v1.QuotedMessageMetadata.Builder.class);
}
+ /**
+ *
+ *
+ * + * The quote type of the quoted message. + *+ * + * Protobuf enum {@code google.chat.v1.QuotedMessageMetadata.QuoteType} + */ + public enum QuoteType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Reserved. This value is unused. + *+ * + *
QUOTE_TYPE_UNSPECIFIED = 0;
+ */
+ QUOTE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * If quote_type is `REPLY`, you can do the following: + * + * * If you're replying in a thread, you can quote another message in that + * thread. + * + * * If you're creating a root message, you can quote another root message + * in that space. + * + * You can't quote a message reply from a different thread. + *+ * + *
REPLY = 1;
+ */
+ REPLY(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "QuoteType");
+ }
+
+ /**
+ *
+ *
+ * + * Reserved. This value is unused. + *+ * + *
QUOTE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int QUOTE_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * If quote_type is `REPLY`, you can do the following: + * + * * If you're replying in a thread, you can quote another message in that + * thread. + * + * * If you're creating a root message, you can quote another root message + * in that space. + * + * You can't quote a message reply from a different thread. + *+ * + *
REPLY = 1;
+ */
+ public static final int REPLY_VALUE = 1;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static QuoteType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static QuoteType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return QUOTE_TYPE_UNSPECIFIED;
+ case 1:
+ return REPLY;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for quoteType.
+ */
+ @java.lang.Override
+ public int getQuoteTypeValue() {
+ return quoteType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The quoteType.
+ */
+ @java.lang.Override
+ public com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType() {
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType result =
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType.forNumber(quoteType_);
+ return result == null
+ ? com.google.chat.v1.QuotedMessageMetadata.QuoteType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int QUOTED_MESSAGE_SNAPSHOT_FIELD_NUMBER = 5;
+ private com.google.chat.v1.QuotedMessageSnapshot quotedMessageSnapshot_;
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the quotedMessageSnapshot field is set.
+ */
+ @java.lang.Override
+ public boolean hasQuotedMessageSnapshot() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The quotedMessageSnapshot.
+ */
+ @java.lang.Override
+ public com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot() {
+ return quotedMessageSnapshot_ == null
+ ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()
+ : quotedMessageSnapshot_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder() {
+ return quotedMessageSnapshot_ == null
+ ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()
+ : quotedMessageSnapshot_;
+ }
+
+ public static final int FORWARDED_METADATA_FIELD_NUMBER = 6;
+ private com.google.chat.v1.ForwardedMetadata forwardedMetadata_;
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardedMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasForwardedMetadata() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardedMetadata.
+ */
+ @java.lang.Override
+ public com.google.chat.v1.ForwardedMetadata getForwardedMetadata() {
+ return forwardedMetadata_ == null
+ ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance()
+ : forwardedMetadata_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder() {
+ return forwardedMetadata_ == null
+ ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance()
+ : forwardedMetadata_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -242,6 +571,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getLastUpdateTime());
}
+ if (quoteType_
+ != com.google.chat.v1.QuotedMessageMetadata.QuoteType.QUOTE_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(4, quoteType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(5, getQuotedMessageSnapshot());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(6, getForwardedMetadata());
+ }
getUnknownFields().writeTo(output);
}
@@ -257,6 +596,17 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUpdateTime());
}
+ if (quoteType_
+ != com.google.chat.v1.QuotedMessageMetadata.QuoteType.QUOTE_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, quoteType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQuotedMessageSnapshot());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getForwardedMetadata());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -277,6 +627,15 @@ public boolean equals(final java.lang.Object obj) {
if (hasLastUpdateTime()) {
if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false;
}
+ if (quoteType_ != other.quoteType_) return false;
+ if (hasQuotedMessageSnapshot() != other.hasQuotedMessageSnapshot()) return false;
+ if (hasQuotedMessageSnapshot()) {
+ if (!getQuotedMessageSnapshot().equals(other.getQuotedMessageSnapshot())) return false;
+ }
+ if (hasForwardedMetadata() != other.hasForwardedMetadata()) return false;
+ if (hasForwardedMetadata()) {
+ if (!getForwardedMetadata().equals(other.getForwardedMetadata())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -294,6 +653,16 @@ public int hashCode() {
hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getLastUpdateTime().hashCode();
}
+ hash = (37 * hash) + QUOTE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + quoteType_;
+ if (hasQuotedMessageSnapshot()) {
+ hash = (37 * hash) + QUOTED_MESSAGE_SNAPSHOT_FIELD_NUMBER;
+ hash = (53 * hash) + getQuotedMessageSnapshot().hashCode();
+ }
+ if (hasForwardedMetadata()) {
+ hash = (37 * hash) + FORWARDED_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getForwardedMetadata().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -446,6 +815,8 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
internalGetLastUpdateTimeFieldBuilder();
+ internalGetQuotedMessageSnapshotFieldBuilder();
+ internalGetForwardedMetadataFieldBuilder();
}
}
@@ -459,6 +830,17 @@ public Builder clear() {
lastUpdateTimeBuilder_.dispose();
lastUpdateTimeBuilder_ = null;
}
+ quoteType_ = 0;
+ quotedMessageSnapshot_ = null;
+ if (quotedMessageSnapshotBuilder_ != null) {
+ quotedMessageSnapshotBuilder_.dispose();
+ quotedMessageSnapshotBuilder_ = null;
+ }
+ forwardedMetadata_ = null;
+ if (forwardedMetadataBuilder_ != null) {
+ forwardedMetadataBuilder_.dispose();
+ forwardedMetadataBuilder_ = null;
+ }
return this;
}
@@ -504,6 +886,23 @@ private void buildPartial0(com.google.chat.v1.QuotedMessageMetadata result) {
lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.quoteType_ = quoteType_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.quotedMessageSnapshot_ =
+ quotedMessageSnapshotBuilder_ == null
+ ? quotedMessageSnapshot_
+ : quotedMessageSnapshotBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.forwardedMetadata_ =
+ forwardedMetadataBuilder_ == null
+ ? forwardedMetadata_
+ : forwardedMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -527,6 +926,15 @@ public Builder mergeFrom(com.google.chat.v1.QuotedMessageMetadata other) {
if (other.hasLastUpdateTime()) {
mergeLastUpdateTime(other.getLastUpdateTime());
}
+ if (other.quoteType_ != 0) {
+ setQuoteTypeValue(other.getQuoteTypeValue());
+ }
+ if (other.hasQuotedMessageSnapshot()) {
+ mergeQuotedMessageSnapshot(other.getQuotedMessageSnapshot());
+ }
+ if (other.hasForwardedMetadata()) {
+ mergeForwardedMetadata(other.getForwardedMetadata());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -566,6 +974,26 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 32:
+ {
+ quoteType_ = input.readEnum();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 32
+ case 42:
+ {
+ input.readMessage(
+ internalGetQuotedMessageSnapshotFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 42
+ case 50:
+ {
+ input.readMessage(
+ internalGetForwardedMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -991,6 +1419,554 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
return lastUpdateTimeBuilder_;
}
+ private int quoteType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for quoteType.
+ */
+ @java.lang.Override
+ public int getQuoteTypeValue() {
+ return quoteType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for quoteType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuoteTypeValue(int value) {
+ quoteType_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The quoteType.
+ */
+ @java.lang.Override
+ public com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType() {
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType result =
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType.forNumber(quoteType_);
+ return result == null
+ ? com.google.chat.v1.QuotedMessageMetadata.QuoteType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The quoteType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuoteType(com.google.chat.v1.QuotedMessageMetadata.QuoteType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ quoteType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQuoteType() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ quoteType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.chat.v1.QuotedMessageSnapshot quotedMessageSnapshot_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.QuotedMessageSnapshot,
+ com.google.chat.v1.QuotedMessageSnapshot.Builder,
+ com.google.chat.v1.QuotedMessageSnapshotOrBuilder>
+ quotedMessageSnapshotBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the quotedMessageSnapshot field is set.
+ */
+ public boolean hasQuotedMessageSnapshot() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The quotedMessageSnapshot.
+ */
+ public com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot() {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ return quotedMessageSnapshot_ == null
+ ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()
+ : quotedMessageSnapshot_;
+ } else {
+ return quotedMessageSnapshotBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setQuotedMessageSnapshot(com.google.chat.v1.QuotedMessageSnapshot value) {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ quotedMessageSnapshot_ = value;
+ } else {
+ quotedMessageSnapshotBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setQuotedMessageSnapshot(
+ com.google.chat.v1.QuotedMessageSnapshot.Builder builderForValue) {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ quotedMessageSnapshot_ = builderForValue.build();
+ } else {
+ quotedMessageSnapshotBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeQuotedMessageSnapshot(com.google.chat.v1.QuotedMessageSnapshot value) {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && quotedMessageSnapshot_ != null
+ && quotedMessageSnapshot_
+ != com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()) {
+ getQuotedMessageSnapshotBuilder().mergeFrom(value);
+ } else {
+ quotedMessageSnapshot_ = value;
+ }
+ } else {
+ quotedMessageSnapshotBuilder_.mergeFrom(value);
+ }
+ if (quotedMessageSnapshot_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearQuotedMessageSnapshot() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ quotedMessageSnapshot_ = null;
+ if (quotedMessageSnapshotBuilder_ != null) {
+ quotedMessageSnapshotBuilder_.dispose();
+ quotedMessageSnapshotBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.QuotedMessageSnapshot.Builder getQuotedMessageSnapshotBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return internalGetQuotedMessageSnapshotFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder() {
+ if (quotedMessageSnapshotBuilder_ != null) {
+ return quotedMessageSnapshotBuilder_.getMessageOrBuilder();
+ } else {
+ return quotedMessageSnapshot_ == null
+ ? com.google.chat.v1.QuotedMessageSnapshot.getDefaultInstance()
+ : quotedMessageSnapshot_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.QuotedMessageSnapshot,
+ com.google.chat.v1.QuotedMessageSnapshot.Builder,
+ com.google.chat.v1.QuotedMessageSnapshotOrBuilder>
+ internalGetQuotedMessageSnapshotFieldBuilder() {
+ if (quotedMessageSnapshotBuilder_ == null) {
+ quotedMessageSnapshotBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.QuotedMessageSnapshot,
+ com.google.chat.v1.QuotedMessageSnapshot.Builder,
+ com.google.chat.v1.QuotedMessageSnapshotOrBuilder>(
+ getQuotedMessageSnapshot(), getParentForChildren(), isClean());
+ quotedMessageSnapshot_ = null;
+ }
+ return quotedMessageSnapshotBuilder_;
+ }
+
+ private com.google.chat.v1.ForwardedMetadata forwardedMetadata_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.ForwardedMetadata,
+ com.google.chat.v1.ForwardedMetadata.Builder,
+ com.google.chat.v1.ForwardedMetadataOrBuilder>
+ forwardedMetadataBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardedMetadata field is set.
+ */
+ public boolean hasForwardedMetadata() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardedMetadata.
+ */
+ public com.google.chat.v1.ForwardedMetadata getForwardedMetadata() {
+ if (forwardedMetadataBuilder_ == null) {
+ return forwardedMetadata_ == null
+ ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance()
+ : forwardedMetadata_;
+ } else {
+ return forwardedMetadataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setForwardedMetadata(com.google.chat.v1.ForwardedMetadata value) {
+ if (forwardedMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ forwardedMetadata_ = value;
+ } else {
+ forwardedMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setForwardedMetadata(
+ com.google.chat.v1.ForwardedMetadata.Builder builderForValue) {
+ if (forwardedMetadataBuilder_ == null) {
+ forwardedMetadata_ = builderForValue.build();
+ } else {
+ forwardedMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeForwardedMetadata(com.google.chat.v1.ForwardedMetadata value) {
+ if (forwardedMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && forwardedMetadata_ != null
+ && forwardedMetadata_ != com.google.chat.v1.ForwardedMetadata.getDefaultInstance()) {
+ getForwardedMetadataBuilder().mergeFrom(value);
+ } else {
+ forwardedMetadata_ = value;
+ }
+ } else {
+ forwardedMetadataBuilder_.mergeFrom(value);
+ }
+ if (forwardedMetadata_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearForwardedMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ forwardedMetadata_ = null;
+ if (forwardedMetadataBuilder_ != null) {
+ forwardedMetadataBuilder_.dispose();
+ forwardedMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.ForwardedMetadata.Builder getForwardedMetadataBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return internalGetForwardedMetadataFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder() {
+ if (forwardedMetadataBuilder_ != null) {
+ return forwardedMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return forwardedMetadata_ == null
+ ? com.google.chat.v1.ForwardedMetadata.getDefaultInstance()
+ : forwardedMetadata_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.ForwardedMetadata,
+ com.google.chat.v1.ForwardedMetadata.Builder,
+ com.google.chat.v1.ForwardedMetadataOrBuilder>
+ internalGetForwardedMetadataFieldBuilder() {
+ if (forwardedMetadataBuilder_ == null) {
+ forwardedMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.chat.v1.ForwardedMetadata,
+ com.google.chat.v1.ForwardedMetadata.Builder,
+ com.google.chat.v1.ForwardedMetadataOrBuilder>(
+ getForwardedMetadata(), getParentForChildren(), isClean());
+ forwardedMetadata_ = null;
+ }
+ return forwardedMetadataBuilder_;
+ }
+
// @@protoc_insertion_point(builder_scope:google.chat.v1.QuotedMessageMetadata)
}
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java
index c7aa0f7630e3..fca40dfcc1ad 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadataOrBuilder.java
@@ -123,4 +123,125 @@ public interface QuotedMessageMetadataOrBuilder
*
*/
com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for quoteType.
+ */
+ int getQuoteTypeValue();
+
+ /**
+ *
+ *
+ * + * Optional. Specifies the quote type. If not set, defaults to REPLY in the + * message read/write path for backward compatibility. + *+ * + *
+ * .google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The quoteType.
+ */
+ com.google.chat.v1.QuotedMessageMetadata.QuoteType getQuoteType();
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the quotedMessageSnapshot field is set.
+ */
+ boolean hasQuotedMessageSnapshot();
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The quotedMessageSnapshot.
+ */
+ com.google.chat.v1.QuotedMessageSnapshot getQuotedMessageSnapshot();
+
+ /**
+ *
+ *
+ * + * Output only. A snapshot of the quoted message's content. + *+ * + *
+ * .google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the forwardedMetadata field is set.
+ */
+ boolean hasForwardedMetadata();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The forwardedMetadata.
+ */
+ com.google.chat.v1.ForwardedMetadata getForwardedMetadata();
+
+ /**
+ *
+ *
+ * + * Output only. Metadata about the source space of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * .google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder();
}
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java
new file mode 100644
index 000000000000..744e518cbf5a
--- /dev/null
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageSnapshot.java
@@ -0,0 +1,2176 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/chat/v1/message.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.chat.v1;
+
+/**
+ *
+ *
+ * + * Provides a snapshot of the content of the quoted message at the time of + * quoting or forwarding + *+ * + * Protobuf type {@code google.chat.v1.QuotedMessageSnapshot} + */ +@com.google.protobuf.Generated +public final class QuotedMessageSnapshot extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.QuotedMessageSnapshot) + QuotedMessageSnapshotOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QuotedMessageSnapshot"); + } + + // Use QuotedMessageSnapshot.newBuilder() to construct. + private QuotedMessageSnapshot(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private QuotedMessageSnapshot() { + sender_ = ""; + text_ = ""; + formattedText_ = ""; + annotations_ = java.util.Collections.emptyList(); + attachments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_QuotedMessageSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.QuotedMessageSnapshot.class, + com.google.chat.v1.QuotedMessageSnapshot.Builder.class); + } + + public static final int SENDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sender_ = ""; + + /** + * + * + *
+ * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The sender.
+ */
+ @java.lang.Override
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sender_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for sender.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TEXT_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object text_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The text.
+ */
+ @java.lang.Override
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for text.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FORMATTED_TEXT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object formattedText_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The formattedText.
+ */
+ @java.lang.Override
+ public java.lang.String getFormattedText() {
+ java.lang.Object ref = formattedText_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ formattedText_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for formattedText.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFormattedTextBytes() {
+ java.lang.Object ref = formattedText_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ formattedText_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ANNOTATIONS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.chat.v1.AnnotationOrBuilder>
+ getAnnotationsOrBuilderList() {
+ return annotations_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getAnnotationsCount() {
+ return annotations_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.Annotation getAnnotations(int index) {
+ return annotations_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) {
+ return annotations_.get(index);
+ }
+
+ public static final int ATTACHMENTS_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.chat.v1.AttachmentOrBuilder>
+ getAttachmentsOrBuilderList() {
+ return attachments_;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getAttachmentsCount() {
+ return attachments_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.Attachment getAttachments(int index) {
+ return attachments_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index) {
+ return attachments_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sender_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, sender_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, text_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(formattedText_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, formattedText_);
+ }
+ for (int i = 0; i < annotations_.size(); i++) {
+ output.writeMessage(4, annotations_.get(i));
+ }
+ for (int i = 0; i < attachments_.size(); i++) {
+ output.writeMessage(5, attachments_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sender_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sender_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, text_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(formattedText_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, formattedText_);
+ }
+ for (int i = 0; i < annotations_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, annotations_.get(i));
+ }
+ for (int i = 0; i < attachments_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, attachments_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.chat.v1.QuotedMessageSnapshot)) {
+ return super.equals(obj);
+ }
+ com.google.chat.v1.QuotedMessageSnapshot other = (com.google.chat.v1.QuotedMessageSnapshot) obj;
+
+ if (!getSender().equals(other.getSender())) return false;
+ if (!getText().equals(other.getText())) return false;
+ if (!getFormattedText().equals(other.getFormattedText())) return false;
+ if (!getAnnotationsList().equals(other.getAnnotationsList())) return false;
+ if (!getAttachmentsList().equals(other.getAttachmentsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SENDER_FIELD_NUMBER;
+ hash = (53 * hash) + getSender().hashCode();
+ hash = (37 * hash) + TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getText().hashCode();
+ hash = (37 * hash) + FORMATTED_TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getFormattedText().hashCode();
+ if (getAnnotationsCount() > 0) {
+ hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getAnnotationsList().hashCode();
+ }
+ if (getAttachmentsCount() > 0) {
+ hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getAttachmentsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.chat.v1.QuotedMessageSnapshot parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.chat.v1.QuotedMessageSnapshot prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Provides a snapshot of the content of the quoted message at the time of + * quoting or forwarding + *+ * + * Protobuf type {@code google.chat.v1.QuotedMessageSnapshot} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The sender.
+ */
+ public java.lang.String getSender() {
+ java.lang.Object ref = sender_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sender_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for sender.
+ */
+ public com.google.protobuf.ByteString getSenderBytes() {
+ java.lang.Object ref = sender_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sender_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The sender to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSender(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sender_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSender() {
+ sender_ = getDefaultInstance().getSender();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for sender to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSenderBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sender_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object text_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The text.
+ */
+ public java.lang.String getText() {
+ java.lang.Object ref = text_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ text_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for text.
+ */
+ public com.google.protobuf.ByteString getTextBytes() {
+ java.lang.Object ref = text_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ text_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The text to set.
+ * @return This builder for chaining.
+ */
+ public Builder setText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ text_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearText() {
+ text_ = getDefaultInstance().getText();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for text to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ text_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object formattedText_ = "";
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The formattedText.
+ */
+ public java.lang.String getFormattedText() {
+ java.lang.Object ref = formattedText_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ formattedText_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for formattedText.
+ */
+ public com.google.protobuf.ByteString getFormattedTextBytes() {
+ java.lang.Object ref = formattedText_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ formattedText_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The formattedText to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFormattedText(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ formattedText_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFormattedText() {
+ formattedText_ = getDefaultInstance().getFormattedText();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for formattedText to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFormattedTextBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ formattedText_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getAnnotationsCount() {
+ if (annotationsBuilder_ == null) {
+ return annotations_.size();
+ } else {
+ return annotationsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Annotation getAnnotations(int index) {
+ if (annotationsBuilder_ == null) {
+ return annotations_.get(index);
+ } else {
+ return annotationsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAnnotations(int index, com.google.chat.v1.Annotation value) {
+ if (annotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationsIsMutable();
+ annotations_.set(index, value);
+ onChanged();
+ } else {
+ annotationsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAnnotations(
+ int index, com.google.chat.v1.Annotation.Builder builderForValue) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ annotations_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAnnotations(com.google.chat.v1.Annotation value) {
+ if (annotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationsIsMutable();
+ annotations_.add(value);
+ onChanged();
+ } else {
+ annotationsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAnnotations(int index, com.google.chat.v1.Annotation value) {
+ if (annotationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationsIsMutable();
+ annotations_.add(index, value);
+ onChanged();
+ } else {
+ annotationsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAnnotations(com.google.chat.v1.Annotation.Builder builderForValue) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ annotations_.add(builderForValue.build());
+ onChanged();
+ } else {
+ annotationsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAnnotations(
+ int index, com.google.chat.v1.Annotation.Builder builderForValue) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ annotations_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllAnnotations(
+ java.lang.Iterable extends com.google.chat.v1.Annotation> values) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotations_);
+ onChanged();
+ } else {
+ annotationsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearAnnotations() {
+ if (annotationsBuilder_ == null) {
+ annotations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ annotationsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeAnnotations(int index) {
+ if (annotationsBuilder_ == null) {
+ ensureAnnotationsIsMutable();
+ annotations_.remove(index);
+ onChanged();
+ } else {
+ annotationsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Annotation.Builder getAnnotationsBuilder(int index) {
+ return internalGetAnnotationsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) {
+ if (annotationsBuilder_ == null) {
+ return annotations_.get(index);
+ } else {
+ return annotationsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.chat.v1.AnnotationOrBuilder>
+ getAnnotationsOrBuilderList() {
+ if (annotationsBuilder_ != null) {
+ return annotationsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(annotations_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Annotation.Builder addAnnotationsBuilder() {
+ return internalGetAnnotationsFieldBuilder()
+ .addBuilder(com.google.chat.v1.Annotation.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Annotation.Builder addAnnotationsBuilder(int index) {
+ return internalGetAnnotationsFieldBuilder()
+ .addBuilder(index, com.google.chat.v1.Annotation.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getAttachmentsCount() {
+ if (attachmentsBuilder_ == null) {
+ return attachments_.size();
+ } else {
+ return attachmentsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Attachment getAttachments(int index) {
+ if (attachmentsBuilder_ == null) {
+ return attachments_.get(index);
+ } else {
+ return attachmentsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAttachments(int index, com.google.chat.v1.Attachment value) {
+ if (attachmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttachmentsIsMutable();
+ attachments_.set(index, value);
+ onChanged();
+ } else {
+ attachmentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAttachments(
+ int index, com.google.chat.v1.Attachment.Builder builderForValue) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ attachmentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAttachments(com.google.chat.v1.Attachment value) {
+ if (attachmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttachmentsIsMutable();
+ attachments_.add(value);
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAttachments(int index, com.google.chat.v1.Attachment value) {
+ if (attachmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttachmentsIsMutable();
+ attachments_.add(index, value);
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAttachments(com.google.chat.v1.Attachment.Builder builderForValue) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.add(builderForValue.build());
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAttachments(
+ int index, com.google.chat.v1.Attachment.Builder builderForValue) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllAttachments(
+ java.lang.Iterable extends com.google.chat.v1.Attachment> values) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachments_);
+ onChanged();
+ } else {
+ attachmentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearAttachments() {
+ if (attachmentsBuilder_ == null) {
+ attachments_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ } else {
+ attachmentsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeAttachments(int index) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.remove(index);
+ onChanged();
+ } else {
+ attachmentsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Attachment.Builder getAttachmentsBuilder(int index) {
+ return internalGetAttachmentsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index) {
+ if (attachmentsBuilder_ == null) {
+ return attachments_.get(index);
+ } else {
+ return attachmentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.chat.v1.AttachmentOrBuilder>
+ getAttachmentsOrBuilderList() {
+ if (attachmentsBuilder_ != null) {
+ return attachmentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(attachments_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Attachment.Builder addAttachmentsBuilder() {
+ return internalGetAttachmentsFieldBuilder()
+ .addBuilder(com.google.chat.v1.Attachment.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.chat.v1.Attachment.Builder addAttachmentsBuilder(int index) {
+ return internalGetAttachmentsFieldBuilder()
+ .addBuilder(index, com.google.chat.v1.Attachment.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List+ * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The sender.
+ */
+ java.lang.String getSender();
+
+ /**
+ *
+ *
+ * + * Output only. The quoted message's author name. + * Populated for both REPLY & FORWARD quote types. + *+ * + *
string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for sender.
+ */
+ com.google.protobuf.ByteString getSenderBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The text.
+ */
+ java.lang.String getText();
+
+ /**
+ *
+ *
+ * + * Output only. Snapshot of the quoted message's text content. + *+ * + *
string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for text.
+ */
+ com.google.protobuf.ByteString getTextBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The formattedText.
+ */
+ java.lang.String getFormattedText();
+
+ /**
+ *
+ *
+ * + * Output only. Contains the quoted message `text` with markups added to + * support rich formatting like hyperlinks,custom emojis, markup, etc. + * Populated only for FORWARD quote type. + *+ * + *
string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for formattedText.
+ */
+ com.google.protobuf.ByteString getFormattedTextBytes();
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.Annotation getAnnotations(int index);
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getAnnotationsCount();
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.chat.v1.AnnotationOrBuilder> getAnnotationsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Output only. Annotations parsed from the text body of the quoted message. + * Populated only for FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List+ * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.Attachment getAttachments(int index);
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getAttachmentsCount();
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.chat.v1.AttachmentOrBuilder> getAttachmentsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Output only. Attachments that were part of the quoted message. These are + * copies of the quoted message's attachment metadata. Populated only for + * FORWARD quote type. + *+ * + *
+ * repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.chat.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index);
+}
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto
index 47b1d66de202..60f1ad0c8ea3 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -292,6 +292,23 @@ message QuotedMessageMetadata {
pattern: "spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}"
};
+ // The quote type of the quoted message.
+ enum QuoteType {
+ // Reserved. This value is unused.
+ QUOTE_TYPE_UNSPECIFIED = 0;
+
+ // If quote_type is `REPLY`, you can do the following:
+ //
+ // * If you're replying in a thread, you can quote another message in that
+ // thread.
+ //
+ // * If you're creating a root message, you can quote another root message
+ // in that space.
+ //
+ // You can't quote a message reply from a different thread.
+ REPLY = 1;
+ }
+
// Required. Resource name of the message that is quoted.
//
// Format: `spaces/{space}/messages/{message}`
@@ -310,6 +327,63 @@ message QuotedMessageMetadata {
// message, the request fails.
google.protobuf.Timestamp last_update_time = 2
[(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Specifies the quote type. If not set, defaults to REPLY in the
+ // message read/write path for backward compatibility.
+ QuoteType quote_type = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. A snapshot of the quoted message's content.
+ QuotedMessageSnapshot quoted_message_snapshot = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Metadata about the source space of the quoted message.
+ // Populated only for FORWARD quote type.
+ ForwardedMetadata forwarded_metadata = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Provides a snapshot of the content of the quoted message at the time of
+// quoting or forwarding
+message QuotedMessageSnapshot {
+ // Output only. The quoted message's author name.
+ // Populated for both REPLY & FORWARD quote types.
+ string sender = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Snapshot of the quoted message's text content.
+ string text = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Contains the quoted message `text` with markups added to
+ // support rich formatting like hyperlinks,custom emojis, markup, etc.
+ // Populated only for FORWARD quote type.
+ string formatted_text = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Annotations parsed from the text body of the quoted message.
+ // Populated only for FORWARD quote type.
+ repeated Annotation annotations = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Attachments that were part of the quoted message. These are
+ // copies of the quoted message's attachment metadata. Populated only for
+ // FORWARD quote type.
+ repeated Attachment attachments = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Metadata about the source space from which a message was forwarded.
+message ForwardedMetadata {
+ // Output only. The resource name of the source space.
+ // Format: spaces/{space}
+ string space = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = { type: "chat.googleapis.com/Space" }
+ ];
+
+ // Output only. The display name of the source space or DM at the time of
+ // forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this
+ // is the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is
+ // a generated name based on members' first names, limited to 5 including the
+ // creator (e.g., "User A, User B").
+ string space_display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// A thread in a Google Chat space. For example usage, see
diff --git a/java-chronicle/README.md b/java-chronicle/README.md
index 1effacfdceea..94d52a7b2383 100644
--- a/java-chronicle/README.md
+++ b/java-chronicle/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
UpdateQuotaAdjusterSettings
RPC Method for updating QuotaAdjusterSettings based on the request
Updates the QuotaAdjusterSettings for the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*GetQuotaAdjusterSettings
RPC Method for getting QuotaAdjusterSettings based on the request
Gets the QuotaAdjusterSettings for the specified resource.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -251,7 +251,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -284,7 +284,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for updating QuotaAdjusterSettings based on the request + * Updates the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -318,7 +318,7 @@ public final QuotaAdjusterSettings updateQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -351,7 +351,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings(QuotaAdjusterSetting // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -382,7 +382,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *
Sample code: * @@ -415,7 +415,7 @@ public final QuotaAdjusterSettings getQuotaAdjusterSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * RPC Method for getting QuotaAdjusterSettings based on the request + * Gets the QuotaAdjusterSettings for the specified resource. * *
Sample code: * diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java index 3c9cb1bd94b9..addd059f73a1 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsManagerGrpc.java @@ -215,7 +215,7 @@ public interface AsyncService { * * *
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
default void updateQuotaAdjusterSettings(
@@ -230,7 +230,7 @@ default void updateQuotaAdjusterSettings(
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
default void getQuotaAdjusterSettings(
@@ -290,7 +290,7 @@ protected QuotaAdjusterSettingsManagerStub build(
*
*
*
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
public void updateQuotaAdjusterSettings(
@@ -307,7 +307,7 @@ public void updateQuotaAdjusterSettings(
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
public void getQuotaAdjusterSettings(
@@ -349,7 +349,7 @@ protected QuotaAdjusterSettingsManagerBlockingV2Stub build(
*
*
*
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjusterSettings(
@@ -363,7 +363,7 @@ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjust
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings getQuotaAdjusterSettings(
@@ -403,7 +403,7 @@ protected QuotaAdjusterSettingsManagerBlockingStub build(
*
*
*
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjusterSettings(
@@ -416,7 +416,7 @@ public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings updateQuotaAdjust
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.api.cloudquotas.v1beta.QuotaAdjusterSettings getQuotaAdjusterSettings(
@@ -455,7 +455,7 @@ protected QuotaAdjusterSettingsManagerFutureStub build(
*
*
*
- * RPC Method for updating QuotaAdjusterSettings based on the request
+ * Updates the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
@@ -470,7 +470,7 @@ protected QuotaAdjusterSettingsManagerFutureStub build(
*
*
*
- * RPC Method for getting QuotaAdjusterSettings based on the request
+ * Gets the QuotaAdjusterSettings for the specified resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java
index c6dc4fb8f60a..2579b3a972a1 100644
--- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java
+++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettings.java
@@ -255,9 +255,13 @@ private Enablement(int value) {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -282,9 +286,13 @@ public java.lang.String getName() {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1003,9 +1011,13 @@ public Builder mergeFrom(
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1029,9 +1041,13 @@ public java.lang.String getName() {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1055,9 +1071,13 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1080,9 +1100,13 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -1101,9 +1125,13 @@ public Builder clearName() {
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java
index 9134319c5554..4fdfec7861a3 100644
--- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java
+++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/java/com/google/api/cloudquotas/v1beta/QuotaAdjusterSettingsOrBuilder.java
@@ -30,9 +30,13 @@ public interface QuotaAdjusterSettingsOrBuilder
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
@@ -46,9 +50,13 @@ public interface QuotaAdjusterSettingsOrBuilder
*
*
*
- * Identifier. Name of the config would be of the format:
+ * Identifier. Name of the configuration, in the formats below:
+ *
+ * * For a project:
* projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ * * For a folder:
* folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ * * For an organization:
* organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
*
*
diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto
index 15b0f299c2ef..8f8d3eb4e846 100644
--- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto
+++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/src/main/proto/google/api/cloudquotas/v1beta/quota_adjuster_settings.proto
@@ -42,7 +42,7 @@ service QuotaAdjusterSettingsManager {
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform";
- // RPC Method for updating QuotaAdjusterSettings based on the request
+ // Updates the QuotaAdjusterSettings for the specified resource.
rpc UpdateQuotaAdjusterSettings(UpdateQuotaAdjusterSettingsRequest)
returns (QuotaAdjusterSettings) {
option (google.api.http) = {
@@ -61,7 +61,7 @@ service QuotaAdjusterSettingsManager {
"quota_adjuster_settings,update_mask";
}
- // RPC Method for getting QuotaAdjusterSettings based on the request
+ // Gets the QuotaAdjusterSettings for the specified resource.
rpc GetQuotaAdjusterSettings(GetQuotaAdjusterSettingsRequest)
returns (QuotaAdjusterSettings) {
option (google.api.http) = {
@@ -130,9 +130,13 @@ message QuotaAdjusterSettings {
DISABLED = 3;
}
- // Identifier. Name of the config would be of the format:
+ // Identifier. Name of the configuration, in the formats below:
+ //
+ // * For a project:
// projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
+ // * For a folder:
// folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
+ // * For an organization:
// organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md
index 5e33f33f520f..f4e3ec985904 100644
--- a/java-cloudsecuritycompliance/README.md
+++ b/java-cloudsecuritycompliance/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -299,7 +299,7 @@ public java.lang.String getRoleArn() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -329,7 +329,8 @@ public com.google.protobuf.ByteString getRoleArnBytes() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -354,7 +355,8 @@ public java.lang.String getKekUri() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -926,7 +928,7 @@ public Builder clearKeyType() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -951,7 +953,7 @@ public java.lang.String getRoleArn() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -976,7 +978,7 @@ public com.google.protobuf.ByteString getRoleArnBytes() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -1000,7 +1002,7 @@ public Builder setRoleArn(java.lang.String value) {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -1020,7 +1022,7 @@ public Builder clearRoleArn() {
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -1046,7 +1048,8 @@ public Builder setRoleArnBytes(com.google.protobuf.ByteString value) {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1070,7 +1073,8 @@ public java.lang.String getKekUri() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1094,7 +1098,8 @@ public com.google.protobuf.ByteString getKekUriBytes() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1117,7 +1122,8 @@ public Builder setKekUri(java.lang.String value) {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1136,7 +1142,8 @@ public Builder clearKekUri() {
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java
index 1c417aed7079..95f4e5466772 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AwsWrappedKeyInfoOrBuilder.java
@@ -62,7 +62,7 @@ public interface AwsWrappedKeyInfoOrBuilder
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -77,7 +77,7 @@ public interface AwsWrappedKeyInfoOrBuilder
*
* Required. The Amazon Resource Name of the IAM Role to assume for KMS
* decryption access. Should be in the format of
- * "arn:{partition}:iam::{account_id}:role/{role_name}"
+ * `arn:{partition}:iam::{account_id}:role/{role_name}`
*
*
* string role_arn = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -91,7 +91,8 @@ public interface AwsWrappedKeyInfoOrBuilder
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -105,7 +106,8 @@ public interface AwsWrappedKeyInfoOrBuilder
*
*
* Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- * the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ * the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ * `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java
index b5008a5741ca..85f4a762baef 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CartDataProto.java
@@ -70,13 +70,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010quantity\030\002 \001(\003B\003\340A\001\022\027\n\nunit_price\030\003 \001(\001"
+ "B\003\340A\001\022\024\n\007item_id\030\004 \001(\tB\003\340A\001\022Q\n\032additiona"
+ "l_item_parameters\030\005 \003(\0132(.google.ads.dat"
- + "amanager.v1.ItemParameterB\003\340A\001B\315\001\n\035com.g"
+ + "amanager.v1.ItemParameterB\003\340A\001B\312\001\n\035com.g"
+ "oogle.ads.datamanager.v1B\rCartDataProtoP"
- + "\001ZDgoogle.golang.org/genproto/googleapis"
- + "/ads/datamanager/v1;datamanager\252\002\031Google"
- + ".Ads.DataManager.V1\312\002\031Google\\Ads\\DataMan"
- + "ager\\V1\352\002\034Google::Ads::DataManager::V1b\006"
- + "proto3"
+ + "\001ZAcloud.google.com/go/datamanager/apiv1"
+ + "/datamanagerpb;datamanagerpb\252\002\031Google.Ad"
+ + "s.DataManager.V1\312\002\031Google\\Ads\\DataManage"
+ + "r\\V1\352\002\034Google::Ads::DataManager::V1b\006pro"
+ + "to3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java
index a3099c4f36c3..f9efcbc3b6e1 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ConsentProto.java
@@ -61,13 +61,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "tion\030\002 \001(\0162(.google.ads.datamanager.v1.C"
+ "onsentStatusB\003\340A\001*X\n\rConsentStatus\022\036\n\032CO"
+ "NSENT_STATUS_UNSPECIFIED\020\000\022\023\n\017CONSENT_GR"
- + "ANTED\020\001\022\022\n\016CONSENT_DENIED\020\002B\314\001\n\035com.goog"
- + "le.ads.datamanager.v1B\014ConsentProtoP\001ZDg"
- + "oogle.golang.org/genproto/googleapis/ads"
- + "/datamanager/v1;datamanager\252\002\031Google.Ads"
- + ".DataManager.V1\312\002\031Google\\Ads\\DataManager"
- + "\\V1\352\002\034Google::Ads::DataManager::V1b\006prot"
- + "o3"
+ + "ANTED\020\001\022\022\n\016CONSENT_DENIED\020\002B\311\001\n\035com.goog"
+ + "le.ads.datamanager.v1B\014ConsentProtoP\001ZAc"
+ + "loud.google.com/go/datamanager/apiv1/dat"
+ + "amanagerpb;datamanagerpb\252\002\031Google.Ads.Da"
+ + "taManager.V1\312\002\031Google\\Ads\\DataManager\\V1"
+ + "\352\002\034Google::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java
index 64023f8c2d40..dcba72cabe42 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java
@@ -79,12 +79,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "uct\022\027\n\023PRODUCT_UNSPECIFIED\020\000\022\016\n\nGOOGLE_A"
+ "DS\020\001\022\031\n\025DISPLAY_VIDEO_PARTNER\020\002\022\034\n\030DISPL"
+ "AY_VIDEO_ADVERTISER\020\003\022\020\n\014DATA_PARTNER\020\004\032"
- + "\002\030\001B\320\001\n\035com.google.ads.datamanager.v1B\020D"
- + "estinationProtoP\001ZDgoogle.golang.org/gen"
- + "proto/googleapis/ads/datamanager/v1;data"
- + "manager\252\002\031Google.Ads.DataManager.V1\312\002\031Go"
- + "ogle\\Ads\\DataManager\\V1\352\002\034Google::Ads::D"
- + "ataManager::V1b\006proto3"
+ + "\002\030\001B\315\001\n\035com.google.ads.datamanager.v1B\020D"
+ + "estinationProtoP\001ZAcloud.google.com/go/d"
+ + "atamanager/apiv1/datamanagerpb;datamanag"
+ + "erpb\252\002\031Google.Ads.DataManager.V1\312\002\031Googl"
+ + "e\\Ads\\DataManager\\V1\352\002\034Google::Ads::Data"
+ + "Manager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java
index d052b330b1ed..b6c5cf073868 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java
@@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "proto\022\031google.ads.datamanager.v1\032\037google"
+ "/api/field_behavior.proto\">\n\nDeviceInfo\022"
+ "\027\n\nuser_agent\030\001 \001(\tB\003\340A\001\022\027\n\nip_address\030\002"
- + " \001(\tB\003\340A\001B\317\001\n\035com.google.ads.datamanager"
- + ".v1B\017DeviceInfoProtoP\001ZDgoogle.golang.or"
- + "g/genproto/googleapis/ads/datamanager/v1"
- + ";datamanager\252\002\031Google.Ads.DataManager.V1"
- + "\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::A"
- + "ds::DataManager::V1b\006proto3"
+ + " \001(\tB\003\340A\001B\314\001\n\035com.google.ads.datamanager"
+ + ".v1B\017DeviceInfoProtoP\001ZAcloud.google.com"
+ + "/go/datamanager/apiv1/datamanagerpb;data"
+ + "managerpb\252\002\031Google.Ads.DataManager.V1\312\002\031"
+ + "Google\\Ads\\DataManager\\V1\352\002\034Google::Ads:"
+ + ":DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java
index 0d5374be2cd2..cc530e5c4306 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java
@@ -87,12 +87,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "encrypted_dek\030\004 \001(\tB\003\340A\002\";\n"
+ "\007KeyType\022\030\n"
+ "\024KEY_TYPE_UNSPECIFIED\020\000\022\026\n"
- + "\022XCHACHA20_POLY1305\020\001B\323\001\n"
- + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZDgoogle.golan"
- + "g.org/genproto/googleapis/ads/datamanage"
- + "r/v1;datamanager\252\002\031Google.Ads.DataManage"
- + "r.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Googl"
- + "e::Ads::DataManager::V1b\006proto3"
+ + "\022XCHACHA20_POLY1305\020\001B\320\001\n"
+ + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZAcloud.google"
+ + ".com/go/datamanager/apiv1/datamanagerpb;"
+ + "datamanagerpb\252\002\031Google.Ads.DataManager.V"
+ + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::"
+ + "Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java
index da92d6f29499..7be2b5520d81 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java
@@ -92,12 +92,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022INVALID_REQUEST_ID\0200\0224\n0MULTIPLE_DESTIN"
+ "ATIONS_FOR_GOOGLE_ANALYTICS_EVENT\0201\022\030\n\024F"
+ "IELD_VALUE_TOO_LONG\0202\022\025\n\021TOO_MANY_ELEMEN"
- + "TS\0203B\312\001\n\035com.google.ads.datamanager.v1B\n"
- + "ErrorProtoP\001ZDgoogle.golang.org/genproto"
- + "/googleapis/ads/datamanager/v1;datamanag"
- + "er\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\"
- + "Ads\\DataManager\\V1\352\002\034Google::Ads::DataMa"
- + "nager::V1b\006proto3"
+ + "TS\0203B\307\001\n\035com.google.ads.datamanager.v1B\n"
+ + "ErrorProtoP\001ZAcloud.google.com/go/datama"
+ + "nager/apiv1/datamanagerpb;datamanagerpb\252"
+ + "\002\031Google.Ads.DataManager.V1\312\002\031Google\\Ads"
+ + "\\DataManager\\V1\352\002\034Google::Ads::DataManag"
+ + "er::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java
index dc2cb39e4850..92cc8222a784 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EventProto.java
@@ -126,11 +126,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003APP\020\002\022\014\n"
+ "\010IN_STORE\020\003\022\t\n"
+ "\005PHONE\020\004\022\t\n"
- + "\005OTHER\020\005B\312\001\n"
+ + "\005OTHER\020\005B\307\001\n"
+ "\035com.google.ads.datamanager.v1B\n"
- + "EventProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/datamanager/v1;datamana"
- + "ger\252\002\031Google.Ads.DataManager.V1\312\002\031Google"
- + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
+ + "EventProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"
+ + "\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\Ad"
+ + "s\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java
index 078ca71fe26e..b11adc9dce76 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ExperimentalFieldProto.java
@@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "_field.proto\022\031google.ads.datamanager.v1\032"
+ "\037google/api/field_behavior.proto\";\n\021Expe"
+ "rimentalField\022\022\n\005field\030\001 \001(\tB\003\340A\001\022\022\n\005val"
- + "ue\030\002 \001(\tB\003\340A\001B\326\001\n\035com.google.ads.dataman"
- + "ager.v1B\026ExperimentalFieldProtoP\001ZDgoogl"
- + "e.golang.org/genproto/googleapis/ads/dat"
- + "amanager/v1;datamanager\252\002\031Google.Ads.Dat"
- + "aManager.V1\312\002\031Google\\Ads\\DataManager\\V1\352"
- + "\002\034Google::Ads::DataManager::V1b\006proto3"
+ + "ue\030\002 \001(\tB\003\340A\001B\323\001\n\035com.google.ads.dataman"
+ + "ager.v1B\026ExperimentalFieldProtoP\001ZAcloud"
+ + ".google.com/go/datamanager/apiv1/dataman"
+ + "agerpb;datamanagerpb\252\002\031Google.Ads.DataMa"
+ + "nager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034G"
+ + "oogle::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java
index 35166aee4e68..af83469e1247 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfo.java
@@ -332,7 +332,9 @@ public com.google.protobuf.ByteString getWipProviderBytes() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -359,7 +361,9 @@ public java.lang.String getKekUri() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1054,7 +1058,9 @@ public Builder setWipProviderBytes(com.google.protobuf.ByteString value) {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1080,7 +1086,9 @@ public java.lang.String getKekUri() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1106,7 +1114,9 @@ public com.google.protobuf.ByteString getKekUriBytes() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1131,7 +1141,9 @@ public Builder setKekUri(java.lang.String value) {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -1152,7 +1164,9 @@ public Builder clearKekUri() {
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java
index 841149635d5d..6c24d9acdf2b 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GcpWrappedKeyInfoOrBuilder.java
@@ -93,7 +93,9 @@ public interface GcpWrappedKeyInfoOrBuilder
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -109,7 +111,9 @@ public interface GcpWrappedKeyInfoOrBuilder
* Required. Google Cloud Platform [Cloud Key Management Service resource
* ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
* format of
- * "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ * or
+ * `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
*
*
* string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java
index 8d1d8e4fec73..aaaf7d0a7d3e 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java
@@ -151,13 +151,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "datamanager.v1.RetrieveRequestStatusResp"
+ "onse\"\"\202\323\344\223\002\034\022\032/v1/requestStatus:retrieve"
+ "\032K\312A\032datamanager.googleapis.com\322A+https:"
- + "//www.googleapis.com/auth/datamanagerB\325\001"
+ + "//www.googleapis.com/auth/datamanagerB\322\001"
+ "\n\035com.google.ads.datamanager.v1B\025Ingesti"
- + "onServiceProtoP\001ZDgoogle.golang.org/genp"
- + "roto/googleapis/ads/datamanager/v1;datam"
- + "anager\252\002\031Google.Ads.DataManager.V1\312\002\031Goo"
- + "gle\\Ads\\DataManager\\V1\352\002\034Google::Ads::Da"
- + "taManager::V1b\006proto3"
+ + "onServiceProtoP\001ZAcloud.google.com/go/da"
+ + "tamanager/apiv1/datamanagerpb;datamanage"
+ + "rpb\252\002\031Google.Ads.DataManager.V1\312\002\031Google"
+ + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataM"
+ + "anager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java
index dff9b0f78dda..86101d19dc2c 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ItemParameterProto.java
@@ -57,12 +57,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "er.proto\022\031google.ads.datamanager.v1\032\037goo"
+ "gle/api/field_behavior.proto\"@\n\rItemPara"
+ "meter\022\033\n\016parameter_name\030\001 \001(\tB\003\340A\002\022\022\n\005va"
- + "lue\030\002 \001(\tB\003\340A\002B\322\001\n\035com.google.ads.datama"
- + "nager.v1B\022ItemParameterProtoP\001ZDgoogle.g"
- + "olang.org/genproto/googleapis/ads/datama"
- + "nager/v1;datamanager\252\002\031Google.Ads.DataMa"
- + "nager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034G"
- + "oogle::Ads::DataManager::V1b\006proto3"
+ + "lue\030\002 \001(\tB\003\340A\002B\317\001\n\035com.google.ads.datama"
+ + "nager.v1B\022ItemParameterProtoP\001ZAcloud.go"
+ + "ogle.com/go/datamanager/apiv1/datamanage"
+ + "rpb;datamanagerpb\252\002\031Google.Ads.DataManag"
+ + "er.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Goog"
+ + "le::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java
index 3a8c335cd94a..c1c8a89fc981 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MatchRateProto.java
@@ -59,12 +59,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "TCH_RATE_RANGE_61_TO_70\020\007\022\035\n\031MATCH_RATE_"
+ "RANGE_71_TO_80\020\010\022\035\n\031MATCH_RATE_RANGE_81_"
+ "TO_90\020\t\022\036\n\032MATCH_RATE_RANGE_91_TO_100\020\nB"
- + "\316\001\n\035com.google.ads.datamanager.v1B\016Match"
- + "RateProtoP\001ZDgoogle.golang.org/genproto/"
- + "googleapis/ads/datamanager/v1;datamanage"
- + "r\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\A"
- + "ds\\DataManager\\V1\352\002\034Google::Ads::DataMan"
- + "ager::V1b\006proto3"
+ + "\313\001\n\035com.google.ads.datamanager.v1B\016Match"
+ + "RateProtoP\001ZAcloud.google.com/go/dataman"
+ + "ager/apiv1/datamanagerpb;datamanagerpb\252\002"
+ + "\031Google.Ads.DataManager.V1\312\002\031Google\\Ads\\"
+ + "DataManager\\V1\352\002\034Google::Ads::DataManage"
+ + "r::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java
index ed757a546550..ec5c38d9a3b9 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java
@@ -124,12 +124,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "SER_IDENTIFIER_DECRYPTION_ERROR\020\007\022,\n(PRO"
+ "CESSING_WARNING_REASON_INTERNAL_ERROR\020\010\022"
+ "-\n)PROCESSING_WARNING_REASON_AWS_AUTH_FA"
- + "ILED\020\tB\325\001\n\035com.google.ads.datamanager.v1"
- + "B\025ProcessingErrorsProtoP\001ZDgoogle.golang"
- + ".org/genproto/googleapis/ads/datamanager"
- + "/v1;datamanager\252\002\031Google.Ads.DataManager"
- + ".V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google"
- + "::Ads::DataManager::V1b\006proto3"
+ + "ILED\020\tB\322\001\n\035com.google.ads.datamanager.v1"
+ + "B\025ProcessingErrorsProtoP\001ZAcloud.google."
+ + "com/go/datamanager/apiv1/datamanagerpb;d"
+ + "atamanagerpb\252\002\031Google.Ads.DataManager.V1"
+ + "\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::A"
+ + "ds::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java
index 2c6160e4b327..708ae83dda00 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java
@@ -147,13 +147,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "cord_count\030\001 \001(\003\022\025\n\rpair_id_count\030\002 \001(\003\""
+ "i\n\rRequestStatus\022\032\n\026REQUEST_STATUS_UNKNO"
+ "WN\020\000\022\013\n\007SUCCESS\020\001\022\016\n\nPROCESSING\020\002\022\n\n\006FAI"
- + "LED\020\003\022\023\n\017PARTIAL_SUCCESS\020\004B\010\n\006statusB\340\001\n"
+ + "LED\020\003\022\023\n\017PARTIAL_SUCCESS\020\004B\010\n\006statusB\335\001\n"
+ "\035com.google.ads.datamanager.v1B RequestS"
- + "tatusPerDestinationProtoP\001ZDgoogle.golan"
- + "g.org/genproto/googleapis/ads/datamanage"
- + "r/v1;datamanager\252\002\031Google.Ads.DataManage"
- + "r.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Googl"
- + "e::Ads::DataManager::V1b\006proto3"
+ + "tatusPerDestinationProtoP\001ZAcloud.google"
+ + ".com/go/datamanager/apiv1/datamanagerpb;"
+ + "datamanagerpb\252\002\031Google.Ads.DataManager.V"
+ + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::"
+ + "Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java
index f5665198d57f..0d30a1a79b02 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TermsOfServiceProto.java
@@ -61,12 +61,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "r.v1.TermsOfServiceStatusB\003\340A\001*[\n\024TermsO"
+ "fServiceStatus\022\'\n#TERMS_OF_SERVICE_STATU"
+ "S_UNSPECIFIED\020\000\022\014\n\010ACCEPTED\020\001\022\014\n\010REJECTE"
- + "D\020\002B\323\001\n\035com.google.ads.datamanager.v1B\023T"
- + "ermsOfServiceProtoP\001ZDgoogle.golang.org/"
- + "genproto/googleapis/ads/datamanager/v1;d"
- + "atamanager\252\002\031Google.Ads.DataManager.V1\312\002"
- + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads"
- + "::DataManager::V1b\006proto3"
+ + "D\020\002B\320\001\n\035com.google.ads.datamanager.v1B\023T"
+ + "ermsOfServiceProtoP\001ZAcloud.google.com/g"
+ + "o/datamanager/apiv1/datamanagerpb;datama"
+ + "nagerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Go"
+ + "ogle\\Ads\\DataManager\\V1\352\002\034Google::Ads::D"
+ + "ataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java
index ca0ccfac4aa1..e672e98b0fc1 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java
@@ -76,11 +76,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "given_name\030\001 \001(\tB\003\340A\002\022\030\n"
+ "\013family_name\030\002 \001(\tB\003\340A\002\022\030\n"
+ "\013region_code\030\003 \001(\tB\003\340A\002\022\030\n"
- + "\013postal_code\030\004 \001(\tB\003\340A\002B\315\001\n"
+ + "\013postal_code\030\004 \001(\tB\003\340A\002B\312\001\n"
+ "\035com.google.ads.datamanager.v1B\r"
- + "UserDataProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/datamanager/v1;da"
- + "tamanager\252\002\031Google.Ads.DataManager.V1\312\002\031"
- + "Google\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
+ + "UserDataProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;dataman"
+ + "agerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Goo"
+ + "gle\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java
index 775afcf48623..fcb0534cee35 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserPropertiesProto.java
@@ -72,12 +72,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "W\020\001\022\r\n\tRETURNING\020\002\022\r\n\tREENGAGED\020\003*[\n\023Cus"
+ "tomerValueBucket\022%\n!CUSTOMER_VALUE_BUCKE"
+ "T_UNSPECIFIED\020\000\022\007\n\003LOW\020\001\022\n\n\006MEDIUM\020\002\022\010\n\004"
- + "HIGH\020\003B\323\001\n\035com.google.ads.datamanager.v1"
- + "B\023UserPropertiesProtoP\001ZDgoogle.golang.o"
- + "rg/genproto/googleapis/ads/datamanager/v"
- + "1;datamanager\252\002\031Google.Ads.DataManager.V"
- + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::"
- + "Ads::DataManager::V1b\006proto3"
+ + "HIGH\020\003B\320\001\n\035com.google.ads.datamanager.v1"
+ + "B\023UserPropertiesProtoP\001ZAcloud.google.co"
+ + "m/go/datamanager/apiv1/datamanagerpb;dat"
+ + "amanagerpb\252\002\031Google.Ads.DataManager.V1\312\002"
+ + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads"
+ + "::DataManager::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto
index 9940294a00e7..8bbda8751542 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import "google/ads/datamanager/v1/user_data.proto";
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "AudienceProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto
index 26c483a00395..5ddd8d9ba6fe 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/cart_data.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ import "google/ads/datamanager/v1/item_parameter.proto";
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "CartDataProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto
index 9e7cad217b67..4fec4a414c52 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/consent.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ConsentProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto
index 41c41ea34aab..5cdb43a689e0 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "DestinationProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto
index ed59798b737f..702c6022c03b 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "DeviceInfoProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto
index 421aab420127..365e5cd12e05 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "EncryptionInfoProto";
option java_package = "com.google.ads.datamanager.v1";
@@ -62,7 +62,9 @@ message GcpWrappedKeyInfo {
// Required. Google Cloud Platform [Cloud Key Management Service resource
// ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the
// format of
- // "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
+ // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
+ // or
+ // `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
string kek_uri = 3 [(google.api.field_behavior) = REQUIRED];
// Required. The base64 encoded encrypted data encryption key.
@@ -85,11 +87,12 @@ message AwsWrappedKeyInfo {
// Required. The Amazon Resource Name of the IAM Role to assume for KMS
// decryption access. Should be in the format of
- // "arn:{partition}:iam::{account_id}:role/{role_name}"
+ // `arn:{partition}:iam::{account_id}:role/{role_name}`
string role_arn = 2 [(google.api.field_behavior) = REQUIRED];
// Required. The URI of the AWS KMS key used to decrypt the DEK. Should be in
- // the format of "arn:{partition}:kms:{region}:{account_id}:key/{key_id}"
+ // the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}` or
+ // `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`
string kek_uri = 3 [(google.api.field_behavior) = REQUIRED];
// Required. The base64 encoded encrypted data encryption key.
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto
index 28f9d22ee3ab..44c3ed5e79ee 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@ syntax = "proto3";
package google.ads.datamanager.v1;
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ErrorProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto
index c24be7e56d0b..213af3f461c3 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/event.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import "google/api/field_behavior.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "EventProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto
index 48ca08b28981..da9eb1063984 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/experimental_field.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ExperimentalFieldProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto
index dd6066117c3b..d388f7691b90 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import "google/api/client.proto";
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "IngestionServiceProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto
index 711ef464384d..59ae9e3e2337 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/item_parameter.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ItemParameterProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto
index f6309d2e3864..1fdfc7ed9ef9 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/match_rate.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@ syntax = "proto3";
package google.ads.datamanager.v1;
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "MatchRateProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto
index 1a28815b7a56..c2d77837de5a 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@ syntax = "proto3";
package google.ads.datamanager.v1;
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "ProcessingErrorsProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto
index bac562d00988..739851242af8 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import "google/ads/datamanager/v1/match_rate.proto";
import "google/ads/datamanager/v1/processing_errors.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "RequestStatusPerDestinationProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto
index 71a6b4ce8994..c4231dfa5aa1 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/terms_of_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "TermsOfServiceProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto
index 649f9f41d150..887c02b30e97 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "UserDataProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto
index 0a28a561d20b..75c59e2b0309 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto
+++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_properties.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package google.ads.datamanager.v1;
import "google/api/field_behavior.proto";
option csharp_namespace = "Google.Ads.DataManager.V1";
-option go_package = "google.golang.org/genproto/googleapis/ads/datamanager/v1;datamanager";
+option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb";
option java_multiple_files = true;
option java_outer_classname = "UserPropertiesProto";
option java_package = "com.google.ads.datamanager.v1";
diff --git a/java-dataplex/README.md b/java-dataplex/README.md
index 3e34de47b11c..173cc3b406aa 100644
--- a/java-dataplex/README.md
+++ b/java-dataplex/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
+ * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The outputMultipleUtterances.
+ */
+ @java.lang.Override
+ public boolean getOutputMultipleUtterances() {
+ return outputMultipleUtterances_;
+ }
+
public static final int ENABLE_DEBUGGING_INFO_FIELD_NUMBER = 19;
private boolean enableDebuggingInfo_ = false;
@@ -1192,6 +1213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (inputCase_ == 17) {
com.google.protobuf.GeneratedMessage.writeString(output, 17, input_);
}
+ if (outputMultipleUtterances_ != false) {
+ output.writeBool(18, outputMultipleUtterances_);
+ }
if (enableDebuggingInfo_ != false) {
output.writeBool(19, enableDebuggingInfo_);
}
@@ -1259,6 +1283,9 @@ public int getSerializedSize() {
if (inputCase_ == 17) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(17, input_);
}
+ if (outputMultipleUtterances_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, outputMultipleUtterances_);
+ }
if (enableDebuggingInfo_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, enableDebuggingInfo_);
}
@@ -1302,6 +1329,7 @@ public boolean equals(final java.lang.Object obj) {
if (getEnableExtendedStreaming() != other.getEnableExtendedStreaming()) return false;
if (getEnablePartialAutomatedAgentReply() != other.getEnablePartialAutomatedAgentReply())
return false;
+ if (getOutputMultipleUtterances() != other.getOutputMultipleUtterances()) return false;
if (getEnableDebuggingInfo() != other.getEnableDebuggingInfo()) return false;
if (!getConfigCase().equals(other.getConfigCase())) return false;
switch (configCase_) {
@@ -1371,6 +1399,8 @@ public int hashCode() {
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashBoolean(getEnablePartialAutomatedAgentReply());
+ hash = (37 * hash) + OUTPUT_MULTIPLE_UTTERANCES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputMultipleUtterances());
hash = (37 * hash) + ENABLE_DEBUGGING_INFO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDebuggingInfo());
switch (configCase_) {
@@ -1640,6 +1670,7 @@ public Builder clear() {
cxCurrentPage_ = "";
enableExtendedStreaming_ = false;
enablePartialAutomatedAgentReply_ = false;
+ outputMultipleUtterances_ = false;
enableDebuggingInfo_ = false;
configCase_ = 0;
config_ = null;
@@ -1721,6 +1752,9 @@ private void buildPartial0(
result.enablePartialAutomatedAgentReply_ = enablePartialAutomatedAgentReply_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.outputMultipleUtterances_ = outputMultipleUtterances_;
+ }
+ if (((from_bitField0_ & 0x00010000) != 0)) {
result.enableDebuggingInfo_ = enableDebuggingInfo_;
}
result.bitField0_ |= to_bitField0_;
@@ -1787,6 +1821,9 @@ public Builder mergeFrom(
if (other.getEnablePartialAutomatedAgentReply() != false) {
setEnablePartialAutomatedAgentReply(other.getEnablePartialAutomatedAgentReply());
}
+ if (other.getOutputMultipleUtterances() != false) {
+ setOutputMultipleUtterances(other.getOutputMultipleUtterances());
+ }
if (other.getEnableDebuggingInfo() != false) {
setEnableDebuggingInfo(other.getEnableDebuggingInfo());
}
@@ -1962,10 +1999,16 @@ public Builder mergeFrom(
input_ = s;
break;
} // case 138
+ case 144:
+ {
+ outputMultipleUtterances_ = input.readBool();
+ bitField0_ |= 0x00008000;
+ break;
+ } // case 144
case 152:
{
enableDebuggingInfo_ = input.readBool();
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
break;
} // case 152
case 162:
@@ -4614,6 +4657,68 @@ public Builder clearEnablePartialAutomatedAgentReply() {
return this;
}
+ private boolean outputMultipleUtterances_;
+
+ /**
+ *
+ *
+ * + * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The outputMultipleUtterances.
+ */
+ @java.lang.Override
+ public boolean getOutputMultipleUtterances() {
+ return outputMultipleUtterances_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The outputMultipleUtterances to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputMultipleUtterances(boolean value) {
+
+ outputMultipleUtterances_ = value;
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputMultipleUtterances() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ outputMultipleUtterances_ = false;
+ onChanged();
+ return this;
+ }
+
private boolean enableDebuggingInfo_;
/**
@@ -4649,7 +4754,7 @@ public boolean getEnableDebuggingInfo() {
public Builder setEnableDebuggingInfo(boolean value) {
enableDebuggingInfo_ = value;
- bitField0_ |= 0x00008000;
+ bitField0_ |= 0x00010000;
onChanged();
return this;
}
@@ -4667,7 +4772,7 @@ public Builder setEnableDebuggingInfo(boolean value) {
* @return This builder for chaining.
*/
public Builder clearEnableDebuggingInfo() {
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00010000);
enableDebuggingInfo_ = false;
onChanged();
return this;
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java
index b6e54478a37c..b9ddf2c92846 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentRequestOrBuilder.java
@@ -627,6 +627,21 @@ public interface StreamingAnalyzeContentRequestOrBuilder
*/
boolean getEnablePartialAutomatedAgentReply();
+ /**
+ *
+ *
+ * + * Optional. If multiple utterances are detected in the audio stream, process + * them individually instead of stitching them together to form a single + * utterance. + *+ * + *
bool output_multiple_utterances = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The outputMultipleUtterances.
+ */
+ boolean getOutputMultipleUtterances();
+
/**
*
*
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto
index bdfaad14076e..61cd31352728 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto
@@ -1,4 +1,4 @@
-// Copyright 2025 Google LLC
+// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -1044,6 +1044,11 @@ message StreamingAnalyzeContentRequest {
bool enable_partial_automated_agent_reply = 12
[(google.api.field_behavior) = OPTIONAL];
+ // Optional. If multiple utterances are detected in the audio stream, process
+ // them individually instead of stitching them together to form a single
+ // utterance.
+ bool output_multiple_utterances = 18 [(google.api.field_behavior) = OPTIONAL];
+
// if true, `StreamingAnalyzeContentResponse.debugging_info` will get
// populated.
bool enable_debugging_info = 19;
diff --git a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java
index f4f20e621c9d..78aae13ceb61 100644
--- a/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java
+++ b/java-dialogflow/samples/snippets/generated/com/google/cloud/dialogflow/v2beta1/participants/streaminganalyzecontent/AsyncStreamingAnalyzeContent.java
@@ -55,6 +55,7 @@ public static void asyncStreamingAnalyzeContent() throws Exception {
.setCxCurrentPage("cxCurrentPage1596907507")
.setEnableExtendedStreaming(true)
.setEnablePartialAutomatedAgentReply(true)
+ .setOutputMultipleUtterances(true)
.setEnableDebuggingInfo(true)
.build();
bidiStream.send(request);
diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md
index 8fd973e561a4..8c53ca88c1b5 100644
--- a/java-discoveryengine/README.md
+++ b/java-discoveryengine/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
ListLocations
Lists information about the supported locations for this service.
Lists information about the supported locations for this service.This method can be called in two ways: + *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -1970,7 +1977,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -2004,7 +2017,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java index 94cfd93882fe..78f44d77f4ef 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java @@ -197,7 +197,8 @@ *
ListLocations
Lists information about the supported locations for this service.
Lists information about the supported locations for this service.This method can be called in two ways: + *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -1172,7 +1179,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * @@ -1206,7 +1219,13 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists information about the supported locations for this service.This method can be called in + * two ways: + * + *
* **List all public locations:** Use the path `GET /v1/locations`.* + * **List project-visible locations:** Use the path`GET + * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or + * other locations specifically visibleto the project. * *
Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json index 584f27b28f5b..e33156928b23 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json @@ -818,6 +818,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$ClarificationQuestionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion$SelectionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext", "queryAllDeclaredConstructors": true, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java new file mode 100644 index 000000000000..854442dd2fb7 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationMessage.java @@ -0,0 +1,1005 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * A message of questions to help clarify the user's query. This is returned + * when the system cannot confidently answer the user's question. + *+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationMessage} + */ +@com.google.protobuf.Generated +public final class ClarificationMessage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClarificationMessage) + ClarificationMessageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClarificationMessage"); + } + + // Use ClarificationMessage.newBuilder() to construct. + private ClarificationMessage(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ClarificationMessage() { + questions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder.class); + } + + public static final int QUESTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder>
+ getQuestionsOrBuilderList() {
+ return questions_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getQuestionsCount() {
+ return questions_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(int index) {
+ return questions_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder
+ getQuestionsOrBuilder(int index) {
+ return questions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < questions_.size(); i++) {
+ output.writeMessage(1, questions_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < questions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, questions_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage other =
+ (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) obj;
+
+ if (!getQuestionsList().equals(other.getQuestionsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getQuestionsCount() > 0) {
+ hash = (37 * hash) + QUESTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getQuestionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * A message of questions to help clarify the user's query. This is returned + * when the system cannot confidently answer the user's question. + *+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getQuestionsCount() {
+ if (questionsBuilder_ == null) {
+ return questions_.size();
+ } else {
+ return questionsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(
+ int index) {
+ if (questionsBuilder_ == null) {
+ return questions_.get(index);
+ } else {
+ return questionsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuestions(
+ int index, com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) {
+ if (questionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureQuestionsIsMutable();
+ questions_.set(index, value);
+ onChanged();
+ } else {
+ questionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setQuestions(
+ int index,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ questions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ questionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addQuestions(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) {
+ if (questionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureQuestionsIsMutable();
+ questions_.add(value);
+ onChanged();
+ } else {
+ questionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addQuestions(
+ int index, com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion value) {
+ if (questionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureQuestionsIsMutable();
+ questions_.add(index, value);
+ onChanged();
+ } else {
+ questionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addQuestions(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ questions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ questionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addQuestions(
+ int index,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder builderForValue) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ questions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ questionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllQuestions(
+ java.lang.Iterable<
+ ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion>
+ values) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, questions_);
+ onChanged();
+ } else {
+ questionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearQuestions() {
+ if (questionsBuilder_ == null) {
+ questions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ questionsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeQuestions(int index) {
+ if (questionsBuilder_ == null) {
+ ensureQuestionsIsMutable();
+ questions_.remove(index);
+ onChanged();
+ } else {
+ questionsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder
+ getQuestionsBuilder(int index) {
+ return internalGetQuestionsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder
+ getQuestionsOrBuilder(int index) {
+ if (questionsBuilder_ == null) {
+ return questions_.get(index);
+ } else {
+ return questionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder>
+ getQuestionsOrBuilderList() {
+ if (questionsBuilder_ != null) {
+ return questionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(questions_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder
+ addQuestionsBuilder() {
+ return internalGetQuestionsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder
+ addQuestionsBuilder(int index) {
+ return internalGetQuestionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion getQuestions(int index);
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getQuestionsCount();
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder>
+ getQuestionsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Required. A batch of clarification questions to ask the user. + *+ * + *
+ * repeated .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion questions = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestionOrBuilder getQuestionsOrBuilder(
+ int index);
+}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java
new file mode 100644
index 000000000000..b30171fb97e5
--- /dev/null
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClarificationQuestion.java
@@ -0,0 +1,1637 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: google/cloud/geminidataanalytics/v1beta/data_chat_service.proto
+// Protobuf Java Version: 4.33.2
+
+package com.google.cloud.geminidataanalytics.v1beta;
+
+/**
+ *
+ *
+ * + * Represents a single question to the user to help clarify their query. + *+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationQuestion} + */ +@com.google.protobuf.Generated +public final class ClarificationQuestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) + ClarificationQuestionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ClarificationQuestion"); + } + + // Use ClarificationQuestion.newBuilder() to construct. + private ClarificationQuestion(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private ClarificationQuestion() { + question_ = ""; + selectionMode_ = 0; + options_ = com.google.protobuf.LazyStringArrayList.emptyList(); + clarificationQuestionType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.class, + com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.Builder.class); + } + + /** + * + * + *
+ * The selection mode for the clarification question. + *+ * + * Protobuf enum {@code + * google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode} + */ + public enum SelectionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified selection mode. + *+ * + *
SELECTION_MODE_UNSPECIFIED = 0;
+ */
+ SELECTION_MODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The user can select only one option. + *+ * + *
SINGLE_SELECT = 1;
+ */
+ SINGLE_SELECT(1),
+ /**
+ *
+ *
+ * + * The user can select multiple options. + *+ * + *
MULTI_SELECT = 2;
+ */
+ MULTI_SELECT(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "SelectionMode");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified selection mode. + *+ * + *
SELECTION_MODE_UNSPECIFIED = 0;
+ */
+ public static final int SELECTION_MODE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * The user can select only one option. + *+ * + *
SINGLE_SELECT = 1;
+ */
+ public static final int SINGLE_SELECT_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * The user can select multiple options. + *+ * + *
MULTI_SELECT = 2;
+ */
+ public static final int MULTI_SELECT_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static SelectionMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static SelectionMode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return SELECTION_MODE_UNSPECIFIED;
+ case 1:
+ return SINGLE_SELECT;
+ case 2:
+ return MULTI_SELECT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The type of clarification question. + * This enum may be extended with new values in the future. + *+ * + * Protobuf enum {@code + * google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType} + */ + public enum ClarificationQuestionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified clarification question type. + *+ * + *
CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0;
+ */
+ CLARIFICATION_QUESTION_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The clarification question is for filter values. + *+ * + *
FILTER_VALUES = 1;
+ */
+ FILTER_VALUES(1),
+ /**
+ *
+ *
+ * + * The clarification question is for data fields. This is a generic term + * encompassing SQL columns, Looker fields (dimensions/measures), or + * nested data structure properties. + *+ * + *
FIELDS = 2;
+ */
+ FIELDS(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 2,
+ /* suffix= */ "",
+ "ClarificationQuestionType");
+ }
+
+ /**
+ *
+ *
+ * + * Unspecified clarification question type. + *+ * + *
CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int CLARIFICATION_QUESTION_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * The clarification question is for filter values. + *+ * + *
FILTER_VALUES = 1;
+ */
+ public static final int FILTER_VALUES_VALUE = 1;
+
+ /**
+ *
+ *
+ * + * The clarification question is for data fields. This is a generic term + * encompassing SQL columns, Looker fields (dimensions/measures), or + * nested data structure properties. + *+ * + *
FIELDS = 2;
+ */
+ public static final int FIELDS_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ClarificationQuestionType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ClarificationQuestionType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CLARIFICATION_QUESTION_TYPE_UNSPECIFIED;
+ case 1:
+ return FILTER_VALUES;
+ case 2:
+ return FIELDS;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The question.
+ */
+ @java.lang.Override
+ public java.lang.String getQuestion() {
+ java.lang.Object ref = question_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ question_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for question.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getQuestionBytes() {
+ java.lang.Object ref = question_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ question_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SELECTION_MODE_FIELD_NUMBER = 2;
+ private int selectionMode_ = 0;
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for selectionMode.
+ */
+ @java.lang.Override
+ public int getSelectionModeValue() {
+ return selectionMode_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The selectionMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ getSelectionMode() {
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode result =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode.forNumber(
+ selectionMode_);
+ return result == null
+ ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ .UNRECOGNIZED
+ : result;
+ }
+
+ public static final int OPTIONS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList options_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the options.
+ */
+ public com.google.protobuf.ProtocolStringList getOptionsList() {
+ return options_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of options.
+ */
+ public int getOptionsCount() {
+ return options_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The options at the given index.
+ */
+ public java.lang.String getOptions(int index) {
+ return options_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the options at the given index.
+ */
+ public com.google.protobuf.ByteString getOptionsBytes(int index) {
+ return options_.getByteString(index);
+ }
+
+ public static final int CLARIFICATION_QUESTION_TYPE_FIELD_NUMBER = 4;
+ private int clarificationQuestionType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for clarificationQuestionType.
+ */
+ @java.lang.Override
+ public int getClarificationQuestionTypeValue() {
+ return clarificationQuestionType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarificationQuestionType.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ getClarificationQuestionType() {
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ result =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.forNumber(clarificationQuestionType_);
+ return result == null
+ ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, question_);
+ }
+ if (selectionMode_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ .SELECTION_MODE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, selectionMode_);
+ }
+ for (int i = 0; i < options_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, options_.getRaw(i));
+ }
+ if (clarificationQuestionType_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.CLARIFICATION_QUESTION_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(4, clarificationQuestionType_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, question_);
+ }
+ if (selectionMode_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ .SELECTION_MODE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, selectionMode_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < options_.size(); i++) {
+ dataSize += computeStringSizeNoTag(options_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getOptionsList().size();
+ }
+ if (clarificationQuestionType_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.CLARIFICATION_QUESTION_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, clarificationQuestionType_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion other =
+ (com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion) obj;
+
+ if (!getQuestion().equals(other.getQuestion())) return false;
+ if (selectionMode_ != other.selectionMode_) return false;
+ if (!getOptionsList().equals(other.getOptionsList())) return false;
+ if (clarificationQuestionType_ != other.clarificationQuestionType_) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + QUESTION_FIELD_NUMBER;
+ hash = (53 * hash) + getQuestion().hashCode();
+ hash = (37 * hash) + SELECTION_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + selectionMode_;
+ if (getOptionsCount() > 0) {
+ hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getOptionsList().hashCode();
+ }
+ hash = (37 * hash) + CLARIFICATION_QUESTION_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + clarificationQuestionType_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Represents a single question to the user to help clarify their query. + *+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClarificationQuestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The question.
+ */
+ public java.lang.String getQuestion() {
+ java.lang.Object ref = question_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ question_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for question.
+ */
+ public com.google.protobuf.ByteString getQuestionBytes() {
+ java.lang.Object ref = question_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ question_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The question to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuestion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ question_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearQuestion() {
+ question_ = getDefaultInstance().getQuestion();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for question to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuestionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ question_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int selectionMode_ = 0;
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for selectionMode.
+ */
+ @java.lang.Override
+ public int getSelectionModeValue() {
+ return selectionMode_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The enum numeric value on the wire for selectionMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSelectionModeValue(int value) {
+ selectionMode_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The selectionMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ getSelectionMode() {
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode result =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode.forNumber(
+ selectionMode_);
+ return result == null
+ ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ .UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The selectionMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSelectionMode(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ selectionMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSelectionMode() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ selectionMode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList options_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureOptionsIsMutable() {
+ if (!options_.isModifiable()) {
+ options_ = new com.google.protobuf.LazyStringArrayList(options_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the options.
+ */
+ public com.google.protobuf.ProtocolStringList getOptionsList() {
+ options_.makeImmutable();
+ return options_;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of options.
+ */
+ public int getOptionsCount() {
+ return options_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The options at the given index.
+ */
+ public java.lang.String getOptions(int index) {
+ return options_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the options at the given index.
+ */
+ public com.google.protobuf.ByteString getOptionsBytes(int index) {
+ return options_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index to set the value at.
+ * @param value The options to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOptions(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOptionsIsMutable();
+ options_.set(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The options to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOptions(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOptionsIsMutable();
+ options_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param values The options to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllOptions(java.lang.Iterable+ * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOptions() {
+ options_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes of the options to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOptionsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureOptionsIsMutable();
+ options_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private int clarificationQuestionType_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for clarificationQuestionType.
+ */
+ @java.lang.Override
+ public int getClarificationQuestionTypeValue() {
+ return clarificationQuestionType_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for clarificationQuestionType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClarificationQuestionTypeValue(int value) {
+ clarificationQuestionType_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarificationQuestionType.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType
+ getClarificationQuestionType() {
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ result =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.forNumber(clarificationQuestionType_);
+ return result == null
+ ? com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ .ClarificationQuestionType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The clarificationQuestionType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClarificationQuestionType(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ clarificationQuestionType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearClarificationQuestionType() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ clarificationQuestionType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ClarificationQuestion)
+ private static final com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion();
+ }
+
+ public static com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The question.
+ */
+ java.lang.String getQuestion();
+
+ /**
+ *
+ *
+ * + * Required. The natural language question to ask the user. + *+ * + *
string question = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for question.
+ */
+ com.google.protobuf.ByteString getQuestionBytes();
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for selectionMode.
+ */
+ int getSelectionModeValue();
+
+ /**
+ *
+ *
+ * + * Required. The selection mode for this question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode selection_mode = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The selectionMode.
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.SelectionMode
+ getSelectionMode();
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return A list containing the options.
+ */
+ java.util.List+ * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The count of options.
+ */
+ int getOptionsCount();
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the element to return.
+ * @return The options at the given index.
+ */
+ java.lang.String getOptions(int index);
+
+ /**
+ *
+ *
+ * + * Required. A list of distinct options for the user to choose from. + * The number of options is limited to a maximum of 5. + *+ * + *
repeated string options = 3 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the options at the given index.
+ */
+ com.google.protobuf.ByteString getOptionsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for clarificationQuestionType.
+ */
+ int getClarificationQuestionTypeValue();
+
+ /**
+ *
+ *
+ * + * Optional. The type of clarification question. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType clarification_question_type = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarificationQuestionType.
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationQuestion.ClarificationQuestionType
+ getClarificationQuestionType();
+}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java
index d542da82c0fc..317d05bdbfc7 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java
@@ -172,6 +172,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -298,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004kind\"%\n"
+ "\013UserMessage\022\016\n"
+ "\004text\030\001 \001(\tH\000B\006\n"
- + "\004kind\"\310\004\n\r"
+ + "\004kind\"\245\005\n\r"
+ "SystemMessage\022D\n"
+ "\004text\030\001"
+ " \001(\01324.google.cloud.geminidataanalytics.v1beta.TextMessageH\000\022H\n"
@@ -314,14 +322,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "minidataanalytics.v1beta.ErrorMessageH\000\022W\n"
+ "\017example_queries\030\r"
+ " \001(\01327.google.cloud."
- + "geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022\025\n"
+ + "geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022[\n\r"
+ + "clarification\030\016 \001(\0132=.google"
+ + ".cloud.geminidataanalytics.v1beta.ClarificationMessageB\003\340A\001H\000\022\025\n"
+ "\010group_id\030\014 \001(\005H\001\210\001\001B\006\n"
+ "\004kindB\013\n"
- + "\t_group_id\"\316\001\n"
+ + "\t_group_id\"\356\001\n"
+ "\013TextMessage\022\022\n"
+ "\005parts\030\001 \003(\tB\003\340A\001\022U\n"
- + "\ttext_type\030\002 \001(\0162=.google.clo"
- + "ud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\"T\n"
+ + "\ttext_type\030\002 \001(\016"
+ + "2=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\022\036\n"
+ + "\021thought_signature\030\003 \001(\014B\003\340A\001\"T\n"
+ "\010TextType\022\031\n"
+ "\025TEXT_TYPE_UNSPECIFIED\020\000\022\022\n"
+ "\016FINAL_RESPONSE\020\001\022\013\n"
@@ -336,46 +347,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013SchemaQuery\022\025\n"
+ "\010question\030\001 \001(\tB\003\340A\001\"]\n"
+ "\014SchemaResult\022M\n"
- + "\013datasources\030\001 \003(\01323.google.clou"
- + "d.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n"
+ + "\013datasources\030\001 \003(\01323.google"
+ + ".cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n"
+ "\013DataMessage\022C\n"
- + "\005query\030\001 \001(\01322.go"
- + "ogle.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r"
+ + "\005query\030\001 \001(\013"
+ + "22.google.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r"
+ "generated_sql\030\002 \001(\tH\000\022E\n"
+ "\006result\030\003"
+ " \001(\01323.google.cloud.geminidataanalytics.v1beta.DataResultH\000\022Z\n"
- + "\026generated_looker_query\030\004"
- + " \001(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n"
- + "\r"
- + "big_query_job\030\005"
- + " \001(\01324.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\000B\006\n"
+ + "\026generated_looker_query\030\004 \001(\01324.google.cloud.ge"
+ + "minidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n\r"
+ + "big_query_job\030\005 \001(\01324.google.cloud"
+ + ".geminidataanalytics.v1beta.BigQueryJobH\000B\006\n"
+ "\004kind\"\337\001\n"
+ "\tDataQuery\022K\n"
- + "\006looker\030\004 \001(\01324.goo"
- + "gle.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n"
+ + "\006looker\030\004 \001(\0132"
+ + "4.google.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n"
+ "\010question\030\001 \001(\tB\003\340A\001\022\021\n"
+ "\004name\030\003 \001(\tB\003\340A\001\022M\n"
- + "\013datasources\030\002 \003(\01323"
- + ".google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n"
- + "query_type\"\221\001\n\n"
+ + "\013datasources\030\002 "
+ + "\003(\01323.google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n"
+ + "query_type\"\307\001\n\n"
+ "DataResult\022\021\n"
+ "\004name\030\003 \001(\tB\003\340A\001\022D\n"
- + "\006schema\030\005 \001(\013"
- + "2/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n"
- + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n"
+ + "\006schema\030\005"
+ + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n"
+ + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\0224\n"
+ + "\016formatted_data\030\006"
+ + " \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n"
+ "\013BigQueryJob\022\027\n\n"
+ "project_id\030\001 \001(\tB\003\340A\002\022\023\n"
+ "\006job_id\030\002 \001(\tB\003\340A\002\022\025\n"
+ "\010location\030\005 \001(\tB\003\340A\001\022_\n"
- + "\021destination_table\030\003 \001(\0132?.google.cloud.geminidataanal"
- + "ytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n"
- + "\006schema\030\007"
- + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n"
+ + "\021destination_table\030\003 \001(\0132?.google.c"
+ + "loud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n"
+ + "\006schema\030\007 \001(\0132/.go"
+ + "ogle.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n"
+ "\017AnalysisMessage\022G\n"
- + "\005query\030\001 \001(\01326.google.cloud"
- + ".geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n"
- + "\016progress_event\030\002 \001(\01326.google.clo"
- + "ud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n"
+ + "\005query\030\001"
+ + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n"
+ + "\016progress_event\030\002"
+ + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n"
+ "\004kind\"F\n\r"
+ "AnalysisQuery\022\025\n"
+ "\010question\030\001 \001(\tB\003\340A\001\022\036\n"
@@ -394,61 +406,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005error\030\013 \001(\tH\000B\006\n"
+ "\004kind\"\244\001\n"
+ "\014ChartMessage\022D\n"
- + "\005query\030\001"
- + " \001(\01323.google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n"
- + "\006result\030\002"
- + " \001(\01324.google.cloud.geminidataanalytics.v1beta.ChartResultH\000B\006\n"
+ + "\005query\030\001 \001(\01323."
+ + "google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n"
+ + "\006result\030\002 \001(\01324.google.cl"
+ + "oud.geminidataanalytics.v1beta.ChartResultH\000B\006\n"
+ "\004kind\"F\n\n"
+ "ChartQuery\022\031\n"
+ "\014instructions\030\001 \001(\tB\003\340A\001\022\035\n"
+ "\020data_result_name\030\002 \001(\tB\003\340A\001\"\203\001\n"
+ "\013ChartResult\0221\n"
+ "\013vega_config\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022A\n"
- + "\005image\030\003 \001(\0132-.google.clo"
- + "ud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n"
+ + "\005image\030\003"
+ + " \001(\0132-.google.cloud.geminidataanalytics.v1beta.BlobB\003\340A\001\"!\n"
+ "\014ErrorMessage\022\021\n"
- + "\004text\030\001 \001(\tB\003\340A\003\"e\n"
+ + "\004text\030\001 \001(\tB\003\340A\003\"\363\003\n"
+ + "\025ClarificationQuestion\022\025\n"
+ + "\010question\030\001 \001(\tB\003\340A\002\022i\n"
+ + "\016selection_mode\030\002 \001(\0162L.google.cloud.geminidataanalytic"
+ + "s.v1beta.ClarificationQuestion.SelectionModeB\003\340A\002\022\024\n"
+ + "\007options\030\003 \003(\tB\003\340A\002\022\202\001\n"
+ + "\033clarification_question_type\030\004 \001(\0162X.google.c"
+ + "loud.geminidataanalytics.v1beta.Clarific"
+ + "ationQuestion.ClarificationQuestionTypeB\003\340A\001\"T\n\r"
+ + "SelectionMode\022\036\n"
+ + "\032SELECTION_MODE_UNSPECIFIED\020\000\022\021\n\r"
+ + "SINGLE_SELECT\020\001\022\020\n"
+ + "\014MULTI_SELECT\020\002\"g\n"
+ + "\031ClarificationQuestionType\022+\n"
+ + "\'CLARIFICATION_QUESTION_TYPE_UNSPECIFIED\020\000\022\021\n\r"
+ + "FILTER_VALUES\020\001\022\n\n"
+ + "\006FIELDS\020\002\"n\n"
+ + "\024ClarificationMessage\022V\n"
+ + "\tquestions\030\001 \003(\0132>"
+ + ".google.cloud.geminidataanalytics.v1beta.ClarificationQuestionB\003\340A\002\"e\n"
+ "\016ExampleQueries\022S\n"
- + "\017example_queries\030\001 \003(\01325."
- + "google.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n"
+ + "\017example_queries\030\001 \003(\01325.google."
+ + "cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n"
+ "\004Blob\022\026\n"
+ "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n"
+ "\004data\030\002 \001(\014B\003\340A\0022\256\014\n"
+ "\017DataChatService\022\251\001\n"
- + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google"
- + ".cloud.geminidataanalytics.v1beta.Messag"
- + "e\"7\202\323\344\223\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n"
- + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v"
- + "1beta.CreateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conver"
- + "sation\"q\332A#parent,conversation,conversat"
- + "ion_id\202\323\344\223\002E\"5/v1beta/{parent=projects/*"
- + "/locations/*}/conversations:\014conversation\022\266\001\n"
- + "\022DeleteConversation\022B.google.cloud.geminidataanalytics.v1beta.DeleteConvers"
- + "ationRequest\032\026.google.protobuf.Empty\"D\332A"
- + "\004name\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n"
- + "\017GetConversation\022?.google.cloud.geminidataanalytic"
- + "s.v1beta.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conver"
- + "sation\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n"
- + "\021ListConversations\022A.google.cloud.geminidataanalytics.v1beta.ListConversationsRe"
- + "quest\032B.google.cloud.geminidataanalytics"
- + ".v1beta.ListConversationsResponse\"F\332A\006pa"
- + "rent\202\323\344\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n"
- + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1"
- + "beta.ListMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesR"
- + "esponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{paren"
- + "t=projects/*/locations/*/conversations/*}/messages\022\300\001\n"
- + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta.QueryDataRequ"
- + "est\032:.google.cloud.geminidataanalytics.v"
- + "1beta.QueryDataResponse\"<\202\323\344\223\0026\"1/v1beta"
- + "/{parent=projects/*/locations/*}:queryDa"
- + "ta:\001*\032V\312A\"geminidataanalytics.googleapis"
- + ".com\322A.https://www.googleapis.com/auth/cloud-platformB\245\002\n"
- + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServicePr"
- + "otoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;g"
- + "eminidataanalyticspb\252\002\'Google.Cloud.Gemi"
- + "niDataAnalytics.V1Beta\312\002\'Google\\Cloud\\Ge"
- + "miniDataAnalytics\\V1beta\352\002*Google::Cloud"
- + "::GeminiDataAnalytics::V1betab\006proto3"
+ + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google.cloud."
+ + "geminidataanalytics.v1beta.Message\"7\202\323\344\223"
+ + "\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n"
+ + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v1beta.C"
+ + "reateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversation\""
+ + "q\332A#parent,conversation,conversation_id\202"
+ + "\323\344\223\002E\"5/v1beta/{parent=projects/*/locations/*}/conversations:\014conversation\022\266\001\n"
+ + "\022DeleteConversation\022B.google.cloud.geminid"
+ + "ataanalytics.v1beta.DeleteConversationRe"
+ + "quest\032\026.google.protobuf.Empty\"D\332A\004name\202\323"
+ + "\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n"
+ + "\017GetConversation\022?.google.cloud.geminidataanalytics.v1bet"
+ + "a.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversation\""
+ + "D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n"
+ + "\021ListConversations\022A.google.cloud.geminidataana"
+ + "lytics.v1beta.ListConversationsRequest\032B.google.cloud.geminidataanalytics.v1beta"
+ + ".ListConversationsResponse\"F\332A\006parent\202\323\344"
+ + "\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n"
+ + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1beta.Li"
+ + "stMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse"
+ + "\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{parent=proje"
+ + "cts/*/locations/*/conversations/*}/messages\022\300\001\n"
+ + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\032:.g"
+ + "oogle.cloud.geminidataanalytics.v1beta.Q"
+ + "ueryDataResponse\"<\202\323\344\223\0026\"1/v1beta/{paren"
+ + "t=projects/*/locations/*}:queryData:\001*\032V"
+ + "\312A\"geminidataanalytics.googleapis.com\322A."
+ + "https://www.googleapis.com/auth/cloud-platformB\245\002\n"
+ + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServiceProtoP\001Z]"
+ + "cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminida"
+ + "taanalyticspb\252\002\'Google.Cloud.GeminiDataA"
+ + "nalytics.V1Beta\312\002\'Google\\Cloud\\GeminiDat"
+ + "aAnalytics\\V1beta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -632,6 +662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Chart",
"Error",
"ExampleQueries",
+ "Clarification",
"GroupId",
"Kind",
});
@@ -641,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_descriptor,
new java.lang.String[] {
- "Parts", "TextType",
+ "Parts", "TextType", "ThoughtSignature",
});
internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_descriptor =
getDescriptor().getMessageType(16);
@@ -689,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_descriptor,
new java.lang.String[] {
- "Name", "Schema", "Data",
+ "Name", "Schema", "Data", "FormattedData",
});
internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_descriptor =
getDescriptor().getMessageType(22);
@@ -765,8 +796,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Text",
});
- internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor =
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor =
getDescriptor().getMessageType(30);
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationQuestion_descriptor,
+ new java.lang.String[] {
+ "Question", "SelectionMode", "Options", "ClarificationQuestionType",
+ });
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor =
+ getDescriptor().getMessageType(31);
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_geminidataanalytics_v1beta_ClarificationMessage_descriptor,
+ new java.lang.String[] {
+ "Questions",
+ });
+ internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor =
+ getDescriptor().getMessageType(32);
internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor,
@@ -774,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ExampleQueries",
});
internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor =
- getDescriptor().getMessageType(31);
+ getDescriptor().getMessageType(33);
internal_static_google_cloud_geminidataanalytics_v1beta_Blob_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor,
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java
index 3a08a4867396..57628568f0b6 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java
@@ -324,7 +324,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return Whether the generatedLookerQuery field is set.
*/
@java.lang.Override
@@ -346,7 +346,7 @@ public boolean hasGeneratedLookerQuery() {
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return The generatedLookerQuery.
*/
@java.lang.Override
@@ -1513,7 +1513,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return Whether the generatedLookerQuery field is set.
*/
@java.lang.Override
@@ -1535,7 +1535,7 @@ public boolean hasGeneratedLookerQuery() {
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return The generatedLookerQuery.
*/
@java.lang.Override
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java
index 23db9f821035..4bd27bac020a 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java
@@ -152,7 +152,7 @@ public interface DataMessageOrBuilder
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return Whether the generatedLookerQuery field is set.
*/
@java.lang.Deprecated
@@ -171,7 +171,7 @@ public interface DataMessageOrBuilder
*
*
* @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is
- * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537
+ * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=545
* @return The generatedLookerQuery.
*/
@java.lang.Deprecated
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java
index 610859d83b49..bcdfb61d82b8 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataResult.java
@@ -54,6 +54,7 @@ private DataResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
private DataResult() {
name_ = "";
data_ = java.util.Collections.emptyList();
+ formattedData_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -284,6 +285,122 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder(int index) {
return data_.get(index);
}
+ public static final int FORMATTED_DATA_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.StructOrBuilder>
+ getFormattedDataOrBuilderList() {
+ return formattedData_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getFormattedDataCount() {
+ return formattedData_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.Struct getFormattedData(int index) {
+ return formattedData_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index) {
+ return formattedData_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -307,6 +424,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getSchema());
}
+ for (int i = 0; i < formattedData_.size(); i++) {
+ output.writeMessage(6, formattedData_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -325,6 +445,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema());
}
+ for (int i = 0; i < formattedData_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, formattedData_.get(i));
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -347,6 +470,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getSchema().equals(other.getSchema())) return false;
}
if (!getDataList().equals(other.getDataList())) return false;
+ if (!getFormattedDataList().equals(other.getFormattedDataList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -368,6 +492,10 @@ public int hashCode() {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getDataList().hashCode();
}
+ if (getFormattedDataCount() > 0) {
+ hash = (37 * hash) + FORMATTED_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getFormattedDataList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -512,6 +640,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
internalGetSchemaFieldBuilder();
internalGetDataFieldBuilder();
+ internalGetFormattedDataFieldBuilder();
}
}
@@ -532,6 +661,13 @@ public Builder clear() {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
+ if (formattedDataBuilder_ == null) {
+ formattedData_ = java.util.Collections.emptyList();
+ } else {
+ formattedData_ = null;
+ formattedDataBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@@ -578,6 +714,15 @@ private void buildPartialRepeatedFields(
} else {
result.data_ = dataBuilder_.build();
}
+ if (formattedDataBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
+ formattedData_ = java.util.Collections.unmodifiableList(formattedData_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.formattedData_ = formattedData_;
+ } else {
+ result.formattedData_ = formattedDataBuilder_.build();
+ }
}
private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.DataResult result) {
@@ -641,6 +786,33 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.DataResult
}
}
}
+ if (formattedDataBuilder_ == null) {
+ if (!other.formattedData_.isEmpty()) {
+ if (formattedData_.isEmpty()) {
+ formattedData_ = other.formattedData_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureFormattedDataIsMutable();
+ formattedData_.addAll(other.formattedData_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.formattedData_.isEmpty()) {
+ if (formattedDataBuilder_.isEmpty()) {
+ formattedDataBuilder_.dispose();
+ formattedDataBuilder_ = null;
+ formattedData_ = other.formattedData_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ formattedDataBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? internalGetFormattedDataFieldBuilder()
+ : null;
+ } else {
+ formattedDataBuilder_.addAllMessages(other.formattedData_);
+ }
+ }
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -691,6 +863,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 42
+ case 50:
+ {
+ com.google.protobuf.Struct m =
+ input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.add(m);
+ } else {
+ formattedDataBuilder_.addMessage(m);
+ }
+ break;
+ } // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1473,6 +1657,516 @@ public java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getFormattedDataCount() {
+ if (formattedDataBuilder_ == null) {
+ return formattedData_.size();
+ } else {
+ return formattedDataBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct getFormattedData(int index) {
+ if (formattedDataBuilder_ == null) {
+ return formattedData_.get(index);
+ } else {
+ return formattedDataBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFormattedData(int index, com.google.protobuf.Struct value) {
+ if (formattedDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFormattedDataIsMutable();
+ formattedData_.set(index, value);
+ onChanged();
+ } else {
+ formattedDataBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setFormattedData(int index, com.google.protobuf.Struct.Builder builderForValue) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ formattedDataBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFormattedData(com.google.protobuf.Struct value) {
+ if (formattedDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFormattedDataIsMutable();
+ formattedData_.add(value);
+ onChanged();
+ } else {
+ formattedDataBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFormattedData(int index, com.google.protobuf.Struct value) {
+ if (formattedDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFormattedDataIsMutable();
+ formattedData_.add(index, value);
+ onChanged();
+ } else {
+ formattedDataBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFormattedData(com.google.protobuf.Struct.Builder builderForValue) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.add(builderForValue.build());
+ onChanged();
+ } else {
+ formattedDataBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addFormattedData(int index, com.google.protobuf.Struct.Builder builderForValue) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ formattedDataBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllFormattedData(
+ java.lang.Iterable extends com.google.protobuf.Struct> values) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, formattedData_);
+ onChanged();
+ } else {
+ formattedDataBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearFormattedData() {
+ if (formattedDataBuilder_ == null) {
+ formattedData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ formattedDataBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeFormattedData(int index) {
+ if (formattedDataBuilder_ == null) {
+ ensureFormattedDataIsMutable();
+ formattedData_.remove(index);
+ onChanged();
+ } else {
+ formattedDataBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct.Builder getFormattedDataBuilder(int index) {
+ return internalGetFormattedDataFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index) {
+ if (formattedDataBuilder_ == null) {
+ return formattedData_.get(index);
+ } else {
+ return formattedDataBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.protobuf.StructOrBuilder>
+ getFormattedDataOrBuilderList() {
+ if (formattedDataBuilder_ != null) {
+ return formattedDataBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(formattedData_);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct.Builder addFormattedDataBuilder() {
+ return internalGetFormattedDataFieldBuilder()
+ .addBuilder(com.google.protobuf.Struct.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Struct.Builder addFormattedDataBuilder(int index) {
+ return internalGetFormattedDataFieldBuilder()
+ .addBuilder(index, com.google.protobuf.Struct.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List+ * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.Struct getFormattedData(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getFormattedDataCount();
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.List extends com.google.protobuf.StructOrBuilder> getFormattedDataOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Optional. Formatted representation of the data, when applicable. + * Each row is a struct that directly corresponds to the row at the same index + * within the `data` field. Its values are string representations of the + * original data, formatted according to data source specifications (e.g., + * "$1,234.56" for currency). Columns without formatting will default to + * their raw value representation. If no columns have formatting rules, this + * field will be empty. + *+ * + *
+ * repeated .google.protobuf.Struct formatted_data = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.StructOrBuilder getFormattedDataOrBuilder(int index);
}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java
index 41fc3b1adf7b..f1c6cb865964 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessage.java
@@ -87,6 +87,7 @@ public enum KindCase
CHART(5),
ERROR(6),
EXAMPLE_QUERIES(13),
+ CLARIFICATION(14),
KIND_NOT_SET(0);
private final int value;
@@ -120,6 +121,8 @@ public static KindCase forNumber(int value) {
return ERROR;
case 13:
return EXAMPLE_QUERIES;
+ case 14:
+ return CLARIFICATION;
case 0:
return KIND_NOT_SET;
default:
@@ -522,6 +525,67 @@ public com.google.cloud.geminidataanalytics.v1beta.ExampleQueries getExampleQuer
return com.google.cloud.geminidataanalytics.v1beta.ExampleQueries.getDefaultInstance();
}
+ public static final int CLARIFICATION_FIELD_NUMBER = 14;
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clarification field is set.
+ */
+ @java.lang.Override
+ public boolean hasClarification() {
+ return kindCase_ == 14;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarification.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification() {
+ if (kindCase_ == 14) {
+ return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_;
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder
+ getClarificationOrBuilder() {
+ if (kindCase_ == 14) {
+ return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_;
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance();
+ }
+
public static final int GROUP_ID_FIELD_NUMBER = 12;
private int groupId_ = 0;
@@ -599,6 +663,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (kindCase_ == 13) {
output.writeMessage(13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_);
}
+ if (kindCase_ == 14) {
+ output.writeMessage(
+ 14, (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_);
+ }
getUnknownFields().writeTo(output);
}
@@ -646,6 +714,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
13, (com.google.cloud.geminidataanalytics.v1beta.ExampleQueries) kind_);
}
+ if (kindCase_ == 14) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 14, (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -689,6 +762,9 @@ public boolean equals(final java.lang.Object obj) {
case 13:
if (!getExampleQueries().equals(other.getExampleQueries())) return false;
break;
+ case 14:
+ if (!getClarification().equals(other.getClarification())) return false;
+ break;
case 0:
default:
}
@@ -736,6 +812,10 @@ public int hashCode() {
hash = (37 * hash) + EXAMPLE_QUERIES_FIELD_NUMBER;
hash = (53 * hash) + getExampleQueries().hashCode();
break;
+ case 14:
+ hash = (37 * hash) + CLARIFICATION_FIELD_NUMBER;
+ hash = (53 * hash) + getClarification().hashCode();
+ break;
case 0:
default:
}
@@ -903,6 +983,9 @@ public Builder clear() {
if (exampleQueriesBuilder_ != null) {
exampleQueriesBuilder_.clear();
}
+ if (clarificationBuilder_ != null) {
+ clarificationBuilder_.clear();
+ }
groupId_ = 0;
kindCase_ = 0;
kind_ = null;
@@ -944,7 +1027,7 @@ public com.google.cloud.geminidataanalytics.v1beta.SystemMessage buildPartial()
private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.SystemMessage result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000080) != 0)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
result.groupId_ = groupId_;
to_bitField0_ |= 0x00000001;
}
@@ -976,6 +1059,9 @@ private void buildPartialOneofs(
if (kindCase_ == 13 && exampleQueriesBuilder_ != null) {
result.kind_ = exampleQueriesBuilder_.build();
}
+ if (kindCase_ == 14 && clarificationBuilder_ != null) {
+ result.kind_ = clarificationBuilder_.build();
+ }
}
@java.lang.Override
@@ -1030,6 +1116,11 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.SystemMessa
mergeExampleQueries(other.getExampleQueries());
break;
}
+ case CLARIFICATION:
+ {
+ mergeClarification(other.getClarification());
+ break;
+ }
case KIND_NOT_SET:
{
break;
@@ -1101,7 +1192,7 @@ public Builder mergeFrom(
case 96:
{
groupId_ = input.readInt32();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 96
case 106:
@@ -1111,6 +1202,13 @@ public Builder mergeFrom(
kindCase_ = 13;
break;
} // case 106
+ case 114:
+ {
+ input.readMessage(
+ internalGetClarificationFieldBuilder().getBuilder(), extensionRegistry);
+ kindCase_ = 14;
+ break;
+ } // case 114
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2704,6 +2802,252 @@ public Builder clearExampleQueries() {
return exampleQueriesBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder>
+ clarificationBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clarification field is set.
+ */
+ @java.lang.Override
+ public boolean hasClarification() {
+ return kindCase_ == 14;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarification.
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification() {
+ if (clarificationBuilder_ == null) {
+ if (kindCase_ == 14) {
+ return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_;
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage
+ .getDefaultInstance();
+ } else {
+ if (kindCase_ == 14) {
+ return clarificationBuilder_.getMessage();
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setClarification(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage value) {
+ if (clarificationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ clarificationBuilder_.setMessage(value);
+ }
+ kindCase_ = 14;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setClarification(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder builderForValue) {
+ if (clarificationBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ clarificationBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 14;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeClarification(
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage value) {
+ if (clarificationBuilder_ == null) {
+ if (kindCase_ == 14
+ && kind_
+ != com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage
+ .getDefaultInstance()) {
+ kind_ =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.newBuilder(
+ (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 14) {
+ clarificationBuilder_.mergeFrom(value);
+ } else {
+ clarificationBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 14;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearClarification() {
+ if (clarificationBuilder_ == null) {
+ if (kindCase_ == 14) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 14) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ clarificationBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder
+ getClarificationBuilder() {
+ return internalGetClarificationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder
+ getClarificationOrBuilder() {
+ if ((kindCase_ == 14) && (clarificationBuilder_ != null)) {
+ return clarificationBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 14) {
+ return (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_;
+ }
+ return com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder>
+ internalGetClarificationFieldBuilder() {
+ if (clarificationBuilder_ == null) {
+ if (!(kindCase_ == 14)) {
+ kind_ =
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.getDefaultInstance();
+ }
+ clarificationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage.Builder,
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder>(
+ (com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 14;
+ onChanged();
+ return clarificationBuilder_;
+ }
+
private int groupId_;
/**
@@ -2721,7 +3065,7 @@ public Builder clearExampleQueries() {
*/
@java.lang.Override
public boolean hasGroupId() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
@@ -2759,7 +3103,7 @@ public int getGroupId() {
public Builder setGroupId(int value) {
groupId_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2778,7 +3122,7 @@ public Builder setGroupId(int value) {
* @return This builder for chaining.
*/
public Builder clearGroupId() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
groupId_ = 0;
onChanged();
return this;
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java
index 90de3e0a8c99..83391c3ef257 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SystemMessageOrBuilder.java
@@ -291,6 +291,50 @@ public interface SystemMessageOrBuilder
*/
com.google.cloud.geminidataanalytics.v1beta.ExampleQueriesOrBuilder getExampleQueriesOrBuilder();
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clarification field is set.
+ */
+ boolean hasClarification();
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clarification.
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessage getClarification();
+
+ /**
+ *
+ *
+ * + * Optional. A message containing clarification questions. + *+ * + *
+ * .google.cloud.geminidataanalytics.v1beta.ClarificationMessage clarification = 14 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.geminidataanalytics.v1beta.ClarificationMessageOrBuilder
+ getClarificationOrBuilder();
+
/**
*
*
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java
index 0b820ddd9c2b..b2732af06477 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessage.java
@@ -54,6 +54,7 @@ private TextMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
private TextMessage() {
parts_ = com.google.protobuf.LazyStringArrayList.emptyList();
textType_ = 0;
+ thoughtSignature_ = com.google.protobuf.ByteString.EMPTY;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@@ -105,7 +106,7 @@ public enum TextType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * The text is a thinking plan generated by the thinking tool.
+ * The text is a thought from the model.
*
*
* THOUGHT = 2;
@@ -164,7 +165,7 @@ public enum TextType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * The text is a thinking plan generated by the thinking tool.
+ * The text is a thought from the model.
*
*
* THOUGHT = 2;
@@ -384,6 +385,26 @@ public com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextT
: result;
}
+ public static final int THOUGHT_SIGNATURE_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString thoughtSignature_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The thoughtSignature.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getThoughtSignature() {
+ return thoughtSignature_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -406,6 +427,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(2, textType_);
}
+ if (!thoughtSignature_.isEmpty()) {
+ output.writeBytes(3, thoughtSignature_);
+ }
getUnknownFields().writeTo(output);
}
@@ -428,6 +452,9 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, textType_);
}
+ if (!thoughtSignature_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, thoughtSignature_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -446,6 +473,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getPartsList().equals(other.getPartsList())) return false;
if (textType_ != other.textType_) return false;
+ if (!getThoughtSignature().equals(other.getThoughtSignature())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -463,6 +491,8 @@ public int hashCode() {
}
hash = (37 * hash) + TEXT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + textType_;
+ hash = (37 * hash) + THOUGHT_SIGNATURE_FIELD_NUMBER;
+ hash = (53 * hash) + getThoughtSignature().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -606,6 +636,7 @@ public Builder clear() {
bitField0_ = 0;
parts_ = com.google.protobuf.LazyStringArrayList.emptyList();
textType_ = 0;
+ thoughtSignature_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@@ -649,6 +680,9 @@ private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.TextMessa
if (((from_bitField0_ & 0x00000002) != 0)) {
result.textType_ = textType_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.thoughtSignature_ = thoughtSignature_;
+ }
}
@java.lang.Override
@@ -677,6 +711,9 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.TextMessage
if (other.textType_ != 0) {
setTextTypeValue(other.getTextTypeValue());
}
+ if (!other.getThoughtSignature().isEmpty()) {
+ setThoughtSignature(other.getThoughtSignature());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -716,6 +753,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 16
+ case 26:
+ {
+ thoughtSignature_ = input.readBytes();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1026,6 +1069,67 @@ public Builder clearTextType() {
return this;
}
+ private com.google.protobuf.ByteString thoughtSignature_ = com.google.protobuf.ByteString.EMPTY;
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The thoughtSignature.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getThoughtSignature() {
+ return thoughtSignature_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The thoughtSignature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setThoughtSignature(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ thoughtSignature_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearThoughtSignature() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ thoughtSignature_ = getDefaultInstance().getThoughtSignature();
+ onChanged();
+ return this;
+ }
+
// @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.TextMessage)
}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java
index 213b06a73a69..93b9e0996ae3 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TextMessageOrBuilder.java
@@ -109,4 +109,18 @@ public interface TextMessageOrBuilder
* @return The textType.
*/
com.google.cloud.geminidataanalytics.v1beta.TextMessage.TextType getTextType();
+
+ /**
+ *
+ *
+ * + * Optional. An opaque signature for a thought so it can be reused in + * subsequent requests. + *+ * + *
bytes thought_signature = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The thoughtSignature.
+ */
+ com.google.protobuf.ByteString getThoughtSignature();
}
diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto
index 0502a6ebeabb..a9cc7ca72374 100644
--- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto
+++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto
@@ -458,6 +458,10 @@ message SystemMessage {
// Optional. A message containing example queries.
ExampleQueries example_queries = 13
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A message containing clarification questions.
+ ClarificationMessage clarification = 14
+ [(google.api.field_behavior) = OPTIONAL];
}
// Identifies the group that the event belongs to. Similar events are deemed
@@ -476,7 +480,7 @@ message TextMessage {
// The text is a final response to the user question.
FINAL_RESPONSE = 1;
- // The text is a thinking plan generated by the thinking tool.
+ // The text is a thought from the model.
THOUGHT = 2;
// The text is an informational message about the agent's progress, such as
@@ -492,6 +496,10 @@ message TextMessage {
// Optional. The type of the text message.
TextType text_type = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. An opaque signature for a thought so it can be reused in
+ // subsequent requests.
+ bytes thought_signature = 3 [(google.api.field_behavior) = OPTIONAL];
}
// A message produced during schema resolution.
@@ -583,6 +591,16 @@ message DataResult {
// are represented as lists or structs.
repeated google.protobuf.Struct data = 2
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Formatted representation of the data, when applicable.
+ // Each row is a struct that directly corresponds to the row at the same index
+ // within the `data` field. Its values are string representations of the
+ // original data, formatted according to data source specifications (e.g.,
+ // "$1,234.56" for currency). Columns without formatting will default to
+ // their raw value representation. If no columns have formatting rules, this
+ // field will be empty.
+ repeated google.protobuf.Struct formatted_data = 6
+ [(google.api.field_behavior) = OPTIONAL];
}
// A BigQuery job executed by the system.
@@ -731,6 +749,58 @@ message ErrorMessage {
string text = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
}
+// Represents a single question to the user to help clarify their query.
+message ClarificationQuestion {
+ // The selection mode for the clarification question.
+ enum SelectionMode {
+ // Unspecified selection mode.
+ SELECTION_MODE_UNSPECIFIED = 0;
+
+ // The user can select only one option.
+ SINGLE_SELECT = 1;
+
+ // The user can select multiple options.
+ MULTI_SELECT = 2;
+ }
+
+ // The type of clarification question.
+ // This enum may be extended with new values in the future.
+ enum ClarificationQuestionType {
+ // Unspecified clarification question type.
+ CLARIFICATION_QUESTION_TYPE_UNSPECIFIED = 0;
+
+ // The clarification question is for filter values.
+ FILTER_VALUES = 1;
+
+ // The clarification question is for data fields. This is a generic term
+ // encompassing SQL columns, Looker fields (dimensions/measures), or
+ // nested data structure properties.
+ FIELDS = 2;
+ }
+
+ // Required. The natural language question to ask the user.
+ string question = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The selection mode for this question.
+ SelectionMode selection_mode = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. A list of distinct options for the user to choose from.
+ // The number of options is limited to a maximum of 5.
+ repeated string options = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The type of clarification question.
+ ClarificationQuestionType clarification_question_type = 4
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// A message of questions to help clarify the user's query. This is returned
+// when the system cannot confidently answer the user's question.
+message ClarificationMessage {
+ // Required. A batch of clarification questions to ask the user.
+ repeated ClarificationQuestion questions = 1
+ [(google.api.field_behavior) = REQUIRED];
+}
+
// A message containing derived and authored example queries.
message ExampleQueries {
// Optional. A list of derived and authored example queries, providing
diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md
index 5d93df1f9836..2d48fb65e797 100644
--- a/java-gke-backup/README.md
+++ b/java-gke-backup/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
ListBoundMemberships
Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listBoundMemberships(ListBoundMembershipsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listBoundMemberships(ScopeName scopeName) + *
listBoundMemberships(String scopeName) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listBoundMembershipsPagedCallable() + *
listBoundMembershipsCallable() + *
ListFeatures
Lists Features in a given project and location.
See the individual methods for example code. - * - *
Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *
This class can be customized by passing in a custom instance of GkeHubSettings to create(). - * For example: - * - *
To customize credentials: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * GkeHubSettings gkeHubSettings =
- * GkeHubSettings.newBuilder()
- * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- * .build();
- * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
- * }
- *
- * To customize the endpoint: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
- * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
- * }
- *
- * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build();
- * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
- * }
- *
- * Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class GkeHubClient implements BackgroundResource { - private final GkeHubSettings settings; - private final GkeHubStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of GkeHubClient with default settings. */ - public static final GkeHubClient create() throws IOException { - return create(GkeHubSettings.newBuilder().build()); - } - - /** - * Constructs an instance of GkeHubClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final GkeHubClient create(GkeHubSettings settings) throws IOException { - return new GkeHubClient(settings); - } - - /** - * Constructs an instance of GkeHubClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(GkeHubSettings). - */ - public static final GkeHubClient create(GkeHubStub stub) { - return new GkeHubClient(stub); - } - - /** - * Constructs an instance of GkeHubClient, using the given settings. This is protected so that it - * is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected GkeHubClient(GkeHubSettings settings) throws IOException { - this.settings = settings; - this.stub = ((GkeHubStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected GkeHubClient(GkeHubStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final GkeHubSettings getSettings() { - return settings; - } - - public GkeHubStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Memberships in a given project and location. - * - *
Sample code: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The parent (project and location) where the Memberships will be listed.
- * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list
- * memberships in all the regions.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListMembershipsPagedResponse listMemberships(LocationName parent) {
- ListMembershipsRequest request =
- ListMembershipsRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .build();
- return listMemberships(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists Memberships in a given project and location.
- *
- * Sample code: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The parent (project and location) where the Memberships will be listed.
- * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list
- * memberships in all the regions.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListMembershipsPagedResponse listMemberships(String parent) {
- ListMembershipsRequest request = ListMembershipsRequest.newBuilder().setParent(parent).build();
- return listMemberships(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists Memberships in a given project and location.
- *
- * Sample code: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListMembershipsRequest request =
- * ListMembershipsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
- * .build();
- * for (Membership element : gkeHubClient.listMemberships(request).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest request) {
- return listMembershipsPagedCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Lists Memberships in a given project and location.
- *
- * Sample code: - * - *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListMembershipsRequest request =
- * ListMembershipsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ *
+ * CreateFleet
+ * Creates a fleet.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createFleetAsync(CreateFleetRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createFleetAsync(LocationName parent, Fleet fleet)
+ *
createFleetAsync(String parent, Fleet fleet)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createFleetOperationCallable()
+ *
createFleetCallable()
+ *
+ *
+ *
+ *
+ * GetFleet
+ * Returns the details of a fleet.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getFleet(GetFleetRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getFleet(FleetName name)
+ *
getFleet(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getFleetCallable()
+ *
+ *
+ *
+ *
+ * UpdateFleet
+ * Updates a fleet.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateFleetAsync(UpdateFleetRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateFleetAsync(Fleet fleet, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateFleetOperationCallable()
+ *
updateFleetCallable()
+ *
+ *
+ *
+ *
+ * DeleteFleet
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteFleetAsync(DeleteFleetRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteFleetAsync(FleetName name)
+ *
deleteFleetAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteFleetOperationCallable()
+ *
deleteFleetCallable()
+ *
+ *
+ *
+ *
+ * ListFleets
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listFleets(ListFleetsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listFleets(LocationName parent)
+ *
listFleets(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listFleetsPagedCallable()
+ *
listFleetsCallable()
+ *
+ *
+ *
+ *
+ * GetScopeNamespace
+ * Returns the details of a fleet namespace.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getScopeNamespace(GetScopeNamespaceRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getScopeNamespace(NamespaceName name)
+ *
getScopeNamespace(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getScopeNamespaceCallable()
+ *
+ *
+ *
+ *
+ * CreateScopeNamespace
+ * Creates a fleet namespace.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createScopeNamespaceAsync(CreateScopeNamespaceRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createScopeNamespaceAsync(ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId)
+ *
createScopeNamespaceAsync(String parent, Namespace scopeNamespace, String scopeNamespaceId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createScopeNamespaceOperationCallable()
+ *
createScopeNamespaceCallable()
+ *
+ *
+ *
+ *
+ * UpdateScopeNamespace
+ * Updates a fleet namespace.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateScopeNamespaceAsync(UpdateScopeNamespaceRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateScopeNamespaceAsync(Namespace scopeNamespace, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateScopeNamespaceOperationCallable()
+ *
updateScopeNamespaceCallable()
+ *
+ *
+ *
+ *
+ * DeleteScopeNamespace
+ * Deletes a fleet namespace.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteScopeNamespaceAsync(DeleteScopeNamespaceRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteScopeNamespaceAsync(NamespaceName name)
+ *
deleteScopeNamespaceAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteScopeNamespaceOperationCallable()
+ *
deleteScopeNamespaceCallable()
+ *
+ *
+ *
+ *
+ * ListScopeNamespaces
+ * Lists fleet namespaces.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listScopeNamespaces(ListScopeNamespacesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listScopeNamespaces(ScopeName parent)
+ *
listScopeNamespaces(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listScopeNamespacesPagedCallable()
+ *
listScopeNamespacesCallable()
+ *
+ *
+ *
+ *
+ * GetScopeRBACRoleBinding
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getScopeRBACRoleBinding(RBACRoleBindingName name)
+ *
getScopeRBACRoleBinding(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getScopeRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * CreateScopeRBACRoleBinding
+ * Creates a Scope RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createScopeRBACRoleBindingAsync(CreateScopeRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createScopeRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
createScopeRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
createScopeRBACRoleBindingAsync(String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createScopeRBACRoleBindingOperationCallable()
+ *
createScopeRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * UpdateScopeRBACRoleBinding
+ * Updates a Scope RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateScopeRBACRoleBindingAsync(UpdateScopeRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateScopeRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateScopeRBACRoleBindingOperationCallable()
+ *
updateScopeRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * DeleteScopeRBACRoleBinding
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteScopeRBACRoleBindingAsync(DeleteScopeRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteScopeRBACRoleBindingAsync(RBACRoleBindingName name)
+ *
deleteScopeRBACRoleBindingAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteScopeRBACRoleBindingOperationCallable()
+ *
deleteScopeRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * ListScopeRBACRoleBindings
+ * Lists all Scope RBACRoleBindings.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listScopeRBACRoleBindings(ListScopeRBACRoleBindingsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listScopeRBACRoleBindings(MembershipName parent)
+ *
listScopeRBACRoleBindings(ScopeName parent)
+ *
listScopeRBACRoleBindings(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listScopeRBACRoleBindingsPagedCallable()
+ *
listScopeRBACRoleBindingsCallable()
+ *
+ *
+ *
+ *
+ * GetScope
+ * Returns the details of a Scope.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getScope(GetScopeRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getScope(ScopeName name)
+ *
getScope(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getScopeCallable()
+ *
+ *
+ *
+ *
+ * CreateScope
+ * Creates a Scope.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createScopeAsync(CreateScopeRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createScopeAsync(LocationName parent, Scope scope, String scopeId)
+ *
createScopeAsync(String parent, Scope scope, String scopeId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createScopeOperationCallable()
+ *
createScopeCallable()
+ *
+ *
+ *
+ *
+ * UpdateScope
+ * Updates a scopes.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateScopeAsync(UpdateScopeRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateScopeAsync(Scope scope, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateScopeOperationCallable()
+ *
updateScopeCallable()
+ *
+ *
+ *
+ *
+ * DeleteScope
+ * Deletes a Scope.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteScopeAsync(DeleteScopeRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteScopeAsync(ScopeName name)
+ *
deleteScopeAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteScopeOperationCallable()
+ *
deleteScopeCallable()
+ *
+ *
+ *
+ *
+ * ListScopes
+ * Lists Scopes.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listScopes(ListScopesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listScopes(LocationName parent)
+ *
listScopes(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listScopesPagedCallable()
+ *
listScopesCallable()
+ *
+ *
+ *
+ *
+ * ListPermittedScopes
+ * Lists permitted Scopes.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listPermittedScopes(ListPermittedScopesRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listPermittedScopes(LocationName parent)
+ *
listPermittedScopes(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listPermittedScopesPagedCallable()
+ *
listPermittedScopesCallable()
+ *
+ *
+ *
+ *
+ * GetMembershipBinding
+ * Returns the details of a MembershipBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getMembershipBinding(GetMembershipBindingRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getMembershipBinding(MembershipBindingName name)
+ *
getMembershipBinding(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getMembershipBindingCallable()
+ *
+ *
+ *
+ *
+ * CreateMembershipBinding
+ * Creates a MembershipBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createMembershipBindingAsync(CreateMembershipBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createMembershipBindingAsync(MembershipName parent, MembershipBinding membershipBinding, String membershipBindingId)
+ *
createMembershipBindingAsync(String parent, MembershipBinding membershipBinding, String membershipBindingId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createMembershipBindingOperationCallable()
+ *
createMembershipBindingCallable()
+ *
+ *
+ *
+ *
+ * UpdateMembershipBinding
+ * Updates a MembershipBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateMembershipBindingAsync(UpdateMembershipBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateMembershipBindingAsync(MembershipBinding membershipBinding, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateMembershipBindingOperationCallable()
+ *
updateMembershipBindingCallable()
+ *
+ *
+ *
+ *
+ * DeleteMembershipBinding
+ * Deletes a MembershipBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteMembershipBindingAsync(DeleteMembershipBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteMembershipBindingAsync(MembershipBindingName name)
+ *
deleteMembershipBindingAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteMembershipBindingOperationCallable()
+ *
deleteMembershipBindingCallable()
+ *
+ *
+ *
+ *
+ * ListMembershipBindings
+ * Lists MembershipBindings.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listMembershipBindings(ListMembershipBindingsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listMembershipBindings(MembershipName parent)
+ *
listMembershipBindings(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listMembershipBindingsPagedCallable()
+ *
listMembershipBindingsCallable()
+ *
+ *
+ *
+ *
+ * GetMembershipRBACRoleBinding
+ * Returns the details of a Membership RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * getMembershipRBACRoleBinding(GetMembershipRBACRoleBindingRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * getMembershipRBACRoleBinding(RBACRoleBindingName name)
+ *
getMembershipRBACRoleBinding(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getMembershipRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * CreateMembershipRBACRoleBinding
+ * Creates a Membership RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * createMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * createMembershipRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
createMembershipRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
createMembershipRBACRoleBindingAsync(String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * createMembershipRBACRoleBindingOperationCallable()
+ *
createMembershipRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * UpdateMembershipRBACRoleBinding
+ * Updates a Membership RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * updateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * updateMembershipRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * updateMembershipRBACRoleBindingOperationCallable()
+ *
updateMembershipRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * DeleteMembershipRBACRoleBinding
+ * Deletes a Membership RBACRoleBinding.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteMembershipRBACRoleBindingAsync(DeleteMembershipRBACRoleBindingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteMembershipRBACRoleBindingAsync(RBACRoleBindingName name)
+ *
deleteMembershipRBACRoleBindingAsync(String name)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteMembershipRBACRoleBindingOperationCallable()
+ *
deleteMembershipRBACRoleBindingCallable()
+ *
+ *
+ *
+ *
+ * ListMembershipRBACRoleBindings
+ * Lists all Membership RBACRoleBindings.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * listMembershipRBACRoleBindings(ListMembershipRBACRoleBindingsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * listMembershipRBACRoleBindings(MembershipName parent)
+ *
listMembershipRBACRoleBindings(ScopeName parent)
+ *
listMembershipRBACRoleBindings(String parent)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listMembershipRBACRoleBindingsPagedCallable()
+ *
listMembershipRBACRoleBindingsCallable()
+ *
+ *
+ *
+ *
+ * GenerateMembershipRBACRoleBindingYAML
+ * Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * generateMembershipRBACRoleBindingYAML(GenerateMembershipRBACRoleBindingYAMLRequest request)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * generateMembershipRBACRoleBindingYAMLCallable()
+ *
+ *
+ *
+ *
+ *
+ * See the individual methods for example code.
+ *
+ *
Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ *
This class can be customized by passing in a custom instance of GkeHubSettings to create().
+ * For example:
+ *
+ *
To customize credentials:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GkeHubSettings gkeHubSettings =
+ * GkeHubSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
+ * }
+ *
+ * To customize the endpoint:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GkeHubSettings gkeHubSettings = GkeHubSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
+ * the wire:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GkeHubSettings gkeHubSettings = GkeHubSettings.newHttpJsonBuilder().build();
+ * GkeHubClient gkeHubClient = GkeHubClient.create(gkeHubSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class GkeHubClient implements BackgroundResource {
+ private final GkeHubSettings settings;
+ private final GkeHubStub stub;
+ private final OperationsClient httpJsonOperationsClient;
+ private final com.google.longrunning.OperationsClient operationsClient;
+
+ /** Constructs an instance of GkeHubClient with default settings. */
+ public static final GkeHubClient create() throws IOException {
+ return create(GkeHubSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of GkeHubClient, using the given settings. The channels are created
+ * based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final GkeHubClient create(GkeHubSettings settings) throws IOException {
+ return new GkeHubClient(settings);
+ }
+
+ /**
+ * Constructs an instance of GkeHubClient, using the given stub for making calls. This is for
+ * advanced usage - prefer using create(GkeHubSettings).
+ */
+ public static final GkeHubClient create(GkeHubStub stub) {
+ return new GkeHubClient(stub);
+ }
+
+ /**
+ * Constructs an instance of GkeHubClient, using the given settings. This is protected so that it
+ * is easy to make a subclass, but otherwise, the static factory methods should be preferred.
+ */
+ protected GkeHubClient(GkeHubSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((GkeHubStubSettings) settings.getStubSettings()).createStub();
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ protected GkeHubClient(GkeHubStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ this.operationsClient =
+ com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub());
+ this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub());
+ }
+
+ public final GkeHubSettings getSettings() {
+ return settings;
+ }
+
+ public GkeHubStub getStub() {
+ return stub;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ public final com.google.longrunning.OperationsClient getOperationsClient() {
+ return operationsClient;
+ }
+
+ /**
+ * Returns the OperationsClient that can be used to query the status of a long-running operation
+ * returned by another API method call.
+ */
+ @BetaApi
+ public final OperationsClient getHttpJsonOperationsClient() {
+ return httpJsonOperationsClient;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Memberships will be listed.
+ * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list
+ * memberships in all the regions.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMembershipsPagedResponse listMemberships(LocationName parent) {
+ ListMembershipsRequest request =
+ ListMembershipsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMemberships(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Membership element : gkeHubClient.listMemberships(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Memberships will be listed.
+ * Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list
+ * memberships in all the regions.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMembershipsPagedResponse listMemberships(String parent) {
+ ListMembershipsRequest request = ListMembershipsRequest.newBuilder().setParent(parent).build();
+ return listMemberships(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListMembershipsRequest request =
+ * ListMembershipsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Membership element : gkeHubClient.listMemberships(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest request) {
+ return listMembershipsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListMembershipsRequest request =
+ * ListMembershipsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.listMembershipsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Membership element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listMembershipsPagedCallable() {
+ return stub.listMembershipsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListMembershipsRequest request =
+ * ListMembershipsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request);
+ * for (Membership element : response.getResourcesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listMembershipsCallable() {
+ return stub.listMembershipsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param scopeName Required. Name of the Scope, in the format
+ * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBoundMembershipsPagedResponse listBoundMemberships(ScopeName scopeName) {
+ ListBoundMembershipsRequest request =
+ ListBoundMembershipsRequest.newBuilder()
+ .setScopeName(scopeName == null ? null : scopeName.toString())
+ .build();
+ return listBoundMemberships(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String scopeName = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * for (Membership element : gkeHubClient.listBoundMemberships(scopeName).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param scopeName Required. Name of the Scope, in the format
+ * `projects/*/locations/global/scopes/*`, to which the Memberships are bound.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBoundMembershipsPagedResponse listBoundMemberships(String scopeName) {
+ ListBoundMembershipsRequest request =
+ ListBoundMembershipsRequest.newBuilder().setScopeName(scopeName).build();
+ return listBoundMemberships(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListBoundMembershipsRequest request =
+ * ListBoundMembershipsRequest.newBuilder()
+ * .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Membership element : gkeHubClient.listBoundMemberships(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListBoundMembershipsPagedResponse listBoundMemberships(
+ ListBoundMembershipsRequest request) {
+ return listBoundMembershipsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListBoundMembershipsRequest request =
+ * ListBoundMembershipsRequest.newBuilder()
+ * .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.listBoundMembershipsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Membership element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBoundMembershipsPagedCallable() {
+ return stub.listBoundMembershipsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Memberships bound to a Scope. The response includes relevant Memberships from all
+ * regions.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListBoundMembershipsRequest request =
+ * ListBoundMembershipsRequest.newBuilder()
+ * .setScopeName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListBoundMembershipsResponse response =
+ * gkeHubClient.listBoundMembershipsCallable().call(request);
+ * for (Membership element : response.getMembershipsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listBoundMembershipsCallable() {
+ return stub.listBoundMembershipsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(LocationName parent) {
+ ListFeaturesRequest request =
+ ListFeaturesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(String parent) {
+ ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build();
+ return listFeatures(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * for (Feature element : gkeHubClient.listFeatures(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) {
+ return listFeaturesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture future = gkeHubClient.listFeaturesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Feature element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listFeaturesPagedCallable() {
+ return stub.listFeaturesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Features in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFeaturesRequest request =
+ * ListFeaturesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * while (true) {
+ * ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request);
+ * for (Feature element : response.getResourcesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listFeaturesCallable() {
+ return stub.listFeaturesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a Membership.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * Membership response = gkeHubClient.getMembership(name);
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Membership getMembership(MembershipName name) {
+ GetMembershipRequest request =
+ GetMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getMembership(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a Membership.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
+ * Membership response = gkeHubClient.getMembership(name);
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Membership getMembership(String name) {
+ GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name).build();
+ return getMembership(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a Membership.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetMembershipRequest request =
+ * GetMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .build();
+ * Membership response = gkeHubClient.getMembership(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Membership getMembership(GetMembershipRequest request) {
+ return getMembershipCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the details of a Membership.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetMembershipRequest request =
+ * GetMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.getMembershipCallable().futureCall(request);
+ * // Do something.
+ * Membership response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getMembershipCallable() {
+ return stub.getMembershipCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
+ * Feature response = gkeHubClient.getFeature(name);
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(FeatureName name) {
+ GetFeatureRequest request =
+ GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFeature(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
+ * Feature response = gkeHubClient.getFeature(name);
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(String name) {
+ GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build();
+ return getFeature(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetFeatureRequest request =
+ * GetFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * Feature response = gkeHubClient.getFeature(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Feature getFeature(GetFeatureRequest request) {
+ return getFeatureCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetFeatureRequest request =
+ * GetFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setReturnPartialSuccess(true)
+ * .build();
+ * ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request);
+ * // Do something.
+ * Feature response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getFeatureCallable() {
+ return stub.getFeatureCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Membership resource = Membership.newBuilder().build();
+ * String membershipId = "membershipId517665681";
+ * Membership response =
+ * gkeHubClient.createMembershipAsync(parent, resource, membershipId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Memberships will be
+ * created. Specified in the format `projects/*/locations/*`.
+ * @param resource Required. The membership to create.
+ * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a
+ * valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipAsync(
+ LocationName parent, Membership resource, String membershipId) {
+ CreateMembershipRequest request =
+ CreateMembershipRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setResource(resource)
+ .setMembershipId(membershipId)
+ .build();
+ return createMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Membership resource = Membership.newBuilder().build();
+ * String membershipId = "membershipId517665681";
+ * Membership response =
+ * gkeHubClient.createMembershipAsync(parent, resource, membershipId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Memberships will be
+ * created. Specified in the format `projects/*/locations/*`.
+ * @param resource Required. The membership to create.
+ * @param membershipId Required. Client chosen ID for the membership. `membership_id` must be a
+ * valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipAsync(
+ String parent, Membership resource, String membershipId) {
+ CreateMembershipRequest request =
+ CreateMembershipRequest.newBuilder()
+ .setParent(parent)
+ .setResource(resource)
+ .setMembershipId(membershipId)
+ .build();
+ return createMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipRequest request =
+ * CreateMembershipRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setMembershipId("membershipId517665681")
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Membership response = gkeHubClient.createMembershipAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipAsync(
+ CreateMembershipRequest request) {
+ return createMembershipOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipRequest request =
+ * CreateMembershipRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setMembershipId("membershipId517665681")
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createMembershipOperationCallable().futureCall(request);
+ * // Do something.
+ * Membership response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createMembershipOperationCallable() {
+ return stub.createMembershipOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * register other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipRequest request =
+ * CreateMembershipRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setMembershipId("membershipId517665681")
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.createMembershipCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createMembershipCallable() {
+ return stub.createMembershipCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Feature resource = Feature.newBuilder().build();
+ * String featureId = "featureId-420503887";
+ * Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Feature will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param resource The Feature resource to create.
+ * @param featureId The ID of the feature to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFeatureAsync(
+ LocationName parent, Feature resource, String featureId) {
+ CreateFeatureRequest request =
+ CreateFeatureRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setResource(resource)
+ .setFeatureId(featureId)
+ .build();
+ return createFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Feature resource = Feature.newBuilder().build();
+ * String featureId = "featureId-420503887";
+ * Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Feature will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param resource The Feature resource to create.
+ * @param featureId The ID of the feature to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFeatureAsync(
+ String parent, Feature resource, String featureId) {
+ CreateFeatureRequest request =
+ CreateFeatureRequest.newBuilder()
+ .setParent(parent)
+ .setResource(resource)
+ .setFeatureId(featureId)
+ .build();
+ return createFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureId("featureId-420503887")
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Feature response = gkeHubClient.createFeatureAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFeatureAsync(
+ CreateFeatureRequest request) {
+ return createFeatureOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureId("featureId-420503887")
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createFeatureOperationCallable().futureCall(request);
+ * // Do something.
+ * Feature response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createFeatureOperationCallable() {
+ return stub.createFeatureOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Adds a new Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFeatureRequest request =
+ * CreateFeatureRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFeatureId("featureId-420503887")
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.createFeatureCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createFeatureCallable() {
+ return stub.createFeatureCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * gkeHubClient.deleteMembershipAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteMembershipAsync(
+ MembershipName name) {
+ DeleteMembershipRequest request =
+ DeleteMembershipRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
+ * gkeHubClient.deleteMembershipAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteMembershipAsync(String name) {
+ DeleteMembershipRequest request = DeleteMembershipRequest.newBuilder().setName(name).build();
+ return deleteMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteMembershipRequest request =
+ * DeleteMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * gkeHubClient.deleteMembershipAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteMembershipAsync(
+ DeleteMembershipRequest request) {
+ return deleteMembershipOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteMembershipRequest request =
+ * DeleteMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteMembershipOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteMembershipOperationCallable() {
+ return stub.deleteMembershipOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Membership.
+ *
+ * **This is currently only supported for GKE clusters on Google Cloud**. To
+ * unregister other clusters, follow the instructions at
+ * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteMembershipRequest request =
+ * DeleteMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setRequestId("requestId693933066")
+ * .setForce(true)
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteMembershipCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteMembershipCallable() {
+ return stub.deleteMembershipCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
+ * gkeHubClient.deleteFeatureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFeatureAsync(FeatureName name) {
+ DeleteFeatureRequest request =
+ DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
+ * gkeHubClient.deleteFeatureAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFeatureAsync(String name) {
+ DeleteFeatureRequest request = DeleteFeatureRequest.newBuilder().setName(name).build();
+ return deleteFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setForce(true)
+ * .setRequestId("requestId693933066")
+ * .build();
+ * gkeHubClient.deleteFeatureAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFeatureAsync(
+ DeleteFeatureRequest request) {
+ return deleteFeatureOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setForce(true)
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteFeatureOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteFeatureOperationCallable() {
+ return stub.deleteFeatureOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFeatureRequest request =
+ * DeleteFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setForce(true)
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteFeatureCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteFeatureCallable() {
+ return stub.deleteFeatureCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * Membership resource = Membership.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @param resource Required. Only fields specified in update_mask are updated. If you specify a
+ * field in the update_mask but don't specify its value here that field will be deleted. If
+ * you are updating a map field, set the value of a key to null or empty string to delete the
+ * key from the map. It's not possible to update a key's value to the empty string. If you
+ * specify the update_mask to be a special path "*", fully replaces all user-modifiable
+ * fields to match `resource`.
+ * @param updateMask Required. Mask of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateMembershipAsync(
+ MembershipName name, Membership resource, FieldMask updateMask) {
+ UpdateMembershipRequest request =
+ UpdateMembershipRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setResource(resource)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
+ * Membership resource = Membership.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The Membership resource name in the format
+ * `projects/*/locations/*/memberships/*`.
+ * @param resource Required. Only fields specified in update_mask are updated. If you specify a
+ * field in the update_mask but don't specify its value here that field will be deleted. If
+ * you are updating a map field, set the value of a key to null or empty string to delete the
+ * key from the map. It's not possible to update a key's value to the empty string. If you
+ * specify the update_mask to be a special path "*", fully replaces all user-modifiable
+ * fields to match `resource`.
+ * @param updateMask Required. Mask of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateMembershipAsync(
+ String name, Membership resource, FieldMask updateMask) {
+ UpdateMembershipRequest request =
+ UpdateMembershipRequest.newBuilder()
+ .setName(name)
+ .setResource(resource)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateMembershipAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateMembershipRequest request =
+ * UpdateMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Membership response = gkeHubClient.updateMembershipAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateMembershipAsync(
+ UpdateMembershipRequest request) {
+ return updateMembershipOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateMembershipRequest request =
+ * UpdateMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateMembershipOperationCallable().futureCall(request);
+ * // Do something.
+ * Membership response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateMembershipOperationCallable() {
+ return stub.updateMembershipOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Membership.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateMembershipRequest request =
+ * UpdateMembershipRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Membership.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.updateMembershipCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateMembershipCallable() {
+ return stub.updateMembershipCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
+ * Feature resource = Feature.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`.
+ * @param resource Only fields specified in update_mask are updated. If you specify a field in the
+ * update_mask but don't specify its value here that field will be deleted. If you are
+ * updating a map field, set the value of a key to null or empty string to delete the key from
+ * the map. It's not possible to update a key's value to the empty string. If you specify the
+ * update_mask to be a special path "*", fully replaces all user-modifiable fields to
+ * match `resource`.
+ * @param updateMask Mask of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateFeatureAsync(
+ FeatureName name, Feature resource, FieldMask updateMask) {
+ UpdateFeatureRequest request =
+ UpdateFeatureRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setResource(resource)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
+ * Feature resource = Feature.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
+ * }
+ * }
+ *
+ * @param name Required. The Feature resource name in the format
+ * `projects/*/locations/*/features/*`.
+ * @param resource Only fields specified in update_mask are updated. If you specify a field in the
+ * update_mask but don't specify its value here that field will be deleted. If you are
+ * updating a map field, set the value of a key to null or empty string to delete the key from
+ * the map. It's not possible to update a key's value to the empty string. If you specify the
+ * update_mask to be a special path "*", fully replaces all user-modifiable fields to
+ * match `resource`.
+ * @param updateMask Mask of fields to update.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateFeatureAsync(
+ String name, Feature resource, FieldMask updateMask) {
+ UpdateFeatureRequest request =
+ UpdateFeatureRequest.newBuilder()
+ .setName(name)
+ .setResource(resource)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateFeatureAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * Feature response = gkeHubClient.updateFeatureAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateFeatureAsync(
+ UpdateFeatureRequest request) {
+ return updateFeatureOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateFeatureOperationCallable().futureCall(request);
+ * // Do something.
+ * Feature response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateFeatureOperationCallable() {
+ return stub.updateFeatureOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates an existing Feature.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFeatureRequest request =
+ * UpdateFeatureRequest.newBuilder()
+ * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setResource(Feature.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future = gkeHubClient.updateFeatureCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateFeatureCallable() {
+ return stub.updateFeatureCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Generates the manifest for deployment of the GKE connect agent.
+ *
+ * **This method is used internally by Google-provided libraries.** Most
+ * clients should not need to call this method directly.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GenerateConnectManifestRequest request =
+ * GenerateConnectManifestRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setNamespace("namespace1252218203")
+ * .setProxy(ByteString.EMPTY)
+ * .setVersion("version351608024")
+ * .setIsUpgrade(true)
+ * .setRegistry("registry-690212803")
+ * .setImagePullSecretContent(ByteString.EMPTY)
+ * .build();
+ * GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GenerateConnectManifestResponse generateConnectManifest(
+ GenerateConnectManifestRequest request) {
+ return generateConnectManifestCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Generates the manifest for deployment of the GKE connect agent.
+ *
+ * **This method is used internally by Google-provided libraries.** Most
+ * clients should not need to call this method directly.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GenerateConnectManifestRequest request =
+ * GenerateConnectManifestRequest.newBuilder()
+ * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setNamespace("namespace1252218203")
+ * .setProxy(ByteString.EMPTY)
+ * .setVersion("version351608024")
+ * .setIsUpgrade(true)
+ * .setRegistry("registry-690212803")
+ * .setImagePullSecretContent(ByteString.EMPTY)
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.generateConnectManifestCallable().futureCall(request);
+ * // Do something.
+ * GenerateConnectManifestResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ generateConnectManifestCallable() {
+ return stub.generateConnectManifestCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Fleet fleet = Fleet.newBuilder().build();
+ * Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Fleet will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param fleet Required. The fleet to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFleetAsync(
+ LocationName parent, Fleet fleet) {
+ CreateFleetRequest request =
+ CreateFleetRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setFleet(fleet)
+ .build();
+ return createFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Fleet fleet = Fleet.newBuilder().build();
+ * Fleet response = gkeHubClient.createFleetAsync(parent, fleet).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Fleet will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param fleet Required. The fleet to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFleetAsync(
+ String parent, Fleet fleet) {
+ CreateFleetRequest request =
+ CreateFleetRequest.newBuilder().setParent(parent).setFleet(fleet).build();
+ return createFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFleetRequest request =
+ * CreateFleetRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFleet(Fleet.newBuilder().build())
+ * .build();
+ * Fleet response = gkeHubClient.createFleetAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createFleetAsync(
+ CreateFleetRequest request) {
+ return createFleetOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFleetRequest request =
+ * CreateFleetRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFleet(Fleet.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createFleetOperationCallable().futureCall(request);
+ * // Do something.
+ * Fleet response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createFleetOperationCallable() {
+ return stub.createFleetOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateFleetRequest request =
+ * CreateFleetRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setFleet(Fleet.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.createFleetCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createFleetCallable() {
+ return stub.createFleetCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]");
+ * Fleet response = gkeHubClient.getFleet(name);
+ * }
+ * }
+ *
+ * @param name Required. The Fleet resource name in the format
+ * `projects/*/locations/*/fleets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Fleet getFleet(FleetName name) {
+ GetFleetRequest request =
+ GetFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getFleet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString();
+ * Fleet response = gkeHubClient.getFleet(name);
+ * }
+ * }
+ *
+ * @param name Required. The Fleet resource name in the format
+ * `projects/*/locations/*/fleets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Fleet getFleet(String name) {
+ GetFleetRequest request = GetFleetRequest.newBuilder().setName(name).build();
+ return getFleet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetFleetRequest request =
+ * GetFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * Fleet response = gkeHubClient.getFleet(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Fleet getFleet(GetFleetRequest request) {
+ return getFleetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetFleetRequest request =
+ * GetFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.getFleetCallable().futureCall(request);
+ * // Do something.
+ * Fleet response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getFleetCallable() {
+ return stub.getFleetCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * Fleet fleet = Fleet.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Fleet response = gkeHubClient.updateFleetAsync(fleet, updateMask).get();
+ * }
+ * }
+ *
+ * @param fleet Required. The Fleet to update.
+ * The `name` field of the Fleet object identifies which fleet will be updated.
+ * @param updateMask Required. The fields to be updated;
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateFleetAsync(
+ Fleet fleet, FieldMask updateMask) {
+ UpdateFleetRequest request =
+ UpdateFleetRequest.newBuilder().setFleet(fleet).setUpdateMask(updateMask).build();
+ return updateFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFleetRequest request =
+ * UpdateFleetRequest.newBuilder()
+ * .setFleet(Fleet.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Fleet response = gkeHubClient.updateFleetAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateFleetAsync(
+ UpdateFleetRequest request) {
+ return updateFleetOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFleetRequest request =
+ * UpdateFleetRequest.newBuilder()
+ * .setFleet(Fleet.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateFleetOperationCallable().futureCall(request);
+ * // Do something.
+ * Fleet response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateFleetOperationCallable() {
+ return stub.updateFleetOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateFleetRequest request =
+ * UpdateFleetRequest.newBuilder()
+ * .setFleet(Fleet.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.updateFleetCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateFleetCallable() {
+ return stub.updateFleetCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * FleetName name = FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]");
+ * gkeHubClient.deleteFleetAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Fleet resource name in the format
+ * `projects/*/locations/*/fleets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFleetAsync(FleetName name) {
+ DeleteFleetRequest request =
+ DeleteFleetRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]").toString();
+ * gkeHubClient.deleteFleetAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Fleet resource name in the format
+ * `projects/*/locations/*/fleets/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFleetAsync(String name) {
+ DeleteFleetRequest request = DeleteFleetRequest.newBuilder().setName(name).build();
+ return deleteFleetAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFleetRequest request =
+ * DeleteFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * gkeHubClient.deleteFleetAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteFleetAsync(
+ DeleteFleetRequest request) {
+ return deleteFleetOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFleetRequest request =
+ * DeleteFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteFleetOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteFleetOperationCallable() {
+ return stub.deleteFleetOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Removes a Fleet. There must be no memberships remaining in the Fleet.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteFleetRequest request =
+ * DeleteFleetRequest.newBuilder()
+ * .setName(
+ * FleetName.ofProjectLocationFleetName("[PROJECT]", "[LOCATION]", "[FLEET]")
+ * .toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteFleetCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteFleetCallable() {
+ return stub.deleteFleetCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The organization or project to list for Fleets under, in the format
+ * `organizations/*/locations/*` or `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFleetsPagedResponse listFleets(LocationName parent) {
+ ListFleetsRequest request =
+ ListFleetsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listFleets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Fleet element : gkeHubClient.listFleets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The organization or project to list for Fleets under, in the format
+ * `organizations/*/locations/*` or `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFleetsPagedResponse listFleets(String parent) {
+ ListFleetsRequest request = ListFleetsRequest.newBuilder().setParent(parent).build();
+ return listFleets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFleetsRequest request =
+ * ListFleetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * for (Fleet element : gkeHubClient.listFleets(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListFleetsPagedResponse listFleets(ListFleetsRequest request) {
+ return listFleetsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFleetsRequest request =
+ * ListFleetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * ApiFuture future = gkeHubClient.listFleetsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Fleet element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listFleetsPagedCallable() {
+ return stub.listFleetsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all fleets within an organization or a project that the caller has access to.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListFleetsRequest request =
+ * ListFleetsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageToken("pageToken873572522")
+ * .setPageSize(883849137)
+ * .build();
+ * while (true) {
+ * ListFleetsResponse response = gkeHubClient.listFleetsCallable().call(request);
+ * for (Fleet element : response.getFleetsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listFleetsCallable() {
+ return stub.listFleetsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
+ * Namespace response = gkeHubClient.getScopeNamespace(name);
+ * }
+ * }
+ *
+ * @param name Required. The Namespace resource name in the format
+ * `projects/*/locations/*/scopes/*/namespaces/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Namespace getScopeNamespace(NamespaceName name) {
+ GetScopeNamespaceRequest request =
+ GetScopeNamespaceRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getScopeNamespace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString();
+ * Namespace response = gkeHubClient.getScopeNamespace(name);
+ * }
+ * }
+ *
+ * @param name Required. The Namespace resource name in the format
+ * `projects/*/locations/*/scopes/*/namespaces/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Namespace getScopeNamespace(String name) {
+ GetScopeNamespaceRequest request = GetScopeNamespaceRequest.newBuilder().setName(name).build();
+ return getScopeNamespace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeNamespaceRequest request =
+ * GetScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * Namespace response = gkeHubClient.getScopeNamespace(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Namespace getScopeNamespace(GetScopeNamespaceRequest request) {
+ return getScopeNamespaceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeNamespaceRequest request =
+ * GetScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.getScopeNamespaceCallable().futureCall(request);
+ * // Do something.
+ * Namespace response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getScopeNamespaceCallable() {
+ return stub.getScopeNamespaceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * Namespace scopeNamespace = Namespace.newBuilder().build();
+ * String scopeNamespaceId = "scopeNamespaceId-125738782";
+ * Namespace response =
+ * gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Namespace will be created.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param scopeNamespace Required. The fleet namespace to create.
+ * @param scopeNamespaceId Required. Client chosen ID for the Namespace. `namespace_id` must be a
+ * valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeNamespaceAsync(
+ ScopeName parent, Namespace scopeNamespace, String scopeNamespaceId) {
+ CreateScopeNamespaceRequest request =
+ CreateScopeNamespaceRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setScopeNamespace(scopeNamespace)
+ .setScopeNamespaceId(scopeNamespaceId)
+ .build();
+ return createScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * Namespace scopeNamespace = Namespace.newBuilder().build();
+ * String scopeNamespaceId = "scopeNamespaceId-125738782";
+ * Namespace response =
+ * gkeHubClient.createScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Namespace will be created.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param scopeNamespace Required. The fleet namespace to create.
+ * @param scopeNamespaceId Required. Client chosen ID for the Namespace. `namespace_id` must be a
+ * valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeNamespaceAsync(
+ String parent, Namespace scopeNamespace, String scopeNamespaceId) {
+ CreateScopeNamespaceRequest request =
+ CreateScopeNamespaceRequest.newBuilder()
+ .setParent(parent)
+ .setScopeNamespace(scopeNamespace)
+ .setScopeNamespaceId(scopeNamespaceId)
+ .build();
+ return createScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeNamespaceRequest request =
+ * CreateScopeNamespaceRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setScopeNamespaceId("scopeNamespaceId-125738782")
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .build();
+ * Namespace response = gkeHubClient.createScopeNamespaceAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeNamespaceAsync(
+ CreateScopeNamespaceRequest request) {
+ return createScopeNamespaceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeNamespaceRequest request =
+ * CreateScopeNamespaceRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setScopeNamespaceId("scopeNamespaceId-125738782")
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createScopeNamespaceOperationCallable().futureCall(request);
+ * // Do something.
+ * Namespace response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createScopeNamespaceOperationCallable() {
+ return stub.createScopeNamespaceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeNamespaceRequest request =
+ * CreateScopeNamespaceRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setScopeNamespaceId("scopeNamespaceId-125738782")
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.createScopeNamespaceCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createScopeNamespaceCallable() {
+ return stub.createScopeNamespaceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * Namespace scopeNamespace = Namespace.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Namespace response = gkeHubClient.updateScopeNamespaceAsync(scopeNamespace, updateMask).get();
+ * }
+ * }
+ *
+ * @param scopeNamespace Required. A namespace with fields updated. The 'name' field in this
+ * namespace is used to identify the resource to update. Given 'updated' prefix to follow
+ * go/proto-best-practices-checkers#keyword_conflict
+ * @param updateMask Required. The fields to be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateScopeNamespaceAsync(
+ Namespace scopeNamespace, FieldMask updateMask) {
+ UpdateScopeNamespaceRequest request =
+ UpdateScopeNamespaceRequest.newBuilder()
+ .setScopeNamespace(scopeNamespace)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeNamespaceRequest request =
+ * UpdateScopeNamespaceRequest.newBuilder()
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Namespace response = gkeHubClient.updateScopeNamespaceAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateScopeNamespaceAsync(
+ UpdateScopeNamespaceRequest request) {
+ return updateScopeNamespaceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeNamespaceRequest request =
+ * UpdateScopeNamespaceRequest.newBuilder()
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateScopeNamespaceOperationCallable().futureCall(request);
+ * // Do something.
+ * Namespace response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateScopeNamespaceOperationCallable() {
+ return stub.updateScopeNamespaceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeNamespaceRequest request =
+ * UpdateScopeNamespaceRequest.newBuilder()
+ * .setScopeNamespace(Namespace.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.updateScopeNamespaceCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateScopeNamespaceCallable() {
+ return stub.updateScopeNamespaceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
+ * gkeHubClient.deleteScopeNamespaceAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Namespace resource name in the format
+ * `projects/*/locations/*/scopes/*/namespaces/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeNamespaceAsync(
+ NamespaceName name) {
+ DeleteScopeNamespaceRequest request =
+ DeleteScopeNamespaceRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString();
+ * gkeHubClient.deleteScopeNamespaceAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Namespace resource name in the format
+ * `projects/*/locations/*/scopes/*/namespaces/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeNamespaceAsync(String name) {
+ DeleteScopeNamespaceRequest request =
+ DeleteScopeNamespaceRequest.newBuilder().setName(name).build();
+ return deleteScopeNamespaceAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeNamespaceRequest request =
+ * DeleteScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * gkeHubClient.deleteScopeNamespaceAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeNamespaceAsync(
+ DeleteScopeNamespaceRequest request) {
+ return deleteScopeNamespaceOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeNamespaceRequest request =
+ * DeleteScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteScopeNamespaceOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteScopeNamespaceOperationCallable() {
+ return stub.deleteScopeNamespaceOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a fleet namespace.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeNamespaceRequest request =
+ * DeleteScopeNamespaceRequest.newBuilder()
+ * .setName(
+ * NamespaceName.of("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteScopeNamespaceCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteScopeNamespaceCallable() {
+ return stub.deleteScopeNamespaceCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeNamespacesPagedResponse listScopeNamespaces(ScopeName parent) {
+ ListScopeNamespacesRequest request =
+ ListScopeNamespacesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listScopeNamespaces(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * for (Namespace element : gkeHubClient.listScopeNamespaces(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeNamespacesPagedResponse listScopeNamespaces(String parent) {
+ ListScopeNamespacesRequest request =
+ ListScopeNamespacesRequest.newBuilder().setParent(parent).build();
+ return listScopeNamespaces(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeNamespacesRequest request =
+ * ListScopeNamespacesRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Namespace element : gkeHubClient.listScopeNamespaces(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeNamespacesPagedResponse listScopeNamespaces(
+ ListScopeNamespacesRequest request) {
+ return listScopeNamespacesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeNamespacesRequest request =
+ * ListScopeNamespacesRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.listScopeNamespacesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Namespace element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listScopeNamespacesPagedCallable() {
+ return stub.listScopeNamespacesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists fleet namespaces.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeNamespacesRequest request =
+ * ListScopeNamespacesRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListScopeNamespacesResponse response =
+ * gkeHubClient.listScopeNamespacesCallable().call(request);
+ * for (Namespace element : response.getScopeNamespacesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listScopeNamespacesCallable() {
+ return stub.listScopeNamespacesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * RBACRoleBindingName name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
+ * RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RBACRoleBinding getScopeRBACRoleBinding(RBACRoleBindingName name) {
+ GetScopeRBACRoleBindingRequest request =
+ GetScopeRBACRoleBindingRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getScopeRBACRoleBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString();
+ * RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RBACRoleBinding getScopeRBACRoleBinding(String name) {
+ GetScopeRBACRoleBindingRequest request =
+ GetScopeRBACRoleBindingRequest.newBuilder().setName(name).build();
+ return getScopeRBACRoleBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeRBACRoleBindingRequest request =
+ * GetScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * RBACRoleBinding response = gkeHubClient.getScopeRBACRoleBinding(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RBACRoleBinding getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request) {
+ return getScopeRBACRoleBindingCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeRBACRoleBindingRequest request =
+ * GetScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.getScopeRBACRoleBindingCallable().futureCall(request);
+ * // Do something.
+ * RBACRoleBinding response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getScopeRBACRoleBindingCallable() {
+ return stub.getScopeRBACRoleBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
+ * String rbacrolebindingId = "rbacrolebindingId827577784";
+ * RBACRoleBinding response =
+ * gkeHubClient
+ * .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the RBACRoleBinding will be
+ * created. Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param rbacrolebinding Required. The rbacrolebindings to create.
+ * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding.
+ * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeRBACRoleBindingAsync(
+ MembershipName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) {
+ CreateScopeRBACRoleBindingRequest request =
+ CreateScopeRBACRoleBindingRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setRbacrolebinding(rbacrolebinding)
+ .setRbacrolebindingId(rbacrolebindingId)
+ .build();
+ return createScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
+ * String rbacrolebindingId = "rbacrolebindingId827577784";
+ * RBACRoleBinding response =
+ * gkeHubClient
+ * .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the RBACRoleBinding will be
+ * created. Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param rbacrolebinding Required. The rbacrolebindings to create.
+ * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding.
+ * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeRBACRoleBindingAsync(
+ ScopeName parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) {
+ CreateScopeRBACRoleBindingRequest request =
+ CreateScopeRBACRoleBindingRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setRbacrolebinding(rbacrolebinding)
+ .setRbacrolebindingId(rbacrolebindingId)
+ .build();
+ return createScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
+ * String rbacrolebindingId = "rbacrolebindingId827577784";
+ * RBACRoleBinding response =
+ * gkeHubClient
+ * .createScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the RBACRoleBinding will be
+ * created. Specified in the format `projects/*/locations/*/scopes/*`.
+ * @param rbacrolebinding Required. The rbacrolebindings to create.
+ * @param rbacrolebindingId Required. Client chosen ID for the RBACRoleBinding.
+ * `rbacrolebinding_id` must be a valid RFC 1123 compliant DNS label:
+ * 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ *
Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeRBACRoleBindingAsync(
+ String parent, RBACRoleBinding rbacrolebinding, String rbacrolebindingId) {
+ CreateScopeRBACRoleBindingRequest request =
+ CreateScopeRBACRoleBindingRequest.newBuilder()
+ .setParent(parent)
+ .setRbacrolebinding(rbacrolebinding)
+ .setRbacrolebindingId(rbacrolebindingId)
+ .build();
+ return createScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRBACRoleBindingRequest request =
+ * CreateScopeRBACRoleBindingRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setRbacrolebindingId("rbacrolebindingId827577784")
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .build();
+ * RBACRoleBinding response = gkeHubClient.createScopeRBACRoleBindingAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeRBACRoleBindingAsync(
+ CreateScopeRBACRoleBindingRequest request) {
+ return createScopeRBACRoleBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRBACRoleBindingRequest request =
+ * CreateScopeRBACRoleBindingRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setRbacrolebindingId("rbacrolebindingId827577784")
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createScopeRBACRoleBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * RBACRoleBinding response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CreateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata>
+ createScopeRBACRoleBindingOperationCallable() {
+ return stub.createScopeRBACRoleBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRBACRoleBindingRequest request =
+ * CreateScopeRBACRoleBindingRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setRbacrolebindingId("rbacrolebindingId827577784")
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.createScopeRBACRoleBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createScopeRBACRoleBindingCallable() {
+ return stub.createScopeRBACRoleBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * RBACRoleBinding rbacrolebinding = RBACRoleBinding.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * RBACRoleBinding response =
+ * gkeHubClient.updateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask).get();
+ * }
+ * }
+ *
+ * @param rbacrolebinding Required. A rbacrolebinding with fields updated. The 'name' field in
+ * this rbacrolebinding is used to identify the resource to update.
+ * @param updateMask Required. The fields to be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateScopeRBACRoleBindingAsync(
+ RBACRoleBinding rbacrolebinding, FieldMask updateMask) {
+ UpdateScopeRBACRoleBindingRequest request =
+ UpdateScopeRBACRoleBindingRequest.newBuilder()
+ .setRbacrolebinding(rbacrolebinding)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRBACRoleBindingRequest request =
+ * UpdateScopeRBACRoleBindingRequest.newBuilder()
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * RBACRoleBinding response = gkeHubClient.updateScopeRBACRoleBindingAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateScopeRBACRoleBindingAsync(
+ UpdateScopeRBACRoleBindingRequest request) {
+ return updateScopeRBACRoleBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRBACRoleBindingRequest request =
+ * UpdateScopeRBACRoleBindingRequest.newBuilder()
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateScopeRBACRoleBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * RBACRoleBinding response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ UpdateScopeRBACRoleBindingRequest, RBACRoleBinding, OperationMetadata>
+ updateScopeRBACRoleBindingOperationCallable() {
+ return stub.updateScopeRBACRoleBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRBACRoleBindingRequest request =
+ * UpdateScopeRBACRoleBindingRequest.newBuilder()
+ * .setRbacrolebinding(RBACRoleBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.updateScopeRBACRoleBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateScopeRBACRoleBindingCallable() {
+ return stub.updateScopeRBACRoleBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * RBACRoleBindingName name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
+ * gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeRBACRoleBindingAsync(
+ RBACRoleBindingName name) {
+ DeleteScopeRBACRoleBindingRequest request =
+ DeleteScopeRBACRoleBindingRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deleteScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString();
+ * gkeHubClient.deleteScopeRBACRoleBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/scopes/*/rbacrolebindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeRBACRoleBindingAsync(
+ String name) {
+ DeleteScopeRBACRoleBindingRequest request =
+ DeleteScopeRBACRoleBindingRequest.newBuilder().setName(name).build();
+ return deleteScopeRBACRoleBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRBACRoleBindingRequest request =
+ * DeleteScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * gkeHubClient.deleteScopeRBACRoleBindingAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeRBACRoleBindingAsync(
+ DeleteScopeRBACRoleBindingRequest request) {
+ return deleteScopeRBACRoleBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRBACRoleBindingRequest request =
+ * DeleteScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteScopeRBACRoleBindingOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteScopeRBACRoleBindingOperationCallable() {
+ return stub.deleteScopeRBACRoleBindingOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope RBACRoleBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRBACRoleBindingRequest request =
+ * DeleteScopeRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.deleteScopeRBACRoleBindingCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteScopeRBACRoleBindingCallable() {
+ return stub.deleteScopeRBACRoleBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(
+ MembershipName parent) {
+ ListScopeRBACRoleBindingsRequest request =
+ ListScopeRBACRoleBindingsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listScopeRBACRoleBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(ScopeName parent) {
+ ListScopeRBACRoleBindingsRequest request =
+ ListScopeRBACRoleBindingsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listScopeRBACRoleBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Features will be listed.
+ * Specified in the format `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(String parent) {
+ ListScopeRBACRoleBindingsRequest request =
+ ListScopeRBACRoleBindingsRequest.newBuilder().setParent(parent).build();
+ return listScopeRBACRoleBindings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeRBACRoleBindingsRequest request =
+ * ListScopeRBACRoleBindingsRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (RBACRoleBinding element : gkeHubClient.listScopeRBACRoleBindings(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopeRBACRoleBindingsPagedResponse listScopeRBACRoleBindings(
+ ListScopeRBACRoleBindingsRequest request) {
+ return listScopeRBACRoleBindingsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeRBACRoleBindingsRequest request =
+ * ListScopeRBACRoleBindingsRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.listScopeRBACRoleBindingsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (RBACRoleBinding element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListScopeRBACRoleBindingsRequest, ListScopeRBACRoleBindingsPagedResponse>
+ listScopeRBACRoleBindingsPagedCallable() {
+ return stub.listScopeRBACRoleBindingsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists all Scope RBACRoleBindings.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopeRBACRoleBindingsRequest request =
+ * ListScopeRBACRoleBindingsRequest.newBuilder()
+ * .setParent(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListScopeRBACRoleBindingsResponse response =
+ * gkeHubClient.listScopeRBACRoleBindingsCallable().call(request);
+ * for (RBACRoleBinding element : response.getRbacrolebindingsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listScopeRBACRoleBindingsCallable() {
+ return stub.listScopeRBACRoleBindingsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * Scope response = gkeHubClient.getScope(name);
+ * }
+ * }
+ *
+ * @param name Required. The Scope resource name in the format
+ * `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Scope getScope(ScopeName name) {
+ GetScopeRequest request =
+ GetScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getScope(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * Scope response = gkeHubClient.getScope(name);
+ * }
+ * }
+ *
+ * @param name Required. The Scope resource name in the format
+ * `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Scope getScope(String name) {
+ GetScopeRequest request = GetScopeRequest.newBuilder().setName(name).build();
+ return getScope(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeRequest request =
+ * GetScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * Scope response = gkeHubClient.getScope(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Scope getScope(GetScopeRequest request) {
+ return getScopeCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetScopeRequest request =
+ * GetScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.getScopeCallable().futureCall(request);
+ * // Do something.
+ * Scope response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getScopeCallable() {
+ return stub.getScopeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * Scope scope = Scope.newBuilder().build();
+ * String scopeId = "scopeId1923941007";
+ * Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param scope Required. The Scope to create.
+ * @param scopeId Required. Client chosen ID for the Scope. `scope_id` must be a ????
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeAsync(
+ LocationName parent, Scope scope, String scopeId) {
+ CreateScopeRequest request =
+ CreateScopeRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setScope(scope)
+ .setScopeId(scopeId)
+ .build();
+ return createScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * Scope scope = Scope.newBuilder().build();
+ * String scopeId = "scopeId1923941007";
+ * Scope response = gkeHubClient.createScopeAsync(parent, scope, scopeId).get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be created.
+ * Specified in the format `projects/*/locations/*`.
+ * @param scope Required. The Scope to create.
+ * @param scopeId Required. Client chosen ID for the Scope. `scope_id` must be a ????
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeAsync(
+ String parent, Scope scope, String scopeId) {
+ CreateScopeRequest request =
+ CreateScopeRequest.newBuilder()
+ .setParent(parent)
+ .setScope(scope)
+ .setScopeId(scopeId)
+ .build();
+ return createScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRequest request =
+ * CreateScopeRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setScopeId("scopeId1923941007")
+ * .setScope(Scope.newBuilder().build())
+ * .build();
+ * Scope response = gkeHubClient.createScopeAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createScopeAsync(
+ CreateScopeRequest request) {
+ return createScopeOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRequest request =
+ * CreateScopeRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setScopeId("scopeId1923941007")
+ * .setScope(Scope.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createScopeOperationCallable().futureCall(request);
+ * // Do something.
+ * Scope response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ createScopeOperationCallable() {
+ return stub.createScopeOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateScopeRequest request =
+ * CreateScopeRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setScopeId("scopeId1923941007")
+ * .setScope(Scope.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.createScopeCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createScopeCallable() {
+ return stub.createScopeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * Scope scope = Scope.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Scope response = gkeHubClient.updateScopeAsync(scope, updateMask).get();
+ * }
+ * }
+ *
+ * @param scope Required. A Scope with fields updated. The 'name' field in this namespace is used
+ * to identify the resource to update.
+ * @param updateMask Required. The fields to be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateScopeAsync(
+ Scope scope, FieldMask updateMask) {
+ UpdateScopeRequest request =
+ UpdateScopeRequest.newBuilder().setScope(scope).setUpdateMask(updateMask).build();
+ return updateScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRequest request =
+ * UpdateScopeRequest.newBuilder()
+ * .setScope(Scope.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Scope response = gkeHubClient.updateScopeAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updateScopeAsync(
+ UpdateScopeRequest request) {
+ return updateScopeOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRequest request =
+ * UpdateScopeRequest.newBuilder()
+ * .setScope(Scope.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.updateScopeOperationCallable().futureCall(request);
+ * // Do something.
+ * Scope response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ updateScopeOperationCallable() {
+ return stub.updateScopeOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateScopeRequest request =
+ * UpdateScopeRequest.newBuilder()
+ * .setScope(Scope.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future = gkeHubClient.updateScopeCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateScopeCallable() {
+ return stub.updateScopeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ScopeName name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]");
+ * gkeHubClient.deleteScopeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Scope resource name in the format
+ * `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeAsync(ScopeName name) {
+ DeleteScopeRequest request =
+ DeleteScopeRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return deleteScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name = ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString();
+ * gkeHubClient.deleteScopeAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The Scope resource name in the format
+ * `projects/*/locations/*/scopes/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeAsync(String name) {
+ DeleteScopeRequest request = DeleteScopeRequest.newBuilder().setName(name).build();
+ return deleteScopeAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRequest request =
+ * DeleteScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * gkeHubClient.deleteScopeAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteScopeAsync(
+ DeleteScopeRequest request) {
+ return deleteScopeOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRequest request =
+ * DeleteScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.deleteScopeOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deleteScopeOperationCallable() {
+ return stub.deleteScopeOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a Scope.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteScopeRequest request =
+ * DeleteScopeRequest.newBuilder()
+ * .setName(ScopeName.of("[PROJECT]", "[LOCATION]", "[SCOPE]").toString())
+ * .build();
+ * ApiFuture future = gkeHubClient.deleteScopeCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteScopeCallable() {
+ return stub.deleteScopeCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopesPagedResponse listScopes(LocationName parent) {
+ ListScopesRequest request =
+ ListScopesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
+ return listScopes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Scope element : gkeHubClient.listScopes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopesPagedResponse listScopes(String parent) {
+ ListScopesRequest request = ListScopesRequest.newBuilder().setParent(parent).build();
+ return listScopes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopesRequest request =
+ * ListScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Scope element : gkeHubClient.listScopes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListScopesPagedResponse listScopes(ListScopesRequest request) {
+ return listScopesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopesRequest request =
+ * ListScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = gkeHubClient.listScopesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Scope element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listScopesPagedCallable() {
+ return stub.listScopesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListScopesRequest request =
+ * ListScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListScopesResponse response = gkeHubClient.listScopesCallable().call(request);
+ * for (Scope element : response.getScopesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable listScopesCallable() {
+ return stub.listScopesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPermittedScopesPagedResponse listPermittedScopes(LocationName parent) {
+ ListPermittedScopesRequest request =
+ ListPermittedScopesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listPermittedScopes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (Scope element : gkeHubClient.listPermittedScopes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the Scope will be listed.
+ * Specified in the format `projects/*/locations/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPermittedScopesPagedResponse listPermittedScopes(String parent) {
+ ListPermittedScopesRequest request =
+ ListPermittedScopesRequest.newBuilder().setParent(parent).build();
+ return listPermittedScopes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListPermittedScopesRequest request =
+ * ListPermittedScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Scope element : gkeHubClient.listPermittedScopes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPermittedScopesPagedResponse listPermittedScopes(
+ ListPermittedScopesRequest request) {
+ return listPermittedScopesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListPermittedScopesRequest request =
+ * ListPermittedScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future = gkeHubClient.listPermittedScopesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Scope element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPermittedScopesPagedCallable() {
+ return stub.listPermittedScopesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists permitted Scopes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * ListPermittedScopesRequest request =
+ * ListPermittedScopesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListPermittedScopesResponse response =
+ * gkeHubClient.listPermittedScopesCallable().call(request);
+ * for (Scope element : response.getScopesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPermittedScopesCallable() {
+ return stub.listPermittedScopesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a MembershipBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipBindingName name =
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
+ * MembershipBinding response = gkeHubClient.getMembershipBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The MembershipBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/bindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MembershipBinding getMembershipBinding(MembershipBindingName name) {
+ GetMembershipBindingRequest request =
+ GetMembershipBindingRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getMembershipBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a MembershipBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString();
+ * MembershipBinding response = gkeHubClient.getMembershipBinding(name);
+ * }
+ * }
+ *
+ * @param name Required. The MembershipBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/bindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MembershipBinding getMembershipBinding(String name) {
+ GetMembershipBindingRequest request =
+ GetMembershipBindingRequest.newBuilder().setName(name).build();
+ return getMembershipBinding(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a MembershipBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetMembershipBindingRequest request =
+ * GetMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
+ * .build();
+ * MembershipBinding response = gkeHubClient.getMembershipBinding(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MembershipBinding getMembershipBinding(GetMembershipBindingRequest request) {
+ return getMembershipBindingCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the details of a MembershipBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * GetMembershipBindingRequest request =
+ * GetMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * gkeHubClient.getMembershipBindingCallable().futureCall(request);
+ * // Do something.
+ * MembershipBinding response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getMembershipBindingCallable() {
+ return stub.getMembershipBindingCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a MembershipBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
+ * String membershipBindingId = "membershipBindingId1360802634";
+ * MembershipBinding response =
+ * gkeHubClient
+ * .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the MembershipBinding will be
+ * created. Specified in the format `projects/*/locations/*/memberships/*`.
+ * @param membershipBinding Required. The MembershipBinding to create.
+ * @param membershipBindingId Required. The ID to use for the MembershipBinding.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipBindingAsync(
+ MembershipName parent, MembershipBinding membershipBinding, String membershipBindingId) {
+ CreateMembershipBindingRequest request =
+ CreateMembershipBindingRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMembershipBinding(membershipBinding)
+ .setMembershipBindingId(membershipBindingId)
+ .build();
+ return createMembershipBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a MembershipBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
+ * MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
+ * String membershipBindingId = "membershipBindingId1360802634";
+ * MembershipBinding response =
+ * gkeHubClient
+ * .createMembershipBindingAsync(parent, membershipBinding, membershipBindingId)
+ * .get();
+ * }
+ * }
+ *
+ * @param parent Required. The parent (project and location) where the MembershipBinding will be
+ * created. Specified in the format `projects/*/locations/*/memberships/*`.
+ * @param membershipBinding Required. The MembershipBinding to create.
+ * @param membershipBindingId Required. The ID to use for the MembershipBinding.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipBindingAsync(
+ String parent, MembershipBinding membershipBinding, String membershipBindingId) {
+ CreateMembershipBindingRequest request =
+ CreateMembershipBindingRequest.newBuilder()
+ .setParent(parent)
+ .setMembershipBinding(membershipBinding)
+ .setMembershipBindingId(membershipBindingId)
+ .build();
+ return createMembershipBindingAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a MembershipBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipBindingRequest request =
+ * CreateMembershipBindingRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setMembershipBindingId("membershipBindingId1360802634")
* .build();
- * ApiFuture future =
- * gkeHubClient.listMembershipsPagedCallable().futureCall(request);
+ * MembershipBinding response = gkeHubClient.createMembershipBindingAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture createMembershipBindingAsync(
+ CreateMembershipBindingRequest request) {
+ return createMembershipBindingOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a MembershipBinding.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * CreateMembershipBindingRequest request =
+ * CreateMembershipBindingRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setMembershipBindingId("membershipBindingId1360802634")
+ * .build();
+ * OperationFuture future =
+ * gkeHubClient.createMembershipBindingOperationCallable().futureCall(request);
* // Do something.
- * for (Membership element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
+ * MembershipBinding response = future.get();
* }
* }
*/
- public final UnaryCallable
- listMembershipsPagedCallable() {
- return stub.listMembershipsPagedCallable();
+ public final OperationCallable<
+ CreateMembershipBindingRequest, MembershipBinding, OperationMetadata>
+ createMembershipBindingOperationCallable() {
+ return stub.createMembershipBindingOperationCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Memberships in a given project and location.
+ * Creates a MembershipBinding.
*
* Sample code:
*
@@ -570,37 +6341,27 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListMembershipsRequest request =
- * ListMembershipsRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * CreateMembershipBindingRequest request =
+ * CreateMembershipBindingRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setMembershipBindingId("membershipBindingId1360802634")
* .build();
- * while (true) {
- * ListMembershipsResponse response = gkeHubClient.listMembershipsCallable().call(request);
- * for (Membership element : response.getResourcesList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * ApiFuture future =
+ * gkeHubClient.createMembershipBindingCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
* }
* }
*/
- public final UnaryCallableSample code:
*
@@ -611,28 +6372,30 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * MembershipBinding membershipBinding = MembershipBinding.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * MembershipBinding response =
+ * gkeHubClient.updateMembershipBindingAsync(membershipBinding, updateMask).get();
* }
* }
*
- * @param parent Required. The parent (project and location) where the Features will be listed.
- * Specified in the format `projects/*/locations/*`.
+ * @param membershipBinding Required. The MembershipBinding object with fields updated.
+ * @param updateMask Required. The fields to be updated.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListFeaturesPagedResponse listFeatures(LocationName parent) {
- ListFeaturesRequest request =
- ListFeaturesRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
+ public final OperationFuture Sample code:
*
@@ -643,25 +6406,26 @@ public final ListFeaturesPagedResponse listFeatures(LocationName parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
- * for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * UpdateMembershipBindingRequest request =
+ * UpdateMembershipBindingRequest.newBuilder()
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * MembershipBinding response = gkeHubClient.updateMembershipBindingAsync(request).get();
* }
* }
*
- * @param parent Required. The parent (project and location) where the Features will be listed.
- * Specified in the format `projects/*/locations/*`.
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListFeaturesPagedResponse listFeatures(String parent) {
- ListFeaturesRequest request = ListFeaturesRequest.newBuilder().setParent(parent).build();
- return listFeatures(request);
+ public final OperationFuture Sample code:
*
@@ -672,30 +6436,152 @@ public final ListFeaturesPagedResponse listFeatures(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListFeaturesRequest request =
- * ListFeaturesRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * UpdateMembershipBindingRequest request =
+ * UpdateMembershipBindingRequest.newBuilder()
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * for (Feature element : gkeHubClient.listFeatures(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * OperationFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -706,30 +6592,28 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListFeaturesRequest request =
- * ListFeaturesRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * DeleteMembershipBindingRequest request =
+ * DeleteMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -740,36 +6624,60 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * ListFeaturesRequest request =
- * ListFeaturesRequest.newBuilder()
- * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .setOrderBy("orderBy-1207110587")
+ * DeleteMembershipBindingRequest request =
+ * DeleteMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
* .build();
- * while (true) {
- * ListFeaturesResponse response = gkeHubClient.listFeaturesCallable().call(request);
- * for (Feature element : response.getResourcesList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
+ * ApiFuture Sample code:
+ *
+ * Sample code:
*
@@ -780,24 +6688,26 @@ public final UnaryCallable Sample code:
*
@@ -808,23 +6718,30 @@ public final Membership getMembership(MembershipName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
- * Membership response = gkeHubClient.getMembership(name);
+ * ListMembershipBindingsRequest request =
+ * ListMembershipBindingsRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (MembershipBinding element : gkeHubClient.listMembershipBindings(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
- * @param name Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Membership getMembership(String name) {
- GetMembershipRequest request = GetMembershipRequest.newBuilder().setName(name).build();
- return getMembership(request);
+ public final ListMembershipBindingsPagedResponse listMembershipBindings(
+ ListMembershipBindingsRequest request) {
+ return listMembershipBindingsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets the details of a Membership.
+ * Lists MembershipBindings.
*
* Sample code:
*
@@ -835,24 +6752,30 @@ public final Membership getMembership(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GetMembershipRequest request =
- * GetMembershipRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * ListMembershipBindingsRequest request =
+ * ListMembershipBindingsRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
* .build();
- * Membership response = gkeHubClient.getMembership(request);
+ * ApiFuture Sample code:
*
@@ -863,23 +6786,37 @@ public final Membership getMembership(GetMembershipRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GetMembershipRequest request =
- * GetMembershipRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * ListMembershipBindingsRequest request =
+ * ListMembershipBindingsRequest.newBuilder()
+ * .setParent(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
* .build();
- * ApiFuture Sample code:
*
@@ -890,24 +6827,28 @@ public final UnaryCallable Sample code:
*
@@ -918,23 +6859,27 @@ public final Feature getFeature(FeatureName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
- * Feature response = gkeHubClient.getFeature(name);
+ * String name =
+ * RBACRoleBindingName.ofProjectLocationScopeRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]")
+ * .toString();
+ * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(name);
* }
* }
*
- * @param name Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`
+ * @param name Required. The RBACRoleBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/rbacrolebindings/*`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Feature getFeature(String name) {
- GetFeatureRequest request = GetFeatureRequest.newBuilder().setName(name).build();
- return getFeature(request);
+ public final RBACRoleBinding getMembershipRBACRoleBinding(String name) {
+ GetMembershipRBACRoleBindingRequest request =
+ GetMembershipRBACRoleBindingRequest.newBuilder().setName(name).build();
+ return getMembershipRBACRoleBinding(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Feature.
+ * Returns the details of a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -945,24 +6890,28 @@ public final Feature getFeature(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GetFeatureRequest request =
- * GetFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * GetMembershipRBACRoleBindingRequest request =
+ * GetMembershipRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]")
+ * .toString())
* .build();
- * Feature response = gkeHubClient.getFeature(request);
+ * RBACRoleBinding response = gkeHubClient.getMembershipRBACRoleBinding(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Feature getFeature(GetFeatureRequest request) {
- return getFeatureCallable().call(request);
+ public final RBACRoleBinding getMembershipRBACRoleBinding(
+ GetMembershipRBACRoleBindingRequest request) {
+ return getMembershipRBACRoleBindingCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets details of a single Feature.
+ * Returns the details of a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -973,27 +6922,28 @@ public final Feature getFeature(GetFeatureRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GetFeatureRequest request =
- * GetFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+ * GetMembershipRBACRoleBindingRequest request =
+ * GetMembershipRBACRoleBindingRequest.newBuilder()
+ * .setName(
+ * RBACRoleBindingName.ofProjectLocationMembershipRbacrolebindingName(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[RBACROLEBINDING]")
+ * .toString())
* .build();
- * ApiFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1004,43 +6954,42 @@ public final UnaryCallable 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
* characters or `-` 3. It must start and end with an alphanumeric character
* Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
* length of 63 characters.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1051,43 +7000,42 @@ public final OperationFuture 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
* characters or `-` 3. It must start and end with an alphanumeric character
* Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
* length of 63 characters.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1098,32 +7046,42 @@ public final OperationFuture 1. At most 63 characters in length 2. It must consist of lower case alphanumeric
+ * characters or `-` 3. It must start and end with an alphanumeric character
+ * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum
+ * length of 63 characters.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1134,32 +7092,27 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * register other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+ * Creates a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1170,26 +7123,28 @@ public final OperationFuture Sample code:
*
@@ -1200,33 +7155,27 @@ public final UnaryCallable Sample code:
*
@@ -1237,33 +7186,31 @@ public final OperationFuture Sample code:
*
@@ -1274,28 +7221,26 @@ public final OperationFuture Sample code:
*
@@ -1306,28 +7251,27 @@ public final OperationFuture Sample code:
*
@@ -1338,30 +7282,26 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1372,29 +7312,29 @@ public final UnaryCallable **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1405,27 +7345,28 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1436,31 +7377,28 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1471,31 +7409,28 @@ public final OperationFuture **This is currently only supported for GKE clusters on Google Cloud**. To
- * unregister other clusters, follow the instructions at
- * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+ * Deletes a Membership RBACRoleBinding.
*
* Sample code:
*
@@ -1506,25 +7441,28 @@ public final OperationFuture Sample code:
*
@@ -1535,24 +7473,30 @@ public final UnaryCallable Sample code:
*
@@ -1563,23 +7507,30 @@ public final OperationFuture Sample code:
*
@@ -1590,27 +7541,28 @@ public final OperationFuture Sample code:
*
@@ -1621,27 +7573,30 @@ public final OperationFuture Sample code:
*
@@ -1652,67 +7607,30 @@ public final OperationFuture Sample code:
- *
- * Sample code:
*
@@ -1723,38 +7641,38 @@ public final OperationFuture Sample code:
*
@@ -1765,28 +7683,29 @@ public final OperationFuture Sample code:
*
@@ -1797,488 +7716,869 @@ public final OperationFuture Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * Sample code:
- *
- * **This method is used internally by Google-provided libraries.** Most
- * clients should not need to call this method directly.
- *
- * Sample code:
- *
- * **This method is used internally by Google-provided libraries.** Most
- * clients should not need to call this method directly.
- *
- * Sample code:
- *
- * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * UpdateMembershipBindingRequest request =
+ * UpdateMembershipBindingRequest.newBuilder()
+ * .setMembershipBinding(MembershipBinding.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipBindingName name =
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
+ * gkeHubClient.deleteMembershipBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The MembershipBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/bindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * String name =
+ * MembershipBindingName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString();
+ * gkeHubClient.deleteMembershipBindingAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The MembershipBinding resource name in the format
+ * `projects/*/locations/*/memberships/*/bindings/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * DeleteMembershipBindingRequest request =
+ * DeleteMembershipBindingRequest.newBuilder()
+ * .setName(
+ * MembershipBindingName.of(
+ * "[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]")
+ * .toString())
+ * .build();
+ * gkeHubClient.deleteMembershipBindingAsync(request).get();
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) {
- return listFeaturesPagedCallable().call(request);
+ public final OperationFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+ * MembershipName parent = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+ * for (MembershipBinding element : gkeHubClient.listMembershipBindings(parent).iterateAll()) {
+ * // doThingsWith(element);
* }
* }
* }
+ *
+ * @param parent Required. The parent Membership for which the MembershipBindings will be listed.
+ * Specified in the format `projects/*/locations/*/memberships/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
- * Membership resource = Membership.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
+ * for (RBACRoleBinding element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
- *
- * @param name Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- * @param resource Required. Only fields specified in update_mask are updated. If you specify a
- * field in the update_mask but don't specify its value here that field will be deleted. If
- * you are updating a map field, set the value of a key to null or empty string to delete the
- * key from the map. It's not possible to update a key's value to the empty string. If you
- * specify the update_mask to be a special path "*", fully replaces all user-modifiable
- * fields to match `resource`.
- * @param updateMask Required. Mask of fields to update.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final OperationFuture{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * UpdateMembershipRequest request =
- * UpdateMembershipRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .setResource(Membership.newBuilder().build())
- * .setRequestId("requestId693933066")
- * .build();
- * ApiFuture
- */
- public final UnaryCallable{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
- * Feature resource = Feature.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
- * }
- * }
- *
- * @param name Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- * @param resource Only fields specified in update_mask are updated. If you specify a field in the
- * update_mask but don't specify its value here that field will be deleted. If you are
- * updating a map field, set the value of a key to null or empty string to delete the key from
- * the map. It's not possible to update a key's value to the empty string. If you specify the
- * update_mask to be a special path "*", fully replaces all user-modifiable fields to
- * match `resource`.
- * @param updateMask Mask of fields to update.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
- * Feature resource = Feature.newBuilder().build();
- * FieldMask updateMask = FieldMask.newBuilder().build();
- * Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
- * }
- * }
- *
- * @param name Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- * @param resource Only fields specified in update_mask are updated. If you specify a field in the
- * update_mask but don't specify its value here that field will be deleted. If you are
- * updating a map field, set the value of a key to null or empty string to delete the key from
- * the map. It's not possible to update a key's value to the empty string. If you specify the
- * update_mask to be a special path "*", fully replaces all user-modifiable fields to
- * match `resource`.
- * @param updateMask Mask of fields to update.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * UpdateFeatureRequest request =
- * UpdateFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .setResource(Feature.newBuilder().build())
- * .setRequestId("requestId693933066")
- * .build();
- * Feature response = gkeHubClient.updateFeatureAsync(request).get();
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final OperationFuture{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * UpdateFeatureRequest request =
- * UpdateFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .setResource(Feature.newBuilder().build())
- * .setRequestId("requestId693933066")
- * .build();
- * OperationFuture
- */
- public final OperationCallable{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * UpdateFeatureRequest request =
- * UpdateFeatureRequest.newBuilder()
- * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
- * .setUpdateMask(FieldMask.newBuilder().build())
- * .setResource(Feature.newBuilder().build())
- * .setRequestId("requestId693933066")
- * .build();
- * ApiFuture
- */
- public final UnaryCallable{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GenerateConnectManifestRequest request =
- * GenerateConnectManifestRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
- * .setNamespace("namespace1252218203")
- * .setProxy(ByteString.EMPTY)
- * .setVersion("version351608024")
- * .setIsUpgrade(true)
- * .setRegistry("registry-690212803")
- * .setImagePullSecretContent(ByteString.EMPTY)
- * .build();
- * GenerateConnectManifestResponse response = gkeHubClient.generateConnectManifest(request);
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final GenerateConnectManifestResponse generateConnectManifest(
- GenerateConnectManifestRequest request) {
- return generateConnectManifestCallable().call(request);
+ public static class ListScopeRBACRoleBindingsPage
+ extends AbstractPage<
+ ListScopeRBACRoleBindingsRequest,
+ ListScopeRBACRoleBindingsResponse,
+ RBACRoleBinding,
+ ListScopeRBACRoleBindingsPage> {
+
+ private ListScopeRBACRoleBindingsPage(
+ PageContext<
+ ListScopeRBACRoleBindingsRequest,
+ ListScopeRBACRoleBindingsResponse,
+ RBACRoleBinding>
+ context,
+ ListScopeRBACRoleBindingsResponse response) {
+ super(context, response);
+ }
+
+ private static ListScopeRBACRoleBindingsPage createEmptyPage() {
+ return new ListScopeRBACRoleBindingsPage(null, null);
+ }
+
+ @Override
+ protected ListScopeRBACRoleBindingsPage createPage(
+ PageContext<
+ ListScopeRBACRoleBindingsRequest,
+ ListScopeRBACRoleBindingsResponse,
+ RBACRoleBinding>
+ context,
+ ListScopeRBACRoleBindingsResponse response) {
+ return new ListScopeRBACRoleBindingsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
- * GenerateConnectManifestRequest request =
- * GenerateConnectManifestRequest.newBuilder()
- * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
- * .setNamespace("namespace1252218203")
- * .setProxy(ByteString.EMPTY)
- * .setVersion("version351608024")
- * .setIsUpgrade(true)
- * .setRegistry("registry-690212803")
- * .setImagePullSecretContent(ByteString.EMPTY)
- * .build();
- * ApiFuture
- */
- public final UnaryCallable