- * LINT: LEGACY_NAMES * Represents a hardware accelerator type. ** @@ -172,6 +171,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { *
NVIDIA_GB200 = 17;
*/
NVIDIA_GB200(17),
+ /**
+ *
+ *
+ * + * Nvidia RTX Pro 6000 GPU. + *+ * + *
NVIDIA_RTX_PRO_6000 = 18;
+ */
+ NVIDIA_RTX_PRO_6000(18),
/**
*
*
@@ -370,6 +379,17 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
*/
public static final int NVIDIA_GB200_VALUE = 17;
+ /**
+ *
+ *
+ * + * Nvidia RTX Pro 6000 GPU. + *+ * + *
NVIDIA_RTX_PRO_6000 = 18;
+ */
+ public static final int NVIDIA_RTX_PRO_6000_VALUE = 18;
+
/**
*
*
@@ -466,6 +486,8 @@ public static AcceleratorType forNumber(int value) {
return NVIDIA_B200;
case 17:
return NVIDIA_GB200;
+ case 18:
+ return NVIDIA_RTX_PRO_6000;
case 6:
return TPU_V2;
case 7:
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
index 647977b1be67..cd0a225d6046 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
@@ -38,7 +38,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n1google/cloud/aiplatform/v1/accelerator"
+ "_type.proto\022\032google.cloud.aiplatform.v1*"
- + "\210\003\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
+ + "\241\003\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
+ "UNSPECIFIED\020\000\022\030\n\020NVIDIA_TESLA_K80\020\001\032\002\010\001\022"
+ "\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V"
+ "100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TES"
@@ -46,14 +46,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H1"
+ "00_80GB\020\r\022\031\n\025NVIDIA_H100_MEGA_80GB\020\016\022\025\n\021"
+ "NVIDIA_H200_141GB\020\017\022\017\n\013NVIDIA_B200\020\020\022\020\n\014"
- + "NVIDIA_GB200\020\021\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016"
- + "\n\nTPU_V4_POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\322\001\n\036c"
- + "om.google.cloud.aiplatform.v1B\024Accelerat"
- + "orTypeProtoP\001Z>cloud.google.com/go/aipla"
- + "tform/apiv1/aiplatformpb;aiplatformpb\252\002\032"
- + "Google.Cloud.AIPlatform.V1\312\002\032Google\\Clou"
- + "d\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatf"
- + "orm::V1b\006proto3"
+ + "NVIDIA_GB200\020\021\022\027\n\023NVIDIA_RTX_PRO_6000\020\022\022"
+ + "\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_POD\020\n\022"
+ + "\022\n\016TPU_V5_LITEPOD\020\014B\322\001\n\036com.google.cloud"
+ + ".aiplatform.v1B\024AcceleratorTypeProtoP\001Z>"
+ + "cloud.google.com/go/aiplatform/apiv1/aip"
+ + "latformpb;aiplatformpb\252\002\032Google.Cloud.AI"
+ + "Platform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1"
+ + "\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
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 8f7dc1ac64e7..d50fdc1f0309 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
@@ -128,6 +128,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_PlaceAnswerSources_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_PlaceAnswerSources_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_GroundingSupport_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -136,6 +144,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_GroundingMetadata_SourceFlaggingUri_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_GroundingMetadata_SourceFlaggingUri_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -378,7 +390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "part_index\030\001 \001(\005B\003\340A\003\022\030\n"
+ "\013start_index\030\002 \001(\005B\003\340A\003\022\026\n"
+ "\tend_index\030\003 \001(\005B\003\340A\003\022\021\n"
- + "\004text\030\004 \001(\tB\003\340A\003\"\241\005\n"
+ + "\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;.google.cloud.aiplatf"
@@ -400,12 +412,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004_uriB\010\n"
+ "\006_titleB\007\n"
+ "\005_textB\020\n"
- + "\016_document_name\032~\n"
+ + "\016_document_name\032\256\003\n"
+ "\004Maps\022\020\n"
+ "\003uri\030\001 \001(\tH\000\210\001\001\022\022\n"
+ "\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\001B\006\n"
+ + "\010place_id\030\004 \001(\tH\003\210\001\001\022`\n"
+ + "\024place_answer_sources\030\005 \001("
+ + "\0132B.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n"
+ + "\022PlaceAnswerSources\022i\n"
+ + "\017review_snippets\030\001 \003(\0132P.google.cloud.aiplatform.v1.GroundingChun"
+ + "k.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"
+ + "\005title\030\003 \001(\tB\006\n"
+ "\004_uriB\010\n"
+ "\006_titleB\007\n"
+ "\005_textB\013\n"
@@ -416,19 +437,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\0132#.google.cloud.aiplatform.v1.SegmentH\000\210\001\001\022\037\n"
+ "\027grounding_chunk_indices\030\002 \003(\005\022\031\n"
+ "\021confidence_scores\030\003 \003(\002B\n\n"
- + "\010_segment\"\377\003\n"
+ + "\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"
+ "\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"
+ + "\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"
+ " google_maps_widget_context_token\030\010 \001("
- + "\tB\006\340A\001\340A\003H\002\210\001\001B\025\n"
+ + "\tB\006\340A\001\340A\003H\002\210\001\001\022]\n"
+ + "\024source_flagging_uris\030\t \003(\0132?.google.cloud.ai"
+ + "platform.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"
+ "\023_search_entry_pointB\025\n"
+ "\023_retrieval_metadataB#\n"
+ "!_google_maps_widget_context_token\"H\n"
@@ -459,12 +485,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>clo"
- + "ud.google.com/go/aiplatform/apiv1/aiplat"
- + "formpb;aiplatformpb\252\002\032Google.Cloud.AIPla"
- + "tform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352Ab\n"
- + "\"modelarmor.googleapis.com/Template\022+ * Default deployment tier. + *+ * + *
DEPLOYMENT_TIER_UNSPECIFIED = 0;
+ */
+ DEPLOYMENT_TIER_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Optimized for costs. + *+ * + *
STORAGE = 2;
+ */
+ STORAGE(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Default deployment tier. + *+ * + *
DEPLOYMENT_TIER_UNSPECIFIED = 0;
+ */
+ public static final int DEPLOYMENT_TIER_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Optimized for costs. + *+ * + *
STORAGE = 2;
+ */
+ public static final int STORAGE_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 DeploymentTier 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 DeploymentTier forNumber(int value) {
+ switch (value) {
+ case 0:
+ return DEPLOYMENT_TIER_UNSPECIFIED;
+ case 2:
+ return STORAGE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. The deployment tier that the index is deployed to. + * DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier. + *+ * + *
+ * .google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier deployment_tier = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for deploymentTier.
+ */
+ @java.lang.Override
+ public int getDeploymentTierValue() {
+ return deploymentTier_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The deployment tier that the index is deployed to. + * DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier. + *+ * + *
+ * .google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier deployment_tier = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deploymentTier.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier getDeploymentTier() {
+ com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier result =
+ com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier.forNumber(deploymentTier_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier.UNRECOGNIZED
+ : result;
+ }
+
public static final int PSC_AUTOMATION_CONFIGS_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
@@ -1106,6 +1288,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(16, getDedicatedResources());
}
+ if (deploymentTier_
+ != com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier.DEPLOYMENT_TIER_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(18, deploymentTier_);
+ }
for (int i = 0; i < pscAutomationConfigs_.size(); i++) {
output.writeMessage(19, pscAutomationConfigs_.get(i));
}
@@ -1163,6 +1350,11 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getDedicatedResources());
}
+ if (deploymentTier_
+ != com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier.DEPLOYMENT_TIER_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, deploymentTier_);
+ }
for (int i = 0; i < pscAutomationConfigs_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
@@ -1219,6 +1411,7 @@ public boolean equals(final java.lang.Object obj) {
}
if (!getReservedIpRangesList().equals(other.getReservedIpRangesList())) return false;
if (!getDeploymentGroup().equals(other.getDeploymentGroup())) return false;
+ if (deploymentTier_ != other.deploymentTier_) return false;
if (!getPscAutomationConfigsList().equals(other.getPscAutomationConfigsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
@@ -1272,6 +1465,8 @@ public int hashCode() {
}
hash = (37 * hash) + DEPLOYMENT_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentGroup().hashCode();
+ hash = (37 * hash) + DEPLOYMENT_TIER_FIELD_NUMBER;
+ hash = (53 * hash) + deploymentTier_;
if (getPscAutomationConfigsCount() > 0) {
hash = (37 * hash) + PSC_AUTOMATION_CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getPscAutomationConfigsList().hashCode();
@@ -1468,13 +1663,14 @@ public Builder clear() {
}
reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList();
deploymentGroup_ = "";
+ deploymentTier_ = 0;
if (pscAutomationConfigsBuilder_ == null) {
pscAutomationConfigs_ = java.util.Collections.emptyList();
} else {
pscAutomationConfigs_ = null;
pscAutomationConfigsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
@@ -1512,9 +1708,9 @@ public com.google.cloud.aiplatform.v1.DeployedIndex buildPartial() {
private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.DeployedIndex result) {
if (pscAutomationConfigsBuilder_ == null) {
- if (((bitField0_ & 0x00002000) != 0)) {
+ if (((bitField0_ & 0x00004000) != 0)) {
pscAutomationConfigs_ = java.util.Collections.unmodifiableList(pscAutomationConfigs_);
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
}
result.pscAutomationConfigs_ = pscAutomationConfigs_;
} else {
@@ -1582,6 +1778,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedIndex result)
if (((from_bitField0_ & 0x00001000) != 0)) {
result.deploymentGroup_ = deploymentGroup_;
}
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.deploymentTier_ = deploymentTier_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1684,11 +1883,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedIndex other) {
bitField0_ |= 0x00001000;
onChanged();
}
+ if (other.deploymentTier_ != 0) {
+ setDeploymentTierValue(other.getDeploymentTierValue());
+ }
if (pscAutomationConfigsBuilder_ == null) {
if (!other.pscAutomationConfigs_.isEmpty()) {
if (pscAutomationConfigs_.isEmpty()) {
pscAutomationConfigs_ = other.pscAutomationConfigs_;
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensurePscAutomationConfigsIsMutable();
pscAutomationConfigs_.addAll(other.pscAutomationConfigs_);
@@ -1701,7 +1903,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedIndex other) {
pscAutomationConfigsBuilder_.dispose();
pscAutomationConfigsBuilder_ = null;
pscAutomationConfigs_ = other.pscAutomationConfigs_;
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
pscAutomationConfigsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getPscAutomationConfigsFieldBuilder()
@@ -1814,6 +2016,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000080;
break;
} // case 130
+ case 144:
+ {
+ deploymentTier_ = input.readEnum();
+ bitField0_ |= 0x00002000;
+ break;
+ } // case 144
case 154:
{
com.google.cloud.aiplatform.v1.PSCAutomationConfig m =
@@ -4497,15 +4705,128 @@ public Builder setDeploymentGroupBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private int deploymentTier_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. The deployment tier that the index is deployed to. + * DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier. + *+ * + *
+ * .google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier deployment_tier = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for deploymentTier.
+ */
+ @java.lang.Override
+ public int getDeploymentTierValue() {
+ return deploymentTier_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The deployment tier that the index is deployed to. + * DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier. + *+ * + *
+ * .google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier deployment_tier = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for deploymentTier to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeploymentTierValue(int value) {
+ deploymentTier_ = value;
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The deployment tier that the index is deployed to. + * DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier. + *+ * + *
+ * .google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier deployment_tier = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deploymentTier.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier getDeploymentTier() {
+ com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier result =
+ com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier.forNumber(deploymentTier_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The deployment tier that the index is deployed to. + * DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier. + *+ * + *
+ * .google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier deployment_tier = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The deploymentTier to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeploymentTier(
+ com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00002000;
+ deploymentTier_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The deployment tier that the index is deployed to. + * DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier. + *+ * + *
+ * .google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier deployment_tier = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDeploymentTier() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ deploymentTier_ = 0;
+ onChanged();
+ return this;
+ }
+
private java.util.List+ * Optional. The deployment tier that the index is deployed to. + * DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier. + *+ * + *
+ * .google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier deployment_tier = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for deploymentTier.
+ */
+ int getDeploymentTierValue();
+
+ /**
+ *
+ *
+ * + * Optional. The deployment tier that the index is deployed to. + * DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier. + *+ * + *
+ * .google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier deployment_tier = 18 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deploymentTier.
+ */
+ com.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTier getDeploymentTier();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnterpriseWebSearch.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnterpriseWebSearch.java
index 394a529459d3..52d70a952249 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnterpriseWebSearch.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnterpriseWebSearch.java
@@ -42,6 +42,7 @@ private EnterpriseWebSearch(com.google.protobuf.GeneratedMessageV3.Builder> bu
private EnterpriseWebSearch() {
excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ blockingConfidence_ = 0;
}
@java.lang.Override
@@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.EnterpriseWebSearch.Builder.class);
}
+ private int bitField0_;
public static final int EXCLUDE_DOMAINS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -137,6 +139,70 @@ public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) {
return excludeDomains_.getByteString(index);
}
+ public static final int BLOCKING_CONFIDENCE_FIELD_NUMBER = 2;
+ private int blockingConfidence_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlockingConfidence() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ @java.lang.Override
+ public int getBlockingConfidenceValue() {
+ return blockingConfidence_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold getBlockingConfidence() {
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold result =
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold.forNumber(blockingConfidence_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -154,6 +220,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < excludeDomains_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, excludeDomains_.getRaw(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(2, blockingConfidence_);
+ }
getUnknownFields().writeTo(output);
}
@@ -171,6 +240,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getExcludeDomainsList().size();
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, blockingConfidence_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -188,6 +260,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.aiplatform.v1.EnterpriseWebSearch) obj;
if (!getExcludeDomainsList().equals(other.getExcludeDomainsList())) return false;
+ if (hasBlockingConfidence() != other.hasBlockingConfidence()) return false;
+ if (hasBlockingConfidence()) {
+ if (blockingConfidence_ != other.blockingConfidence_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -203,6 +279,10 @@ public int hashCode() {
hash = (37 * hash) + EXCLUDE_DOMAINS_FIELD_NUMBER;
hash = (53 * hash) + getExcludeDomainsList().hashCode();
}
+ if (hasBlockingConfidence()) {
+ hash = (37 * hash) + BLOCKING_CONFIDENCE_FIELD_NUMBER;
+ hash = (53 * hash) + blockingConfidence_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -345,6 +425,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ blockingConfidence_ = 0;
return this;
}
@@ -385,6 +466,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.EnterpriseWebSearch re
excludeDomains_.makeImmutable();
result.excludeDomains_ = excludeDomains_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.blockingConfidence_ = blockingConfidence_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -443,6 +530,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.EnterpriseWebSearch othe
}
onChanged();
}
+ if (other.hasBlockingConfidence()) {
+ setBlockingConfidence(other.getBlockingConfidence());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -476,6 +566,12 @@ public Builder mergeFrom(
excludeDomains_.add(s);
break;
} // case 10
+ case 16:
+ {
+ blockingConfidence_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -687,6 +783,138 @@ public Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private int blockingConfidence_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlockingConfidence() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ @java.lang.Override
+ public int getBlockingConfidenceValue() {
+ return blockingConfidence_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for blockingConfidence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlockingConfidenceValue(int value) {
+ blockingConfidence_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold getBlockingConfidence() {
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold result =
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold.forNumber(blockingConfidence_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The blockingConfidence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlockingConfidence(
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ blockingConfidence_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBlockingConfidence() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ blockingConfidence_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnterpriseWebSearchOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnterpriseWebSearchOrBuilder.java
index b8bd5e3a45c6..3f3ee16c9645 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnterpriseWebSearchOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EnterpriseWebSearchOrBuilder.java
@@ -81,4 +81,52 @@ public interface EnterpriseWebSearchOrBuilder
* @return The bytes of the excludeDomains at the given index.
*/
com.google.protobuf.ByteString getExcludeDomainsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ boolean hasBlockingConfidence();
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ int getBlockingConfidenceValue();
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold getBlockingConfidence();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleMaps.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleMaps.java
index 884812e977e4..bd4c624c02ff 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleMaps.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleMaps.java
@@ -62,6 +62,25 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.GoogleMaps.Builder.class);
}
+ public static final int ENABLE_WIDGET_FIELD_NUMBER = 1;
+ private boolean enableWidget_ = false;
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableWidget.
+ */
+ @java.lang.Override
+ public boolean getEnableWidget() {
+ return enableWidget_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -76,6 +95,9 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (enableWidget_ != false) {
+ output.writeBool(1, enableWidget_);
+ }
getUnknownFields().writeTo(output);
}
@@ -85,6 +107,9 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
+ if (enableWidget_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableWidget_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -101,6 +126,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloud.aiplatform.v1.GoogleMaps other =
(com.google.cloud.aiplatform.v1.GoogleMaps) obj;
+ if (getEnableWidget() != other.getEnableWidget()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -112,6 +138,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENABLE_WIDGET_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWidget());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -251,6 +279,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
+ enableWidget_ = false;
return this;
}
@@ -278,10 +308,20 @@ public com.google.cloud.aiplatform.v1.GoogleMaps build() {
public com.google.cloud.aiplatform.v1.GoogleMaps buildPartial() {
com.google.cloud.aiplatform.v1.GoogleMaps result =
new com.google.cloud.aiplatform.v1.GoogleMaps(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.aiplatform.v1.GoogleMaps result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.enableWidget_ = enableWidget_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -327,6 +367,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.cloud.aiplatform.v1.GoogleMaps other) {
if (other == com.google.cloud.aiplatform.v1.GoogleMaps.getDefaultInstance()) return this;
+ if (other.getEnableWidget() != false) {
+ setEnableWidget(other.getEnableWidget());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -353,6 +396,12 @@ public Builder mergeFrom(
case 0:
done = true;
break;
+ case 8:
+ {
+ enableWidget_ = input.readBool();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -370,6 +419,64 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
+ private boolean enableWidget_;
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableWidget.
+ */
+ @java.lang.Override
+ public boolean getEnableWidget() {
+ return enableWidget_;
+ }
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The enableWidget to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableWidget(boolean value) {
+
+ enableWidget_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableWidget() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enableWidget_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleMapsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleMapsOrBuilder.java
index c9813d05a463..8a6fec89ee1d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleMapsOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GoogleMapsOrBuilder.java
@@ -22,4 +22,18 @@
public interface GoogleMapsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GoogleMaps)
- com.google.protobuf.MessageOrBuilder {}
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableWidget.
+ */
+ boolean getEnableWidget();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java
index f1b1f47ba3af..772e1bc365e3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingChunk.java
@@ -3164,54 +3164,2396 @@ public interface MapsOrBuilder
* @return The bytes for placeId.
*/
com.google.protobuf.ByteString getPlaceIdBytes();
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return Whether the placeAnswerSources field is set.
+ */
+ boolean hasPlaceAnswerSources();
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return The placeAnswerSources.
+ */
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources getPlaceAnswerSources();
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder
+ getPlaceAnswerSourcesOrBuilder();
}
- /**
- *
- *
- * - * Chunk from Google Maps. - *- * - * Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk.Maps} - */ - public static final class Maps extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingChunk.Maps) - MapsOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
+ * Chunk from Google Maps. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk.Maps} + */ + public static final class Maps extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingChunk.Maps) + MapsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Maps.newBuilder() to construct. + private Maps(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Maps() { + uri_ = ""; + title_ = ""; + text_ = ""; + placeId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Maps(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingChunk.Maps.class, + com.google.cloud.aiplatform.v1.GroundingChunk.Maps.Builder.class); + } + + public interface PlaceAnswerSourcesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ java.util.List<
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet>
+ getReviewSnippetsList();
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ getReviewSnippets(int index);
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ int getReviewSnippetsCount();
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>
+ getReviewSnippetsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippetOrBuilder
+ getReviewSnippetsOrBuilder(int index);
+ }
+
+ /** Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources} */
+ public static final class PlaceAnswerSources extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources)
+ PlaceAnswerSourcesOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use PlaceAnswerSources.newBuilder() to construct.
+ private PlaceAnswerSources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private PlaceAnswerSources() {
+ reviewSnippets_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new PlaceAnswerSources();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_PlaceAnswerSources_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_PlaceAnswerSources_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.class,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.Builder
+ .class);
+ }
+
+ public interface ReviewSnippetOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The reviewId.
+ */
+ java.lang.String getReviewId();
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The bytes for reviewId.
+ */
+ com.google.protobuf.ByteString getReviewIdBytes();
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The googleMapsUri.
+ */
+ java.lang.String getGoogleMapsUri();
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The bytes for googleMapsUri.
+ */
+ com.google.protobuf.ByteString getGoogleMapsUriBytes();
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The title.
+ */
+ java.lang.String getTitle();
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The bytes for title.
+ */
+ com.google.protobuf.ByteString getTitleBytes();
+ }
+
+ /**
+ *
+ *
+ * + * Encapsulates a review snippet. + *+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet} + */ + public static final class ReviewSnippet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet) + ReviewSnippetOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReviewSnippet.newBuilder() to construct. + private ReviewSnippet(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ReviewSnippet() { + reviewId_ = ""; + googleMapsUri_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReviewSnippet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources + .ReviewSnippet.class, + com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources + .ReviewSnippet.Builder.class); + } + + public static final int REVIEW_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object reviewId_ = ""; + + /** + * + * + *
+ * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The reviewId.
+ */
+ @java.lang.Override
+ public java.lang.String getReviewId() {
+ java.lang.Object ref = reviewId_;
+ 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();
+ reviewId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The bytes for reviewId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getReviewIdBytes() {
+ java.lang.Object ref = reviewId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ reviewId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GOOGLE_MAPS_URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object googleMapsUri_ = "";
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The googleMapsUri.
+ */
+ @java.lang.Override
+ public java.lang.String getGoogleMapsUri() {
+ java.lang.Object ref = googleMapsUri_;
+ 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();
+ googleMapsUri_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The bytes for googleMapsUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGoogleMapsUriBytes() {
+ java.lang.Object ref = googleMapsUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ googleMapsUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TITLE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object title_ = "";
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The title.
+ */
+ @java.lang.Override
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ 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();
+ title_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The bytes for title.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = 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.GeneratedMessageV3.isStringEmpty(reviewId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reviewId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, googleMapsUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reviewId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reviewId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, googleMapsUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_);
+ }
+ 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.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ other =
+ (com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet)
+ obj;
+
+ if (!getReviewId().equals(other.getReviewId())) return false;
+ if (!getGoogleMapsUri().equals(other.getGoogleMapsUri())) return false;
+ if (!getTitle().equals(other.getTitle())) 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) + REVIEW_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getReviewId().hashCode();
+ hash = (37 * hash) + GOOGLE_MAPS_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogleMapsUri().hashCode();
+ hash = (37 * hash) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ 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.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ 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.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ 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.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Encapsulates a review snippet. + *+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The reviewId.
+ */
+ public java.lang.String getReviewId() {
+ java.lang.Object ref = reviewId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ reviewId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The bytes for reviewId.
+ */
+ public com.google.protobuf.ByteString getReviewIdBytes() {
+ java.lang.Object ref = reviewId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ reviewId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @param value The reviewId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReviewId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ reviewId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReviewId() {
+ reviewId_ = getDefaultInstance().getReviewId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @param value The bytes for reviewId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReviewIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ reviewId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object googleMapsUri_ = "";
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The googleMapsUri.
+ */
+ public java.lang.String getGoogleMapsUri() {
+ java.lang.Object ref = googleMapsUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ googleMapsUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The bytes for googleMapsUri.
+ */
+ public com.google.protobuf.ByteString getGoogleMapsUriBytes() {
+ java.lang.Object ref = googleMapsUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ googleMapsUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @param value The googleMapsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGoogleMapsUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ googleMapsUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGoogleMapsUri() {
+ googleMapsUri_ = getDefaultInstance().getGoogleMapsUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @param value The bytes for googleMapsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGoogleMapsUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ googleMapsUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object title_ = "";
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The title.
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The bytes for title.
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @param value The title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ title_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTitle() {
+ title_ = getDefaultInstance().getTitle();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @param value The bytes for title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ title_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet)
+ private static final com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet>
+ getReviewSnippetsList() {
+ return reviewSnippets_;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>
+ getReviewSnippetsOrBuilderList() {
+ return reviewSnippets_;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public int getReviewSnippetsCount() {
+ return reviewSnippets_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ getReviewSnippets(int index) {
+ return reviewSnippets_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder
+ getReviewSnippetsOrBuilder(int index) {
+ return reviewSnippets_.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 < reviewSnippets_.size(); i++) {
+ output.writeMessage(1, reviewSnippets_.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 < reviewSnippets_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, reviewSnippets_.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.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources other =
+ (com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources) obj;
+
+ if (!getReviewSnippetsList().equals(other.getReviewSnippetsList())) 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 (getReviewSnippetsCount() > 0) {
+ hash = (37 * hash) + REVIEW_SNIPPETS_FIELD_NUMBER;
+ hash = (53 * hash) + getReviewSnippetsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources 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.GroundingChunk.Maps.PlaceAnswerSources parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources 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.GroundingChunk.Maps.PlaceAnswerSources parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources 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.GroundingChunk.Maps.PlaceAnswerSources parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.GroundingChunk.Maps.PlaceAnswerSources 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /** Protobuf type {@code google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources} */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder+ * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet>
+ getReviewSnippetsList() {
+ if (reviewSnippetsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(reviewSnippets_);
+ } else {
+ return reviewSnippetsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public int getReviewSnippetsCount() {
+ if (reviewSnippetsBuilder_ == null) {
+ return reviewSnippets_.size();
+ } else {
+ return reviewSnippetsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ getReviewSnippets(int index) {
+ if (reviewSnippetsBuilder_ == null) {
+ return reviewSnippets_.get(index);
+ } else {
+ return reviewSnippetsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder setReviewSnippets(
+ int index,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ value) {
+ if (reviewSnippetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.set(index, value);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder setReviewSnippets(
+ int index,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder
+ builderForValue) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addReviewSnippets(
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ value) {
+ if (reviewSnippetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.add(value);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addReviewSnippets(
+ int index,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ value) {
+ if (reviewSnippetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.add(index, value);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addReviewSnippets(
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder
+ builderForValue) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.add(builderForValue.build());
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addReviewSnippets(
+ int index,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder
+ builderForValue) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addAllReviewSnippets(
+ java.lang.Iterable<
+ ? extends
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet>
+ values) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reviewSnippets_);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder clearReviewSnippets() {
+ if (reviewSnippetsBuilder_ == null) {
+ reviewSnippets_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder removeReviewSnippets(int index) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.remove(index);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder
+ getReviewSnippetsBuilder(int index) {
+ return getReviewSnippetsFieldBuilder().getBuilder(index);
+ }
- // Use Maps.newBuilder() to construct.
- private Maps(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder
+ getReviewSnippetsOrBuilder(int index) {
+ if (reviewSnippetsBuilder_ == null) {
+ return reviewSnippets_.get(index);
+ } else {
+ return reviewSnippetsBuilder_.getMessageOrBuilder(index);
+ }
+ }
- private Maps() {
- uri_ = "";
- title_ = "";
- text_ = "";
- placeId_ = "";
- }
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>
+ getReviewSnippetsOrBuilderList() {
+ if (reviewSnippetsBuilder_ != null) {
+ return reviewSnippetsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(reviewSnippets_);
+ }
+ }
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new Maps();
- }
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder
+ addReviewSnippetsBuilder() {
+ return getReviewSnippetsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.getDefaultInstance());
+ }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.aiplatform.v1.ContentProto
- .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_descriptor;
- }
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder
+ addReviewSnippetsBuilder(int index) {
+ return getReviewSnippetsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.getDefaultInstance());
+ }
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.aiplatform.v1.ContentProto
- .internal_static_google_cloud_aiplatform_v1_GroundingChunk_Maps_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.aiplatform.v1.GroundingChunk.Maps.class,
- com.google.cloud.aiplatform.v1.GroundingChunk.Maps.Builder.class);
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder>
+ getReviewSnippetsBuilderList() {
+ return getReviewSnippetsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>
+ getReviewSnippetsFieldBuilder() {
+ if (reviewSnippetsBuilder_ == null) {
+ reviewSnippetsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.Builder,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>(
+ reviewSnippets_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ reviewSnippets_ = null;
+ }
+ return reviewSnippetsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources)
+ private static final com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return Whether the placeAnswerSources field is set.
+ */
+ @java.lang.Override
+ public boolean hasPlaceAnswerSources() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return The placeAnswerSources.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ getPlaceAnswerSources() {
+ return placeAnswerSources_ == null
+ ? com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()
+ : placeAnswerSources_;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder
+ getPlaceAnswerSourcesOrBuilder() {
+ return placeAnswerSources_ == null
+ ? com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()
+ : placeAnswerSources_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -3520,6 +5932,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, placeId_);
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeMessage(5, getPlaceAnswerSources());
+ }
getUnknownFields().writeTo(output);
}
@@ -3541,6 +5956,10 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, placeId_);
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPlaceAnswerSources());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3573,6 +5992,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasPlaceId()) {
if (!getPlaceId().equals(other.getPlaceId())) return false;
}
+ if (hasPlaceAnswerSources() != other.hasPlaceAnswerSources()) return false;
+ if (hasPlaceAnswerSources()) {
+ if (!getPlaceAnswerSources().equals(other.getPlaceAnswerSources())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3600,6 +6023,10 @@ public int hashCode() {
hash = (37 * hash) + PLACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getPlaceId().hashCode();
}
+ if (hasPlaceAnswerSources()) {
+ hash = (37 * hash) + PLACE_ANSWER_SOURCES_FIELD_NUMBER;
+ hash = (53 * hash) + getPlaceAnswerSources().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -3732,10 +6159,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.aiplatform.v1.GroundingChunk.Maps.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getPlaceAnswerSourcesFieldBuilder();
+ }
}
@java.lang.Override
@@ -3746,6 +6182,11 @@ public Builder clear() {
title_ = "";
text_ = "";
placeId_ = "";
+ placeAnswerSources_ = null;
+ if (placeAnswerSourcesBuilder_ != null) {
+ placeAnswerSourcesBuilder_.dispose();
+ placeAnswerSourcesBuilder_ = null;
+ }
return this;
}
@@ -3799,6 +6240,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingChunk.Maps re
result.placeId_ = placeId_;
to_bitField0_ |= 0x00000008;
}
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.placeAnswerSources_ =
+ placeAnswerSourcesBuilder_ == null
+ ? placeAnswerSources_
+ : placeAnswerSourcesBuilder_.build();
+ to_bitField0_ |= 0x00000010;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -3870,6 +6318,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingChunk.Maps othe
bitField0_ |= 0x00000008;
onChanged();
}
+ if (other.hasPlaceAnswerSources()) {
+ mergePlaceAnswerSources(other.getPlaceAnswerSources());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -3920,6 +6371,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000008;
break;
} // case 34
+ case 42:
+ {
+ input.readMessage(
+ getPlaceAnswerSourcesFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4449,6 +6907,248 @@ public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ placeAnswerSources_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.Builder,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder>
+ placeAnswerSourcesBuilder_;
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return Whether the placeAnswerSources field is set.
+ */
+ public boolean hasPlaceAnswerSources() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return The placeAnswerSources.
+ */
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ getPlaceAnswerSources() {
+ if (placeAnswerSourcesBuilder_ == null) {
+ return placeAnswerSources_ == null
+ ? com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()
+ : placeAnswerSources_;
+ } else {
+ return placeAnswerSourcesBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public Builder setPlaceAnswerSources(
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources value) {
+ if (placeAnswerSourcesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ placeAnswerSources_ = value;
+ } else {
+ placeAnswerSourcesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public Builder setPlaceAnswerSources(
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.Builder
+ builderForValue) {
+ if (placeAnswerSourcesBuilder_ == null) {
+ placeAnswerSources_ = builderForValue.build();
+ } else {
+ placeAnswerSourcesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public Builder mergePlaceAnswerSources(
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources value) {
+ if (placeAnswerSourcesBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && placeAnswerSources_ != null
+ && placeAnswerSources_
+ != com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()) {
+ getPlaceAnswerSourcesBuilder().mergeFrom(value);
+ } else {
+ placeAnswerSources_ = value;
+ }
+ } else {
+ placeAnswerSourcesBuilder_.mergeFrom(value);
+ }
+ if (placeAnswerSources_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public Builder clearPlaceAnswerSources() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ placeAnswerSources_ = null;
+ if (placeAnswerSourcesBuilder_ != null) {
+ placeAnswerSourcesBuilder_.dispose();
+ placeAnswerSourcesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.Builder
+ getPlaceAnswerSourcesBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getPlaceAnswerSourcesFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder
+ getPlaceAnswerSourcesOrBuilder() {
+ if (placeAnswerSourcesBuilder_ != null) {
+ return placeAnswerSourcesBuilder_.getMessageOrBuilder();
+ } else {
+ return placeAnswerSources_ == null
+ ? com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()
+ : placeAnswerSources_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.Builder,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder>
+ getPlaceAnswerSourcesFieldBuilder() {
+ if (placeAnswerSourcesBuilder_ == null) {
+ placeAnswerSourcesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.Builder,
+ com.google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder>(
+ getPlaceAnswerSources(), getParentForChildren(), isClean());
+ placeAnswerSources_ = null;
+ }
+ return placeAnswerSourcesBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java
index 6664edafe513..abec3e691776 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java
@@ -44,6 +44,7 @@ private GroundingMetadata() {
groundingChunks_ = java.util.Collections.emptyList();
groundingSupports_ = java.util.Collections.emptyList();
googleMapsWidgetContextToken_ = "";
+ sourceFlaggingUris_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -67,208 +68,1116 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.GroundingMetadata.Builder.class);
}
- private int bitField0_;
- public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 1;
+ public interface SourceFlaggingUriOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri)
+ com.google.protobuf.MessageOrBuilder {
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList webSearchQueries_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The sourceId.
+ */
+ java.lang.String getSourceId();
- /**
- *
- *
- * - * Optional. Web search queries for the following-up web search. - *- * - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return A list containing the webSearchQueries.
- */
- public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
- return webSearchQueries_;
- }
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The bytes for sourceId.
+ */
+ com.google.protobuf.ByteString getSourceIdBytes();
- /**
- *
- *
- * - * Optional. Web search queries for the following-up web search. - *- * - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The count of webSearchQueries.
- */
- public int getWebSearchQueriesCount() {
- return webSearchQueries_.size();
- }
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The flagContentUri.
+ */
+ java.lang.String getFlagContentUri();
- /**
- *
- *
- * - * Optional. Web search queries for the following-up web search. - *- * - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param index The index of the element to return.
- * @return The webSearchQueries at the given index.
- */
- public java.lang.String getWebSearchQueries(int index) {
- return webSearchQueries_.get(index);
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The bytes for flagContentUri.
+ */
+ com.google.protobuf.ByteString getFlagContentUriBytes();
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * Source content flagging uri for a place or review. This is currently + * populated only for Google Maps grounding. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param index The index of the value to return.
- * @return The bytes of the webSearchQueries at the given index.
+ * Protobuf type {@code google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri}
*/
- public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
- return webSearchQueries_.getByteString(index);
- }
+ public static final class SourceFlaggingUri extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri)
+ SourceFlaggingUriOrBuilder {
+ private static final long serialVersionUID = 0L;
- public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4;
- private com.google.cloud.aiplatform.v1.SearchEntryPoint searchEntryPoint_;
+ // Use SourceFlaggingUri.newBuilder() to construct.
+ private SourceFlaggingUri(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
- /**
- *
- *
- * - * Optional. Google search entry for the following-up web searches. - *- * - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return Whether the searchEntryPoint field is set.
- */
- @java.lang.Override
- public boolean hasSearchEntryPoint() {
- return ((bitField0_ & 0x00000001) != 0);
- }
+ private SourceFlaggingUri() {
+ sourceId_ = "";
+ flagContentUri_ = "";
+ }
- /**
- *
- *
- * - * Optional. Google search entry for the following-up web searches. - *- * - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The searchEntryPoint.
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1.SearchEntryPoint getSearchEntryPoint() {
- return searchEntryPoint_ == null
- ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
- : searchEntryPoint_;
- }
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new SourceFlaggingUri();
+ }
- /**
- *
- *
- * - * Optional. Google search entry for the following-up web searches. - *- * - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() {
- return searchEntryPoint_ == null
- ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
- : searchEntryPoint_;
- }
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingMetadata_SourceFlaggingUri_descriptor;
+ }
- public static final int GROUNDING_CHUNKS_FIELD_NUMBER = 5;
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingMetadata_SourceFlaggingUri_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.class,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder.class);
+ }
- @SuppressWarnings("serial")
- private java.util.List- * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public java.util.List- * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public java.util.List extends com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder>
- getGroundingChunksOrBuilderList() {
- return groundingChunks_;
- }
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The sourceId.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceId() {
+ java.lang.Object ref = sourceId_;
+ 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();
+ sourceId_ = s;
+ return s;
+ }
+ }
- /**
- *
- *
- * - * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public int getGroundingChunksCount() {
- return groundingChunks_.size();
- }
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The bytes for sourceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceIdBytes() {
+ java.lang.Object ref = sourceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
- /**
- *
- *
- * - * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1.GroundingChunk getGroundingChunks(int index) {
- return groundingChunks_.get(index);
- }
+ public static final int FLAG_CONTENT_URI_FIELD_NUMBER = 2;
- /**
- *
- *
- * - * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder getGroundingChunksOrBuilder(
- int index) {
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object flagContentUri_ = "";
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The flagContentUri.
+ */
+ @java.lang.Override
+ public java.lang.String getFlagContentUri() {
+ java.lang.Object ref = flagContentUri_;
+ 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();
+ flagContentUri_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The bytes for flagContentUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFlagContentUriBytes() {
+ java.lang.Object ref = flagContentUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ flagContentUri_ = 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.GeneratedMessageV3.isStringEmpty(sourceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flagContentUri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flagContentUri_);
+ }
+ 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.GroundingMetadata.SourceFlaggingUri)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri other =
+ (com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri) obj;
+
+ if (!getSourceId().equals(other.getSourceId())) return false;
+ if (!getFlagContentUri().equals(other.getFlagContentUri())) 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) + SOURCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceId().hashCode();
+ hash = (37 * hash) + FLAG_CONTENT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getFlagContentUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri 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.GroundingMetadata.SourceFlaggingUri parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri 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.GroundingMetadata.SourceFlaggingUri parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri 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.GroundingMetadata.SourceFlaggingUri parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.GroundingMetadata.SourceFlaggingUri 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Source content flagging uri for a place or review. This is currently + * populated only for Google Maps grounding. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The sourceId.
+ */
+ public java.lang.String getSourceId() {
+ java.lang.Object ref = sourceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The bytes for sourceId.
+ */
+ public com.google.protobuf.ByteString getSourceIdBytes() {
+ java.lang.Object ref = sourceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @param value The sourceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceId() {
+ sourceId_ = getDefaultInstance().getSourceId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @param value The bytes for sourceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object flagContentUri_ = "";
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The flagContentUri.
+ */
+ public java.lang.String getFlagContentUri() {
+ java.lang.Object ref = flagContentUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ flagContentUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The bytes for flagContentUri.
+ */
+ public com.google.protobuf.ByteString getFlagContentUriBytes() {
+ java.lang.Object ref = flagContentUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ flagContentUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @param value The flagContentUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFlagContentUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ flagContentUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFlagContentUri() {
+ flagContentUri_ = getDefaultInstance().getFlagContentUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @param value The bytes for flagContentUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFlagContentUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ flagContentUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri)
+ private static final com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri();
+ }
+
+ public static com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the webSearchQueries.
+ */
+ public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
+ return webSearchQueries_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of webSearchQueries.
+ */
+ public int getWebSearchQueriesCount() {
+ return webSearchQueries_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The webSearchQueries at the given index.
+ */
+ public java.lang.String getWebSearchQueries(int index) {
+ return webSearchQueries_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the webSearchQueries at the given index.
+ */
+ public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
+ return webSearchQueries_.getByteString(index);
+ }
+
+ public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4;
+ private com.google.cloud.aiplatform.v1.SearchEntryPoint searchEntryPoint_;
+
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the searchEntryPoint field is set.
+ */
+ @java.lang.Override
+ public boolean hasSearchEntryPoint() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The searchEntryPoint.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SearchEntryPoint getSearchEntryPoint() {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
+ }
+
+ public static final int GROUNDING_CHUNKS_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public java.util.List+ * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder>
+ getGroundingChunksOrBuilderList() {
+ return groundingChunks_;
+ }
+
+ /**
+ *
+ *
+ * + * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public int getGroundingChunksCount() {
+ return groundingChunks_.size();
+ }
+
+ /**
+ *
+ *
+ * + * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingChunk getGroundingChunks(int index) {
+ return groundingChunks_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder getGroundingChunksOrBuilder(
+ int index) {
return groundingChunks_.get(index);
}
@@ -454,50 +1363,146 @@ public boolean hasGoogleMapsWidgetContextToken() {
*
*
*
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The googleMapsWidgetContextToken.
+ */
+ @java.lang.Override
+ public java.lang.String getGoogleMapsWidgetContextToken() {
+ java.lang.Object ref = googleMapsWidgetContextToken_;
+ 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();
+ googleMapsWidgetContextToken_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. + *+ * + *
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for googleMapsWidgetContextToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
+ java.lang.Object ref = googleMapsWidgetContextToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ googleMapsWidgetContextToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCE_FLAGGING_URIS_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUriOrBuilder>
+ getSourceFlaggingUrisOrBuilderList() {
+ return sourceFlaggingUris_;
+ }
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ @java.lang.Override
+ public int getSourceFlaggingUrisCount() {
+ return sourceFlaggingUris_.size();
+ }
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return The googleMapsWidgetContextToken.
*/
@java.lang.Override
- public java.lang.String getGoogleMapsWidgetContextToken() {
- java.lang.Object ref = googleMapsWidgetContextToken_;
- 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();
- googleMapsWidgetContextToken_ = s;
- return s;
- }
+ public com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri getSourceFlaggingUris(
+ int index) {
+ return sourceFlaggingUris_.get(index);
}
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return The bytes for googleMapsWidgetContextToken.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
- java.lang.Object ref = googleMapsWidgetContextToken_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- googleMapsWidgetContextToken_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUriOrBuilder
+ getSourceFlaggingUrisOrBuilder(int index) {
+ return sourceFlaggingUris_.get(index);
}
private byte memoizedIsInitialized = -1;
@@ -532,6 +1537,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, googleMapsWidgetContextToken_);
}
+ for (int i = 0; i < sourceFlaggingUris_.size(); i++) {
+ output.writeMessage(9, sourceFlaggingUris_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -567,6 +1575,10 @@ public int getSerializedSize() {
com.google.protobuf.GeneratedMessageV3.computeStringSize(
8, googleMapsWidgetContextToken_);
}
+ for (int i = 0; i < sourceFlaggingUris_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(9, sourceFlaggingUris_.get(i));
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -599,6 +1611,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getGoogleMapsWidgetContextToken().equals(other.getGoogleMapsWidgetContextToken()))
return false;
}
+ if (!getSourceFlaggingUrisList().equals(other.getSourceFlaggingUrisList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -634,6 +1647,10 @@ public int hashCode() {
hash = (37 * hash) + GOOGLE_MAPS_WIDGET_CONTEXT_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getGoogleMapsWidgetContextToken().hashCode();
}
+ if (getSourceFlaggingUrisCount() > 0) {
+ hash = (37 * hash) + SOURCE_FLAGGING_URIS_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceFlaggingUrisList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -779,6 +1796,7 @@ private void maybeForceBuilderInitialization() {
getGroundingChunksFieldBuilder();
getGroundingSupportsFieldBuilder();
getRetrievalMetadataFieldBuilder();
+ getSourceFlaggingUrisFieldBuilder();
}
}
@@ -811,409 +1829,884 @@ public Builder clear() {
retrievalMetadataBuilder_.dispose();
retrievalMetadataBuilder_ = null;
}
- googleMapsWidgetContextToken_ = "";
+ googleMapsWidgetContextToken_ = "";
+ if (sourceFlaggingUrisBuilder_ == null) {
+ sourceFlaggingUris_ = java.util.Collections.emptyList();
+ } else {
+ sourceFlaggingUris_ = null;
+ sourceFlaggingUrisBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000040);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingMetadata getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingMetadata build() {
+ com.google.cloud.aiplatform.v1.GroundingMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.GroundingMetadata buildPartial() {
+ com.google.cloud.aiplatform.v1.GroundingMetadata result =
+ new com.google.cloud.aiplatform.v1.GroundingMetadata(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.aiplatform.v1.GroundingMetadata result) {
+ if (groundingChunksBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ groundingChunks_ = java.util.Collections.unmodifiableList(groundingChunks_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.groundingChunks_ = groundingChunks_;
+ } else {
+ result.groundingChunks_ = groundingChunksBuilder_.build();
+ }
+ if (groundingSupportsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
+ groundingSupports_ = java.util.Collections.unmodifiableList(groundingSupports_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.groundingSupports_ = groundingSupports_;
+ } else {
+ result.groundingSupports_ = groundingSupportsBuilder_.build();
+ }
+ if (sourceFlaggingUrisBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)) {
+ sourceFlaggingUris_ = java.util.Collections.unmodifiableList(sourceFlaggingUris_);
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.sourceFlaggingUris_ = sourceFlaggingUris_;
+ } else {
+ result.sourceFlaggingUris_ = sourceFlaggingUrisBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingMetadata result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ webSearchQueries_.makeImmutable();
+ result.webSearchQueries_ = webSearchQueries_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.searchEntryPoint_ =
+ searchEntryPointBuilder_ == null ? searchEntryPoint_ : searchEntryPointBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.retrievalMetadata_ =
+ retrievalMetadataBuilder_ == null
+ ? retrievalMetadata_
+ : retrievalMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.googleMapsWidgetContextToken_ = googleMapsWidgetContextToken_;
+ to_bitField0_ |= 0x00000004;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.aiplatform.v1.GroundingMetadata) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.GroundingMetadata) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingMetadata other) {
+ if (other == com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance())
+ return this;
+ if (!other.webSearchQueries_.isEmpty()) {
+ if (webSearchQueries_.isEmpty()) {
+ webSearchQueries_ = other.webSearchQueries_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.addAll(other.webSearchQueries_);
+ }
+ onChanged();
+ }
+ if (other.hasSearchEntryPoint()) {
+ mergeSearchEntryPoint(other.getSearchEntryPoint());
+ }
+ if (groundingChunksBuilder_ == null) {
+ if (!other.groundingChunks_.isEmpty()) {
+ if (groundingChunks_.isEmpty()) {
+ groundingChunks_ = other.groundingChunks_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.addAll(other.groundingChunks_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.groundingChunks_.isEmpty()) {
+ if (groundingChunksBuilder_.isEmpty()) {
+ groundingChunksBuilder_.dispose();
+ groundingChunksBuilder_ = null;
+ groundingChunks_ = other.groundingChunks_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ groundingChunksBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getGroundingChunksFieldBuilder()
+ : null;
+ } else {
+ groundingChunksBuilder_.addAllMessages(other.groundingChunks_);
+ }
+ }
+ }
+ if (groundingSupportsBuilder_ == null) {
+ if (!other.groundingSupports_.isEmpty()) {
+ if (groundingSupports_.isEmpty()) {
+ groundingSupports_ = other.groundingSupports_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.addAll(other.groundingSupports_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.groundingSupports_.isEmpty()) {
+ if (groundingSupportsBuilder_.isEmpty()) {
+ groundingSupportsBuilder_.dispose();
+ groundingSupportsBuilder_ = null;
+ groundingSupports_ = other.groundingSupports_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ groundingSupportsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getGroundingSupportsFieldBuilder()
+ : null;
+ } else {
+ groundingSupportsBuilder_.addAllMessages(other.groundingSupports_);
+ }
+ }
+ }
+ if (other.hasRetrievalMetadata()) {
+ mergeRetrievalMetadata(other.getRetrievalMetadata());
+ }
+ if (other.hasGoogleMapsWidgetContextToken()) {
+ googleMapsWidgetContextToken_ = other.googleMapsWidgetContextToken_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ if (sourceFlaggingUrisBuilder_ == null) {
+ if (!other.sourceFlaggingUris_.isEmpty()) {
+ if (sourceFlaggingUris_.isEmpty()) {
+ sourceFlaggingUris_ = other.sourceFlaggingUris_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ } else {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.addAll(other.sourceFlaggingUris_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.sourceFlaggingUris_.isEmpty()) {
+ if (sourceFlaggingUrisBuilder_.isEmpty()) {
+ sourceFlaggingUrisBuilder_.dispose();
+ sourceFlaggingUrisBuilder_ = null;
+ sourceFlaggingUris_ = other.sourceFlaggingUris_;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ sourceFlaggingUrisBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getSourceFlaggingUrisFieldBuilder()
+ : null;
+ } else {
+ sourceFlaggingUrisBuilder_.addAllMessages(other.sourceFlaggingUris_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
@java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.aiplatform.v1.ContentProto
- .internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor;
+ public final boolean isInitialized() {
+ return true;
}
@java.lang.Override
- public com.google.cloud.aiplatform.v1.GroundingMetadata getDefaultInstanceForType() {
- return com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance();
+ 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:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.add(s);
+ break;
+ } // case 10
+ case 34:
+ {
+ input.readMessage(
+ getSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 34
+ case 42:
+ {
+ com.google.cloud.aiplatform.v1.GroundingChunk m =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1.GroundingChunk.parser(), extensionRegistry);
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.add(m);
+ } else {
+ groundingChunksBuilder_.addMessage(m);
+ }
+ break;
+ } // case 42
+ case 50:
+ {
+ com.google.cloud.aiplatform.v1.GroundingSupport m =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1.GroundingSupport.parser(),
+ extensionRegistry);
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.add(m);
+ } else {
+ groundingSupportsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 50
+ case 58:
+ {
+ input.readMessage(
+ getRetrievalMetadataFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 58
+ case 66:
+ {
+ googleMapsWidgetContextToken_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 66
+ case 74:
+ {
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri m =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.parser(),
+ extensionRegistry);
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.add(m);
+ } else {
+ sourceFlaggingUrisBuilder_.addMessage(m);
+ }
+ break;
+ } // case 74
+ 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;
}
- @java.lang.Override
- public com.google.cloud.aiplatform.v1.GroundingMetadata build() {
- com.google.cloud.aiplatform.v1.GroundingMetadata result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList webSearchQueries_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureWebSearchQueriesIsMutable() {
+ if (!webSearchQueries_.isModifiable()) {
+ webSearchQueries_ = new com.google.protobuf.LazyStringArrayList(webSearchQueries_);
}
- return result;
+ bitField0_ |= 0x00000001;
}
- @java.lang.Override
- public com.google.cloud.aiplatform.v1.GroundingMetadata buildPartial() {
- com.google.cloud.aiplatform.v1.GroundingMetadata result =
- new com.google.cloud.aiplatform.v1.GroundingMetadata(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
- }
- onBuilt();
- return result;
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the webSearchQueries.
+ */
+ public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
+ webSearchQueries_.makeImmutable();
+ return webSearchQueries_;
}
- private void buildPartialRepeatedFields(
- com.google.cloud.aiplatform.v1.GroundingMetadata result) {
- if (groundingChunksBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
- groundingChunks_ = java.util.Collections.unmodifiableList(groundingChunks_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.groundingChunks_ = groundingChunks_;
- } else {
- result.groundingChunks_ = groundingChunksBuilder_.build();
- }
- if (groundingSupportsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)) {
- groundingSupports_ = java.util.Collections.unmodifiableList(groundingSupports_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.groundingSupports_ = groundingSupports_;
- } else {
- result.groundingSupports_ = groundingSupportsBuilder_.build();
- }
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of webSearchQueries.
+ */
+ public int getWebSearchQueriesCount() {
+ return webSearchQueries_.size();
}
- private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingMetadata result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- webSearchQueries_.makeImmutable();
- result.webSearchQueries_ = webSearchQueries_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.searchEntryPoint_ =
- searchEntryPointBuilder_ == null ? searchEntryPoint_ : searchEntryPointBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.retrievalMetadata_ =
- retrievalMetadataBuilder_ == null
- ? retrievalMetadata_
- : retrievalMetadataBuilder_.build();
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.googleMapsWidgetContextToken_ = googleMapsWidgetContextToken_;
- to_bitField0_ |= 0x00000004;
- }
- result.bitField0_ |= to_bitField0_;
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The webSearchQueries at the given index.
+ */
+ public java.lang.String getWebSearchQueries(int index) {
+ return webSearchQueries_.get(index);
}
- @java.lang.Override
- public Builder clone() {
- return super.clone();
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the webSearchQueries at the given index.
+ */
+ public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
+ return webSearchQueries_.getByteString(index);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The webSearchQueries to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWebSearchQueries(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
}
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.setField(field, value);
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The webSearchQueries to add.
+ * @return This builder for chaining.
+ */
+ public Builder addWebSearchQueries(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
}
- @java.lang.Override
- public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param values The webSearchQueries to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllWebSearchQueries(java.lang.Iterable+ * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearWebSearchQueries() {
+ webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
}
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The bytes of the webSearchQueries to add.
+ * @return This builder for chaining.
+ */
+ public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
}
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.addRepeatedField(field, value);
+ private com.google.cloud.aiplatform.v1.SearchEntryPoint searchEntryPoint_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.SearchEntryPoint,
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder,
+ com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder>
+ searchEntryPointBuilder_;
+
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the searchEntryPoint field is set.
+ */
+ public boolean hasSearchEntryPoint() {
+ return ((bitField0_ & 0x00000002) != 0);
}
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.aiplatform.v1.GroundingMetadata) {
- return mergeFrom((com.google.cloud.aiplatform.v1.GroundingMetadata) other);
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The searchEntryPoint.
+ */
+ public com.google.cloud.aiplatform.v1.SearchEntryPoint getSearchEntryPoint() {
+ if (searchEntryPointBuilder_ == null) {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
} else {
- super.mergeFrom(other);
- return this;
+ return searchEntryPointBuilder_.getMessage();
}
}
- public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingMetadata other) {
- if (other == com.google.cloud.aiplatform.v1.GroundingMetadata.getDefaultInstance())
- return this;
- if (!other.webSearchQueries_.isEmpty()) {
- if (webSearchQueries_.isEmpty()) {
- webSearchQueries_ = other.webSearchQueries_;
- bitField0_ |= 0x00000001;
- } else {
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.addAll(other.webSearchQueries_);
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSearchEntryPoint(com.google.cloud.aiplatform.v1.SearchEntryPoint value) {
+ if (searchEntryPointBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
- onChanged();
- }
- if (other.hasSearchEntryPoint()) {
- mergeSearchEntryPoint(other.getSearchEntryPoint());
+ searchEntryPoint_ = value;
+ } else {
+ searchEntryPointBuilder_.setMessage(value);
}
- if (groundingChunksBuilder_ == null) {
- if (!other.groundingChunks_.isEmpty()) {
- if (groundingChunks_.isEmpty()) {
- groundingChunks_ = other.groundingChunks_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureGroundingChunksIsMutable();
- groundingChunks_.addAll(other.groundingChunks_);
- }
- onChanged();
- }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSearchEntryPoint(
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder builderForValue) {
+ if (searchEntryPointBuilder_ == null) {
+ searchEntryPoint_ = builderForValue.build();
} else {
- if (!other.groundingChunks_.isEmpty()) {
- if (groundingChunksBuilder_.isEmpty()) {
- groundingChunksBuilder_.dispose();
- groundingChunksBuilder_ = null;
- groundingChunks_ = other.groundingChunks_;
- bitField0_ = (bitField0_ & ~0x00000004);
- groundingChunksBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
- ? getGroundingChunksFieldBuilder()
- : null;
- } else {
- groundingChunksBuilder_.addAllMessages(other.groundingChunks_);
- }
- }
+ searchEntryPointBuilder_.setMessage(builderForValue.build());
}
- if (groundingSupportsBuilder_ == null) {
- if (!other.groundingSupports_.isEmpty()) {
- if (groundingSupports_.isEmpty()) {
- groundingSupports_ = other.groundingSupports_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.addAll(other.groundingSupports_);
- }
- onChanged();
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeSearchEntryPoint(com.google.cloud.aiplatform.v1.SearchEntryPoint value) {
+ if (searchEntryPointBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && searchEntryPoint_ != null
+ && searchEntryPoint_
+ != com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()) {
+ getSearchEntryPointBuilder().mergeFrom(value);
+ } else {
+ searchEntryPoint_ = value;
}
} else {
- if (!other.groundingSupports_.isEmpty()) {
- if (groundingSupportsBuilder_.isEmpty()) {
- groundingSupportsBuilder_.dispose();
- groundingSupportsBuilder_ = null;
- groundingSupports_ = other.groundingSupports_;
- bitField0_ = (bitField0_ & ~0x00000008);
- groundingSupportsBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
- ? getGroundingSupportsFieldBuilder()
- : null;
- } else {
- groundingSupportsBuilder_.addAllMessages(other.groundingSupports_);
- }
- }
- }
- if (other.hasRetrievalMetadata()) {
- mergeRetrievalMetadata(other.getRetrievalMetadata());
+ searchEntryPointBuilder_.mergeFrom(value);
}
- if (other.hasGoogleMapsWidgetContextToken()) {
- googleMapsWidgetContextToken_ = other.googleMapsWidgetContextToken_;
- bitField0_ |= 0x00000020;
+ if (searchEntryPoint_ != null) {
+ bitField0_ |= 0x00000002;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSearchEntryPoint() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ searchEntryPoint_ = null;
+ if (searchEntryPointBuilder_ != null) {
+ searchEntryPointBuilder_.dispose();
+ searchEntryPointBuilder_ = null;
+ }
onChanged();
return this;
}
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder getSearchEntryPointBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getSearchEntryPointFieldBuilder().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. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() {
+ if (searchEntryPointBuilder_ != null) {
+ return searchEntryPointBuilder_.getMessageOrBuilder();
+ } else {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
}
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.add(s);
- break;
- } // case 10
- case 34:
- {
- input.readMessage(
- getSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 34
- case 42:
- {
- com.google.cloud.aiplatform.v1.GroundingChunk m =
- input.readMessage(
- com.google.cloud.aiplatform.v1.GroundingChunk.parser(), extensionRegistry);
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(m);
- } else {
- groundingChunksBuilder_.addMessage(m);
- }
- break;
- } // case 42
- case 50:
- {
- com.google.cloud.aiplatform.v1.GroundingSupport m =
- input.readMessage(
- com.google.cloud.aiplatform.v1.GroundingSupport.parser(),
- extensionRegistry);
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(m);
- } else {
- groundingSupportsBuilder_.addMessage(m);
- }
- break;
- } // case 50
- case 58:
- {
- input.readMessage(
- getRetrievalMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000010;
- break;
- } // case 58
- case 66:
- {
- googleMapsWidgetContextToken_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
- break;
- } // case 66
- 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. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.SearchEntryPoint,
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder,
+ com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder>
+ getSearchEntryPointFieldBuilder() {
+ if (searchEntryPointBuilder_ == null) {
+ searchEntryPointBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.SearchEntryPoint,
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder,
+ com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder>(
+ getSearchEntryPoint(), getParentForChildren(), isClean());
+ searchEntryPoint_ = null;
+ }
+ return searchEntryPointBuilder_;
+ }
- private com.google.protobuf.LazyStringArrayList webSearchQueries_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ private java.util.List- * Optional. Web search queries for the following-up web search. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return A list containing the webSearchQueries.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
- webSearchQueries_.makeImmutable();
- return webSearchQueries_;
+ public java.util.List- * Optional. Web search queries for the following-up web search. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The count of webSearchQueries.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public int getWebSearchQueriesCount() {
- return webSearchQueries_.size();
+ public int getGroundingChunksCount() {
+ if (groundingChunksBuilder_ == null) {
+ return groundingChunks_.size();
+ } else {
+ return groundingChunksBuilder_.getCount();
+ }
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param index The index of the element to return.
- * @return The webSearchQueries at the given index.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public java.lang.String getWebSearchQueries(int index) {
- return webSearchQueries_.get(index);
+ public com.google.cloud.aiplatform.v1.GroundingChunk getGroundingChunks(int index) {
+ if (groundingChunksBuilder_ == null) {
+ return groundingChunks_.get(index);
+ } else {
+ return groundingChunksBuilder_.getMessage(index);
+ }
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param index The index of the value to return.
- * @return The bytes of the webSearchQueries at the given index.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
- return webSearchQueries_.getByteString(index);
+ public Builder setGroundingChunks(
+ int index, com.google.cloud.aiplatform.v1.GroundingChunk value) {
+ if (groundingChunksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.set(index, value);
+ onChanged();
+ } else {
+ groundingChunksBuilder_.setMessage(index, value);
+ }
+ return this;
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param index The index to set the value at.
- * @param value The webSearchQueries to set.
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public Builder setWebSearchQueries(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder setGroundingChunks(
+ int index, com.google.cloud.aiplatform.v1.GroundingChunk.Builder builderForValue) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ groundingChunksBuilder_.setMessage(index, builderForValue.build());
}
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.set(index, value);
- bitField0_ |= 0x00000001;
- onChanged();
return this;
}
@@ -1221,23 +2714,22 @@ public Builder setWebSearchQueries(int index, java.lang.String value) {
*
*
* - * Optional. Web search queries for the following-up web search. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param value The webSearchQueries to add.
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public Builder addWebSearchQueries(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder addGroundingChunks(com.google.cloud.aiplatform.v1.GroundingChunk value) {
+ if (groundingChunksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.add(value);
+ onChanged();
+ } else {
+ groundingChunksBuilder_.addMessage(value);
}
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.add(value);
- bitField0_ |= 0x00000001;
- onChanged();
return this;
}
@@ -1245,20 +2737,23 @@ public Builder addWebSearchQueries(java.lang.String value) {
*
*
* - * Optional. Web search queries for the following-up web search. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param values The webSearchQueries to add.
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public Builder addAllWebSearchQueries(java.lang.Iterable- * Optional. Web search queries for the following-up web search. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public Builder clearWebSearchQueries() {
- webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- ;
- onChanged();
+ public Builder addGroundingChunks(
+ com.google.cloud.aiplatform.v1.GroundingChunk.Builder builderForValue) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.add(builderForValue.build());
+ onChanged();
+ } else {
+ groundingChunksBuilder_.addMessage(builderForValue.build());
+ }
return this;
}
@@ -1286,96 +2782,81 @@ public Builder clearWebSearchQueries() {
*
*
* - * Optional. Web search queries for the following-up web search. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @param value The bytes of the webSearchQueries to add.
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder addGroundingChunks(
+ int index, com.google.cloud.aiplatform.v1.GroundingChunk.Builder builderForValue) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ groundingChunksBuilder_.addMessage(index, builderForValue.build());
}
- checkByteStringIsUtf8(value);
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.add(value);
- bitField0_ |= 0x00000001;
- onChanged();
return this;
}
- private com.google.cloud.aiplatform.v1.SearchEntryPoint searchEntryPoint_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1.SearchEntryPoint,
- com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder,
- com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder>
- searchEntryPointBuilder_;
-
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return Whether the searchEntryPoint field is set.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public boolean hasSearchEntryPoint() {
- return ((bitField0_ & 0x00000002) != 0);
+ public Builder addAllGroundingChunks(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.GroundingChunk> values) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingChunks_);
+ onChanged();
+ } else {
+ groundingChunksBuilder_.addAllMessages(values);
+ }
+ return this;
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The searchEntryPoint.
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.cloud.aiplatform.v1.SearchEntryPoint getSearchEntryPoint() {
- if (searchEntryPointBuilder_ == null) {
- return searchEntryPoint_ == null
- ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
- : searchEntryPoint_;
+ public Builder clearGroundingChunks() {
+ if (groundingChunksBuilder_ == null) {
+ groundingChunks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
} else {
- return searchEntryPointBuilder_.getMessage();
+ groundingChunksBuilder_.clear();
}
+ return this;
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public Builder setSearchEntryPoint(com.google.cloud.aiplatform.v1.SearchEntryPoint value) {
- if (searchEntryPointBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- searchEntryPoint_ = value;
+ public Builder removeGroundingChunks(int index) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.remove(index);
+ onChanged();
} else {
- searchEntryPointBuilder_.setMessage(value);
+ groundingChunksBuilder_.remove(index);
}
- bitField0_ |= 0x00000002;
- onChanged();
return this;
}
@@ -1383,176 +2864,150 @@ public Builder setSearchEntryPoint(com.google.cloud.aiplatform.v1.SearchEntryPoi
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public Builder setSearchEntryPoint(
- com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder builderForValue) {
- if (searchEntryPointBuilder_ == null) {
- searchEntryPoint_ = builderForValue.build();
- } else {
- searchEntryPointBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Builder getGroundingChunksBuilder(
+ int index) {
+ return getGroundingChunksFieldBuilder().getBuilder(index);
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public Builder mergeSearchEntryPoint(com.google.cloud.aiplatform.v1.SearchEntryPoint value) {
- if (searchEntryPointBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
- && searchEntryPoint_ != null
- && searchEntryPoint_
- != com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()) {
- getSearchEntryPointBuilder().mergeFrom(value);
- } else {
- searchEntryPoint_ = value;
- }
+ public com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder getGroundingChunksOrBuilder(
+ int index) {
+ if (groundingChunksBuilder_ == null) {
+ return groundingChunks_.get(index);
} else {
- searchEntryPointBuilder_.mergeFrom(value);
- }
- if (searchEntryPoint_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
+ return groundingChunksBuilder_.getMessageOrBuilder(index);
}
- return this;
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public Builder clearSearchEntryPoint() {
- bitField0_ = (bitField0_ & ~0x00000002);
- searchEntryPoint_ = null;
- if (searchEntryPointBuilder_ != null) {
- searchEntryPointBuilder_.dispose();
- searchEntryPointBuilder_ = null;
+ public java.util.List extends com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder>
+ getGroundingChunksOrBuilderList() {
+ if (groundingChunksBuilder_ != null) {
+ return groundingChunksBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(groundingChunks_);
}
- onChanged();
- return this;
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder getSearchEntryPointBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getSearchEntryPointFieldBuilder().getBuilder();
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Builder addGroundingChunksBuilder() {
+ return getGroundingChunksFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.GroundingChunk.getDefaultInstance());
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() {
- if (searchEntryPointBuilder_ != null) {
- return searchEntryPointBuilder_.getMessageOrBuilder();
- } else {
- return searchEntryPoint_ == null
- ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
- : searchEntryPoint_;
- }
+ public com.google.cloud.aiplatform.v1.GroundingChunk.Builder addGroundingChunksBuilder(
+ int index) {
+ return getGroundingChunksFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1.GroundingChunk.getDefaultInstance());
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1.SearchEntryPoint,
- com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder,
- com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder>
- getSearchEntryPointFieldBuilder() {
- if (searchEntryPointBuilder_ == null) {
- searchEntryPointBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1.SearchEntryPoint,
- com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder,
- com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder>(
- getSearchEntryPoint(), getParentForChildren(), isClean());
- searchEntryPoint_ = null;
+ public java.util.List- * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public java.util.List- * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public int getGroundingChunksCount() {
- if (groundingChunksBuilder_ == null) {
- return groundingChunks_.size();
+ public int getGroundingSupportsCount() {
+ if (groundingSupportsBuilder_ == null) {
+ return groundingSupports_.size();
} else {
- return groundingChunksBuilder_.getCount();
+ return groundingSupportsBuilder_.getCount();
}
}
@@ -1577,16 +3034,18 @@ public int getGroundingChunksCount() {
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1.GroundingChunk getGroundingChunks(int index) {
- if (groundingChunksBuilder_ == null) {
- return groundingChunks_.get(index);
+ public com.google.cloud.aiplatform.v1.GroundingSupport getGroundingSupports(int index) {
+ if (groundingSupportsBuilder_ == null) {
+ return groundingSupports_.get(index);
} else {
- return groundingChunksBuilder_.getMessage(index);
+ return groundingSupportsBuilder_.getMessage(index);
}
}
@@ -1594,22 +3053,24 @@ public com.google.cloud.aiplatform.v1.GroundingChunk getGroundingChunks(int inde
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setGroundingChunks(
- int index, com.google.cloud.aiplatform.v1.GroundingChunk value) {
- if (groundingChunksBuilder_ == null) {
+ public Builder setGroundingSupports(
+ int index, com.google.cloud.aiplatform.v1.GroundingSupport value) {
+ if (groundingSupportsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGroundingChunksIsMutable();
- groundingChunks_.set(index, value);
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.set(index, value);
onChanged();
} else {
- groundingChunksBuilder_.setMessage(index, value);
+ groundingSupportsBuilder_.setMessage(index, value);
}
return this;
}
@@ -1618,19 +3079,21 @@ public Builder setGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setGroundingChunks(
- int index, com.google.cloud.aiplatform.v1.GroundingChunk.Builder builderForValue) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.set(index, builderForValue.build());
+ public Builder setGroundingSupports(
+ int index, com.google.cloud.aiplatform.v1.GroundingSupport.Builder builderForValue) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.set(index, builderForValue.build());
onChanged();
} else {
- groundingChunksBuilder_.setMessage(index, builderForValue.build());
+ groundingSupportsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
@@ -1639,21 +3102,23 @@ public Builder setGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder addGroundingChunks(com.google.cloud.aiplatform.v1.GroundingChunk value) {
- if (groundingChunksBuilder_ == null) {
+ public Builder addGroundingSupports(com.google.cloud.aiplatform.v1.GroundingSupport value) {
+ if (groundingSupportsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(value);
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.add(value);
onChanged();
} else {
- groundingChunksBuilder_.addMessage(value);
+ groundingSupportsBuilder_.addMessage(value);
}
return this;
}
@@ -1662,22 +3127,24 @@ public Builder addGroundingChunks(com.google.cloud.aiplatform.v1.GroundingChunk
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder addGroundingChunks(
- int index, com.google.cloud.aiplatform.v1.GroundingChunk value) {
- if (groundingChunksBuilder_ == null) {
+ public Builder addGroundingSupports(
+ int index, com.google.cloud.aiplatform.v1.GroundingSupport value) {
+ if (groundingSupportsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(index, value);
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.add(index, value);
onChanged();
} else {
- groundingChunksBuilder_.addMessage(index, value);
+ groundingSupportsBuilder_.addMessage(index, value);
}
return this;
}
@@ -1686,19 +3153,21 @@ public Builder addGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder addGroundingChunks(
- com.google.cloud.aiplatform.v1.GroundingChunk.Builder builderForValue) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(builderForValue.build());
+ public Builder addGroundingSupports(
+ com.google.cloud.aiplatform.v1.GroundingSupport.Builder builderForValue) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.add(builderForValue.build());
onChanged();
} else {
- groundingChunksBuilder_.addMessage(builderForValue.build());
+ groundingSupportsBuilder_.addMessage(builderForValue.build());
}
return this;
}
@@ -1707,19 +3176,21 @@ public Builder addGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder addGroundingChunks(
- int index, com.google.cloud.aiplatform.v1.GroundingChunk.Builder builderForValue) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(index, builderForValue.build());
+ public Builder addGroundingSupports(
+ int index, com.google.cloud.aiplatform.v1.GroundingSupport.Builder builderForValue) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.add(index, builderForValue.build());
onChanged();
} else {
- groundingChunksBuilder_.addMessage(index, builderForValue.build());
+ groundingSupportsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
@@ -1728,19 +3199,21 @@ public Builder addGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder addAllGroundingChunks(
- java.lang.Iterable extends com.google.cloud.aiplatform.v1.GroundingChunk> values) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingChunks_);
+ public Builder addAllGroundingSupports(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1.GroundingSupport> values) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupports_);
onChanged();
} else {
- groundingChunksBuilder_.addAllMessages(values);
+ groundingSupportsBuilder_.addAllMessages(values);
}
return this;
}
@@ -1749,18 +3222,20 @@ public Builder addAllGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder clearGroundingChunks() {
- if (groundingChunksBuilder_ == null) {
- groundingChunks_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ public Builder clearGroundingSupports() {
+ if (groundingSupportsBuilder_ == null) {
+ groundingSupports_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
- groundingChunksBuilder_.clear();
+ groundingSupportsBuilder_.clear();
}
return this;
}
@@ -1769,18 +3244,20 @@ public Builder clearGroundingChunks() {
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder removeGroundingChunks(int index) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.remove(index);
+ public Builder removeGroundingSupports(int index) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.remove(index);
onChanged();
} else {
- groundingChunksBuilder_.remove(index);
+ groundingSupportsBuilder_.remove(index);
}
return this;
}
@@ -1789,31 +3266,35 @@ public Builder removeGroundingChunks(int index) {
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1.GroundingChunk.Builder getGroundingChunksBuilder(
+ public com.google.cloud.aiplatform.v1.GroundingSupport.Builder getGroundingSupportsBuilder(
int index) {
- return getGroundingChunksFieldBuilder().getBuilder(index);
+ return getGroundingSupportsFieldBuilder().getBuilder(index);
}
/**
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder getGroundingChunksOrBuilder(
+ public com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder getGroundingSupportsOrBuilder(
int index) {
- if (groundingChunksBuilder_ == null) {
- return groundingChunks_.get(index);
+ if (groundingSupportsBuilder_ == null) {
+ return groundingSupports_.get(index);
} else {
- return groundingChunksBuilder_.getMessageOrBuilder(index);
+ return groundingSupportsBuilder_.getMessageOrBuilder(index);
}
}
@@ -1821,17 +3302,19 @@ public com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder getGroundingChunks
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public java.util.List extends com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder>
- getGroundingChunksOrBuilderList() {
- if (groundingChunksBuilder_ != null) {
- return groundingChunksBuilder_.getMessageOrBuilderList();
+ public java.util.List extends com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder>
+ getGroundingSupportsOrBuilderList() {
+ if (groundingSupportsBuilder_ != null) {
+ return groundingSupportsBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(groundingChunks_);
+ return java.util.Collections.unmodifiableList(groundingSupports_);
}
}
@@ -1839,119 +3322,115 @@ public com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder getGroundingChunks
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1.GroundingChunk.Builder addGroundingChunksBuilder() {
- return getGroundingChunksFieldBuilder()
- .addBuilder(com.google.cloud.aiplatform.v1.GroundingChunk.getDefaultInstance());
+ public com.google.cloud.aiplatform.v1.GroundingSupport.Builder addGroundingSupportsBuilder() {
+ return getGroundingSupportsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1.GroundingSupport.getDefaultInstance());
}
/**
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1.GroundingChunk.Builder addGroundingChunksBuilder(
+ public com.google.cloud.aiplatform.v1.GroundingSupport.Builder addGroundingSupportsBuilder(
int index) {
- return getGroundingChunksFieldBuilder()
- .addBuilder(index, com.google.cloud.aiplatform.v1.GroundingChunk.getDefaultInstance());
+ return getGroundingSupportsFieldBuilder()
+ .addBuilder(index, com.google.cloud.aiplatform.v1.GroundingSupport.getDefaultInstance());
}
/**
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public java.util.List- * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return Whether the retrievalMetadata field is set.
*/
- public java.util.List- * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The retrievalMetadata.
*/
- public int getGroundingSupportsCount() {
- if (groundingSupportsBuilder_ == null) {
- return groundingSupports_.size();
+ public com.google.cloud.aiplatform.v1.RetrievalMetadata getRetrievalMetadata() {
+ if (retrievalMetadataBuilder_ == null) {
+ return retrievalMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.RetrievalMetadata.getDefaultInstance()
+ : retrievalMetadata_;
} else {
- return groundingSupportsBuilder_.getCount();
+ return retrievalMetadataBuilder_.getMessage();
}
}
@@ -1959,44 +3438,47 @@ public int getGroundingSupportsCount() {
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.aiplatform.v1.GroundingSupport getGroundingSupports(int index) {
- if (groundingSupportsBuilder_ == null) {
- return groundingSupports_.get(index);
+ public Builder setRetrievalMetadata(com.google.cloud.aiplatform.v1.RetrievalMetadata value) {
+ if (retrievalMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ retrievalMetadata_ = value;
} else {
- return groundingSupportsBuilder_.getMessage(index);
+ retrievalMetadataBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** - *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- public Builder setGroundingSupports(
- int index, com.google.cloud.aiplatform.v1.GroundingSupport value) {
- if (groundingSupportsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGroundingSupportsIsMutable();
- groundingSupports_.set(index, value);
- onChanged();
+ *
+ * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setRetrievalMetadata(
+ com.google.cloud.aiplatform.v1.RetrievalMetadata.Builder builderForValue) {
+ if (retrievalMetadataBuilder_ == null) {
+ retrievalMetadata_ = builderForValue.build();
} else {
- groundingSupportsBuilder_.setMessage(index, value);
+ retrievalMetadataBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
@@ -2004,21 +3486,29 @@ public Builder setGroundingSupports(
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder setGroundingSupports(
- int index, com.google.cloud.aiplatform.v1.GroundingSupport.Builder builderForValue) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.set(index, builderForValue.build());
- onChanged();
+ public Builder mergeRetrievalMetadata(com.google.cloud.aiplatform.v1.RetrievalMetadata value) {
+ if (retrievalMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && retrievalMetadata_ != null
+ && retrievalMetadata_
+ != com.google.cloud.aiplatform.v1.RetrievalMetadata.getDefaultInstance()) {
+ getRetrievalMetadataBuilder().mergeFrom(value);
+ } else {
+ retrievalMetadata_ = value;
+ }
} else {
- groundingSupportsBuilder_.setMessage(index, builderForValue.build());
+ retrievalMetadataBuilder_.mergeFrom(value);
+ }
+ if (retrievalMetadata_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
}
return this;
}
@@ -2027,24 +3517,21 @@ public Builder setGroundingSupports(
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder addGroundingSupports(com.google.cloud.aiplatform.v1.GroundingSupport value) {
- if (groundingSupportsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(value);
- onChanged();
- } else {
- groundingSupportsBuilder_.addMessage(value);
+ public Builder clearRetrievalMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ retrievalMetadata_ = null;
+ if (retrievalMetadataBuilder_ != null) {
+ retrievalMetadataBuilder_.dispose();
+ retrievalMetadataBuilder_ = null;
}
+ onChanged();
return this;
}
@@ -2052,335 +3539,377 @@ public Builder addGroundingSupports(com.google.cloud.aiplatform.v1.GroundingSupp
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder addGroundingSupports(
- int index, com.google.cloud.aiplatform.v1.GroundingSupport value) {
- if (groundingSupportsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(index, value);
- onChanged();
- } else {
- groundingSupportsBuilder_.addMessage(index, value);
- }
- return this;
+ public com.google.cloud.aiplatform.v1.RetrievalMetadata.Builder getRetrievalMetadataBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getRetrievalMetadataFieldBuilder().getBuilder();
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder addGroundingSupports(
- com.google.cloud.aiplatform.v1.GroundingSupport.Builder builderForValue) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(builderForValue.build());
- onChanged();
+ public com.google.cloud.aiplatform.v1.RetrievalMetadataOrBuilder
+ getRetrievalMetadataOrBuilder() {
+ if (retrievalMetadataBuilder_ != null) {
+ return retrievalMetadataBuilder_.getMessageOrBuilder();
} else {
- groundingSupportsBuilder_.addMessage(builderForValue.build());
+ return retrievalMetadata_ == null
+ ? com.google.cloud.aiplatform.v1.RetrievalMetadata.getDefaultInstance()
+ : retrievalMetadata_;
}
- return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder addGroundingSupports(
- int index, com.google.cloud.aiplatform.v1.GroundingSupport.Builder builderForValue) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(index, builderForValue.build());
- onChanged();
- } else {
- groundingSupportsBuilder_.addMessage(index, builderForValue.build());
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.RetrievalMetadata,
+ com.google.cloud.aiplatform.v1.RetrievalMetadata.Builder,
+ com.google.cloud.aiplatform.v1.RetrievalMetadataOrBuilder>
+ getRetrievalMetadataFieldBuilder() {
+ if (retrievalMetadataBuilder_ == null) {
+ retrievalMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.RetrievalMetadata,
+ com.google.cloud.aiplatform.v1.RetrievalMetadata.Builder,
+ com.google.cloud.aiplatform.v1.RetrievalMetadataOrBuilder>(
+ getRetrievalMetadata(), getParentForChildren(), isClean());
+ retrievalMetadata_ = null;
}
- return this;
+ return retrievalMetadataBuilder_;
}
+ private java.lang.Object googleMapsWidgetContextToken_ = "";
+
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return Whether the googleMapsWidgetContextToken field is set.
*/
- public Builder addAllGroundingSupports(
- java.lang.Iterable extends com.google.cloud.aiplatform.v1.GroundingSupport> values) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupports_);
- onChanged();
- } else {
- groundingSupportsBuilder_.addAllMessages(values);
- }
- return this;
+ public boolean hasGoogleMapsWidgetContextToken() {
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The googleMapsWidgetContextToken.
*/
- public Builder clearGroundingSupports() {
- if (groundingSupportsBuilder_ == null) {
- groundingSupports_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
+ public java.lang.String getGoogleMapsWidgetContextToken() {
+ java.lang.Object ref = googleMapsWidgetContextToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ googleMapsWidgetContextToken_ = s;
+ return s;
} else {
- groundingSupportsBuilder_.clear();
+ return (java.lang.String) ref;
}
- return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The bytes for googleMapsWidgetContextToken.
*/
- public Builder removeGroundingSupports(int index) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.remove(index);
- onChanged();
+ public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
+ java.lang.Object ref = googleMapsWidgetContextToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ googleMapsWidgetContextToken_ = b;
+ return b;
} else {
- groundingSupportsBuilder_.remove(index);
+ return (com.google.protobuf.ByteString) ref;
}
- return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @param value The googleMapsWidgetContextToken to set.
+ * @return This builder for chaining.
*/
- public com.google.cloud.aiplatform.v1.GroundingSupport.Builder getGroundingSupportsBuilder(
- int index) {
- return getGroundingSupportsFieldBuilder().getBuilder(index);
+ public Builder setGoogleMapsWidgetContextToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ googleMapsWidgetContextToken_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return This builder for chaining.
*/
- public com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder getGroundingSupportsOrBuilder(
- int index) {
- if (groundingSupportsBuilder_ == null) {
- return groundingSupports_.get(index);
- } else {
- return groundingSupportsBuilder_.getMessageOrBuilder(index);
- }
+ public Builder clearGoogleMapsWidgetContextToken() {
+ googleMapsWidgetContextToken_ = getDefaultInstance().getGoogleMapsWidgetContextToken();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @param value The bytes for googleMapsWidgetContextToken to set.
+ * @return This builder for chaining.
*/
- public java.util.List extends com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder>
- getGroundingSupportsOrBuilderList() {
- if (groundingSupportsBuilder_ != null) {
- return groundingSupportsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(groundingSupports_);
+ public Builder setGoogleMapsWidgetContextTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ googleMapsWidgetContextToken_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List- * Optional. List of grounding support. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public com.google.cloud.aiplatform.v1.GroundingSupport.Builder addGroundingSupportsBuilder() {
- return getGroundingSupportsFieldBuilder()
- .addBuilder(com.google.cloud.aiplatform.v1.GroundingSupport.getDefaultInstance());
+ public java.util.List- * Optional. List of grounding support. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public com.google.cloud.aiplatform.v1.GroundingSupport.Builder addGroundingSupportsBuilder(
- int index) {
- return getGroundingSupportsFieldBuilder()
- .addBuilder(index, com.google.cloud.aiplatform.v1.GroundingSupport.getDefaultInstance());
+ public int getSourceFlaggingUrisCount() {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ return sourceFlaggingUris_.size();
+ } else {
+ return sourceFlaggingUrisBuilder_.getCount();
+ }
}
/**
*
*
* - * Optional. List of grounding support. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public java.util.List- * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return Whether the retrievalMetadata field is set.
*/
- public boolean hasRetrievalMetadata() {
- return ((bitField0_ & 0x00000010) != 0);
+ public Builder setSourceFlaggingUris(
+ int index, com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri value) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.set(index, value);
+ onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.setMessage(index, value);
+ }
+ return this;
}
/**
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return The retrievalMetadata.
*/
- public com.google.cloud.aiplatform.v1.RetrievalMetadata getRetrievalMetadata() {
- if (retrievalMetadataBuilder_ == null) {
- return retrievalMetadata_ == null
- ? com.google.cloud.aiplatform.v1.RetrievalMetadata.getDefaultInstance()
- : retrievalMetadata_;
+ public Builder setSourceFlaggingUris(
+ int index,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder
+ builderForValue) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.set(index, builderForValue.build());
+ onChanged();
} else {
- return retrievalMetadataBuilder_.getMessage();
+ sourceFlaggingUrisBuilder_.setMessage(index, builderForValue.build());
}
+ return this;
}
/**
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public Builder setRetrievalMetadata(com.google.cloud.aiplatform.v1.RetrievalMetadata value) {
- if (retrievalMetadataBuilder_ == null) {
+ public Builder addSourceFlaggingUris(
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri value) {
+ if (sourceFlaggingUrisBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- retrievalMetadata_ = value;
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.add(value);
+ onChanged();
} else {
- retrievalMetadataBuilder_.setMessage(value);
+ sourceFlaggingUrisBuilder_.addMessage(value);
}
- bitField0_ |= 0x00000010;
- onChanged();
return this;
}
@@ -2388,22 +3917,26 @@ public Builder setRetrievalMetadata(com.google.cloud.aiplatform.v1.RetrievalMeta
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public Builder setRetrievalMetadata(
- com.google.cloud.aiplatform.v1.RetrievalMetadata.Builder builderForValue) {
- if (retrievalMetadataBuilder_ == null) {
- retrievalMetadata_ = builderForValue.build();
+ public Builder addSourceFlaggingUris(
+ int index, com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri value) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.add(index, value);
+ onChanged();
} else {
- retrievalMetadataBuilder_.setMessage(builderForValue.build());
+ sourceFlaggingUrisBuilder_.addMessage(index, value);
}
- bitField0_ |= 0x00000010;
- onChanged();
return this;
}
@@ -2411,29 +3944,23 @@ public Builder setRetrievalMetadata(
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public Builder mergeRetrievalMetadata(com.google.cloud.aiplatform.v1.RetrievalMetadata value) {
- if (retrievalMetadataBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)
- && retrievalMetadata_ != null
- && retrievalMetadata_
- != com.google.cloud.aiplatform.v1.RetrievalMetadata.getDefaultInstance()) {
- getRetrievalMetadataBuilder().mergeFrom(value);
- } else {
- retrievalMetadata_ = value;
- }
- } else {
- retrievalMetadataBuilder_.mergeFrom(value);
- }
- if (retrievalMetadata_ != null) {
- bitField0_ |= 0x00000010;
+ public Builder addSourceFlaggingUris(
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder
+ builderForValue) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.add(builderForValue.build());
onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.addMessage(builderForValue.build());
}
return this;
}
@@ -2442,21 +3969,25 @@ public Builder mergeRetrievalMetadata(com.google.cloud.aiplatform.v1.RetrievalMe
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public Builder clearRetrievalMetadata() {
- bitField0_ = (bitField0_ & ~0x00000010);
- retrievalMetadata_ = null;
- if (retrievalMetadataBuilder_ != null) {
- retrievalMetadataBuilder_.dispose();
- retrievalMetadataBuilder_ = null;
+ public Builder addSourceFlaggingUris(
+ int index,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder
+ builderForValue) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.addMessage(index, builderForValue.build());
}
- onChanged();
return this;
}
@@ -2464,114 +3995,109 @@ public Builder clearRetrievalMetadata() {
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public com.google.cloud.aiplatform.v1.RetrievalMetadata.Builder getRetrievalMetadataBuilder() {
- bitField0_ |= 0x00000010;
- onChanged();
- return getRetrievalMetadataFieldBuilder().getBuilder();
+ public Builder addAllSourceFlaggingUris(
+ java.lang.Iterable<
+ ? extends com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri>
+ values) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceFlaggingUris_);
+ onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.addAllMessages(values);
+ }
+ return this;
}
/**
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public com.google.cloud.aiplatform.v1.RetrievalMetadataOrBuilder
- getRetrievalMetadataOrBuilder() {
- if (retrievalMetadataBuilder_ != null) {
- return retrievalMetadataBuilder_.getMessageOrBuilder();
+ public Builder clearSourceFlaggingUris() {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ sourceFlaggingUris_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
} else {
- return retrievalMetadata_ == null
- ? com.google.cloud.aiplatform.v1.RetrievalMetadata.getDefaultInstance()
- : retrievalMetadata_;
+ sourceFlaggingUrisBuilder_.clear();
}
+ return this;
}
/**
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1.RetrievalMetadata,
- com.google.cloud.aiplatform.v1.RetrievalMetadata.Builder,
- com.google.cloud.aiplatform.v1.RetrievalMetadataOrBuilder>
- getRetrievalMetadataFieldBuilder() {
- if (retrievalMetadataBuilder_ == null) {
- retrievalMetadataBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1.RetrievalMetadata,
- com.google.cloud.aiplatform.v1.RetrievalMetadata.Builder,
- com.google.cloud.aiplatform.v1.RetrievalMetadataOrBuilder>(
- getRetrievalMetadata(), getParentForChildren(), isClean());
- retrievalMetadata_ = null;
+ public Builder removeSourceFlaggingUris(int index) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.remove(index);
+ onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.remove(index);
}
- return retrievalMetadataBuilder_;
+ return this;
}
- private java.lang.Object googleMapsWidgetContextToken_ = "";
-
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return Whether the googleMapsWidgetContextToken field is set.
*/
- public boolean hasGoogleMapsWidgetContextToken() {
- return ((bitField0_ & 0x00000020) != 0);
+ public com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder
+ getSourceFlaggingUrisBuilder(int index) {
+ return getSourceFlaggingUrisFieldBuilder().getBuilder(index);
}
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return The googleMapsWidgetContextToken.
*/
- public java.lang.String getGoogleMapsWidgetContextToken() {
- java.lang.Object ref = googleMapsWidgetContextToken_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- googleMapsWidgetContextToken_ = s;
- return s;
+ public com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUriOrBuilder
+ getSourceFlaggingUrisOrBuilder(int index) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ return sourceFlaggingUris_.get(index);
} else {
- return (java.lang.String) ref;
+ return sourceFlaggingUrisBuilder_.getMessageOrBuilder(index);
}
}
@@ -2579,26 +4105,21 @@ public java.lang.String getGoogleMapsWidgetContextToken() {
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return The bytes for googleMapsWidgetContextToken.
*/
- public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
- java.lang.Object ref = googleMapsWidgetContextToken_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- googleMapsWidgetContextToken_ = b;
- return b;
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUriOrBuilder>
+ getSourceFlaggingUrisOrBuilderList() {
+ if (sourceFlaggingUrisBuilder_ != null) {
+ return sourceFlaggingUrisBuilder_.getMessageOrBuilderList();
} else {
- return (com.google.protobuf.ByteString) ref;
+ return java.util.Collections.unmodifiableList(sourceFlaggingUris_);
}
}
@@ -2606,75 +4127,79 @@ public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @param value The googleMapsWidgetContextToken to set.
- * @return This builder for chaining.
*/
- public Builder setGoogleMapsWidgetContextToken(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- googleMapsWidgetContextToken_ = value;
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
+ public com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder
+ addSourceFlaggingUrisBuilder() {
+ return getSourceFlaggingUrisFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri
+ .getDefaultInstance());
}
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return This builder for chaining.
*/
- public Builder clearGoogleMapsWidgetContextToken() {
- googleMapsWidgetContextToken_ = getDefaultInstance().getGoogleMapsWidgetContextToken();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
+ public com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder
+ addSourceFlaggingUrisBuilder(int index) {
+ return getSourceFlaggingUrisFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri
+ .getDefaultInstance());
}
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @param value The bytes for googleMapsWidgetContextToken to set.
- * @return This builder for chaining.
*/
- public Builder setGoogleMapsWidgetContextTokenBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public java.util.List<
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder>
+ getSourceFlaggingUrisBuilderList() {
+ return getSourceFlaggingUrisFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUriOrBuilder>
+ getSourceFlaggingUrisFieldBuilder() {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ sourceFlaggingUrisBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri.Builder,
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUriOrBuilder>(
+ sourceFlaggingUris_,
+ ((bitField0_ & 0x00000040) != 0),
+ getParentForChildren(),
+ isClean());
+ sourceFlaggingUris_ = null;
}
- checkByteStringIsUtf8(value);
- googleMapsWidgetContextToken_ = value;
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
+ return sourceFlaggingUrisBuilder_;
}
@java.lang.Override
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java
index c8f5cedb96a5..ef6f664b4301 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java
@@ -336,4 +336,79 @@ public interface GroundingMetadataOrBuilder
* @return The bytes for googleMapsWidgetContextToken.
*/
com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes();
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ java.util.List+ * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri getSourceFlaggingUris(
+ int index);
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ int getSourceFlaggingUrisCount();
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ java.util.List<
+ ? extends com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUriOrBuilder>
+ getSourceFlaggingUrisOrBuilderList();
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ com.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUriOrBuilder
+ getSourceFlaggingUrisOrBuilder(int index);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointProto.java
index c914a5418e92..bcc7bd45195f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexEndpointProto.java
@@ -96,7 +96,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\003key\030\001 \001(\t\022\r\n"
+ "\005value\030\002 \001(\t:\0028\001:u\352Ar\n"
+ "\'aiplatform.googleapis.com/IndexEndpoint\022Gproject"
- + "s/{project}/locations/{location}/indexEndpoints/{index_endpoint}\"\233\006\n\r"
+ + "s/{project}/locations/{location}/indexEndpoints/{index_endpoint}\"\263\007\n\r"
+ "DeployedIndex\022\017\n"
+ "\002id\030\001 \001(\tB\003\340A\002\0226\n"
+ "\005index\030\002 \001(\tB\'\340A\002\372A!\n"
@@ -117,25 +117,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\01323.google.cloud.aiplatform.v1.DeployedIndexAuthConfigB\003\340A\001\022\037\n"
+ "\022reserved_ip_ranges\030\n"
+ " \003(\tB\003\340A\001\022\035\n"
- + "\020deployment_group\030\013 \001(\tB\003\340A\001\022T\n"
+ + "\020deployment_group\030\013 \001(\tB\003\340A\001\022V\n"
+ + "\017deployment_tier\030\022 \001("
+ + "\01628.google.cloud.aiplatform.v1.DeployedIndex.DeploymentTierB\003\340A\001\022T\n"
+ "\026psc_automation_configs\030\023"
- + " \003(\0132/.google.cloud.aiplatform.v1.PSCAutomationConfigB\003\340A\001\"\256\001\n"
+ + " \003(\0132/.google.cloud.aiplatform.v1.PSCAutomationConfigB\003\340A\001\">\n"
+ + "\016DeploymentTier\022\037\n"
+ + "\033DEPLOYMENT_TIER_UNSPECIFIED\020\000\022\013\n"
+ + "\007STORAGE\020\002\"\256\001\n"
+ "\027DeployedIndexAuthConfig\022W\n\r"
- + "auth_provider\030\001 \001(\0132@.goog"
- + "le.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider\032:\n"
+ + "auth_provider\030\001 \001(\0132@.google.cloud"
+ + ".aiplatform.v1.DeployedIndexAuthConfig.AuthProvider\032:\n"
+ "\014AuthProvider\022\021\n"
+ "\taudiences\030\001 \003(\t\022\027\n"
+ "\017allowed_issuers\030\002 \003(\t\"\262\001\n"
+ "\025IndexPrivateEndpoints\022\037\n"
+ "\022match_grpc_address\030\001 \001(\tB\003\340A\003\022\037\n"
+ "\022service_attachment\030\002 \001(\tB\003\340A\003\022W\n"
- + "\027psc_automated_endpoints\030\003"
- + " \003(\01321.google.cloud.aiplatform.v1.PscAutomatedEndpointsB\003\340A\003B\320\001\n"
- + "\036com.google.cloud.aiplatform.v1B\022IndexEndpointProtoP\001Z>c"
- + "loud.google.com/go/aiplatform/apiv1/aipl"
- + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP"
- + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352"
- + "\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "\027psc_automated_endpoints\030\003 \003(\01321.g"
+ + "oogle.cloud.aiplatform.v1.PscAutomatedEndpointsB\003\340A\003B\320\001\n"
+ + "\036com.google.cloud.aiplatform.v1B\022IndexEndpointProtoP\001Z>cloud.goo"
+ + "gle.com/go/aiplatform/apiv1/aiplatformpb"
+ + ";aiplatformpb\252\002\032Google.Cloud.AIPlatform."
+ + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google"
+ + "::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -198,6 +203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"DeployedIndexAuthConfig",
"ReservedIpRanges",
"DeploymentGroup",
+ "DeploymentTier",
"PscAutomationConfigs",
});
internal_static_google_cloud_aiplatform_v1_DeployedIndexAuthConfig_descriptor =
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequest.java
index 54b7c9b4b616..ab87e0d157f1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictRequest.java
@@ -56,6 +56,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_aiplatform_v1_PredictRequest_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 4:
+ return internalGetLabels();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -309,6 +321,117 @@ public com.google.protobuf.ValueOrBuilder getParametersOrBuilder() {
return parameters_ == null ? com.google.protobuf.Value.getDefaultInstance() : parameters_;
}
+ public static final int LABELS_FIELD_NUMBER = 4;
+
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000008;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder putAllLabels(java.util.Map.google.protobuf.Value parameters = 3;
*/
com.google.protobuf.ValueOrBuilder getParametersOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ int getLabelsCount();
+
+ /**
+ *
+ *
+ * + * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ boolean containsLabels(java.lang.String key);
+
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ /* nullable */
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
+
+ /**
+ *
+ *
+ * + * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ java.lang.String getLabelsOrThrow(java.lang.String key);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java
index 2a397a88a389..89d292cdaa3f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java
@@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_PredictRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_PredictRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_PredictRequest_LabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_PredictRequest_LabelsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1_PredictResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -137,238 +141,243 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n3google/cloud/aiplatform/v1/prediction_"
- + "service.proto\022\032google.cloud.aiplatform.v"
+ "\n"
+ + "3google/cloud/aiplatform/v1/prediction_service.proto\022\032google.cloud.aiplatform.v"
+ "1\032\034google/api/annotations.proto\032\027google/"
+ "api/client.proto\032\037google/api/field_behav"
+ "ior.proto\032\031google/api/httpbody.proto\032\031go"
- + "ogle/api/resource.proto\032(google/cloud/ai"
- + "platform/v1/content.proto\032,google/cloud/"
- + "aiplatform/v1/explanation.proto\032%google/"
- + "cloud/aiplatform/v1/tool.proto\032&google/c"
+ + "ogle/api/resource.proto\032(google/cloud/aiplatform/v1/content.proto\032,google/cloud/"
+ + "aiplatform/v1/explanation.proto\032%google/cloud/aiplatform/v1/tool.proto\032&google/c"
+ "loud/aiplatform/v1/types.proto\032\034google/p"
- + "rotobuf/struct.proto\032\037google/protobuf/ti"
- + "mestamp.proto\"\252\001\n\016PredictRequest\022<\n\010endp"
- + "oint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapi"
- + "s.com/Endpoint\022.\n\tinstances\030\002 \003(\0132\026.goog"
- + "le.protobuf.ValueB\003\340A\002\022*\n\nparameters\030\003 \001"
- + "(\0132\026.google.protobuf.Value\"\200\002\n\017PredictRe"
- + "sponse\022+\n\013predictions\030\001 \003(\0132\026.google.pro"
- + "tobuf.Value\022\031\n\021deployed_model_id\030\002 \001(\t\0226"
- + "\n\005model\030\003 \001(\tB\'\340A\003\372A!\n\037aiplatform.google"
- + "apis.com/Model\022\035\n\020model_version_id\030\005 \001(\t"
- + "B\003\340A\003\022\037\n\022model_display_name\030\004 \001(\tB\003\340A\003\022-"
- + "\n\010metadata\030\006 \001(\0132\026.google.protobuf.Value"
- + "B\003\340A\003\"z\n\021RawPredictRequest\022<\n\010endpoint\030\001"
- + " \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/"
- + "Endpoint\022\'\n\thttp_body\030\002 \001(\0132\024.google.api"
- + ".HttpBody\"\200\001\n\027StreamRawPredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.goog"
- + "leapis.com/Endpoint\022\'\n\thttp_body\030\002 \001(\0132\024"
- + ".google.api.HttpBody\"\300\001\n\024DirectPredictRe"
- + "quest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatf"
- + "orm.googleapis.com/Endpoint\0222\n\006inputs\030\002 "
- + "\003(\0132\".google.cloud.aiplatform.v1.Tensor\022"
- + "6\n\nparameters\030\003 \001(\0132\".google.cloud.aipla"
- + "tform.v1.Tensor\"\204\001\n\025DirectPredictRespons"
- + "e\0223\n\007outputs\030\001 \003(\0132\".google.cloud.aiplat"
- + "form.v1.Tensor\0226\n\nparameters\030\002 \001(\0132\".goo"
- + "gle.cloud.aiplatform.v1.Tensor\"{\n\027Direct"
- + "RawPredictRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002"
- + "\372A$\n\"aiplatform.googleapis.com/Endpoint\022"
- + "\023\n\013method_name\030\002 \001(\t\022\r\n\005input\030\003 \001(\014\"*\n\030D"
- + "irectRawPredictResponse\022\016\n\006output\030\001 \001(\014\""
- + "\320\001\n\032StreamDirectPredictRequest\022<\n\010endpoi"
- + "nt\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis."
- + "com/Endpoint\0227\n\006inputs\030\002 \003(\0132\".google.cl"
- + "oud.aiplatform.v1.TensorB\003\340A\001\022;\n\nparamet"
- + "ers\030\003 \001(\0132\".google.cloud.aiplatform.v1.T"
- + "ensorB\003\340A\001\"\212\001\n\033StreamDirectPredictRespon"
- + "se\0223\n\007outputs\030\001 \003(\0132\".google.cloud.aipla"
- + "tform.v1.Tensor\0226\n\nparameters\030\002 \001(\0132\".go"
- + "ogle.cloud.aiplatform.v1.Tensor\"\213\001\n\035Stre"
- + "amDirectRawPredictRequest\022<\n\010endpoint\030\001 "
- + "\001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/E"
- + "ndpoint\022\030\n\013method_name\030\002 \001(\tB\003\340A\001\022\022\n\005inp"
- + "ut\030\003 \001(\014B\003\340A\001\"0\n\036StreamDirectRawPredictR"
- + "esponse\022\016\n\006output\030\001 \001(\014\"\303\001\n\027StreamingPre"
- + "dictRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"a"
- + "iplatform.googleapis.com/Endpoint\0222\n\006inp"
- + "uts\030\002 \003(\0132\".google.cloud.aiplatform.v1.T"
- + "ensor\0226\n\nparameters\030\003 \001(\0132\".google.cloud"
- + ".aiplatform.v1.Tensor\"\207\001\n\030StreamingPredi"
- + "ctResponse\0223\n\007outputs\030\001 \003(\0132\".google.clo"
- + "ud.aiplatform.v1.Tensor\0226\n\nparameters\030\002 "
- + "\001(\0132\".google.cloud.aiplatform.v1.Tensor\""
- + "~\n\032StreamingRawPredictRequest\022<\n\010endpoin"
- + "t\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.c"
- + "om/Endpoint\022\023\n\013method_name\030\002 \001(\t\022\r\n\005inpu"
- + "t\030\003 \001(\014\"-\n\033StreamingRawPredictResponse\022\016"
- + "\n\006output\030\001 \001(\014\"\235\002\n\016ExplainRequest\022<\n\010end"
- + "point\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleap"
- + "is.com/Endpoint\022.\n\tinstances\030\002 \003(\0132\026.goo"
- + "gle.protobuf.ValueB\003\340A\002\022*\n\nparameters\030\004 "
- + "\001(\0132\026.google.protobuf.Value\022V\n\031explanati"
- + "on_spec_override\030\005 \001(\01323.google.cloud.ai"
- + "platform.v1.ExplanationSpecOverride\022\031\n\021d"
- + "eployed_model_id\030\003 \001(\t\"\230\001\n\017ExplainRespon"
- + "se\022=\n\014explanations\030\001 \003(\0132\'.google.cloud."
- + "aiplatform.v1.Explanation\022\031\n\021deployed_mo"
- + "del_id\030\002 \001(\t\022+\n\013predictions\030\003 \003(\0132\026.goog"
- + "le.protobuf.Value\"\323\003\n\022CountTokensRequest"
- + "\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.g"
- + "oogleapis.com/Endpoint\022\022\n\005model\030\003 \001(\tB\003\340"
- + "A\001\022.\n\tinstances\030\002 \003(\0132\026.google.protobuf."
- + "ValueB\003\340A\001\022:\n\010contents\030\004 \003(\0132#.google.cl"
- + "oud.aiplatform.v1.ContentB\003\340A\001\022I\n\022system"
- + "_instruction\030\005 \001(\0132#.google.cloud.aiplat"
- + "form.v1.ContentB\003\340A\001H\000\210\001\001\0224\n\005tools\030\006 \003(\013"
- + "2 .google.cloud.aiplatform.v1.ToolB\003\340A\001\022"
- + "Q\n\021generation_config\030\007 \001(\0132,.google.clou"
- + "d.aiplatform.v1.GenerationConfigB\003\340A\001H\001\210"
- + "\001\001B\025\n\023_system_instructionB\024\n\022_generation"
- + "_config\"\242\001\n\023CountTokensResponse\022\024\n\014total"
- + "_tokens\030\001 \001(\005\022!\n\031total_billable_characte"
- + "rs\030\002 \001(\005\022R\n\025prompt_tokens_details\030\003 \003(\0132"
- + "..google.cloud.aiplatform.v1.ModalityTok"
- + "enCountB\003\340A\003\"\365\005\n\026GenerateContentRequest\022"
- + "\022\n\005model\030\005 \001(\tB\003\340A\002\022:\n\010contents\030\002 \003(\0132#."
- + "google.cloud.aiplatform.v1.ContentB\003\340A\002\022"
- + "I\n\022system_instruction\030\010 \001(\0132#.google.clo"
- + "ud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\022G\n\016ca"
- + "ched_content\030\t \001(\tB/\340A\001\372A)\n\'aiplatform.g"
- + "oogleapis.com/CachedContent\0224\n\005tools\030\006 \003"
- + "(\0132 .google.cloud.aiplatform.v1.ToolB\003\340A"
- + "\001\022@\n\013tool_config\030\007 \001(\0132&.google.cloud.ai"
- + "platform.v1.ToolConfigB\003\340A\001\022S\n\006labels\030\n "
- + "\003(\0132>.google.cloud.aiplatform.v1.Generat"
- + "eContentRequest.LabelsEntryB\003\340A\001\022G\n\017safe"
- + "ty_settings\030\003 \003(\0132).google.cloud.aiplatf"
- + "orm.v1.SafetySettingB\003\340A\001\022M\n\022model_armor"
- + "_config\030\013 \001(\0132,.google.cloud.aiplatform."
- + "v1.ModelArmorConfigB\003\340A\001\022L\n\021generation_c"
- + "onfig\030\004 \001(\0132,.google.cloud.aiplatform.v1"
- + ".GenerationConfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\025\n\023_system"
- + "_instruction\"\240\t\n\027GenerateContentResponse"
- + "\022>\n\ncandidates\030\002 \003(\0132%.google.cloud.aipl"
- + "atform.v1.CandidateB\003\340A\003\022\032\n\rmodel_versio"
- + "n\030\013 \001(\tB\003\340A\003\0224\n\013create_time\030\014 \001(\0132\032.goog"
- + "le.protobuf.TimestampB\003\340A\003\022\030\n\013response_i"
- + "d\030\r \001(\tB\003\340A\003\022`\n\017prompt_feedback\030\003 \001(\0132B."
- + "google.cloud.aiplatform.v1.GenerateConte"
- + "ntResponse.PromptFeedbackB\003\340A\003\022Y\n\016usage_"
- + "metadata\030\004 \001(\0132A.google.cloud.aiplatform"
- + ".v1.GenerateContentResponse.UsageMetadat"
- + "a\032\347\002\n\016PromptFeedback\022k\n\014block_reason\030\001 \001"
- + "(\0162P.google.cloud.aiplatform.v1.Generate"
- + "ContentResponse.PromptFeedback.BlockedRe"
- + "asonB\003\340A\003\022E\n\016safety_ratings\030\002 \003(\0132(.goog"
- + "le.cloud.aiplatform.v1.SafetyRatingB\003\340A\003"
- + "\022!\n\024block_reason_message\030\003 \001(\tB\003\340A\003\"~\n\rB"
- + "lockedReason\022\036\n\032BLOCKED_REASON_UNSPECIFI"
- + "ED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST"
- + "\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\022\017\n\013MODEL_ARMO"
- + "R\020\005\032\261\003\n\rUsageMetadata\022\032\n\022prompt_token_co"
- + "unt\030\001 \001(\005\022\036\n\026candidates_token_count\030\002 \001("
- + "\005\022!\n\024thoughts_token_count\030\016 \001(\005B\003\340A\003\022\031\n\021"
- + "total_token_count\030\003 \001(\005\022\'\n\032cached_conten"
- + "t_token_count\030\005 \001(\005B\003\340A\003\022R\n\025prompt_token"
- + "s_details\030\t \003(\0132..google.cloud.aiplatfor"
- + "m.v1.ModalityTokenCountB\003\340A\003\022Q\n\024cache_to"
- + "kens_details\030\n \003(\0132..google.cloud.aiplat"
- + "form.v1.ModalityTokenCountB\003\340A\003\022V\n\031candi"
- + "dates_tokens_details\030\013 \003(\0132..google.clou"
- + "d.aiplatform.v1.ModalityTokenCountB\003\340A\0032"
- + "\362\031\n\021PredictionService\022\224\002\n\007Predict\022*.goog"
- + "le.cloud.aiplatform.v1.PredictRequest\032+."
- + "google.cloud.aiplatform.v1.PredictRespon"
- + "se\"\257\001\332A\035endpoint,instances,parameters\202\323\344"
- + "\223\002\210\001\"9/v1/{endpoint=projects/*/locations"
- + "/*/endpoints/*}:predict:\001*ZH\"C/v1/{endpo"
- + "int=projects/*/locations/*/publishers/*/"
- + "models/*}:predict:\001*\022\376\001\n\nRawPredict\022-.go"
- + "ogle.cloud.aiplatform.v1.RawPredictReque"
- + "st\032\024.google.api.HttpBody\"\252\001\332A\022endpoint,h"
- + "ttp_body\202\323\344\223\002\216\001\"\"9/v1/{endpoint=projects/*/location"
- + "s/*/endpoints/*}:explain:\001*\022\215\003\n\017Generate"
- + "Content\0222.google.cloud.aiplatform.v1.Gen"
- + "erateContentRequest\0323.google.cloud.aipla"
- + "tform.v1.GenerateContentResponse\"\220\002\332A\016mo"
- + "del,contents\202\323\344\223\002\370\001\">/v1/{model=projects"
- + "/*/locations/*/endpoints/*}:generateCont"
- + "ent:\001*ZM\"H/v1/{model=projects/*/location"
- + "s/*/publishers/*/models/*}:generateConte"
- + "nt:\001*Z,\"\'/v1/{model=endpoints/*}:generat"
- + "eContent:\001*Z6\"1/v1/{model=publishers/*/m"
- + "odels/*}:generateContent:\001*\022\255\003\n\025StreamGe"
- + "nerateContent\0222.google.cloud.aiplatform."
- + "v1.GenerateContentRequest\0323.google.cloud"
- + ".aiplatform.v1.GenerateContentResponse\"\250"
- + "\002\332A\016model,contents\202\323\344\223\002\220\002\"D/v1/{model=pr"
- + "ojects/*/locations/*/endpoints/*}:stream"
- + "GenerateContent:\001*ZS\"N/v1/{model=project"
- + "s/*/locations/*/publishers/*/models/*}:s"
- + "treamGenerateContent:\001*Z2\"-/v1/{model=en"
- + "dpoints/*}:streamGenerateContent:\001*Z<\"7/"
- + "v1/{model=publishers/*/models/*}:streamG"
- + "enerateContent:\001*0\001\032\206\001\312A\031aiplatform.goog"
- + "leapis.com\322Aghttps://www.googleapis.com/"
- + "auth/cloud-platform,https://www.googleap"
- + "is.com/auth/cloud-platform.read-onlyB\324\001\n"
- + "\036com.google.cloud.aiplatform.v1B\026Predict"
- + "ionServiceProtoP\001Z>cloud.google.com/go/a"
- + "iplatform/apiv1/aiplatformpb;aiplatformp"
- + "b\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\"
- + "Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIP"
- + "latform::V1b\006proto3"
+ + "rotobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\246\002\n"
+ + "\016PredictRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\022.\n"
+ + "\tinstances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\002\022*\n\n"
+ + "parameters\030\003 \001(\0132\026.google.protobuf.Value\022K\n"
+ + "\006labels\030\004 \003"
+ + "(\01326.google.cloud.aiplatform.v1.PredictRequest.LabelsEntryB\003\340A\001\032-\n"
+ + "\013LabelsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022\r\n"
+ + "\005value\030\002 \001(\t:\0028\001\"\200\002\n"
+ + "\017PredictResponse\022+\n"
+ + "\013predictions\030\001 \003(\0132\026.google.protobuf.Value\022\031\n"
+ + "\021deployed_model_id\030\002 \001(\t\0226\n"
+ + "\005model\030\003 \001(\tB\'\340A\003\372A!\n"
+ + "\037aiplatform.googleapis.com/Model\022\035\n"
+ + "\020model_version_id\030\005 \001(\tB\003\340A\003\022\037\n"
+ + "\022model_display_name\030\004 \001(\tB\003\340A\003\022-\n"
+ + "\010metadata\030\006 \001(\0132\026.google.protobuf.ValueB\003\340A\003\"z\n"
+ + "\021RawPredictRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\022\'\n"
+ + "\thttp_body\030\002 \001(\0132\024.google.api.HttpBody\"\200\001\n"
+ + "\027StreamRawPredictRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\022\'\n"
+ + "\thttp_body\030\002 \001(\0132\024.google.api.HttpBody\"\300\001\n"
+ + "\024DirectPredictRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\0222\n"
+ + "\006inputs\030\002 \003(\0132\".google.cloud.aiplatform.v1.Tensor\0226\n\n"
+ + "parameters\030\003 \001(\0132\".google.cloud.aiplatform.v1.Tensor\"\204\001\n"
+ + "\025DirectPredictResponse\0223\n"
+ + "\007outputs\030\001 \003(\0132\".google.cloud.aiplatform.v1.Tensor\0226\n\n"
+ + "parameters\030\002 \001(\0132\".google.cloud.aiplatform.v1.Tensor\"{\n"
+ + "\027DirectRawPredictRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\022\023\n"
+ + "\013method_name\030\002 \001(\t\022\r\n"
+ + "\005input\030\003 \001(\014\"*\n"
+ + "\030DirectRawPredictResponse\022\016\n"
+ + "\006output\030\001 \001(\014\"\320\001\n"
+ + "\032StreamDirectPredictRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\0227\n"
+ + "\006inputs\030\002"
+ + " \003(\0132\".google.cloud.aiplatform.v1.TensorB\003\340A\001\022;\n\n"
+ + "parameters\030\003"
+ + " \001(\0132\".google.cloud.aiplatform.v1.TensorB\003\340A\001\"\212\001\n"
+ + "\033StreamDirectPredictResponse\0223\n"
+ + "\007outputs\030\001 \003(\0132\".google.cloud.aiplatform.v1.Tensor\0226\n\n"
+ + "parameters\030\002 \001(\0132\".google.cloud.aiplatform.v1.Tensor\"\213\001\n"
+ + "\035StreamDirectRawPredictRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\022\030\n"
+ + "\013method_name\030\002 \001(\tB\003\340A\001\022\022\n"
+ + "\005input\030\003 \001(\014B\003\340A\001\"0\n"
+ + "\036StreamDirectRawPredictResponse\022\016\n"
+ + "\006output\030\001 \001(\014\"\303\001\n"
+ + "\027StreamingPredictRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\0222\n"
+ + "\006inputs\030\002 \003(\0132\".google.cloud.aiplatform.v1.Tensor\0226\n\n"
+ + "parameters\030\003 \001(\0132\".google.cloud.aiplatform.v1.Tensor\"\207\001\n"
+ + "\030StreamingPredictResponse\0223\n"
+ + "\007outputs\030\001 \003(\0132\".google.cloud.aiplatform.v1.Tensor\0226\n\n"
+ + "parameters\030\002 \001(\0132\".google.cloud.aiplatform.v1.Tensor\"~\n"
+ + "\032StreamingRawPredictRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\022\023\n"
+ + "\013method_name\030\002 \001(\t\022\r\n"
+ + "\005input\030\003 \001(\014\"-\n"
+ + "\033StreamingRawPredictResponse\022\016\n"
+ + "\006output\030\001 \001(\014\"\235\002\n"
+ + "\016ExplainRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\022.\n"
+ + "\tinstances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\002\022*\n\n"
+ + "parameters\030\004 \001(\0132\026.google.protobuf.Value\022V\n"
+ + "\031explanation_spec_override\030\005 \001(\01323.google.clou"
+ + "d.aiplatform.v1.ExplanationSpecOverride\022\031\n"
+ + "\021deployed_model_id\030\003 \001(\t\"\230\001\n"
+ + "\017ExplainResponse\022=\n"
+ + "\014explanations\030\001 \003(\0132\'.google.cloud.aiplatform.v1.Explanation\022\031\n"
+ + "\021deployed_model_id\030\002 \001(\t\022+\n"
+ + "\013predictions\030\003 \003(\0132\026.google.protobuf.Value\"\323\003\n"
+ + "\022CountTokensRequest\022<\n"
+ + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\022\022\n"
+ + "\005model\030\003 \001(\tB\003\340A\001\022.\n"
+ + "\tinstances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\001\022:\n"
+ + "\010contents\030\004"
+ + " \003(\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\001\022I\n"
+ + "\022system_instruction\030\005"
+ + " \001(\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\0224\n"
+ + "\005tools\030\006 \003(\0132 .google.cloud.aiplatform.v1.ToolB\003\340A\001\022Q\n"
+ + "\021generation_config\030\007 \001(\0132,.google."
+ + "cloud.aiplatform.v1.GenerationConfigB\003\340A\001H\001\210\001\001B\025\n"
+ + "\023_system_instructionB\024\n"
+ + "\022_generation_config\"\242\001\n"
+ + "\023CountTokensResponse\022\024\n"
+ + "\014total_tokens\030\001 \001(\005\022!\n"
+ + "\031total_billable_characters\030\002 \001(\005\022R\n"
+ + "\025prompt_tokens_details\030\003 "
+ + "\003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\"\365\005\n"
+ + "\026GenerateContentRequest\022\022\n"
+ + "\005model\030\005 \001(\tB\003\340A\002\022:\n"
+ + "\010contents\030\002 \003("
+ + "\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\002\022I\n"
+ + "\022system_instruction\030\010 \001(\0132#.google"
+ + ".cloud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\022G\n"
+ + "\016cached_content\030\t \001(\tB/\340A\001\372A)\n"
+ + "\'aiplatform.googleapis.com/CachedContent\0224\n"
+ + "\005tools\030\006 \003(\0132 .google.cloud.aiplatform.v1.ToolB\003\340A\001\022@\n"
+ + "\013tool_config\030\007"
+ + " \001(\0132&.google.cloud.aiplatform.v1.ToolConfigB\003\340A\001\022S\n"
+ + "\006labels\030\n"
+ + " \003(\0132>.google.cloud.aiplatform.v1.GenerateContentRequest.LabelsEntryB\003\340A\001\022G\n"
+ + "\017safety_settings\030\003"
+ + " \003(\0132).google.cloud.aiplatform.v1.SafetySettingB\003\340A\001\022M\n"
+ + "\022model_armor_config\030\013"
+ + " \001(\0132,.google.cloud.aiplatform.v1.ModelArmorConfigB\003\340A\001\022L\n"
+ + "\021generation_config\030\004"
+ + " \001(\0132,.google.cloud.aiplatform.v1.GenerationConfigB\003\340A\001\032-\n"
+ + "\013LabelsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022\r\n"
+ + "\005value\030\002 \001(\t:\0028\001B\025\n"
+ + "\023_system_instruction\"\240\t\n"
+ + "\027GenerateContentResponse\022>\n\n"
+ + "candidates\030\002"
+ + " \003(\0132%.google.cloud.aiplatform.v1.CandidateB\003\340A\003\022\032\n\r"
+ + "model_version\030\013 \001(\tB\003\340A\003\0224\n"
+ + "\013create_time\030\014"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n"
+ + "\013response_id\030\r"
+ + " \001(\tB\003\340A\003\022`\n"
+ + "\017prompt_feedback\030\003 \001("
+ + "\0132B.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedbackB\003\340A\003\022Y\n"
+ + "\016usage_metadata\030\004 \001(\0132A.google.cloud.aiplat"
+ + "form.v1.GenerateContentResponse.UsageMetadata\032\347\002\n"
+ + "\016PromptFeedback\022k\n"
+ + "\014block_reason\030\001 \001(\0162P.google.cloud.aiplatform.v1.Gene"
+ + "rateContentResponse.PromptFeedback.BlockedReasonB\003\340A\003\022E\n"
+ + "\016safety_ratings\030\002 \003(\0132(."
+ + "google.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022!\n"
+ + "\024block_reason_message\030\003 \001(\tB\003\340A\003\"~\n\r"
+ + "BlockedReason\022\036\n"
+ + "\032BLOCKED_REASON_UNSPECIFIED\020\000\022\n\n"
+ + "\006SAFETY\020\001\022\t\n"
+ + "\005OTHER\020\002\022\r\n"
+ + "\tBLOCKLIST\020\003\022\026\n"
+ + "\022PROHIBITED_CONTENT\020\004\022\017\n"
+ + "\013MODEL_ARMOR\020\005\032\261\003\n\r"
+ + "UsageMetadata\022\032\n"
+ + "\022prompt_token_count\030\001 \001(\005\022\036\n"
+ + "\026candidates_token_count\030\002 \001(\005\022!\n"
+ + "\024thoughts_token_count\030\016 \001(\005B\003\340A\003\022\031\n"
+ + "\021total_token_count\030\003 \001(\005\022\'\n"
+ + "\032cached_content_token_count\030\005 \001(\005B\003\340A\003\022R\n"
+ + "\025prompt_tokens_details\030\t"
+ + " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\022Q\n"
+ + "\024cache_tokens_details\030\n"
+ + " \003(\0132..google.cloud.aiplatform.v1.ModalityTokenCountB\003\340A\003\022V\n"
+ + "\031candidates_tokens_details\030\013 \003(\0132..google."
+ + "cloud.aiplatform.v1.ModalityTokenCountB\003\340A\0032\362\031\n"
+ + "\021PredictionService\022\224\002\n"
+ + "\007Predict\022*.google.cloud.aiplatform.v1.PredictReques"
+ + "t\032+.google.cloud.aiplatform.v1.PredictRe"
+ + "sponse\"\257\001\332A\035endpoint,instances,parameter"
+ + "s\202\323\344\223\002\210\001\"9/v1/{endpoint=projects/*/locat"
+ + "ions/*/endpoints/*}:predict:\001*ZH\"C/v1/{e"
+ + "ndpoint=projects/*/locations/*/publishers/*/models/*}:predict:\001*\022\376\001\n\n"
+ + "RawPredict\022-.google.cloud.aiplatform.v1.RawPredictR"
+ + "equest\032\024.google.api.HttpBody\"\252\001\332A\022endpoi"
+ + "nt,http_body\202\323\344\223\002\216\001\"\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain:\001*\022\215\003\n"
+ + "\017GenerateContent\0222.google.cloud.aiplatform.v1"
+ + ".GenerateContentRequest\0323.google.cloud.a"
+ + "iplatform.v1.GenerateContentResponse\"\220\002\332"
+ + "A\016model,contents\202\323\344\223\002\370\001\">/v1/{model=proj"
+ + "ects/*/locations/*/endpoints/*}:generateContent:\001*ZM\"H/v1/{model=projects/*/loca"
+ + "tions/*/publishers/*/models/*}:generateContent:\001*Z,\"\'/v1/{model=endpoints/*}:gen"
+ + "erateContent:\001*Z6\"1/v1/{model=publishers/*/models/*}:generateContent:\001*\022\255\003\n"
+ + "\025StreamGenerateContent\0222.google.cloud.aiplatf"
+ + "orm.v1.GenerateContentRequest\0323.google.cloud.aiplatform.v1.GenerateContentRespon"
+ + "se\"\250\002\332A\016model,contents\202\323\344\223\002\220\002\"D/v1/{mode"
+ + "l=projects/*/locations/*/endpoints/*}:streamGenerateContent:\001*ZS\"N/v1/{model=pro"
+ + "jects/*/locations/*/publishers/*/models/*}:streamGenerateContent:\001*Z2\"-/v1/{mode"
+ + "l=endpoints/*}:streamGenerateContent:\001*Z<\"7/v1/{model=publishers/*/models/*}:str"
+ + "eamGenerateContent:\001*0\001\032\206\001\312A\031aiplatform."
+ + "googleapis.com\322Aghttps://www.googleapis.com/auth/cloud-platform,https://www.goog"
+ + "leapis.com/auth/cloud-platform.read-onlyB\324\001\n"
+ + "\036com.google.cloud.aiplatform.v1B\026PredictionServiceProtoP\001Z>cloud.google.com/"
+ + "go/aiplatform/apiv1/aiplatformpb;aiplatf"
+ + "ormpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goo"
+ + "gle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -392,7 +401,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_PredictRequest_descriptor,
new java.lang.String[] {
- "Endpoint", "Instances", "Parameters",
+ "Endpoint", "Instances", "Parameters", "Labels",
+ });
+ internal_static_google_cloud_aiplatform_v1_PredictRequest_LabelsEntry_descriptor =
+ internal_static_google_cloud_aiplatform_v1_PredictRequest_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_aiplatform_v1_PredictRequest_LabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_PredictRequest_LabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
});
internal_static_google_cloud_aiplatform_v1_PredictResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java
index d7bf4f9ef8e3..b2881a05a9e5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java
@@ -238,7 +238,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO
*
*
* @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=283
+ * google/cloud/aiplatform/v1/tool.proto;l=314
* @return The disableAttribution.
*/
@java.lang.Override
@@ -1146,7 +1146,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO
*
*
* @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=283
+ * google/cloud/aiplatform/v1/tool.proto;l=314
* @return The disableAttribution.
*/
@java.lang.Override
@@ -1167,7 +1167,7 @@ public boolean getDisableAttribution() {
*
*
* @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=283
+ * google/cloud/aiplatform/v1/tool.proto;l=314
* @param value The disableAttribution to set.
* @return This builder for chaining.
*/
@@ -1192,7 +1192,7 @@ public Builder setDisableAttribution(boolean value) {
*
*
* @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=283
+ * google/cloud/aiplatform/v1/tool.proto;l=314
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java
index 1c6e690cbf1b..1f098c5a4657 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java
@@ -113,7 +113,7 @@ public interface RetrievalOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=283
+ * google/cloud/aiplatform/v1/tool.proto;l=314
* @return The disableAttribution.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java
index 9279d033b458..ef7aa8441a17 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java
@@ -70,6 +70,263 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.Tool.Builder.class);
}
+ /**
+ *
+ *
+ * + * These are available confidence level user can set to block malicious urls + * with chosen confidence and above. For understanding different confidence of + * webrisk, please refer to + * https://cloud.google.com/web-risk/docs/reference/rpc/google.cloud.webrisk.v1eap1#confidencelevel + *+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.Tool.PhishBlockThreshold} + */ + public enum PhishBlockThreshold implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Defaults to unspecified. + *+ * + *
PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0;
+ */
+ PHISH_BLOCK_THRESHOLD_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Blocks Low and above confidence URL that is risky. + *+ * + *
BLOCK_LOW_AND_ABOVE = 30;
+ */
+ BLOCK_LOW_AND_ABOVE(30),
+ /**
+ *
+ *
+ * + * Blocks Medium and above confidence URL that is risky. + *+ * + *
BLOCK_MEDIUM_AND_ABOVE = 40;
+ */
+ BLOCK_MEDIUM_AND_ABOVE(40),
+ /**
+ *
+ *
+ * + * Blocks High and above confidence URL that is risky. + *+ * + *
BLOCK_HIGH_AND_ABOVE = 50;
+ */
+ BLOCK_HIGH_AND_ABOVE(50),
+ /**
+ *
+ *
+ * + * Blocks Higher and above confidence URL that is risky. + *+ * + *
BLOCK_HIGHER_AND_ABOVE = 55;
+ */
+ BLOCK_HIGHER_AND_ABOVE(55),
+ /**
+ *
+ *
+ * + * Blocks Very high and above confidence URL that is risky. + *+ * + *
BLOCK_VERY_HIGH_AND_ABOVE = 60;
+ */
+ BLOCK_VERY_HIGH_AND_ABOVE(60),
+ /**
+ *
+ *
+ * + * Blocks Extremely high confidence URL that is risky. + *+ * + *
BLOCK_ONLY_EXTREMELY_HIGH = 100;
+ */
+ BLOCK_ONLY_EXTREMELY_HIGH(100),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Defaults to unspecified. + *+ * + *
PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0;
+ */
+ public static final int PHISH_BLOCK_THRESHOLD_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Blocks Low and above confidence URL that is risky. + *+ * + *
BLOCK_LOW_AND_ABOVE = 30;
+ */
+ public static final int BLOCK_LOW_AND_ABOVE_VALUE = 30;
+
+ /**
+ *
+ *
+ * + * Blocks Medium and above confidence URL that is risky. + *+ * + *
BLOCK_MEDIUM_AND_ABOVE = 40;
+ */
+ public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE = 40;
+
+ /**
+ *
+ *
+ * + * Blocks High and above confidence URL that is risky. + *+ * + *
BLOCK_HIGH_AND_ABOVE = 50;
+ */
+ public static final int BLOCK_HIGH_AND_ABOVE_VALUE = 50;
+
+ /**
+ *
+ *
+ * + * Blocks Higher and above confidence URL that is risky. + *+ * + *
BLOCK_HIGHER_AND_ABOVE = 55;
+ */
+ public static final int BLOCK_HIGHER_AND_ABOVE_VALUE = 55;
+
+ /**
+ *
+ *
+ * + * Blocks Very high and above confidence URL that is risky. + *+ * + *
BLOCK_VERY_HIGH_AND_ABOVE = 60;
+ */
+ public static final int BLOCK_VERY_HIGH_AND_ABOVE_VALUE = 60;
+
+ /**
+ *
+ *
+ * + * Blocks Extremely high confidence URL that is risky. + *+ * + *
BLOCK_ONLY_EXTREMELY_HIGH = 100;
+ */
+ public static final int BLOCK_ONLY_EXTREMELY_HIGH_VALUE = 100;
+
+ 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 PhishBlockThreshold 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 PhishBlockThreshold forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PHISH_BLOCK_THRESHOLD_UNSPECIFIED;
+ case 30:
+ return BLOCK_LOW_AND_ABOVE;
+ case 40:
+ return BLOCK_MEDIUM_AND_ABOVE;
+ case 50:
+ return BLOCK_HIGH_AND_ABOVE;
+ case 55:
+ return BLOCK_HIGHER_AND_ABOVE;
+ case 60:
+ return BLOCK_VERY_HIGH_AND_ABOVE;
+ case 100:
+ return BLOCK_ONLY_EXTREMELY_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ boolean hasBlockingConfidence();
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ int getBlockingConfidenceValue();
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold getBlockingConfidence();
}
/**
@@ -161,6 +466,7 @@ private GoogleSearch(com.google.protobuf.GeneratedMessageV3.Builder> builder)
private GoogleSearch() {
excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ blockingConfidence_ = 0;
}
@java.lang.Override
@@ -184,6 +490,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.Tool.GoogleSearch.Builder.class);
}
+ private int bitField0_;
public static final int EXCLUDE_DOMAINS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
@@ -260,6 +567,70 @@ public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) {
return excludeDomains_.getByteString(index);
}
+ public static final int BLOCKING_CONFIDENCE_FIELD_NUMBER = 4;
+ private int blockingConfidence_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlockingConfidence() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ @java.lang.Override
+ public int getBlockingConfidenceValue() {
+ return blockingConfidence_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold getBlockingConfidence() {
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold result =
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold.forNumber(blockingConfidence_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -277,6 +648,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < excludeDomains_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, excludeDomains_.getRaw(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(4, blockingConfidence_);
+ }
getUnknownFields().writeTo(output);
}
@@ -294,6 +668,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getExcludeDomainsList().size();
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockingConfidence_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -311,6 +688,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.aiplatform.v1.Tool.GoogleSearch) obj;
if (!getExcludeDomainsList().equals(other.getExcludeDomainsList())) return false;
+ if (hasBlockingConfidence() != other.hasBlockingConfidence()) return false;
+ if (hasBlockingConfidence()) {
+ if (blockingConfidence_ != other.blockingConfidence_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -326,6 +707,10 @@ public int hashCode() {
hash = (37 * hash) + EXCLUDE_DOMAINS_FIELD_NUMBER;
hash = (53 * hash) + getExcludeDomainsList().hashCode();
}
+ if (hasBlockingConfidence()) {
+ hash = (37 * hash) + BLOCKING_CONFIDENCE_FIELD_NUMBER;
+ hash = (53 * hash) + blockingConfidence_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -470,6 +855,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ blockingConfidence_ = 0;
return this;
}
@@ -510,6 +896,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Tool.GoogleSearch resu
excludeDomains_.makeImmutable();
result.excludeDomains_ = excludeDomains_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.blockingConfidence_ = blockingConfidence_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -570,6 +962,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tool.GoogleSearch other)
}
onChanged();
}
+ if (other.hasBlockingConfidence()) {
+ setBlockingConfidence(other.getBlockingConfidence());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -603,6 +998,12 @@ public Builder mergeFrom(
excludeDomains_.add(s);
break;
} // case 26
+ case 32:
+ {
+ blockingConfidence_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 32
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -823,6 +1224,138 @@ public Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private int blockingConfidence_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlockingConfidence() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ @java.lang.Override
+ public int getBlockingConfidenceValue() {
+ return blockingConfidence_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for blockingConfidence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlockingConfidenceValue(int value) {
+ blockingConfidence_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold getBlockingConfidence() {
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold result =
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold.forNumber(blockingConfidence_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The blockingConfidence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlockingConfidence(
+ com.google.cloud.aiplatform.v1.Tool.PhishBlockThreshold value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ blockingConfidence_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBlockingConfidence() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ blockingConfidence_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java
index 0104470663b4..157c87477e26 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java
@@ -150,7 +150,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\032google.cloud.aiplatform.v1\032\037google/api/"
+ "field_behavior.proto\032\031google/api/resourc"
+ "e.proto\032(google/cloud/aiplatform/v1/open"
- + "api.proto\032\034google/protobuf/struct.proto\032\030google/type/latlng.proto\"\225\007\n"
+ + "api.proto\032\034google/protobuf/struct.proto\032\030google/type/latlng.proto\"\363"
+ + "\t\n"
+ "\004Tool\022S\n"
+ "\025function_declarations\030\001 \003(\0132/.google.cloud"
+ ".aiplatform.v1.FunctionDeclarationB\003\340A\001\022=\n"
@@ -169,16 +170,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013url_context\030\010 \001(\0132&.go"
+ "ogle.cloud.aiplatform.v1.UrlContextB\003\340A\001\022G\n"
+ "\014computer_use\030\013"
- + " \001(\0132,.google.cloud.aiplatform.v1.Tool.ComputerUseB\003\340A\001\032,\n"
+ + " \001(\0132,.google.cloud.aiplatform.v1.Tool.ComputerUseB\003\340A\001\032\241\001\n"
+ "\014GoogleSearch\022\034\n"
- + "\017exclude_domains\030\003 \003(\tB\003\340A\001\032\017\n\r"
+ + "\017exclude_domains\030\003 \003(\tB\003\340A\001\022[\n"
+ + "\023blocking_confidence\030\004 \001(\01624.google.c"
+ + "loud.aiplatform.v1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n"
+ + "\024_blocking_confidence\032\017\n"
+ + "\r"
+ "CodeExecution\032\246\001\n"
+ "\013ComputerUse\022R\n"
+ "\013environment\030\001"
+ " \001(\01628.google.cloud.aiplatform.v1.Tool.ComputerUse.EnvironmentB\003\340A\002\"C\n"
+ "\013Environment\022\033\n"
+ "\027ENVIRONMENT_UNSPECIFIED\020\000\022\027\n"
- + "\023ENVIRONMENT_BROWSER\020\001\"\014\n\n"
+ + "\023ENVIRONMENT_BROWSER\020\001\"\345\001\n"
+ + "\023PhishBlockThreshold\022%\n"
+ + "!PHISH_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n"
+ + "\023BLOCK_LOW_AND_ABOVE\020\036\022\032\n"
+ + "\026BLOCK_MEDIUM_AND_ABOVE\020(\022\030\n"
+ + "\024BLOCK_HIGH_AND_ABOVE\0202\022\032\n"
+ + "\026BLOCK_HIGHER_AND_ABOVE\0207\022\035\n"
+ + "\031BLOCK_VERY_HIGH_AND_ABOVE\020<\022\035\n"
+ + "\031BLOCK_ONLY_EXTREMELY_HIGH\020d\"\014\n\n"
+ "UrlContext\"\262\002\n"
+ "\023FunctionDeclaration\022\021\n"
+ "\004name\030\001 \001(\tB\003\340A\002\022\030\n"
@@ -186,8 +199,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "parameters\030\003 \001(\0132\".google.cloud.aiplatform.v1.SchemaB\003\340A\001\022;\n"
+ "\026parameters_json_schema\030\005"
+ " \001(\0132\026.google.protobuf.ValueB\003\340A\001\0229\n"
- + "\010response\030\004"
- + " \001(\0132\".google.cloud.aiplatform.v1.SchemaB\003\340A\001\0229\n"
+ + "\010response\030\004 \001(\0132\""
+ + ".google.cloud.aiplatform.v1.SchemaB\003\340A\001\0229\n"
+ "\024response_json_schema\030\006"
+ " \001(\0132\026.google.protobuf.ValueB\003\340A\001\"M\n"
+ "\014FunctionCall\022\021\n"
@@ -197,15 +210,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB\003\340A\002\022.\n"
+ "\010response\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002\"\241\001\n"
+ "\016ExecutableCode\022J\n"
- + "\010language\030\001 \001(\01623.google"
- + ".cloud.aiplatform.v1.ExecutableCode.LanguageB\003\340A\002\022\021\n"
+ + "\010language\030\001 \001(\01623.google.cloud.aip"
+ + "latform.v1.ExecutableCode.LanguageB\003\340A\002\022\021\n"
+ "\004code\030\002 \001(\tB\003\340A\002\"0\n"
+ "\010Language\022\030\n"
+ "\024LANGUAGE_UNSPECIFIED\020\000\022\n\n"
+ "\006PYTHON\020\001\"\340\001\n"
+ "\023CodeExecutionResult\022M\n"
- + "\007outcome\030\001 \001(\0162"
- + "7.google.cloud.aiplatform.v1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n"
+ + "\007outcome\030\001 \001(\01627.google.c"
+ + "loud.aiplatform.v1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n"
+ "\006output\030\002 \001(\tB\003\340A\001\"e\n"
+ "\007Outcome\022\027\n"
+ "\023OUTCOME_UNSPECIFIED\020\000\022\016\n\n"
@@ -220,13 +233,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\023disable_attribution\030\003 \001(\010B\005\030\001\340A\001B\010\n"
+ "\006source\"\252\003\n"
+ "\016VertexRagStore\022R\n\r"
- + "rag_resources\030\004 \003(\01326.google"
- + ".cloud.aiplatform.v1.VertexRagStore.RagResourceB\003\340A\001\022$\n"
+ + "rag_resources\030\004 \003(\01326.google.cloud.aip"
+ + "latform.v1.VertexRagStore.RagResourceB\003\340A\001\022$\n"
+ "\020similarity_top_k\030\002 \001(\005B\005\030\001\340A\001H\000\210\001\001\022-\n"
+ "\031vector_distance_threshold\030\003"
+ " \001(\001B\005\030\001\340A\001H\001\210\001\001\022Q\n"
- + "\024rag_retrieval_config\030\006"
- + " \001(\0132..google.cloud.aiplatform.v1.RagRetrievalConfigB\003\340A\001\032i\n"
+ + "\024rag_retrieval_config\030\006 \001(\0132.."
+ + "google.cloud.aiplatform.v1.RagRetrievalConfigB\003\340A\001\032i\n"
+ "\013RagResource\022?\n\n"
+ "rag_corpus\030\001 \001(\tB+\340A\001\372A%\n"
+ "#aiplatform.googleapis.com/RagCorpus\022\031\n"
@@ -238,33 +251,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006engine\030\002 \001(\tB\003\340A\001\022\030\n"
+ "\013max_results\030\003 \001(\005B\003\340A\001\022\023\n"
+ "\006filter\030\004 \001(\tB\003\340A\001\022R\n"
- + "\020data_store_specs\030\005 \003(\01328.go"
- + "ogle.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\0328\n\r"
+ + "\020data_store_specs\030\005 \003(\01328.google.cloud"
+ + ".aiplatform.v1.VertexAISearch.DataStoreSpec\0328\n\r"
+ "DataStoreSpec\022\022\n\n"
+ "data_store\030\001 \001(\t\022\023\n"
+ "\006filter\030\002 \001(\tB\003\340A\001\"m\n"
+ "\025GoogleSearchRetrieval\022T\n"
- + "\030dynamic_retrieval_config\030\002"
- + " \001(\01322.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"\014\n\n"
- + "GoogleMaps\"3\n"
+ + "\030dynamic_retrieval_config\030\002 \001(\013"
+ + "22.google.cloud.aiplatform.v1.DynamicRetrievalConfig\"(\n\n"
+ + "GoogleMaps\022\032\n\r"
+ + "enable_widget\030\001 \001(\010B\003\340A\001\"\250\001\n"
+ "\023EnterpriseWebSearch\022\034\n"
- + "\017exclude_domains\030\001 \003(\tB\003\340A\001\"\312\001\n"
+ + "\017exclude_domains\030\001 \003(\tB\003\340A\001\022[\n"
+ + "\023blocking_confidence\030\002 \001(\01624.google.cloud.aiplatf"
+ + "orm.v1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n"
+ + "\024_blocking_confidence\"\312\001\n"
+ "\026DynamicRetrievalConfig\022E\n"
- + "\004mode\030\001"
- + " \001(\01627.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\022#\n"
+ + "\004mode\030\001 \001(\01627.google.clou"
+ + "d.aiplatform.v1.DynamicRetrievalConfig.Mode\022#\n"
+ "\021dynamic_threshold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n"
+ "\004Mode\022\024\n"
+ "\020MODE_UNSPECIFIED\020\000\022\020\n"
+ "\014MODE_DYNAMIC\020\001B\024\n"
+ "\022_dynamic_threshold\"\261\001\n\n"
+ "ToolConfig\022W\n"
- + "\027function_calling_config\030\001 \001(\01321.google.cloud.ai"
- + "platform.v1.FunctionCallingConfigB\003\340A\001\022J\n"
- + "\020retrieval_config\030\002"
- + " \001(\0132+.google.cloud.aiplatform.v1.RetrievalConfigB\003\340A\001\"\302\001\n"
+ + "\027function_calling_config\030\001 \001(\01321"
+ + ".google.cloud.aiplatform.v1.FunctionCallingConfigB\003\340A\001\022J\n"
+ + "\020retrieval_config\030\002 \001(\013"
+ + "2+.google.cloud.aiplatform.v1.RetrievalConfigB\003\340A\001\"\302\001\n"
+ "\025FunctionCallingConfig\022I\n"
- + "\004mode\030\001 \001(\01626.goo"
- + "gle.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\003\340A\001\022#\n"
+ + "\004mode\030\001"
+ + " \001(\01626.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\003\340A\001\022#\n"
+ "\026allowed_function_names\030\002 \003(\tB\003\340A\001\"9\n"
+ "\004Mode\022\024\n"
+ "\020MODE_UNSPECIFIED\020\000\022\010\n"
@@ -278,20 +295,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016_language_code\"\252\005\n"
+ "\022RagRetrievalConfig\022\022\n"
+ "\005top_k\030\001 \001(\005B\003\340A\001\022J\n"
- + "\006filter\030\003"
- + " \001(\01325.google.cloud.aiplatform.v1.RagRetrievalConfig.FilterB\003\340A\001\022L\n"
- + "\007ranking\030\004"
- + " \001(\01326.google.cloud.aiplatform.v1.RagRetrievalConfig.RankingB\003\340A\001\032\223\001\n"
+ + "\006filter\030\003 \001(\01325.google.clou"
+ + "d.aiplatform.v1.RagRetrievalConfig.FilterB\003\340A\001\022L\n"
+ + "\007ranking\030\004 \001(\01326.google.cloud.a"
+ + "iplatform.v1.RagRetrievalConfig.RankingB\003\340A\001\032\223\001\n"
+ "\006Filter\022(\n"
+ "\031vector_distance_threshold\030\003 \001(\001B\003\340A\001H\000\022*\n"
+ "\033vector_similarity_threshold\030\004 \001(\001B\003\340A\001H\000\022\034\n"
+ "\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n"
+ "\023vector_db_threshold\032\317\002\n"
+ "\007Ranking\022_\n"
- + "\014rank_service\030\001 \001(\0132B.google.cloud.aiplatform.v"
- + "1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022[\n\n"
- + "llm_ranker\030\003 \001(\0132@.google.clo"
- + "ud.aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n"
+ + "\014rank_service\030\001 \001(\0132B.google.cl"
+ + "oud.aiplatform.v1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022[\n\n"
+ + "llm_ranker\030\003 "
+ + "\001(\0132@.google.cloud.aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n"
+ "\013RankService\022\034\n\n"
+ "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n"
+ "\013_model_name\0328\n"
@@ -299,11 +316,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n"
+ "\013_model_nameB\020\n"
+ "\016ranking_configB\307\001\n"
- + "\036com.google.cloud.aiplatform.v1B\tToolPro"
- + "toP\001Z>cloud.google.com/go/aiplatform/api"
- + "v1/aiplatformpb;aiplatformpb\252\002\032Google.Cl"
- + "oud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatf"
- + "orm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
+ + "\036com.google.cloud.aiplatform.v1B\tToolProtoP\001Z>cloud.google.com/g"
+ + "o/aiplatform/apiv1/aiplatformpb;aiplatfo"
+ + "rmpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goog"
+ + "le\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -337,7 +353,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_Tool_GoogleSearch_descriptor,
new java.lang.String[] {
- "ExcludeDomains",
+ "ExcludeDomains", "BlockingConfidence",
});
internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor =
internal_static_google_cloud_aiplatform_v1_Tool_descriptor.getNestedTypes().get(1);
@@ -461,14 +477,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
internal_static_google_cloud_aiplatform_v1_GoogleMaps_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GoogleMaps_descriptor,
- new java.lang.String[] {});
+ new java.lang.String[] {
+ "EnableWidget",
+ });
internal_static_google_cloud_aiplatform_v1_EnterpriseWebSearch_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_google_cloud_aiplatform_v1_EnterpriseWebSearch_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_EnterpriseWebSearch_descriptor,
new java.lang.String[] {
- "ExcludeDomains",
+ "ExcludeDomains", "BlockingConfidence",
});
internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_descriptor =
getDescriptor().getMessageTypes().get(13);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java
index 94810907bc54..557bdfa16c0b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java
@@ -1234,7 +1234,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getRagResources
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=314
+ * google/cloud/aiplatform/v1/tool.proto;l=345
* @return Whether the similarityTopK field is set.
*/
@java.lang.Override
@@ -1255,7 +1255,7 @@ public boolean hasSimilarityTopK() {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=314
+ * google/cloud/aiplatform/v1/tool.proto;l=345
* @return The similarityTopK.
*/
@java.lang.Override
@@ -1280,7 +1280,7 @@ public int getSimilarityTopK() {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated.
- * See google/cloud/aiplatform/v1/tool.proto;l=319
+ * See google/cloud/aiplatform/v1/tool.proto;l=350
* @return Whether the vectorDistanceThreshold field is set.
*/
@java.lang.Override
@@ -1302,7 +1302,7 @@ public boolean hasVectorDistanceThreshold() {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated.
- * See google/cloud/aiplatform/v1/tool.proto;l=319
+ * See google/cloud/aiplatform/v1/tool.proto;l=350
* @return The vectorDistanceThreshold.
*/
@java.lang.Override
@@ -2357,7 +2357,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder addRagR
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=314
+ * google/cloud/aiplatform/v1/tool.proto;l=345
* @return Whether the similarityTopK field is set.
*/
@java.lang.Override
@@ -2378,7 +2378,7 @@ public boolean hasSimilarityTopK() {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=314
+ * google/cloud/aiplatform/v1/tool.proto;l=345
* @return The similarityTopK.
*/
@java.lang.Override
@@ -2399,7 +2399,7 @@ public int getSimilarityTopK() {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=314
+ * google/cloud/aiplatform/v1/tool.proto;l=345
* @param value The similarityTopK to set.
* @return This builder for chaining.
*/
@@ -2424,7 +2424,7 @@ public Builder setSimilarityTopK(int value) {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=314
+ * google/cloud/aiplatform/v1/tool.proto;l=345
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -2450,7 +2450,7 @@ public Builder clearSimilarityTopK() {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is
- * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=319
+ * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=350
* @return Whether the vectorDistanceThreshold field is set.
*/
@java.lang.Override
@@ -2472,7 +2472,7 @@ public boolean hasVectorDistanceThreshold() {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is
- * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=319
+ * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=350
* @return The vectorDistanceThreshold.
*/
@java.lang.Override
@@ -2494,7 +2494,7 @@ public double getVectorDistanceThreshold() {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is
- * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=319
+ * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=350
* @param value The vectorDistanceThreshold to set.
* @return This builder for chaining.
*/
@@ -2520,7 +2520,7 @@ public Builder setVectorDistanceThreshold(double value) {
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is
- * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=319
+ * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=350
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java
index 8a0b80e3effe..c445414f41a2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java
@@ -118,7 +118,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=314
+ * google/cloud/aiplatform/v1/tool.proto;l=345
* @return Whether the similarityTopK field is set.
*/
@java.lang.Deprecated
@@ -136,7 +136,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See
- * google/cloud/aiplatform/v1/tool.proto;l=314
+ * google/cloud/aiplatform/v1/tool.proto;l=345
* @return The similarityTopK.
*/
@java.lang.Deprecated
@@ -155,7 +155,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated.
- * See google/cloud/aiplatform/v1/tool.proto;l=319
+ * See google/cloud/aiplatform/v1/tool.proto;l=350
* @return Whether the vectorDistanceThreshold field is set.
*/
@java.lang.Deprecated
@@ -174,7 +174,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc
*
*
* @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated.
- * See google/cloud/aiplatform/v1/tool.proto;l=319
+ * See google/cloud/aiplatform/v1/tool.proto;l=350
* @return The vectorDistanceThreshold.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto
index 27070f8acb4a..c2e5d022df0a 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto
@@ -24,7 +24,6 @@ option java_package = "com.google.cloud.aiplatform.v1";
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
option ruby_package = "Google::Cloud::AIPlatform::V1";
-// LINT: LEGACY_NAMES
// Represents a hardware accelerator type.
enum AcceleratorType {
// Unspecified accelerator type, which means no accelerator.
@@ -70,6 +69,9 @@ enum AcceleratorType {
// Nvidia GB200 GPU.
NVIDIA_GB200 = 17;
+ // Nvidia RTX Pro 6000 GPU.
+ NVIDIA_RTX_PRO_6000 = 18;
+
// TPU v2.
TPU_V2 = 6;
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 dfc2a8c2af1c..0856df030a0e 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
@@ -667,6 +667,22 @@ message GroundingChunk {
// Chunk from Google Maps.
message Maps {
+ message PlaceAnswerSources {
+ // Encapsulates a review snippet.
+ message ReviewSnippet {
+ // Id of the review referencing the place.
+ string review_id = 1;
+
+ // A link to show the review on Google Maps.
+ string google_maps_uri = 2;
+
+ // Title of the review.
+ string title = 3;
+ }
+
+ // Snippets of reviews that are used to generate the answer.
+ repeated ReviewSnippet review_snippets = 1;
+ }
// URI reference of the chunk.
optional string uri = 1;
@@ -679,6 +695,11 @@ message GroundingChunk {
// This Place's resource name, in `places/{place_id}` format. Can be used
// to look up the Place.
optional string place_id = 4;
+
+ // Sources used to generate the place answer.
+ // This includes review snippets and photos that were used to generate the
+ // answer, as well as uris to flag content.
+ PlaceAnswerSources place_answer_sources = 5;
}
// Chunk type.
@@ -741,6 +762,23 @@ message GroundingMetadata {
(google.api.field_behavior) = OPTIONAL,
(google.api.field_behavior) = OUTPUT_ONLY
];
+
+ // Source content flagging uri for a place or review. This is currently
+ // populated only for Google Maps grounding.
+ message SourceFlaggingUri {
+ // Id of the place or review.
+ string source_id = 1;
+
+ // A link where users can flag a problem with the source (place or review).
+ // (-- The link is generated by Google and it does not contain
+ // information from the user query. It may contain information of the
+ // content it is flagging, which can be used to identify places. --)
+ string flag_content_uri = 2;
+ }
+
+ // List of source flagging uris. This is currently populated only for Google
+ // Maps grounding.
+ repeated SourceFlaggingUri source_flagging_uris = 9;
}
// Google search entry point.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto
index 8601d28391d9..e26573905beb 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto
@@ -138,6 +138,15 @@ message IndexEndpoint {
// A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes.
message DeployedIndex {
+ // Tiers encapsulate serving time attributes like latency and throughput.
+ enum DeploymentTier {
+ // Default deployment tier.
+ DEPLOYMENT_TIER_UNSPECIFIED = 0;
+
+ // Optimized for costs.
+ STORAGE = 2;
+ }
+
// Required. The user specified ID of the DeployedIndex.
// The ID can be up to 128 characters long and must start with a letter and
// only contain letters, numbers, and underscores.
@@ -274,6 +283,10 @@ message DeployedIndex {
// Note: we only support up to 5 deployment groups(not including 'default').
string deployment_group = 11 [(google.api.field_behavior) = OPTIONAL];
+ // Optional. The deployment tier that the index is deployed to.
+ // DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default tier.
+ DeploymentTier deployment_tier = 18 [(google.api.field_behavior) = OPTIONAL];
+
// Optional. If set for PSC deployed index, PSC connection will be
// automatically created after deployment is done and the endpoint information
// is populated in private_endpoints.psc_automated_endpoints.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto
index a019fe2df018..9e000382be07 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto
@@ -241,6 +241,10 @@ message PredictRequest {
// [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata]
// [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri].
google.protobuf.Value parameters = 3;
+
+ // Optional. The user labels for Imagen billing usage only. Only Imagen
+ // supports labels. For other use cases, it will be ignored.
+ map- * LINT: LEGACY_NAMES * Represents a hardware accelerator type. ** @@ -172,6 +171,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { *
NVIDIA_GB200 = 17;
*/
NVIDIA_GB200(17),
+ /**
+ *
+ *
+ * + * Nvidia RTX Pro 6000 GPU. + *+ * + *
NVIDIA_RTX_PRO_6000 = 18;
+ */
+ NVIDIA_RTX_PRO_6000(18),
/**
*
*
@@ -370,6 +379,17 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
*/
public static final int NVIDIA_GB200_VALUE = 17;
+ /**
+ *
+ *
+ * + * Nvidia RTX Pro 6000 GPU. + *+ * + *
NVIDIA_RTX_PRO_6000 = 18;
+ */
+ public static final int NVIDIA_RTX_PRO_6000_VALUE = 18;
+
/**
*
*
@@ -466,6 +486,8 @@ public static AcceleratorType forNumber(int value) {
return NVIDIA_B200;
case 17:
return NVIDIA_GB200;
+ case 18:
+ return NVIDIA_RTX_PRO_6000;
case 6:
return TPU_V2;
case 7:
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java
index 20e2fde54a36..25b265d76198 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java
@@ -38,7 +38,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n6google/cloud/aiplatform/v1beta1/accele"
+ "rator_type.proto\022\037google.cloud.aiplatfor"
- + "m.v1beta1*\210\003\n\017AcceleratorType\022 \n\034ACCELER"
+ + "m.v1beta1*\241\003\n\017AcceleratorType\022 \n\034ACCELER"
+ "ATOR_TYPE_UNSPECIFIED\020\000\022\030\n\020NVIDIA_TESLA_"
+ "K80\020\001\032\002\010\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVID"
+ "IA_TESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017"
@@ -46,15 +46,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022\024\n\020NVIDIA_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n"
+ "\020NVIDIA_H100_80GB\020\r\022\031\n\025NVIDIA_H100_MEGA_"
+ "80GB\020\016\022\025\n\021NVIDIA_H200_141GB\020\017\022\017\n\013NVIDIA_"
- + "B200\020\020\022\020\n\014NVIDIA_GB200\020\021\022\n\n\006TPU_V2\020\006\022\n\n\006"
- + "TPU_V3\020\007\022\016\n\nTPU_V4_POD\020\n\022\022\n\016TPU_V5_LITEP"
- + "OD\020\014B\353\001\n#com.google.cloud.aiplatform.v1b"
- + "eta1B\024AcceleratorTypeProtoP\001ZCcloud.goog"
- + "le.com/go/aiplatform/apiv1beta1/aiplatfo"
- + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf"
- + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1"
- + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet"
- + "a1b\006proto3"
+ + "B200\020\020\022\020\n\014NVIDIA_GB200\020\021\022\027\n\023NVIDIA_RTX_P"
+ + "RO_6000\020\022\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU"
+ + "_V4_POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\353\001\n#com.go"
+ + "ogle.cloud.aiplatform.v1beta1B\024Accelerat"
+ + "orTypeProtoP\001ZCcloud.google.com/go/aipla"
+ + "tform/apiv1beta1/aiplatformpb;aiplatform"
+ + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G"
+ + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:"
+ + ":Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
index 46bc32fc9e3f..8fc4c1867d3f 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java
@@ -144,6 +144,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_PlaceAnswerSources_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_PlaceAnswerSources_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -152,6 +160,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_SourceFlaggingUri_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_SourceFlaggingUri_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -432,7 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "part_index\030\001 \001(\005B\003\340A\003\022\030\n"
+ "\013start_index\030\002 \001(\005B\003\340A\003\022\026\n"
+ "\tend_index\030\003 \001(\005B\003\340A\003\022\021\n"
- + "\004text\030\004 \001(\tB\003\340A\003\"\265\005\n"
+ + "\004text\030\004 \001(\tB\003\340A\003\"\360\007\n"
+ "\016GroundingChunk\022B\n"
+ "\003web\030\001"
+ " \001(\01323.google.cloud.aiplatform.v1beta1.GroundingChunk.WebH\000\022]\n"
@@ -456,12 +468,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004_uriB\010\n"
+ "\006_titleB\007\n"
+ "\005_textB\020\n"
- + "\016_document_name\032~\n"
+ + "\016_document_name\032\270\003\n"
+ "\004Maps\022\020\n"
+ "\003uri\030\001 \001(\tH\000\210\001\001\022\022\n"
+ "\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\001B\006\n"
+ + "\010place_id\030\004 \001(\tH\003\210\001\001\022e\n"
+ + "\024place_answer_sources\030\005 \001(\0132G.google.cloud.aiplatform.v1be"
+ + "ta1.GroundingChunk.Maps.PlaceAnswerSources\032\320\001\n"
+ + "\022PlaceAnswerSources\022n\n"
+ + "\017review_snippets\030\001 \003(\0132U.google.cloud.aiplatform.v1b"
+ + "eta1.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"
+ + "\005title\030\003 \001(\tB\006\n"
+ "\004_uriB\010\n"
+ "\006_titleB\007\n"
+ "\005_textB\013\n"
@@ -472,20 +494,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\0132(.google.cloud.aiplatform.v1beta1.SegmentH\000\210\001\001\022\037\n"
+ "\027grounding_chunk_indices\030\002 \003(\005\022\031\n"
+ "\021confidence_scores\030\003 \003(\002B\n\n"
- + "\010_segment\"\263\004\n"
+ + "\010_segment\"\331\005\n"
+ "\021GroundingMetadata\022\037\n"
+ "\022web_search_queries\030\001 \003(\tB\003\340A\001\022W\n"
- + "\022search_entry_point\030\004 \001(\01321.googl"
- + "e.cloud.aiplatform.v1beta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022\036\n"
+ + "\022search_entry_point\030\004 \001(\01321.google.clo"
+ + "ud.aiplatform.v1beta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022\036\n"
+ "\021retrieval_queries\030\003 \003(\tB\003\340A\001\022I\n"
- + "\020grounding_chunks\030\005 \003(\0132/.google"
- + ".cloud.aiplatform.v1beta1.GroundingChunk\022R\n"
- + "\022grounding_supports\030\006 \003(\01321.google.cl"
- + "oud.aiplatform.v1beta1.GroundingSupportB\003\340A\001\022[\n"
- + "\022retrieval_metadata\030\007 \001(\01322.googl"
- + "e.cloud.aiplatform.v1beta1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n"
+ + "\020grounding_chunks\030\005"
+ + " \003(\0132/.google.cloud.aiplatform.v1beta1.GroundingChunk\022R\n"
+ + "\022grounding_supports\030\006 \003(\01321.google.cloud.a"
+ + "iplatform.v1beta1.GroundingSupportB\003\340A\001\022[\n"
+ + "\022retrieval_metadata\030\007 \001(\01322.google.clo"
+ + "ud.aiplatform.v1beta1.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\001B\025\n"
+ + "\tB\006\340A\001\340A\003H\002\210\001\001\022b\n"
+ + "\024source_flagging_uris\030\t \003(\0132D.google.cloud.aiplatf"
+ + "orm.v1beta1.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"
+ "\023_search_entry_pointB\025\n"
+ "\023_retrieval_metadataB#\n"
+ "!_google_maps_widget_context_token\"H\n"
@@ -516,13 +543,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\005VIDEO\020\003\022\t\n"
+ "\005AUDIO\020\004\022\014\n"
+ "\010DOCUMENT\020\005B\310\002\n"
- + "#com.google.cloud.aiplatform.v1beta1B\014ContentProtoP\001ZCcloud.go"
- + "ogle.com/go/aiplatform/apiv1beta1/aiplat"
- + "formpb;aiplatformpb\252\002\037Google.Cloud.AIPla"
- + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\"
- + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352Ab\n"
- + "\"modelarmor.googleapis.com/Template\022+ * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlockingConfidence() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ @java.lang.Override
+ public int getBlockingConfidenceValue() {
+ return blockingConfidence_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold getBlockingConfidence() {
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold result =
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold.forNumber(blockingConfidence_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -154,6 +220,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < excludeDomains_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, excludeDomains_.getRaw(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(4, blockingConfidence_);
+ }
getUnknownFields().writeTo(output);
}
@@ -171,6 +240,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getExcludeDomainsList().size();
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockingConfidence_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -188,6 +260,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.aiplatform.v1beta1.EnterpriseWebSearch) obj;
if (!getExcludeDomainsList().equals(other.getExcludeDomainsList())) return false;
+ if (hasBlockingConfidence() != other.hasBlockingConfidence()) return false;
+ if (hasBlockingConfidence()) {
+ if (blockingConfidence_ != other.blockingConfidence_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -203,6 +279,10 @@ public int hashCode() {
hash = (37 * hash) + EXCLUDE_DOMAINS_FIELD_NUMBER;
hash = (53 * hash) + getExcludeDomainsList().hashCode();
}
+ if (hasBlockingConfidence()) {
+ hash = (37 * hash) + BLOCKING_CONFIDENCE_FIELD_NUMBER;
+ hash = (53 * hash) + blockingConfidence_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -346,6 +426,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ blockingConfidence_ = 0;
return this;
}
@@ -386,6 +467,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EnterpriseWebSear
excludeDomains_.makeImmutable();
result.excludeDomains_ = excludeDomains_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.blockingConfidence_ = blockingConfidence_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -444,6 +531,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EnterpriseWebSearch
}
onChanged();
}
+ if (other.hasBlockingConfidence()) {
+ setBlockingConfidence(other.getBlockingConfidence());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -477,6 +567,12 @@ public Builder mergeFrom(
excludeDomains_.add(s);
break;
} // case 10
+ case 32:
+ {
+ blockingConfidence_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 32
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -688,6 +784,139 @@ public Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private int blockingConfidence_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlockingConfidence() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ @java.lang.Override
+ public int getBlockingConfidenceValue() {
+ return blockingConfidence_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for blockingConfidence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlockingConfidenceValue(int value) {
+ blockingConfidence_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold getBlockingConfidence() {
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold result =
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold.forNumber(
+ blockingConfidence_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The blockingConfidence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlockingConfidence(
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ blockingConfidence_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBlockingConfidence() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ blockingConfidence_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnterpriseWebSearchOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnterpriseWebSearchOrBuilder.java
index 1e80dbc7d758..737023c6f412 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnterpriseWebSearchOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EnterpriseWebSearchOrBuilder.java
@@ -81,4 +81,52 @@ public interface EnterpriseWebSearchOrBuilder
* @return The bytes of the excludeDomains at the given index.
*/
com.google.protobuf.ByteString getExcludeDomainsBytes(int index);
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ boolean hasBlockingConfidence();
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ int getBlockingConfidenceValue();
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold getBlockingConfidence();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GoogleMaps.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GoogleMaps.java
index 010e272120c8..19ca398b3058 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GoogleMaps.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GoogleMaps.java
@@ -62,6 +62,25 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1beta1.GoogleMaps.Builder.class);
}
+ public static final int ENABLE_WIDGET_FIELD_NUMBER = 1;
+ private boolean enableWidget_ = false;
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableWidget.
+ */
+ @java.lang.Override
+ public boolean getEnableWidget() {
+ return enableWidget_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -76,6 +95,9 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (enableWidget_ != false) {
+ output.writeBool(1, enableWidget_);
+ }
getUnknownFields().writeTo(output);
}
@@ -85,6 +107,9 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
+ if (enableWidget_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableWidget_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -101,6 +126,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloud.aiplatform.v1beta1.GoogleMaps other =
(com.google.cloud.aiplatform.v1beta1.GoogleMaps) obj;
+ if (getEnableWidget() != other.getEnableWidget()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -112,6 +138,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENABLE_WIDGET_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWidget());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -251,6 +279,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
+ enableWidget_ = false;
return this;
}
@@ -278,10 +308,20 @@ public com.google.cloud.aiplatform.v1beta1.GoogleMaps build() {
public com.google.cloud.aiplatform.v1beta1.GoogleMaps buildPartial() {
com.google.cloud.aiplatform.v1beta1.GoogleMaps result =
new com.google.cloud.aiplatform.v1beta1.GoogleMaps(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GoogleMaps result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.enableWidget_ = enableWidget_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -327,6 +367,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GoogleMaps other) {
if (other == com.google.cloud.aiplatform.v1beta1.GoogleMaps.getDefaultInstance()) return this;
+ if (other.getEnableWidget() != false) {
+ setEnableWidget(other.getEnableWidget());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -353,6 +396,12 @@ public Builder mergeFrom(
case 0:
done = true;
break;
+ case 8:
+ {
+ enableWidget_ = input.readBool();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -370,6 +419,64 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
+ private boolean enableWidget_;
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableWidget.
+ */
+ @java.lang.Override
+ public boolean getEnableWidget() {
+ return enableWidget_;
+ }
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The enableWidget to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableWidget(boolean value) {
+
+ enableWidget_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableWidget() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enableWidget_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GoogleMapsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GoogleMapsOrBuilder.java
index 00d6e34af77b..9f35d84c1700 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GoogleMapsOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GoogleMapsOrBuilder.java
@@ -22,4 +22,18 @@
public interface GoogleMapsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GoogleMaps)
- com.google.protobuf.MessageOrBuilder {}
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * If true, include the widget context token in the response. + *+ * + *
bool enable_widget = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableWidget.
+ */
+ boolean getEnableWidget();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java
index 970a41bb3ae0..af556d40f77a 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java
@@ -3171,54 +3171,2427 @@ public interface MapsOrBuilder
* @return The bytes for placeId.
*/
com.google.protobuf.ByteString getPlaceIdBytes();
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return Whether the placeAnswerSources field is set.
+ */
+ boolean hasPlaceAnswerSources();
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return The placeAnswerSources.
+ */
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ getPlaceAnswerSources();
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder
+ getPlaceAnswerSourcesOrBuilder();
}
- /**
- *
- *
- * - * Chunk from Google Maps. - *- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingChunk.Maps} - */ - public static final class Maps extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps) - MapsOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
+ * Chunk from Google Maps. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingChunk.Maps} + */ + public static final class Maps extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps) + MapsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Maps.newBuilder() to construct. + private Maps(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Maps() { + uri_ = ""; + title_ = ""; + text_ = ""; + placeId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Maps(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.class, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.Builder.class); + } + + public interface PlaceAnswerSourcesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ java.util.List<
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet>
+ getReviewSnippetsList();
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ getReviewSnippets(int index);
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ int getReviewSnippetsCount();
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>
+ getReviewSnippetsOrBuilderList();
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder
+ getReviewSnippetsOrBuilder(int index);
+ }
+
+ /**
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources}
+ */
+ public static final class PlaceAnswerSources extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources)
+ PlaceAnswerSourcesOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use PlaceAnswerSources.newBuilder() to construct.
+ private PlaceAnswerSources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private PlaceAnswerSources() {
+ reviewSnippets_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new PlaceAnswerSources();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_PlaceAnswerSources_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_PlaceAnswerSources_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.class,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.Builder
+ .class);
+ }
+
+ public interface ReviewSnippetOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The reviewId.
+ */
+ java.lang.String getReviewId();
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The bytes for reviewId.
+ */
+ com.google.protobuf.ByteString getReviewIdBytes();
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The googleMapsUri.
+ */
+ java.lang.String getGoogleMapsUri();
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The bytes for googleMapsUri.
+ */
+ com.google.protobuf.ByteString getGoogleMapsUriBytes();
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The title.
+ */
+ java.lang.String getTitle();
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The bytes for title.
+ */
+ com.google.protobuf.ByteString getTitleBytes();
+ }
+
+ /**
+ *
+ *
+ * + * Encapsulates a review snippet. + *+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet} + */ + public static final class ReviewSnippet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet) + ReviewSnippetOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReviewSnippet.newBuilder() to construct. + private ReviewSnippet(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ReviewSnippet() { + reviewId_ = ""; + googleMapsUri_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReviewSnippet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources + .ReviewSnippet.class, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources + .ReviewSnippet.Builder.class); + } + + public static final int REVIEW_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object reviewId_ = ""; + + /** + * + * + *
+ * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The reviewId.
+ */
+ @java.lang.Override
+ public java.lang.String getReviewId() {
+ java.lang.Object ref = reviewId_;
+ 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();
+ reviewId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The bytes for reviewId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getReviewIdBytes() {
+ java.lang.Object ref = reviewId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ reviewId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GOOGLE_MAPS_URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object googleMapsUri_ = "";
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The googleMapsUri.
+ */
+ @java.lang.Override
+ public java.lang.String getGoogleMapsUri() {
+ java.lang.Object ref = googleMapsUri_;
+ 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();
+ googleMapsUri_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The bytes for googleMapsUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGoogleMapsUriBytes() {
+ java.lang.Object ref = googleMapsUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ googleMapsUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TITLE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object title_ = "";
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The title.
+ */
+ @java.lang.Override
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ 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();
+ title_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The bytes for title.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = 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.GeneratedMessageV3.isStringEmpty(reviewId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reviewId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, googleMapsUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reviewId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reviewId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, googleMapsUri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_);
+ }
+ 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.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ other =
+ (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet)
+ obj;
+
+ if (!getReviewId().equals(other.getReviewId())) return false;
+ if (!getGoogleMapsUri().equals(other.getGoogleMapsUri())) return false;
+ if (!getTitle().equals(other.getTitle())) 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) + REVIEW_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getReviewId().hashCode();
+ hash = (37 * hash) + GOOGLE_MAPS_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogleMapsUri().hashCode();
+ hash = (37 * hash) + TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTitle().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ 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.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ 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.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Encapsulates a review snippet. + *+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The reviewId.
+ */
+ public java.lang.String getReviewId() {
+ java.lang.Object ref = reviewId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ reviewId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return The bytes for reviewId.
+ */
+ public com.google.protobuf.ByteString getReviewIdBytes() {
+ java.lang.Object ref = reviewId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ reviewId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @param value The reviewId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReviewId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ reviewId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReviewId() {
+ reviewId_ = getDefaultInstance().getReviewId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Id of the review referencing the place. + *+ * + *
string review_id = 1;
+ *
+ * @param value The bytes for reviewId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReviewIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ reviewId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object googleMapsUri_ = "";
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The googleMapsUri.
+ */
+ public java.lang.String getGoogleMapsUri() {
+ java.lang.Object ref = googleMapsUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ googleMapsUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return The bytes for googleMapsUri.
+ */
+ public com.google.protobuf.ByteString getGoogleMapsUriBytes() {
+ java.lang.Object ref = googleMapsUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ googleMapsUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @param value The googleMapsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGoogleMapsUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ googleMapsUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGoogleMapsUri() {
+ googleMapsUri_ = getDefaultInstance().getGoogleMapsUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A link to show the review on Google Maps. + *+ * + *
string google_maps_uri = 2;
+ *
+ * @param value The bytes for googleMapsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGoogleMapsUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ googleMapsUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object title_ = "";
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The title.
+ */
+ public java.lang.String getTitle() {
+ java.lang.Object ref = title_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ title_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return The bytes for title.
+ */
+ public com.google.protobuf.ByteString getTitleBytes() {
+ java.lang.Object ref = title_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ title_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @param value The title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ title_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTitle() {
+ title_ = getDefaultInstance().getTitle();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Title of the review. + *+ * + *
string title = 3;
+ *
+ * @param value The bytes for title to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ title_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet)
+ private static final com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps
+ .PlaceAnswerSources.ReviewSnippet
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet>
+ getReviewSnippetsList() {
+ return reviewSnippets_;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>
+ getReviewSnippetsOrBuilderList() {
+ return reviewSnippets_;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public int getReviewSnippetsCount() {
+ return reviewSnippets_.size();
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ getReviewSnippets(int index) {
+ return reviewSnippets_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder
+ getReviewSnippetsOrBuilder(int index) {
+ return reviewSnippets_.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 < reviewSnippets_.size(); i++) {
+ output.writeMessage(1, reviewSnippets_.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 < reviewSnippets_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, reviewSnippets_.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.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources other =
+ (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources) obj;
+
+ if (!getReviewSnippetsList().equals(other.getReviewSnippetsList())) 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 (getReviewSnippetsCount() > 0) {
+ hash = (37 * hash) + REVIEW_SNIPPETS_FIELD_NUMBER;
+ hash = (53 * hash) + getReviewSnippetsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ 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.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ 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.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.v1beta1.GroundingChunk.Maps.PlaceAnswerSources 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder+ * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet>
+ getReviewSnippetsList() {
+ if (reviewSnippetsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(reviewSnippets_);
+ } else {
+ return reviewSnippetsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public int getReviewSnippetsCount() {
+ if (reviewSnippetsBuilder_ == null) {
+ return reviewSnippets_.size();
+ } else {
+ return reviewSnippetsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet
+ getReviewSnippets(int index) {
+ if (reviewSnippetsBuilder_ == null) {
+ return reviewSnippets_.get(index);
+ } else {
+ return reviewSnippetsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder setReviewSnippets(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ value) {
+ if (reviewSnippetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.set(index, value);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder setReviewSnippets(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder
+ builderForValue) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addReviewSnippets(
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ value) {
+ if (reviewSnippetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.add(value);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addReviewSnippets(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ value) {
+ if (reviewSnippetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.add(index, value);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addReviewSnippets(
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder
+ builderForValue) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.add(builderForValue.build());
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addReviewSnippets(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
+ .Builder
+ builderForValue) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder addAllReviewSnippets(
+ java.lang.Iterable<
+ ? extends
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet>
+ values) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reviewSnippets_);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder clearReviewSnippets() {
+ if (reviewSnippetsBuilder_ == null) {
+ reviewSnippets_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public Builder removeReviewSnippets(int index) {
+ if (reviewSnippetsBuilder_ == null) {
+ ensureReviewSnippetsIsMutable();
+ reviewSnippets_.remove(index);
+ onChanged();
+ } else {
+ reviewSnippetsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.Builder
+ getReviewSnippetsBuilder(int index) {
+ return getReviewSnippetsFieldBuilder().getBuilder(index);
+ }
- // Use Maps.newBuilder() to construct.
- private Maps(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder
+ getReviewSnippetsOrBuilder(int index) {
+ if (reviewSnippetsBuilder_ == null) {
+ return reviewSnippets_.get(index);
+ } else {
+ return reviewSnippetsBuilder_.getMessageOrBuilder(index);
+ }
+ }
- private Maps() {
- uri_ = "";
- title_ = "";
- text_ = "";
- placeId_ = "";
- }
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>
+ getReviewSnippetsOrBuilderList() {
+ if (reviewSnippetsBuilder_ != null) {
+ return reviewSnippetsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(reviewSnippets_);
+ }
+ }
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new Maps();
- }
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.Builder
+ addReviewSnippetsBuilder() {
+ return getReviewSnippetsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.getDefaultInstance());
+ }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.aiplatform.v1beta1.ContentProto
- .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_descriptor;
- }
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.Builder
+ addReviewSnippetsBuilder(int index) {
+ return getReviewSnippetsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.getDefaultInstance());
+ }
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.google.cloud.aiplatform.v1beta1.ContentProto
- .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Maps_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.class,
- com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.Builder.class);
+ /**
+ *
+ *
+ * + * Snippets of reviews that are used to generate the answer. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.Builder>
+ getReviewSnippetsBuilderList() {
+ return getReviewSnippetsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.Builder,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>
+ getReviewSnippetsFieldBuilder() {
+ if (reviewSnippetsBuilder_ == null) {
+ reviewSnippetsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippet.Builder,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .ReviewSnippetOrBuilder>(
+ reviewSnippets_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ reviewSnippets_ = null;
+ }
+ return reviewSnippetsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources)
+ private static final com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps
+ .PlaceAnswerSources
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return Whether the placeAnswerSources field is set.
+ */
+ @java.lang.Override
+ public boolean hasPlaceAnswerSources() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return The placeAnswerSources.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ getPlaceAnswerSources() {
+ return placeAnswerSources_ == null
+ ? com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()
+ : placeAnswerSources_;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder
+ getPlaceAnswerSourcesOrBuilder() {
+ return placeAnswerSources_ == null
+ ? com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()
+ : placeAnswerSources_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -3527,6 +5970,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, placeId_);
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeMessage(5, getPlaceAnswerSources());
+ }
getUnknownFields().writeTo(output);
}
@@ -3548,6 +5994,10 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, placeId_);
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPlaceAnswerSources());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -3580,6 +6030,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasPlaceId()) {
if (!getPlaceId().equals(other.getPlaceId())) return false;
}
+ if (hasPlaceAnswerSources() != other.hasPlaceAnswerSources()) return false;
+ if (hasPlaceAnswerSources()) {
+ if (!getPlaceAnswerSources().equals(other.getPlaceAnswerSources())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3607,6 +6061,10 @@ public int hashCode() {
hash = (37 * hash) + PLACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getPlaceId().hashCode();
}
+ if (hasPlaceAnswerSources()) {
+ hash = (37 * hash) + PLACE_ANSWER_SOURCES_FIELD_NUMBER;
+ hash = (53 * hash) + getPlaceAnswerSources().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -3740,10 +6198,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getPlaceAnswerSourcesFieldBuilder();
+ }
}
@java.lang.Override
@@ -3754,6 +6221,11 @@ public Builder clear() {
title_ = "";
text_ = "";
placeId_ = "";
+ placeAnswerSources_ = null;
+ if (placeAnswerSourcesBuilder_ != null) {
+ placeAnswerSourcesBuilder_.dispose();
+ placeAnswerSourcesBuilder_ = null;
+ }
return this;
}
@@ -3807,6 +6279,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GroundingChunk.Ma
result.placeId_ = placeId_;
to_bitField0_ |= 0x00000008;
}
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.placeAnswerSources_ =
+ placeAnswerSourcesBuilder_ == null
+ ? placeAnswerSources_
+ : placeAnswerSourcesBuilder_.build();
+ to_bitField0_ |= 0x00000010;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -3878,6 +6357,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps
bitField0_ |= 0x00000008;
onChanged();
}
+ if (other.hasPlaceAnswerSources()) {
+ mergePlaceAnswerSources(other.getPlaceAnswerSources());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -3928,6 +6410,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000008;
break;
} // case 34
+ case 42:
+ {
+ input.readMessage(
+ getPlaceAnswerSourcesFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4457,6 +6946,250 @@ public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ placeAnswerSources_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.Builder,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder>
+ placeAnswerSourcesBuilder_;
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return Whether the placeAnswerSources field is set.
+ */
+ public boolean hasPlaceAnswerSources() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ *
+ * @return The placeAnswerSources.
+ */
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ getPlaceAnswerSources() {
+ if (placeAnswerSourcesBuilder_ == null) {
+ return placeAnswerSources_ == null
+ ? com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()
+ : placeAnswerSources_;
+ } else {
+ return placeAnswerSourcesBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public Builder setPlaceAnswerSources(
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources value) {
+ if (placeAnswerSourcesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ placeAnswerSources_ = value;
+ } else {
+ placeAnswerSourcesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public Builder setPlaceAnswerSources(
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.Builder
+ builderForValue) {
+ if (placeAnswerSourcesBuilder_ == null) {
+ placeAnswerSources_ = builderForValue.build();
+ } else {
+ placeAnswerSourcesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public Builder mergePlaceAnswerSources(
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources value) {
+ if (placeAnswerSourcesBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && placeAnswerSources_ != null
+ && placeAnswerSources_
+ != com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()) {
+ getPlaceAnswerSourcesBuilder().mergeFrom(value);
+ } else {
+ placeAnswerSources_ = value;
+ }
+ } else {
+ placeAnswerSourcesBuilder_.mergeFrom(value);
+ }
+ if (placeAnswerSources_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public Builder clearPlaceAnswerSources() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ placeAnswerSources_ = null;
+ if (placeAnswerSourcesBuilder_ != null) {
+ placeAnswerSourcesBuilder_.dispose();
+ placeAnswerSourcesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.Builder
+ getPlaceAnswerSourcesBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getPlaceAnswerSourcesFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder
+ getPlaceAnswerSourcesOrBuilder() {
+ if (placeAnswerSourcesBuilder_ != null) {
+ return placeAnswerSourcesBuilder_.getMessageOrBuilder();
+ } else {
+ return placeAnswerSources_ == null
+ ? com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .getDefaultInstance()
+ : placeAnswerSources_;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Sources used to generate the place answer. + * This includes review snippets and photos that were used to generate the + * answer, as well as uris to flag content. + *+ * + *
+ * .google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.Builder,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder>
+ getPlaceAnswerSourcesFieldBuilder() {
+ if (placeAnswerSourcesBuilder_ == null) {
+ placeAnswerSourcesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps
+ .PlaceAnswerSourcesOrBuilder>(
+ getPlaceAnswerSources(), getParentForChildren(), isClean());
+ placeAnswerSources_ = null;
+ }
+ return placeAnswerSourcesBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadata.java
index cd82f43f2c67..8b88436b6841 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadata.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadata.java
@@ -45,6 +45,7 @@ private GroundingMetadata() {
groundingChunks_ = java.util.Collections.emptyList();
groundingSupports_ = java.util.Collections.emptyList();
googleMapsWidgetContextToken_ = "";
+ sourceFlaggingUris_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -68,1263 +69,2750 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1beta1.GroundingMetadata.Builder.class);
}
- private int bitField0_;
- public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 1;
+ public interface SourceFlaggingUriOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri)
+ com.google.protobuf.MessageOrBuilder {
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList webSearchQueries_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The sourceId.
+ */
+ java.lang.String getSourceId();
- /**
- *
- *
- * - * Optional. Web search queries for the following-up web search. - *- * - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return A list containing the webSearchQueries.
- */
- public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
- return webSearchQueries_;
- }
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The bytes for sourceId.
+ */
+ com.google.protobuf.ByteString getSourceIdBytes();
- /**
- *
- *
- * - * Optional. Web search queries for the following-up web search. - *- * - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The count of webSearchQueries.
- */
- public int getWebSearchQueriesCount() {
- return webSearchQueries_.size();
- }
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The flagContentUri.
+ */
+ java.lang.String getFlagContentUri();
- /**
- *
- *
- * - * Optional. Web search queries for the following-up web search. - *- * - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param index The index of the element to return.
- * @return The webSearchQueries at the given index.
- */
- public java.lang.String getWebSearchQueries(int index) {
- return webSearchQueries_.get(index);
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The bytes for flagContentUri.
+ */
+ com.google.protobuf.ByteString getFlagContentUriBytes();
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * Source content flagging uri for a place or review. This is currently + * populated only for Google Maps grounding. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param index The index of the value to return.
- * @return The bytes of the webSearchQueries at the given index.
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri}
*/
- public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
- return webSearchQueries_.getByteString(index);
- }
-
- public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4;
- private com.google.cloud.aiplatform.v1beta1.SearchEntryPoint searchEntryPoint_;
+ public static final class SourceFlaggingUri extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri)
+ SourceFlaggingUriOrBuilder {
+ private static final long serialVersionUID = 0L;
- /**
- *
- *
- * - * Optional. Google search entry for the following-up web searches. - *- * - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return Whether the searchEntryPoint field is set.
- */
- @java.lang.Override
- public boolean hasSearchEntryPoint() {
- return ((bitField0_ & 0x00000001) != 0);
- }
+ // Use SourceFlaggingUri.newBuilder() to construct.
+ private SourceFlaggingUri(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
- /**
- *
- *
- * - * Optional. Google search entry for the following-up web searches. - *- * - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The searchEntryPoint.
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.SearchEntryPoint getSearchEntryPoint() {
- return searchEntryPoint_ == null
- ? com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()
- : searchEntryPoint_;
- }
+ private SourceFlaggingUri() {
+ sourceId_ = "";
+ flagContentUri_ = "";
+ }
- /**
- *
- *
- * - * Optional. Google search entry for the following-up web searches. - *- * - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder
- getSearchEntryPointOrBuilder() {
- return searchEntryPoint_ == null
- ? com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()
- : searchEntryPoint_;
- }
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new SourceFlaggingUri();
+ }
- public static final int RETRIEVAL_QUERIES_FIELD_NUMBER = 3;
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_SourceFlaggingUri_descriptor;
+ }
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList retrievalQueries_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_SourceFlaggingUri_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.class,
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder
+ .class);
+ }
- /**
- *
- *
- * - * Optional. Queries executed by the retrieval tools. - *- * - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return A list containing the retrievalQueries.
- */
- public com.google.protobuf.ProtocolStringList getRetrievalQueriesList() {
- return retrievalQueries_;
- }
+ public static final int SOURCE_ID_FIELD_NUMBER = 1;
- /**
- *
- *
- * - * Optional. Queries executed by the retrieval tools. - *- * - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The count of retrievalQueries.
- */
- public int getRetrievalQueriesCount() {
- return retrievalQueries_.size();
- }
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object sourceId_ = "";
- /**
- *
- *
- * - * Optional. Queries executed by the retrieval tools. - *- * - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param index The index of the element to return.
- * @return The retrievalQueries at the given index.
- */
- public java.lang.String getRetrievalQueries(int index) {
- return retrievalQueries_.get(index);
- }
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The sourceId.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceId() {
+ java.lang.Object ref = sourceId_;
+ 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();
+ sourceId_ = s;
+ return s;
+ }
+ }
- /**
- *
- *
- * - * Optional. Queries executed by the retrieval tools. - *- * - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param index The index of the value to return.
- * @return The bytes of the retrievalQueries at the given index.
- */
- public com.google.protobuf.ByteString getRetrievalQueriesBytes(int index) {
- return retrievalQueries_.getByteString(index);
- }
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The bytes for sourceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceIdBytes() {
+ java.lang.Object ref = sourceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
- public static final int GROUNDING_CHUNKS_FIELD_NUMBER = 5;
+ public static final int FLAG_CONTENT_URI_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private java.util.List- * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public java.util.List+ * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The flagContentUri.
+ */
+ @java.lang.Override
+ public java.lang.String getFlagContentUri() {
+ java.lang.Object ref = flagContentUri_;
+ 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();
+ flagContentUri_ = s;
+ return s;
+ }
+ }
- /**
- *
- *
- * - * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public java.util.List extends com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder>
- getGroundingChunksOrBuilderList() {
- return groundingChunks_;
- }
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The bytes for flagContentUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFlagContentUriBytes() {
+ java.lang.Object ref = flagContentUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ flagContentUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
- /**
- *
- *
- * - * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public int getGroundingChunksCount() {
- return groundingChunks_.size();
- }
+ private byte memoizedIsInitialized = -1;
- /**
- *
- *
- * - * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.GroundingChunk getGroundingChunks(int index) {
- return groundingChunks_.get(index);
- }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
- /**
- *
- *
- * - * List of supporting references retrieved from specified grounding source. - *- * - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder getGroundingChunksOrBuilder(
- int index) {
- return groundingChunks_.get(index);
- }
+ memoizedIsInitialized = 1;
+ return true;
+ }
- public static final int GROUNDING_SUPPORTS_FIELD_NUMBER = 6;
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flagContentUri_);
+ }
+ getUnknownFields().writeTo(output);
+ }
- @SuppressWarnings("serial")
- private java.util.List- * Optional. List of grounding support. - *- * - *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- @java.lang.Override
- public java.util.List- * Optional. List of grounding support. - *- * - *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- @java.lang.Override
- public java.util.List extends com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder>
- getGroundingSupportsOrBuilderList() {
- return groundingSupports_;
- }
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri other =
+ (com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri) obj;
- /**
- *
- *
- * - * Optional. List of grounding support. - *- * - *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- @java.lang.Override
- public int getGroundingSupportsCount() {
- return groundingSupports_.size();
- }
+ if (!getSourceId().equals(other.getSourceId())) return false;
+ if (!getFlagContentUri().equals(other.getFlagContentUri())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
- /**
- *
- *
- * - * Optional. List of grounding support. - *- * - *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.GroundingSupport getGroundingSupports(int index) {
- return groundingSupports_.get(index);
- }
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceId().hashCode();
+ hash = (37 * hash) + FLAG_CONTENT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getFlagContentUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
- /**
- *
- *
- * - * Optional. List of grounding support. - *- * - *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
- *
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder
- getGroundingSupportsOrBuilder(int index) {
- return groundingSupports_.get(index);
- }
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- public static final int RETRIEVAL_METADATA_FIELD_NUMBER = 7;
- private com.google.cloud.aiplatform.v1beta1.RetrievalMetadata retrievalMetadata_;
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- /**
- *
- *
- * - * Optional. Output only. Retrieval metadata. - *- * - *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the retrievalMetadata field is set.
- */
- @java.lang.Override
- public boolean hasRetrievalMetadata() {
- return ((bitField0_ & 0x00000002) != 0);
- }
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- /**
- *
- *
- * - * Optional. Output only. Retrieval metadata. - *- * - *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return The retrievalMetadata.
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.RetrievalMetadata getRetrievalMetadata() {
- return retrievalMetadata_ == null
- ? com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.getDefaultInstance()
- : retrievalMetadata_;
- }
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- /**
- *
- *
- * - * Optional. Output only. Retrieval metadata. - *- * - *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
- *
- */
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.RetrievalMetadataOrBuilder
- getRetrievalMetadataOrBuilder() {
- return retrievalMetadata_ == null
- ? com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.getDefaultInstance()
- : retrievalMetadata_;
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.v1beta1.GroundingMetadata.SourceFlaggingUri 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Source content flagging uri for a place or review. This is currently + * populated only for Google Maps grounding. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The sourceId.
+ */
+ public java.lang.String getSourceId() {
+ java.lang.Object ref = sourceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return The bytes for sourceId.
+ */
+ public com.google.protobuf.ByteString getSourceIdBytes() {
+ java.lang.Object ref = sourceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @param value The sourceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceId() {
+ sourceId_ = getDefaultInstance().getSourceId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Id of the place or review. + *+ * + *
string source_id = 1;
+ *
+ * @param value The bytes for sourceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object flagContentUri_ = "";
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The flagContentUri.
+ */
+ public java.lang.String getFlagContentUri() {
+ java.lang.Object ref = flagContentUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ flagContentUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return The bytes for flagContentUri.
+ */
+ public com.google.protobuf.ByteString getFlagContentUriBytes() {
+ java.lang.Object ref = flagContentUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ flagContentUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @param value The flagContentUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFlagContentUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ flagContentUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFlagContentUri() {
+ flagContentUri_ = getDefaultInstance().getFlagContentUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * A link where users can flag a problem with the source (place or review). + * (-- The link is generated by Google and it does not contain + * information from the user query. It may contain information of the + * content it is flagging, which can be used to identify places. --) + *+ * + *
string flag_content_uri = 2;
+ *
+ * @param value The bytes for flagContentUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFlagContentUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ flagContentUri_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri)
+ private static final com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser- * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * Optional. Web search queries for the following-up web search. ** - *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return Whether the googleMapsWidgetContextToken field is set.
+ * @return A list containing the webSearchQueries.
*/
- @java.lang.Override
- public boolean hasGoogleMapsWidgetContextToken() {
- return ((bitField0_ & 0x00000004) != 0);
+ public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
+ return webSearchQueries_;
}
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * Optional. Web search queries for the following-up web search. ** - *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The googleMapsWidgetContextToken.
+ * @return The count of webSearchQueries.
*/
- @java.lang.Override
- public java.lang.String getGoogleMapsWidgetContextToken() {
- java.lang.Object ref = googleMapsWidgetContextToken_;
- 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();
- googleMapsWidgetContextToken_ = s;
- return s;
- }
+ public int getWebSearchQueriesCount() {
+ return webSearchQueries_.size();
}
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * Optional. Web search queries for the following-up web search. ** - *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The bytes for googleMapsWidgetContextToken.
+ * @param index The index of the element to return.
+ * @return The webSearchQueries at the given index.
*/
- @java.lang.Override
- public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
- java.lang.Object ref = googleMapsWidgetContextToken_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- googleMapsWidgetContextToken_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public java.lang.String getWebSearchQueries(int index) {
+ return webSearchQueries_.get(index);
}
- private byte memoizedIsInitialized = -1;
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the webSearchQueries at the given index.
+ */
+ public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
+ return webSearchQueries_.getByteString(index);
+ }
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4;
+ private com.google.cloud.aiplatform.v1beta1.SearchEntryPoint searchEntryPoint_;
- memoizedIsInitialized = 1;
- return true;
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the searchEntryPoint field is set.
+ */
+ @java.lang.Override
+ public boolean hasSearchEntryPoint() {
+ return ((bitField0_ & 0x00000001) != 0);
}
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The searchEntryPoint.
+ */
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- for (int i = 0; i < webSearchQueries_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webSearchQueries_.getRaw(i));
- }
- for (int i = 0; i < retrievalQueries_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, retrievalQueries_.getRaw(i));
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(4, getSearchEntryPoint());
- }
- for (int i = 0; i < groundingChunks_.size(); i++) {
- output.writeMessage(5, groundingChunks_.get(i));
- }
- for (int i = 0; i < groundingSupports_.size(); i++) {
- output.writeMessage(6, groundingSupports_.get(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeMessage(7, getRetrievalMetadata());
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 8, googleMapsWidgetContextToken_);
- }
- getUnknownFields().writeTo(output);
+ public com.google.cloud.aiplatform.v1beta1.SearchEntryPoint getSearchEntryPoint() {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
}
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
@java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- {
- int dataSize = 0;
- for (int i = 0; i < webSearchQueries_.size(); i++) {
- dataSize += computeStringSizeNoTag(webSearchQueries_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getWebSearchQueriesList().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < retrievalQueries_.size(); i++) {
- dataSize += computeStringSizeNoTag(retrievalQueries_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getRetrievalQueriesList().size();
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint());
- }
- for (int i = 0; i < groundingChunks_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, groundingChunks_.get(i));
- }
- for (int i = 0; i < groundingSupports_.size(); i++) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(6, groundingSupports_.get(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRetrievalMetadata());
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size +=
- com.google.protobuf.GeneratedMessageV3.computeStringSize(
- 8, googleMapsWidgetContextToken_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
+ public com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder
+ getSearchEntryPointOrBuilder() {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
}
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GroundingMetadata)) {
- return super.equals(obj);
- }
- com.google.cloud.aiplatform.v1beta1.GroundingMetadata other =
- (com.google.cloud.aiplatform.v1beta1.GroundingMetadata) obj;
+ public static final int RETRIEVAL_QUERIES_FIELD_NUMBER = 3;
- if (!getWebSearchQueriesList().equals(other.getWebSearchQueriesList())) return false;
- if (hasSearchEntryPoint() != other.hasSearchEntryPoint()) return false;
- if (hasSearchEntryPoint()) {
- if (!getSearchEntryPoint().equals(other.getSearchEntryPoint())) return false;
- }
- if (!getRetrievalQueriesList().equals(other.getRetrievalQueriesList())) return false;
- if (!getGroundingChunksList().equals(other.getGroundingChunksList())) return false;
- if (!getGroundingSupportsList().equals(other.getGroundingSupportsList())) return false;
- if (hasRetrievalMetadata() != other.hasRetrievalMetadata()) return false;
- if (hasRetrievalMetadata()) {
- if (!getRetrievalMetadata().equals(other.getRetrievalMetadata())) return false;
- }
- if (hasGoogleMapsWidgetContextToken() != other.hasGoogleMapsWidgetContextToken()) return false;
- if (hasGoogleMapsWidgetContextToken()) {
- if (!getGoogleMapsWidgetContextToken().equals(other.getGoogleMapsWidgetContextToken()))
- return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList retrievalQueries_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getWebSearchQueriesCount() > 0) {
- hash = (37 * hash) + WEB_SEARCH_QUERIES_FIELD_NUMBER;
- hash = (53 * hash) + getWebSearchQueriesList().hashCode();
- }
- if (hasSearchEntryPoint()) {
- hash = (37 * hash) + SEARCH_ENTRY_POINT_FIELD_NUMBER;
- hash = (53 * hash) + getSearchEntryPoint().hashCode();
- }
- if (getRetrievalQueriesCount() > 0) {
- hash = (37 * hash) + RETRIEVAL_QUERIES_FIELD_NUMBER;
- hash = (53 * hash) + getRetrievalQueriesList().hashCode();
- }
- if (getGroundingChunksCount() > 0) {
- hash = (37 * hash) + GROUNDING_CHUNKS_FIELD_NUMBER;
- hash = (53 * hash) + getGroundingChunksList().hashCode();
- }
- if (getGroundingSupportsCount() > 0) {
- hash = (37 * hash) + GROUNDING_SUPPORTS_FIELD_NUMBER;
- hash = (53 * hash) + getGroundingSupportsList().hashCode();
- }
- if (hasRetrievalMetadata()) {
- hash = (37 * hash) + RETRIEVAL_METADATA_FIELD_NUMBER;
- hash = (53 * hash) + getRetrievalMetadata().hashCode();
- }
- if (hasGoogleMapsWidgetContextToken()) {
- hash = (37 * hash) + GOOGLE_MAPS_WIDGET_CONTEXT_TOKEN_FIELD_NUMBER;
- hash = (53 * hash) + getGoogleMapsWidgetContextToken().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
+ /**
+ *
+ *
+ * + * Optional. Queries executed by the retrieval tools. + *+ * + *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return A list containing the retrievalQueries.
+ */
+ public com.google.protobuf.ProtocolStringList getRetrievalQueriesList() {
+ return retrievalQueries_;
}
- public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
+ /**
+ *
+ *
+ * + * Optional. Queries executed by the retrieval tools. + *+ * + *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The count of retrievalQueries.
+ */
+ public int getRetrievalQueriesCount() {
+ return retrievalQueries_.size();
}
- public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
+ /**
+ *
+ *
+ * + * Optional. Queries executed by the retrieval tools. + *+ * + *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the element to return.
+ * @return The retrievalQueries at the given index.
+ */
+ public java.lang.String getRetrievalQueries(int index) {
+ return retrievalQueries_.get(index);
}
- public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
+ /**
+ *
+ *
+ * + * Optional. Queries executed by the retrieval tools. + *+ * + *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the retrievalQueries at the given index.
+ */
+ public com.google.protobuf.ByteString getRetrievalQueriesBytes(int index) {
+ return retrievalQueries_.getByteString(index);
}
- public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
+ public static final int GROUNDING_CHUNKS_FIELD_NUMBER = 5;
- public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
+ @SuppressWarnings("serial")
+ private java.util.List+ * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public java.util.List+ * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder>
+ getGroundingChunksOrBuilderList() {
+ return groundingChunks_;
}
- public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
+ /**
+ *
+ *
+ * + * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public int getGroundingChunksCount() {
+ return groundingChunks_.size();
}
- public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ /**
+ *
+ *
+ * + * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk getGroundingChunks(int index) {
+ return groundingChunks_.get(index);
}
- public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
+ /**
+ *
+ *
+ * + * List of supporting references retrieved from specified grounding source. + *+ * + *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder getGroundingChunksOrBuilder(
+ int index) {
+ return groundingChunks_.get(index);
}
- public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ public static final int GROUNDING_SUPPORTS_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Optional. List of grounding support. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. List of grounding support. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder>
+ getGroundingSupportsOrBuilderList() {
+ return groundingSupports_;
}
+ /**
+ *
+ *
+ * + * Optional. List of grounding support. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
@java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
+ public int getGroundingSupportsCount() {
+ return groundingSupports_.size();
}
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
+ /**
+ *
+ *
+ * + * Optional. List of grounding support. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingSupport getGroundingSupports(int index) {
+ return groundingSupports_.get(index);
}
- public static Builder newBuilder(
- com.google.cloud.aiplatform.v1beta1.GroundingMetadata prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ /**
+ *
+ *
+ * + * Optional. List of grounding support. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder
+ getGroundingSupportsOrBuilder(int index) {
+ return groundingSupports_.get(index);
}
+ public static final int RETRIEVAL_METADATA_FIELD_NUMBER = 7;
+ private com.google.cloud.aiplatform.v1beta1.RetrievalMetadata retrievalMetadata_;
+
+ /**
+ *
+ *
+ * + * Optional. Output only. Retrieval metadata. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the retrievalMetadata field is set.
+ */
@java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ public boolean hasRetrievalMetadata() {
+ return ((bitField0_ & 0x00000002) != 0);
}
+ /**
+ *
+ *
+ * + * Optional. Output only. Retrieval metadata. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The retrievalMetadata.
+ */
@java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
+ public com.google.cloud.aiplatform.v1beta1.RetrievalMetadata getRetrievalMetadata() {
+ return retrievalMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.getDefaultInstance()
+ : retrievalMetadata_;
}
/**
*
*
* - * Metadata returned to client when grounding is enabled. + * Optional. Output only. Retrieval metadata. ** - * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingMetadata} + *
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. + *+ * + *
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the googleMapsWidgetContextToken field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogleMapsWidgetContextToken() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. + *+ * + *
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The googleMapsWidgetContextToken.
+ */
+ @java.lang.Override
+ public java.lang.String getGoogleMapsWidgetContextToken() {
+ java.lang.Object ref = googleMapsWidgetContextToken_;
+ 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();
+ googleMapsWidgetContextToken_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. + *+ * + *
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for googleMapsWidgetContextToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
+ java.lang.Object ref = googleMapsWidgetContextToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ googleMapsWidgetContextToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCE_FLAGGING_URIS_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUriOrBuilder>
+ getSourceFlaggingUrisOrBuilderList() {
+ return sourceFlaggingUris_;
+ }
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ @java.lang.Override
+ public int getSourceFlaggingUrisCount() {
+ return sourceFlaggingUris_.size();
+ }
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri
+ getSourceFlaggingUris(int index) {
+ return sourceFlaggingUris_.get(index);
+ }
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUriOrBuilder
+ getSourceFlaggingUrisOrBuilder(int index) {
+ return sourceFlaggingUris_.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 < webSearchQueries_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webSearchQueries_.getRaw(i));
+ }
+ for (int i = 0; i < retrievalQueries_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, retrievalQueries_.getRaw(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getSearchEntryPoint());
+ }
+ for (int i = 0; i < groundingChunks_.size(); i++) {
+ output.writeMessage(5, groundingChunks_.get(i));
+ }
+ for (int i = 0; i < groundingSupports_.size(); i++) {
+ output.writeMessage(6, groundingSupports_.get(i));
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(7, getRetrievalMetadata());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, googleMapsWidgetContextToken_);
+ }
+ for (int i = 0; i < sourceFlaggingUris_.size(); i++) {
+ output.writeMessage(9, sourceFlaggingUris_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < webSearchQueries_.size(); i++) {
+ dataSize += computeStringSizeNoTag(webSearchQueries_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getWebSearchQueriesList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < retrievalQueries_.size(); i++) {
+ dataSize += computeStringSizeNoTag(retrievalQueries_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getRetrievalQueriesList().size();
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint());
+ }
+ for (int i = 0; i < groundingChunks_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, groundingChunks_.get(i));
+ }
+ for (int i = 0; i < groundingSupports_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(6, groundingSupports_.get(i));
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRetrievalMetadata());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(
+ 8, googleMapsWidgetContextToken_);
+ }
+ for (int i = 0; i < sourceFlaggingUris_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(9, sourceFlaggingUris_.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.aiplatform.v1beta1.GroundingMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata other =
+ (com.google.cloud.aiplatform.v1beta1.GroundingMetadata) obj;
+
+ if (!getWebSearchQueriesList().equals(other.getWebSearchQueriesList())) return false;
+ if (hasSearchEntryPoint() != other.hasSearchEntryPoint()) return false;
+ if (hasSearchEntryPoint()) {
+ if (!getSearchEntryPoint().equals(other.getSearchEntryPoint())) return false;
+ }
+ if (!getRetrievalQueriesList().equals(other.getRetrievalQueriesList())) return false;
+ if (!getGroundingChunksList().equals(other.getGroundingChunksList())) return false;
+ if (!getGroundingSupportsList().equals(other.getGroundingSupportsList())) return false;
+ if (hasRetrievalMetadata() != other.hasRetrievalMetadata()) return false;
+ if (hasRetrievalMetadata()) {
+ if (!getRetrievalMetadata().equals(other.getRetrievalMetadata())) return false;
+ }
+ if (hasGoogleMapsWidgetContextToken() != other.hasGoogleMapsWidgetContextToken()) return false;
+ if (hasGoogleMapsWidgetContextToken()) {
+ if (!getGoogleMapsWidgetContextToken().equals(other.getGoogleMapsWidgetContextToken()))
+ return false;
+ }
+ if (!getSourceFlaggingUrisList().equals(other.getSourceFlaggingUrisList())) 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 (getWebSearchQueriesCount() > 0) {
+ hash = (37 * hash) + WEB_SEARCH_QUERIES_FIELD_NUMBER;
+ hash = (53 * hash) + getWebSearchQueriesList().hashCode();
+ }
+ if (hasSearchEntryPoint()) {
+ hash = (37 * hash) + SEARCH_ENTRY_POINT_FIELD_NUMBER;
+ hash = (53 * hash) + getSearchEntryPoint().hashCode();
+ }
+ if (getRetrievalQueriesCount() > 0) {
+ hash = (37 * hash) + RETRIEVAL_QUERIES_FIELD_NUMBER;
+ hash = (53 * hash) + getRetrievalQueriesList().hashCode();
+ }
+ if (getGroundingChunksCount() > 0) {
+ hash = (37 * hash) + GROUNDING_CHUNKS_FIELD_NUMBER;
+ hash = (53 * hash) + getGroundingChunksList().hashCode();
+ }
+ if (getGroundingSupportsCount() > 0) {
+ hash = (37 * hash) + GROUNDING_SUPPORTS_FIELD_NUMBER;
+ hash = (53 * hash) + getGroundingSupportsList().hashCode();
+ }
+ if (hasRetrievalMetadata()) {
+ hash = (37 * hash) + RETRIEVAL_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getRetrievalMetadata().hashCode();
+ }
+ if (hasGoogleMapsWidgetContextToken()) {
+ hash = (37 * hash) + GOOGLE_MAPS_WIDGET_CONTEXT_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogleMapsWidgetContextToken().hashCode();
+ }
+ if (getSourceFlaggingUrisCount() > 0) {
+ hash = (37 * hash) + SOURCE_FLAGGING_URIS_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceFlaggingUrisList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata 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.v1beta1.GroundingMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata 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.v1beta1.GroundingMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GroundingMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.v1beta1.GroundingMetadata 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Metadata returned to client when grounding is enabled. + *+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the webSearchQueries.
+ */
+ public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
+ webSearchQueries_.makeImmutable();
+ return webSearchQueries_;
}
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.aiplatform.v1beta1.ContentProto
- .internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_descriptor;
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of webSearchQueries.
+ */
+ public int getWebSearchQueriesCount() {
+ return webSearchQueries_.size();
}
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.GroundingMetadata getDefaultInstanceForType() {
- return com.google.cloud.aiplatform.v1beta1.GroundingMetadata.getDefaultInstance();
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The webSearchQueries at the given index.
+ */
+ public java.lang.String getWebSearchQueries(int index) {
+ return webSearchQueries_.get(index);
}
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.GroundingMetadata build() {
- com.google.cloud.aiplatform.v1beta1.GroundingMetadata result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the webSearchQueries at the given index.
+ */
+ public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
+ return webSearchQueries_.getByteString(index);
}
- @java.lang.Override
- public com.google.cloud.aiplatform.v1beta1.GroundingMetadata buildPartial() {
- com.google.cloud.aiplatform.v1beta1.GroundingMetadata result =
- new com.google.cloud.aiplatform.v1beta1.GroundingMetadata(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) {
- buildPartial0(result);
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The webSearchQueries to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWebSearchQueries(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- onBuilt();
- return result;
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
}
- private void buildPartialRepeatedFields(
- com.google.cloud.aiplatform.v1beta1.GroundingMetadata result) {
- if (groundingChunksBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)) {
- groundingChunks_ = java.util.Collections.unmodifiableList(groundingChunks_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.groundingChunks_ = groundingChunks_;
- } else {
- result.groundingChunks_ = groundingChunksBuilder_.build();
- }
- if (groundingSupportsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)) {
- groundingSupports_ = java.util.Collections.unmodifiableList(groundingSupports_);
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.groundingSupports_ = groundingSupports_;
- } else {
- result.groundingSupports_ = groundingSupportsBuilder_.build();
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The webSearchQueries to add.
+ * @return This builder for chaining.
+ */
+ public Builder addWebSearchQueries(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
}
- private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GroundingMetadata result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- webSearchQueries_.makeImmutable();
- result.webSearchQueries_ = webSearchQueries_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.searchEntryPoint_ =
- searchEntryPointBuilder_ == null ? searchEntryPoint_ : searchEntryPointBuilder_.build();
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- retrievalQueries_.makeImmutable();
- result.retrievalQueries_ = retrievalQueries_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.retrievalMetadata_ =
- retrievalMetadataBuilder_ == null
- ? retrievalMetadata_
- : retrievalMetadataBuilder_.build();
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.googleMapsWidgetContextToken_ = googleMapsWidgetContextToken_;
- to_bitField0_ |= 0x00000004;
- }
- result.bitField0_ |= to_bitField0_;
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param values The webSearchQueries to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllWebSearchQueries(java.lang.Iterable+ * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearWebSearchQueries() {
+ webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
}
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.setField(field, value);
+ /**
+ *
+ *
+ * + * Optional. Web search queries for the following-up web search. + *+ * + *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The bytes of the webSearchQueries to add.
+ * @return This builder for chaining.
+ */
+ public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureWebSearchQueriesIsMutable();
+ webSearchQueries_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
}
- @java.lang.Override
- public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
+ private com.google.cloud.aiplatform.v1beta1.SearchEntryPoint searchEntryPoint_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPoint,
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder,
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder>
+ searchEntryPointBuilder_;
- @java.lang.Override
- public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the searchEntryPoint field is set.
+ */
+ public boolean hasSearchEntryPoint() {
+ return ((bitField0_ & 0x00000002) != 0);
}
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The searchEntryPoint.
+ */
+ public com.google.cloud.aiplatform.v1beta1.SearchEntryPoint getSearchEntryPoint() {
+ if (searchEntryPointBuilder_ == null) {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
+ } else {
+ return searchEntryPointBuilder_.getMessage();
+ }
}
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.addRepeatedField(field, value);
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSearchEntryPoint(com.google.cloud.aiplatform.v1beta1.SearchEntryPoint value) {
+ if (searchEntryPointBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ searchEntryPoint_ = value;
+ } else {
+ searchEntryPointBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
}
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.aiplatform.v1beta1.GroundingMetadata) {
- return mergeFrom((com.google.cloud.aiplatform.v1beta1.GroundingMetadata) other);
+
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSearchEntryPoint(
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder builderForValue) {
+ if (searchEntryPointBuilder_ == null) {
+ searchEntryPoint_ = builderForValue.build();
} else {
- super.mergeFrom(other);
- return this;
+ searchEntryPointBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
}
- public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GroundingMetadata other) {
- if (other == com.google.cloud.aiplatform.v1beta1.GroundingMetadata.getDefaultInstance())
- return this;
- if (!other.webSearchQueries_.isEmpty()) {
- if (webSearchQueries_.isEmpty()) {
- webSearchQueries_ = other.webSearchQueries_;
- bitField0_ |= 0x00000001;
- } else {
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.addAll(other.webSearchQueries_);
- }
- onChanged();
- }
- if (other.hasSearchEntryPoint()) {
- mergeSearchEntryPoint(other.getSearchEntryPoint());
- }
- if (!other.retrievalQueries_.isEmpty()) {
- if (retrievalQueries_.isEmpty()) {
- retrievalQueries_ = other.retrievalQueries_;
- bitField0_ |= 0x00000004;
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeSearchEntryPoint(
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPoint value) {
+ if (searchEntryPointBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && searchEntryPoint_ != null
+ && searchEntryPoint_
+ != com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()) {
+ getSearchEntryPointBuilder().mergeFrom(value);
} else {
- ensureRetrievalQueriesIsMutable();
- retrievalQueries_.addAll(other.retrievalQueries_);
- }
- onChanged();
- }
- if (groundingChunksBuilder_ == null) {
- if (!other.groundingChunks_.isEmpty()) {
- if (groundingChunks_.isEmpty()) {
- groundingChunks_ = other.groundingChunks_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureGroundingChunksIsMutable();
- groundingChunks_.addAll(other.groundingChunks_);
- }
- onChanged();
- }
- } else {
- if (!other.groundingChunks_.isEmpty()) {
- if (groundingChunksBuilder_.isEmpty()) {
- groundingChunksBuilder_.dispose();
- groundingChunksBuilder_ = null;
- groundingChunks_ = other.groundingChunks_;
- bitField0_ = (bitField0_ & ~0x00000008);
- groundingChunksBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
- ? getGroundingChunksFieldBuilder()
- : null;
- } else {
- groundingChunksBuilder_.addAllMessages(other.groundingChunks_);
- }
- }
- }
- if (groundingSupportsBuilder_ == null) {
- if (!other.groundingSupports_.isEmpty()) {
- if (groundingSupports_.isEmpty()) {
- groundingSupports_ = other.groundingSupports_;
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.addAll(other.groundingSupports_);
- }
- onChanged();
+ searchEntryPoint_ = value;
}
} else {
- if (!other.groundingSupports_.isEmpty()) {
- if (groundingSupportsBuilder_.isEmpty()) {
- groundingSupportsBuilder_.dispose();
- groundingSupportsBuilder_ = null;
- groundingSupports_ = other.groundingSupports_;
- bitField0_ = (bitField0_ & ~0x00000010);
- groundingSupportsBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
- ? getGroundingSupportsFieldBuilder()
- : null;
- } else {
- groundingSupportsBuilder_.addAllMessages(other.groundingSupports_);
- }
- }
- }
- if (other.hasRetrievalMetadata()) {
- mergeRetrievalMetadata(other.getRetrievalMetadata());
+ searchEntryPointBuilder_.mergeFrom(value);
}
- if (other.hasGoogleMapsWidgetContextToken()) {
- googleMapsWidgetContextToken_ = other.googleMapsWidgetContextToken_;
- bitField0_ |= 0x00000040;
+ if (searchEntryPoint_ != null) {
+ bitField0_ |= 0x00000002;
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();
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSearchEntryPoint() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ searchEntryPoint_ = null;
+ if (searchEntryPointBuilder_ != null) {
+ searchEntryPointBuilder_.dispose();
+ searchEntryPointBuilder_ = null;
}
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.add(s);
- break;
- } // case 10
- case 26:
- {
- java.lang.String s = input.readStringRequireUtf8();
- ensureRetrievalQueriesIsMutable();
- retrievalQueries_.add(s);
- break;
- } // case 26
- case 34:
- {
- input.readMessage(
- getSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000002;
- break;
- } // case 34
- case 42:
- {
- com.google.cloud.aiplatform.v1beta1.GroundingChunk m =
- input.readMessage(
- com.google.cloud.aiplatform.v1beta1.GroundingChunk.parser(),
- extensionRegistry);
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(m);
- } else {
- groundingChunksBuilder_.addMessage(m);
- }
- break;
- } // case 42
- case 50:
- {
- com.google.cloud.aiplatform.v1beta1.GroundingSupport m =
- input.readMessage(
- com.google.cloud.aiplatform.v1beta1.GroundingSupport.parser(),
- extensionRegistry);
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(m);
- } else {
- groundingSupportsBuilder_.addMessage(m);
- }
- break;
- } // case 50
- case 58:
- {
- input.readMessage(
- getRetrievalMetadataFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000020;
- break;
- } // case 58
- case 66:
- {
- googleMapsWidgetContextToken_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
- break;
- } // case 66
- 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
+ onChanged();
return this;
}
- private int bitField0_;
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder
+ getSearchEntryPointBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getSearchEntryPointFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder
+ getSearchEntryPointOrBuilder() {
+ if (searchEntryPointBuilder_ != null) {
+ return searchEntryPointBuilder_.getMessageOrBuilder();
+ } else {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
+ }
+ }
- private com.google.protobuf.LazyStringArrayList webSearchQueries_ =
+ /**
+ *
+ *
+ * + * Optional. Google search entry for the following-up web searches. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPoint,
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder,
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder>
+ getSearchEntryPointFieldBuilder() {
+ if (searchEntryPointBuilder_ == null) {
+ searchEntryPointBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPoint,
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder,
+ com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder>(
+ getSearchEntryPoint(), getParentForChildren(), isClean());
+ searchEntryPoint_ = null;
+ }
+ return searchEntryPointBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringArrayList retrievalQueries_ =
com.google.protobuf.LazyStringArrayList.emptyList();
- private void ensureWebSearchQueriesIsMutable() {
- if (!webSearchQueries_.isModifiable()) {
- webSearchQueries_ = new com.google.protobuf.LazyStringArrayList(webSearchQueries_);
+ private void ensureRetrievalQueriesIsMutable() {
+ if (!retrievalQueries_.isModifiable()) {
+ retrievalQueries_ = new com.google.protobuf.LazyStringArrayList(retrievalQueries_);
}
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000004;
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * Optional. Queries executed by the retrieval tools. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return A list containing the webSearchQueries.
+ * @return A list containing the retrievalQueries.
*/
- public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() {
- webSearchQueries_.makeImmutable();
- return webSearchQueries_;
+ public com.google.protobuf.ProtocolStringList getRetrievalQueriesList() {
+ retrievalQueries_.makeImmutable();
+ return retrievalQueries_;
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * Optional. Queries executed by the retrieval tools. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The count of webSearchQueries.
+ * @return The count of retrievalQueries.
*/
- public int getWebSearchQueriesCount() {
- return webSearchQueries_.size();
+ public int getRetrievalQueriesCount() {
+ return retrievalQueries_.size();
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * Optional. Queries executed by the retrieval tools. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
- * @return The webSearchQueries at the given index.
+ * @return The retrievalQueries at the given index.
*/
- public java.lang.String getWebSearchQueries(int index) {
- return webSearchQueries_.get(index);
+ public java.lang.String getRetrievalQueries(int index) {
+ return retrievalQueries_.get(index);
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * Optional. Queries executed by the retrieval tools. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
- * @return The bytes of the webSearchQueries at the given index.
+ * @return The bytes of the retrievalQueries at the given index.
*/
- public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) {
- return webSearchQueries_.getByteString(index);
+ public com.google.protobuf.ByteString getRetrievalQueriesBytes(int index) {
+ return retrievalQueries_.getByteString(index);
}
/**
*
*
* - * Optional. Web search queries for the following-up web search. + * Optional. Queries executed by the retrieval tools. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index to set the value at.
- * @param value The webSearchQueries to set.
+ * @param value The retrievalQueries to set.
* @return This builder for chaining.
*/
- public Builder setWebSearchQueries(int index, java.lang.String value) {
+ public Builder setRetrievalQueries(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.set(index, value);
- bitField0_ |= 0x00000001;
+ ensureRetrievalQueriesIsMutable();
+ retrievalQueries_.set(index, value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1333,22 +2821,21 @@ public Builder setWebSearchQueries(int index, java.lang.String value) {
*
*
* - * Optional. Web search queries for the following-up web search. + * Optional. Queries executed by the retrieval tools. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The webSearchQueries to add.
+ * @param value The retrievalQueries to add.
* @return This builder for chaining.
*/
- public Builder addWebSearchQueries(java.lang.String value) {
+ public Builder addRetrievalQueries(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.add(value);
- bitField0_ |= 0x00000001;
+ ensureRetrievalQueriesIsMutable();
+ retrievalQueries_.add(value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1357,19 +2844,18 @@ public Builder addWebSearchQueries(java.lang.String value) {
*
*
* - * Optional. Web search queries for the following-up web search. + * Optional. Queries executed by the retrieval tools. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param values The webSearchQueries to add.
+ * @param values The retrievalQueries to add.
* @return This builder for chaining.
*/
- public Builder addAllWebSearchQueries(java.lang.Iterable- * Optional. Web search queries for the following-up web search. + * Optional. Queries executed by the retrieval tools. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
- public Builder clearWebSearchQueries() {
- webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ public Builder clearRetrievalQueries() {
+ retrievalQueries_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
;
onChanged();
return this;
@@ -1398,71 +2883,76 @@ public Builder clearWebSearchQueries() {
*
*
* - * Optional. Web search queries for the following-up web search. + * Optional. Queries executed by the retrieval tools. ** - *
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The bytes of the webSearchQueries to add.
+ * @param value The bytes of the retrievalQueries to add.
* @return This builder for chaining.
*/
- public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) {
+ public Builder addRetrievalQueriesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- ensureWebSearchQueriesIsMutable();
- webSearchQueries_.add(value);
- bitField0_ |= 0x00000001;
+ ensureRetrievalQueriesIsMutable();
+ retrievalQueries_.add(value);
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
- private com.google.cloud.aiplatform.v1beta1.SearchEntryPoint searchEntryPoint_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1beta1.SearchEntryPoint,
- com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder,
- com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder>
- searchEntryPointBuilder_;
+ private java.util.List- * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return Whether the searchEntryPoint field is set.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public boolean hasSearchEntryPoint() {
- return ((bitField0_ & 0x00000002) != 0);
+ public java.util.List- * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- *
- * @return The searchEntryPoint.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.cloud.aiplatform.v1beta1.SearchEntryPoint getSearchEntryPoint() {
- if (searchEntryPointBuilder_ == null) {
- return searchEntryPoint_ == null
- ? com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()
- : searchEntryPoint_;
+ public int getGroundingChunksCount() {
+ if (groundingChunksBuilder_ == null) {
+ return groundingChunks_.size();
} else {
- return searchEntryPointBuilder_.getMessage();
+ return groundingChunksBuilder_.getCount();
}
}
@@ -1470,47 +2960,40 @@ public com.google.cloud.aiplatform.v1beta1.SearchEntryPoint getSearchEntryPoint(
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public Builder setSearchEntryPoint(com.google.cloud.aiplatform.v1beta1.SearchEntryPoint value) {
- if (searchEntryPointBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- searchEntryPoint_ = value;
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk getGroundingChunks(int index) {
+ if (groundingChunksBuilder_ == null) {
+ return groundingChunks_.get(index);
} else {
- searchEntryPointBuilder_.setMessage(value);
+ return groundingChunksBuilder_.getMessage(index);
}
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public Builder setSearchEntryPoint(
- com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder builderForValue) {
- if (searchEntryPointBuilder_ == null) {
- searchEntryPoint_ = builderForValue.build();
+ public Builder setGroundingChunks(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk value) {
+ if (groundingChunksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.set(index, value);
+ onChanged();
} else {
- searchEntryPointBuilder_.setMessage(builderForValue.build());
+ groundingChunksBuilder_.setMessage(index, value);
}
- bitField0_ |= 0x00000002;
- onChanged();
return this;
}
@@ -1518,30 +3001,19 @@ public Builder setSearchEntryPoint(
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public Builder mergeSearchEntryPoint(
- com.google.cloud.aiplatform.v1beta1.SearchEntryPoint value) {
- if (searchEntryPointBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
- && searchEntryPoint_ != null
- && searchEntryPoint_
- != com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()) {
- getSearchEntryPointBuilder().mergeFrom(value);
- } else {
- searchEntryPoint_ = value;
- }
- } else {
- searchEntryPointBuilder_.mergeFrom(value);
- }
- if (searchEntryPoint_ != null) {
- bitField0_ |= 0x00000002;
+ public Builder setGroundingChunks(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder builderForValue) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.set(index, builderForValue.build());
onChanged();
+ } else {
+ groundingChunksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
@@ -1550,21 +3022,22 @@ public Builder mergeSearchEntryPoint(
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public Builder clearSearchEntryPoint() {
- bitField0_ = (bitField0_ & ~0x00000002);
- searchEntryPoint_ = null;
- if (searchEntryPointBuilder_ != null) {
- searchEntryPointBuilder_.dispose();
- searchEntryPointBuilder_ = null;
+ public Builder addGroundingChunks(com.google.cloud.aiplatform.v1beta1.GroundingChunk value) {
+ if (groundingChunksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.add(value);
+ onChanged();
+ } else {
+ groundingChunksBuilder_.addMessage(value);
}
- onChanged();
return this;
}
@@ -1572,286 +3045,278 @@ public Builder clearSearchEntryPoint() {
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder
- getSearchEntryPointBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getSearchEntryPointFieldBuilder().getBuilder();
+ public Builder addGroundingChunks(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk value) {
+ if (groundingChunksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.add(index, value);
+ onChanged();
+ } else {
+ groundingChunksBuilder_.addMessage(index, value);
+ }
+ return this;
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder
- getSearchEntryPointOrBuilder() {
- if (searchEntryPointBuilder_ != null) {
- return searchEntryPointBuilder_.getMessageOrBuilder();
+ public Builder addGroundingChunks(
+ com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder builderForValue) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.add(builderForValue.build());
+ onChanged();
} else {
- return searchEntryPoint_ == null
- ? com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.getDefaultInstance()
- : searchEntryPoint_;
+ groundingChunksBuilder_.addMessage(builderForValue.build());
}
+ return this;
}
/**
*
*
* - * Optional. Google search entry for the following-up web searches. + * List of supporting references retrieved from specified grounding source. ** - *
- * optional .google.cloud.aiplatform.v1beta1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1beta1.SearchEntryPoint,
- com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder,
- com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder>
- getSearchEntryPointFieldBuilder() {
- if (searchEntryPointBuilder_ == null) {
- searchEntryPointBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1beta1.SearchEntryPoint,
- com.google.cloud.aiplatform.v1beta1.SearchEntryPoint.Builder,
- com.google.cloud.aiplatform.v1beta1.SearchEntryPointOrBuilder>(
- getSearchEntryPoint(), getParentForChildren(), isClean());
- searchEntryPoint_ = null;
- }
- return searchEntryPointBuilder_;
- }
-
- private com.google.protobuf.LazyStringArrayList retrievalQueries_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
-
- private void ensureRetrievalQueriesIsMutable() {
- if (!retrievalQueries_.isModifiable()) {
- retrievalQueries_ = new com.google.protobuf.LazyStringArrayList(retrievalQueries_);
+ public Builder addGroundingChunks(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder builderForValue) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ groundingChunksBuilder_.addMessage(index, builderForValue.build());
}
- bitField0_ |= 0x00000004;
+ return this;
}
/**
*
*
* - * Optional. Queries executed by the retrieval tools. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return A list containing the retrievalQueries.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.protobuf.ProtocolStringList getRetrievalQueriesList() {
- retrievalQueries_.makeImmutable();
- return retrievalQueries_;
+ public Builder addAllGroundingChunks(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.GroundingChunk> values) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingChunks_);
+ onChanged();
+ } else {
+ groundingChunksBuilder_.addAllMessages(values);
+ }
+ return this;
}
/**
*
*
* - * Optional. Queries executed by the retrieval tools. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The count of retrievalQueries.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public int getRetrievalQueriesCount() {
- return retrievalQueries_.size();
+ public Builder clearGroundingChunks() {
+ if (groundingChunksBuilder_ == null) {
+ groundingChunks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ groundingChunksBuilder_.clear();
+ }
+ return this;
}
/**
*
*
* - * Optional. Queries executed by the retrieval tools. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param index The index of the element to return.
- * @return The retrievalQueries at the given index.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public java.lang.String getRetrievalQueries(int index) {
- return retrievalQueries_.get(index);
+ public Builder removeGroundingChunks(int index) {
+ if (groundingChunksBuilder_ == null) {
+ ensureGroundingChunksIsMutable();
+ groundingChunks_.remove(index);
+ onChanged();
+ } else {
+ groundingChunksBuilder_.remove(index);
+ }
+ return this;
}
/**
*
*
* - * Optional. Queries executed by the retrieval tools. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param index The index of the value to return.
- * @return The bytes of the retrievalQueries at the given index.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public com.google.protobuf.ByteString getRetrievalQueriesBytes(int index) {
- return retrievalQueries_.getByteString(index);
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder getGroundingChunksBuilder(
+ int index) {
+ return getGroundingChunksFieldBuilder().getBuilder(index);
}
/**
*
*
* - * Optional. Queries executed by the retrieval tools. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param index The index to set the value at.
- * @param value The retrievalQueries to set.
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public Builder setRetrievalQueries(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder getGroundingChunksOrBuilder(
+ int index) {
+ if (groundingChunksBuilder_ == null) {
+ return groundingChunks_.get(index);
+ } else {
+ return groundingChunksBuilder_.getMessageOrBuilder(index);
}
- ensureRetrievalQueriesIsMutable();
- retrievalQueries_.set(index, value);
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
}
/**
*
*
* - * Optional. Queries executed by the retrieval tools. - *- * - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * List of supporting references retrieved from specified grounding source.
+ *
*
- * @param value The retrievalQueries to add.
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public Builder addRetrievalQueries(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder>
+ getGroundingChunksOrBuilderList() {
+ if (groundingChunksBuilder_ != null) {
+ return groundingChunksBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(groundingChunks_);
}
- ensureRetrievalQueriesIsMutable();
- retrievalQueries_.add(value);
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
}
/**
*
*
* - * Optional. Queries executed by the retrieval tools. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param values The retrievalQueries to add.
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public Builder addAllRetrievalQueries(java.lang.Iterable- * Optional. Queries executed by the retrieval tools. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public Builder clearRetrievalQueries() {
- retrievalQueries_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- ;
- onChanged();
- return this;
+ public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder addGroundingChunksBuilder(
+ int index) {
+ return getGroundingChunksFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.aiplatform.v1beta1.GroundingChunk.getDefaultInstance());
}
/**
*
*
* - * Optional. Queries executed by the retrieval tools. + * List of supporting references retrieved from specified grounding source. ** - *
repeated string retrieval_queries = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The bytes of the retrievalQueries to add.
- * @return This builder for chaining.
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
*/
- public Builder addRetrievalQueriesBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public java.util.List- * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public java.util.List- * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public int getGroundingChunksCount() {
- if (groundingChunksBuilder_ == null) {
- return groundingChunks_.size();
+ public int getGroundingSupportsCount() {
+ if (groundingSupportsBuilder_ == null) {
+ return groundingSupports_.size();
} else {
- return groundingChunksBuilder_.getCount();
+ return groundingSupportsBuilder_.getCount();
}
}
@@ -1876,16 +3343,18 @@ public int getGroundingChunksCount() {
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingChunk getGroundingChunks(int index) {
- if (groundingChunksBuilder_ == null) {
- return groundingChunks_.get(index);
+ public com.google.cloud.aiplatform.v1beta1.GroundingSupport getGroundingSupports(int index) {
+ if (groundingSupportsBuilder_ == null) {
+ return groundingSupports_.get(index);
} else {
- return groundingChunksBuilder_.getMessage(index);
+ return groundingSupportsBuilder_.getMessage(index);
}
}
@@ -1893,22 +3362,24 @@ public com.google.cloud.aiplatform.v1beta1.GroundingChunk getGroundingChunks(int
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setGroundingChunks(
- int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk value) {
- if (groundingChunksBuilder_ == null) {
+ public Builder setGroundingSupports(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport value) {
+ if (groundingSupportsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGroundingChunksIsMutable();
- groundingChunks_.set(index, value);
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.set(index, value);
onChanged();
} else {
- groundingChunksBuilder_.setMessage(index, value);
+ groundingSupportsBuilder_.setMessage(index, value);
}
return this;
}
@@ -1917,19 +3388,21 @@ public Builder setGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setGroundingChunks(
- int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder builderForValue) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.set(index, builderForValue.build());
+ public Builder setGroundingSupports(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder builderForValue) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.set(index, builderForValue.build());
onChanged();
} else {
- groundingChunksBuilder_.setMessage(index, builderForValue.build());
+ groundingSupportsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
@@ -1938,21 +3411,24 @@ public Builder setGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder addGroundingChunks(com.google.cloud.aiplatform.v1beta1.GroundingChunk value) {
- if (groundingChunksBuilder_ == null) {
+ public Builder addGroundingSupports(
+ com.google.cloud.aiplatform.v1beta1.GroundingSupport value) {
+ if (groundingSupportsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(value);
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.add(value);
onChanged();
} else {
- groundingChunksBuilder_.addMessage(value);
+ groundingSupportsBuilder_.addMessage(value);
}
return this;
}
@@ -1961,22 +3437,24 @@ public Builder addGroundingChunks(com.google.cloud.aiplatform.v1beta1.GroundingC
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder addGroundingChunks(
- int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk value) {
- if (groundingChunksBuilder_ == null) {
+ public Builder addGroundingSupports(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport value) {
+ if (groundingSupportsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(index, value);
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.add(index, value);
onChanged();
} else {
- groundingChunksBuilder_.addMessage(index, value);
+ groundingSupportsBuilder_.addMessage(index, value);
}
return this;
}
@@ -1985,19 +3463,21 @@ public Builder addGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder addGroundingChunks(
- com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder builderForValue) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(builderForValue.build());
+ public Builder addGroundingSupports(
+ com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder builderForValue) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.add(builderForValue.build());
onChanged();
} else {
- groundingChunksBuilder_.addMessage(builderForValue.build());
+ groundingSupportsBuilder_.addMessage(builderForValue.build());
}
return this;
}
@@ -2006,19 +3486,21 @@ public Builder addGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
- */
- public Builder addGroundingChunks(
- int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder builderForValue) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.add(index, builderForValue.build());
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addGroundingSupports(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder builderForValue) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.add(index, builderForValue.build());
onChanged();
} else {
- groundingChunksBuilder_.addMessage(index, builderForValue.build());
+ groundingSupportsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
@@ -2027,19 +3509,21 @@ public Builder addGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder addAllGroundingChunks(
- java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.GroundingChunk> values) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingChunks_);
+ public Builder addAllGroundingSupports(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.GroundingSupport> values) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupports_);
onChanged();
} else {
- groundingChunksBuilder_.addAllMessages(values);
+ groundingSupportsBuilder_.addAllMessages(values);
}
return this;
}
@@ -2048,18 +3532,20 @@ public Builder addAllGroundingChunks(
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder clearGroundingChunks() {
- if (groundingChunksBuilder_ == null) {
- groundingChunks_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ public Builder clearGroundingSupports() {
+ if (groundingSupportsBuilder_ == null) {
+ groundingSupports_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
- groundingChunksBuilder_.clear();
+ groundingSupportsBuilder_.clear();
}
return this;
}
@@ -2068,18 +3554,20 @@ public Builder clearGroundingChunks() {
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder removeGroundingChunks(int index) {
- if (groundingChunksBuilder_ == null) {
- ensureGroundingChunksIsMutable();
- groundingChunks_.remove(index);
+ public Builder removeGroundingSupports(int index) {
+ if (groundingSupportsBuilder_ == null) {
+ ensureGroundingSupportsIsMutable();
+ groundingSupports_.remove(index);
onChanged();
} else {
- groundingChunksBuilder_.remove(index);
+ groundingSupportsBuilder_.remove(index);
}
return this;
}
@@ -2088,31 +3576,35 @@ public Builder removeGroundingChunks(int index) {
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder getGroundingChunksBuilder(
+ public com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder getGroundingSupportsBuilder(
int index) {
- return getGroundingChunksFieldBuilder().getBuilder(index);
+ return getGroundingSupportsFieldBuilder().getBuilder(index);
}
/**
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder getGroundingChunksOrBuilder(
- int index) {
- if (groundingChunksBuilder_ == null) {
- return groundingChunks_.get(index);
+ public com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder
+ getGroundingSupportsOrBuilder(int index) {
+ if (groundingSupportsBuilder_ == null) {
+ return groundingSupports_.get(index);
} else {
- return groundingChunksBuilder_.getMessageOrBuilder(index);
+ return groundingSupportsBuilder_.getMessageOrBuilder(index);
}
}
@@ -2120,17 +3612,19 @@ public com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder getGroundingC
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public java.util.List extends com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder>
- getGroundingChunksOrBuilderList() {
- if (groundingChunksBuilder_ != null) {
- return groundingChunksBuilder_.getMessageOrBuilderList();
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder>
+ getGroundingSupportsOrBuilderList() {
+ if (groundingSupportsBuilder_ != null) {
+ return groundingSupportsBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(groundingChunks_);
+ return java.util.Collections.unmodifiableList(groundingSupports_);
}
}
@@ -2138,120 +3632,117 @@ public com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder getGroundingC
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder addGroundingChunksBuilder() {
- return getGroundingChunksFieldBuilder()
- .addBuilder(com.google.cloud.aiplatform.v1beta1.GroundingChunk.getDefaultInstance());
+ public com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder
+ addGroundingSupportsBuilder() {
+ return getGroundingSupportsFieldBuilder()
+ .addBuilder(com.google.cloud.aiplatform.v1beta1.GroundingSupport.getDefaultInstance());
}
/**
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder addGroundingChunksBuilder(
+ public com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder addGroundingSupportsBuilder(
int index) {
- return getGroundingChunksFieldBuilder()
+ return getGroundingSupportsFieldBuilder()
.addBuilder(
- index, com.google.cloud.aiplatform.v1beta1.GroundingChunk.getDefaultInstance());
+ index, com.google.cloud.aiplatform.v1beta1.GroundingSupport.getDefaultInstance());
}
/**
*
*
* - * List of supporting references retrieved from specified grounding source. + * Optional. List of grounding support. ** - *
repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5;
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public java.util.List- * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return Whether the retrievalMetadata field is set.
*/
- public java.util.List- * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The retrievalMetadata.
*/
- public int getGroundingSupportsCount() {
- if (groundingSupportsBuilder_ == null) {
- return groundingSupports_.size();
+ public com.google.cloud.aiplatform.v1beta1.RetrievalMetadata getRetrievalMetadata() {
+ if (retrievalMetadataBuilder_ == null) {
+ return retrievalMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.getDefaultInstance()
+ : retrievalMetadata_;
} else {
- return groundingSupportsBuilder_.getCount();
+ return retrievalMetadataBuilder_.getMessage();
}
}
@@ -2259,44 +3750,48 @@ public int getGroundingSupportsCount() {
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingSupport getGroundingSupports(int index) {
- if (groundingSupportsBuilder_ == null) {
- return groundingSupports_.get(index);
+ public Builder setRetrievalMetadata(
+ com.google.cloud.aiplatform.v1beta1.RetrievalMetadata value) {
+ if (retrievalMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ retrievalMetadata_ = value;
} else {
- return groundingSupportsBuilder_.getMessage(index);
+ retrievalMetadataBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder setGroundingSupports(
- int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport value) {
- if (groundingSupportsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGroundingSupportsIsMutable();
- groundingSupports_.set(index, value);
- onChanged();
+ public Builder setRetrievalMetadata(
+ com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.Builder builderForValue) {
+ if (retrievalMetadataBuilder_ == null) {
+ retrievalMetadata_ = builderForValue.build();
} else {
- groundingSupportsBuilder_.setMessage(index, value);
+ retrievalMetadataBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000020;
+ onChanged();
return this;
}
@@ -2304,21 +3799,30 @@ public Builder setGroundingSupports(
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder setGroundingSupports(
- int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder builderForValue) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.set(index, builderForValue.build());
- onChanged();
+ public Builder mergeRetrievalMetadata(
+ com.google.cloud.aiplatform.v1beta1.RetrievalMetadata value) {
+ if (retrievalMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && retrievalMetadata_ != null
+ && retrievalMetadata_
+ != com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.getDefaultInstance()) {
+ getRetrievalMetadataBuilder().mergeFrom(value);
+ } else {
+ retrievalMetadata_ = value;
+ }
} else {
- groundingSupportsBuilder_.setMessage(index, builderForValue.build());
+ retrievalMetadataBuilder_.mergeFrom(value);
+ }
+ if (retrievalMetadata_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
}
return this;
}
@@ -2327,25 +3831,21 @@ public Builder setGroundingSupports(
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder addGroundingSupports(
- com.google.cloud.aiplatform.v1beta1.GroundingSupport value) {
- if (groundingSupportsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(value);
- onChanged();
- } else {
- groundingSupportsBuilder_.addMessage(value);
+ public Builder clearRetrievalMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ retrievalMetadata_ = null;
+ if (retrievalMetadataBuilder_ != null) {
+ retrievalMetadataBuilder_.dispose();
+ retrievalMetadataBuilder_ = null;
}
+ onChanged();
return this;
}
@@ -2353,338 +3853,378 @@ public Builder addGroundingSupports(
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder addGroundingSupports(
- int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport value) {
- if (groundingSupportsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(index, value);
- onChanged();
- } else {
- groundingSupportsBuilder_.addMessage(index, value);
- }
- return this;
+ public com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.Builder
+ getRetrievalMetadataBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getRetrievalMetadataFieldBuilder().getBuilder();
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder addGroundingSupports(
- com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder builderForValue) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(builderForValue.build());
- onChanged();
+ public com.google.cloud.aiplatform.v1beta1.RetrievalMetadataOrBuilder
+ getRetrievalMetadataOrBuilder() {
+ if (retrievalMetadataBuilder_ != null) {
+ return retrievalMetadataBuilder_.getMessageOrBuilder();
} else {
- groundingSupportsBuilder_.addMessage(builderForValue.build());
+ return retrievalMetadata_ == null
+ ? com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.getDefaultInstance()
+ : retrievalMetadata_;
}
- return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Retrieval metadata. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder addGroundingSupports(
- int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder builderForValue) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.add(index, builderForValue.build());
- onChanged();
- } else {
- groundingSupportsBuilder_.addMessage(index, builderForValue.build());
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.RetrievalMetadata,
+ com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.Builder,
+ com.google.cloud.aiplatform.v1beta1.RetrievalMetadataOrBuilder>
+ getRetrievalMetadataFieldBuilder() {
+ if (retrievalMetadataBuilder_ == null) {
+ retrievalMetadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.RetrievalMetadata,
+ com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.Builder,
+ com.google.cloud.aiplatform.v1beta1.RetrievalMetadataOrBuilder>(
+ getRetrievalMetadata(), getParentForChildren(), isClean());
+ retrievalMetadata_ = null;
}
- return this;
+ return retrievalMetadataBuilder_;
}
+ private java.lang.Object googleMapsWidgetContextToken_ = "";
+
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return Whether the googleMapsWidgetContextToken field is set.
*/
- public Builder addAllGroundingSupports(
- java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.GroundingSupport> values) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupports_);
- onChanged();
- } else {
- groundingSupportsBuilder_.addAllMessages(values);
- }
- return this;
+ public boolean hasGoogleMapsWidgetContextToken() {
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The googleMapsWidgetContextToken.
*/
- public Builder clearGroundingSupports() {
- if (groundingSupportsBuilder_ == null) {
- groundingSupports_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
+ public java.lang.String getGoogleMapsWidgetContextToken() {
+ java.lang.Object ref = googleMapsWidgetContextToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ googleMapsWidgetContextToken_ = s;
+ return s;
} else {
- groundingSupportsBuilder_.clear();
+ return (java.lang.String) ref;
}
- return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return The bytes for googleMapsWidgetContextToken.
*/
- public Builder removeGroundingSupports(int index) {
- if (groundingSupportsBuilder_ == null) {
- ensureGroundingSupportsIsMutable();
- groundingSupports_.remove(index);
- onChanged();
+ public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
+ java.lang.Object ref = googleMapsWidgetContextToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ googleMapsWidgetContextToken_ = b;
+ return b;
} else {
- groundingSupportsBuilder_.remove(index);
+ return (com.google.protobuf.ByteString) ref;
}
- return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @param value The googleMapsWidgetContextToken to set.
+ * @return This builder for chaining.
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder getGroundingSupportsBuilder(
- int index) {
- return getGroundingSupportsFieldBuilder().getBuilder(index);
+ public Builder setGoogleMapsWidgetContextToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ googleMapsWidgetContextToken_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return This builder for chaining.
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder
- getGroundingSupportsOrBuilder(int index) {
- if (groundingSupportsBuilder_ == null) {
- return groundingSupports_.get(index);
- } else {
- return groundingSupportsBuilder_.getMessageOrBuilder(index);
- }
+ public Builder clearGoogleMapsWidgetContextToken() {
+ googleMapsWidgetContextToken_ = getDefaultInstance().getGoogleMapsWidgetContextToken();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
}
/**
*
*
* - * Optional. List of grounding support. + * Optional. Output only. Resource name of the Google Maps widget context + * token to be used with the PlacesContextElement widget to render contextual + * data. This is populated only for Google Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @param value The bytes for googleMapsWidgetContextToken to set.
+ * @return This builder for chaining.
*/
- public java.util.List extends com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder>
- getGroundingSupportsOrBuilderList() {
- if (groundingSupportsBuilder_ != null) {
- return groundingSupportsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(groundingSupports_);
+ public Builder setGoogleMapsWidgetContextTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ googleMapsWidgetContextToken_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List- * Optional. List of grounding support. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder
- addGroundingSupportsBuilder() {
- return getGroundingSupportsFieldBuilder()
- .addBuilder(com.google.cloud.aiplatform.v1beta1.GroundingSupport.getDefaultInstance());
+ public java.util.List- * Optional. List of grounding support. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder addGroundingSupportsBuilder(
- int index) {
- return getGroundingSupportsFieldBuilder()
- .addBuilder(
- index, com.google.cloud.aiplatform.v1beta1.GroundingSupport.getDefaultInstance());
+ public int getSourceFlaggingUrisCount() {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ return sourceFlaggingUris_.size();
+ } else {
+ return sourceFlaggingUrisBuilder_.getCount();
+ }
}
/**
*
*
* - * Optional. List of grounding support. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public java.util.List- * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return Whether the retrievalMetadata field is set.
*/
- public boolean hasRetrievalMetadata() {
- return ((bitField0_ & 0x00000020) != 0);
+ public Builder setSourceFlaggingUris(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri value) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.set(index, value);
+ onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.setMessage(index, value);
+ }
+ return this;
}
/**
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return The retrievalMetadata.
*/
- public com.google.cloud.aiplatform.v1beta1.RetrievalMetadata getRetrievalMetadata() {
- if (retrievalMetadataBuilder_ == null) {
- return retrievalMetadata_ == null
- ? com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.getDefaultInstance()
- : retrievalMetadata_;
+ public Builder setSourceFlaggingUris(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder
+ builderForValue) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.set(index, builderForValue.build());
+ onChanged();
} else {
- return retrievalMetadataBuilder_.getMessage();
+ sourceFlaggingUrisBuilder_.setMessage(index, builderForValue.build());
}
+ return this;
}
/**
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public Builder setRetrievalMetadata(
- com.google.cloud.aiplatform.v1beta1.RetrievalMetadata value) {
- if (retrievalMetadataBuilder_ == null) {
+ public Builder addSourceFlaggingUris(
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri value) {
+ if (sourceFlaggingUrisBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- retrievalMetadata_ = value;
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.add(value);
+ onChanged();
} else {
- retrievalMetadataBuilder_.setMessage(value);
+ sourceFlaggingUrisBuilder_.addMessage(value);
}
- bitField0_ |= 0x00000020;
- onChanged();
return this;
}
@@ -2692,22 +4232,26 @@ public Builder setRetrievalMetadata(
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public Builder setRetrievalMetadata(
- com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.Builder builderForValue) {
- if (retrievalMetadataBuilder_ == null) {
- retrievalMetadata_ = builderForValue.build();
+ public Builder addSourceFlaggingUris(
+ int index, com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri value) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.add(index, value);
+ onChanged();
} else {
- retrievalMetadataBuilder_.setMessage(builderForValue.build());
+ sourceFlaggingUrisBuilder_.addMessage(index, value);
}
- bitField0_ |= 0x00000020;
- onChanged();
return this;
}
@@ -2715,30 +4259,23 @@ public Builder setRetrievalMetadata(
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public Builder mergeRetrievalMetadata(
- com.google.cloud.aiplatform.v1beta1.RetrievalMetadata value) {
- if (retrievalMetadataBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)
- && retrievalMetadata_ != null
- && retrievalMetadata_
- != com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.getDefaultInstance()) {
- getRetrievalMetadataBuilder().mergeFrom(value);
- } else {
- retrievalMetadata_ = value;
- }
- } else {
- retrievalMetadataBuilder_.mergeFrom(value);
- }
- if (retrievalMetadata_ != null) {
- bitField0_ |= 0x00000020;
+ public Builder addSourceFlaggingUris(
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder
+ builderForValue) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.add(builderForValue.build());
onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.addMessage(builderForValue.build());
}
return this;
}
@@ -2747,21 +4284,25 @@ public Builder mergeRetrievalMetadata(
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public Builder clearRetrievalMetadata() {
- bitField0_ = (bitField0_ & ~0x00000020);
- retrievalMetadata_ = null;
- if (retrievalMetadataBuilder_ != null) {
- retrievalMetadataBuilder_.dispose();
- retrievalMetadataBuilder_ = null;
+ public Builder addSourceFlaggingUris(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder
+ builderForValue) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.addMessage(index, builderForValue.build());
}
- onChanged();
return this;
}
@@ -2769,115 +4310,109 @@ public Builder clearRetrievalMetadata() {
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.Builder
- getRetrievalMetadataBuilder() {
- bitField0_ |= 0x00000020;
- onChanged();
- return getRetrievalMetadataFieldBuilder().getBuilder();
+ public Builder addAllSourceFlaggingUris(
+ java.lang.Iterable<
+ ? extends com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri>
+ values) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceFlaggingUris_);
+ onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.addAllMessages(values);
+ }
+ return this;
}
/**
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- public com.google.cloud.aiplatform.v1beta1.RetrievalMetadataOrBuilder
- getRetrievalMetadataOrBuilder() {
- if (retrievalMetadataBuilder_ != null) {
- return retrievalMetadataBuilder_.getMessageOrBuilder();
+ public Builder clearSourceFlaggingUris() {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ sourceFlaggingUris_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
} else {
- return retrievalMetadata_ == null
- ? com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.getDefaultInstance()
- : retrievalMetadata_;
+ sourceFlaggingUrisBuilder_.clear();
}
+ return this;
}
/**
*
*
* - * Optional. Output only. Retrieval metadata. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional .google.cloud.aiplatform.v1beta1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1beta1.RetrievalMetadata,
- com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.Builder,
- com.google.cloud.aiplatform.v1beta1.RetrievalMetadataOrBuilder>
- getRetrievalMetadataFieldBuilder() {
- if (retrievalMetadataBuilder_ == null) {
- retrievalMetadataBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.aiplatform.v1beta1.RetrievalMetadata,
- com.google.cloud.aiplatform.v1beta1.RetrievalMetadata.Builder,
- com.google.cloud.aiplatform.v1beta1.RetrievalMetadataOrBuilder>(
- getRetrievalMetadata(), getParentForChildren(), isClean());
- retrievalMetadata_ = null;
+ public Builder removeSourceFlaggingUris(int index) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ ensureSourceFlaggingUrisIsMutable();
+ sourceFlaggingUris_.remove(index);
+ onChanged();
+ } else {
+ sourceFlaggingUrisBuilder_.remove(index);
}
- return retrievalMetadataBuilder_;
+ return this;
}
- private java.lang.Object googleMapsWidgetContextToken_ = "";
-
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return Whether the googleMapsWidgetContextToken field is set.
*/
- public boolean hasGoogleMapsWidgetContextToken() {
- return ((bitField0_ & 0x00000040) != 0);
+ public com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder
+ getSourceFlaggingUrisBuilder(int index) {
+ return getSourceFlaggingUrisFieldBuilder().getBuilder(index);
}
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return The googleMapsWidgetContextToken.
*/
- public java.lang.String getGoogleMapsWidgetContextToken() {
- java.lang.Object ref = googleMapsWidgetContextToken_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- googleMapsWidgetContextToken_ = s;
- return s;
+ public com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUriOrBuilder
+ getSourceFlaggingUrisOrBuilder(int index) {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ return sourceFlaggingUris_.get(index);
} else {
- return (java.lang.String) ref;
+ return sourceFlaggingUrisBuilder_.getMessageOrBuilder(index);
}
}
@@ -2885,26 +4420,22 @@ public java.lang.String getGoogleMapsWidgetContextToken() {
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return The bytes for googleMapsWidgetContextToken.
*/
- public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
- java.lang.Object ref = googleMapsWidgetContextToken_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- googleMapsWidgetContextToken_ = b;
- return b;
+ public java.util.List<
+ ? extends
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUriOrBuilder>
+ getSourceFlaggingUrisOrBuilderList() {
+ if (sourceFlaggingUrisBuilder_ != null) {
+ return sourceFlaggingUrisBuilder_.getMessageOrBuilderList();
} else {
- return (com.google.protobuf.ByteString) ref;
+ return java.util.Collections.unmodifiableList(sourceFlaggingUris_);
}
}
@@ -2912,75 +4443,79 @@ public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes() {
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @param value The googleMapsWidgetContextToken to set.
- * @return This builder for chaining.
*/
- public Builder setGoogleMapsWidgetContextToken(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- googleMapsWidgetContextToken_ = value;
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
+ public com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder
+ addSourceFlaggingUrisBuilder() {
+ return getSourceFlaggingUrisFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri
+ .getDefaultInstance());
}
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @return This builder for chaining.
*/
- public Builder clearGoogleMapsWidgetContextToken() {
- googleMapsWidgetContextToken_ = getDefaultInstance().getGoogleMapsWidgetContextToken();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- return this;
+ public com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder
+ addSourceFlaggingUrisBuilder(int index) {
+ return getSourceFlaggingUrisFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri
+ .getDefaultInstance());
}
/**
*
*
* - * Optional. Output only. Resource name of the Google Maps widget context - * token to be used with the PlacesContextElement widget to render contextual - * data. This is populated only for Google Maps grounding. + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. ** *
- * optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
*
- *
- * @param value The bytes for googleMapsWidgetContextToken to set.
- * @return This builder for chaining.
*/
- public Builder setGoogleMapsWidgetContextTokenBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public java.util.List<
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder>
+ getSourceFlaggingUrisBuilderList() {
+ return getSourceFlaggingUrisFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri,
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder,
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUriOrBuilder>
+ getSourceFlaggingUrisFieldBuilder() {
+ if (sourceFlaggingUrisBuilder_ == null) {
+ sourceFlaggingUrisBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri,
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri.Builder,
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUriOrBuilder>(
+ sourceFlaggingUris_,
+ ((bitField0_ & 0x00000080) != 0),
+ getParentForChildren(),
+ isClean());
+ sourceFlaggingUris_ = null;
}
- checkByteStringIsUtf8(value);
- googleMapsWidgetContextToken_ = value;
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
+ return sourceFlaggingUrisBuilder_;
}
@java.lang.Override
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadataOrBuilder.java
index 331073a357b4..8c93ae8398e7 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadataOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadataOrBuilder.java
@@ -392,4 +392,80 @@ com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder getGroundingSuppor
* @return The bytes for googleMapsWidgetContextToken.
*/
com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes();
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ java.util.List+ * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri getSourceFlaggingUris(
+ int index);
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ int getSourceFlaggingUrisCount();
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUriOrBuilder>
+ getSourceFlaggingUrisOrBuilderList();
+
+ /**
+ *
+ *
+ * + * List of source flagging uris. This is currently populated only for Google + * Maps grounding. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUriOrBuilder
+ getSourceFlaggingUrisOrBuilder(int index);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequest.java
index 9bb2612b2596..273ee8dc9905 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictRequest.java
@@ -56,6 +56,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.internal_static_google_cloud_aiplatform_v1beta1_PredictRequest_descriptor;
}
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 4:
+ return internalGetLabels();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
@@ -314,6 +326,117 @@ public com.google.protobuf.ValueOrBuilder getParametersOrBuilder() {
return parameters_ == null ? com.google.protobuf.Value.getDefaultInstance() : parameters_;
}
+ public static final int LABELS_FIELD_NUMBER = 4;
+
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000008;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ public Builder putAllLabels(java.util.Map.google.protobuf.Value parameters = 3;
*/
com.google.protobuf.ValueOrBuilder getParametersOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ int getLabelsCount();
+
+ /**
+ *
+ *
+ * + * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ boolean containsLabels(java.lang.String key);
+
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ java.util.Map+ * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ /* nullable */
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
+
+ /**
+ *
+ *
+ * + * Optional. The user labels for Imagen billing usage only. Only Imagen + * supports labels. For other use cases, it will be ignored. + *+ * + *
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ java.lang.String getLabelsOrThrow(java.lang.String key);
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java
index 35ecb377c17f..91fa40213fc8 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java
@@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_PredictRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_PredictRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_PredictRequest_LabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_PredictRequest_LabelsEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_aiplatform_v1beta1_PredictResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -165,288 +169,295 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
static {
java.lang.String[] descriptorData = {
- "\n"
- + "8google/cloud/aiplatform/v1beta1/prediction_service.proto\022\037google.cloud.aiplatf"
+ "\n8google/cloud/aiplatform/v1beta1/predic"
+ + "tion_service.proto\022\037google.cloud.aiplatf"
+ "orm.v1beta1\032\034google/api/annotations.prot"
+ "o\032\027google/api/client.proto\032\037google/api/f"
+ "ield_behavior.proto\032\031google/api/httpbody"
+ ".proto\032\031google/api/resource.proto\032-googl"
- + "e/cloud/aiplatform/v1beta1/content.proto\0321google/cloud/aiplatform/v1beta1/explan"
- + "ation.proto\032*google/cloud/aiplatform/v1beta1/tool.proto\032+google/cloud/aiplatform"
+ + "e/cloud/aiplatform/v1beta1/content.proto"
+ + "\0321google/cloud/aiplatform/v1beta1/explan"
+ + "ation.proto\032*google/cloud/aiplatform/v1b"
+ + "eta1/tool.proto\032+google/cloud/aiplatform"
+ "/v1beta1/types.proto\032\034google/protobuf/st"
- + "ruct.proto\032\037google/protobuf/timestamp.proto\"\252\001\n"
- + "\016PredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022.\n"
- + "\tinstances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\002\022*\n\n"
- + "parameters\030\003 \001(\0132\026.google.protobuf.Value\"\200\002\n"
- + "\017PredictResponse\022+\n"
- + "\013predictions\030\001 \003(\0132\026.google.protobuf.Value\022\031\n"
- + "\021deployed_model_id\030\002 \001(\t\0226\n"
- + "\005model\030\003 \001(\tB\'\340A\003\372A!\n"
- + "\037aiplatform.googleapis.com/Model\022\035\n"
- + "\020model_version_id\030\005 \001(\tB\003\340A\003\022\037\n"
- + "\022model_display_name\030\004 \001(\tB\003\340A\003\022-\n"
- + "\010metadata\030\006 \001(\0132\026.google.protobuf.ValueB\003\340A\003\"z\n"
- + "\021RawPredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022\'\n"
- + "\thttp_body\030\002 \001(\0132\024.google.api.HttpBody\"\200\001\n"
- + "\027StreamRawPredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022\'\n"
- + "\thttp_body\030\002 \001(\0132\024.google.api.HttpBody\"\312\001\n"
- + "\024DirectPredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\0227\n"
- + "\006inputs\030\002 \003(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\022;\n\n"
- + "parameters\030\003 \001(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\"\216\001\n"
- + "\025DirectPredictResponse\0228\n"
- + "\007outputs\030\001 \003(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\022;\n\n"
- + "parameters\030\002 \001(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\"{\n"
- + "\027DirectRawPredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022\023\n"
- + "\013method_name\030\002 \001(\t\022\r\n"
- + "\005input\030\003 \001(\014\"*\n"
- + "\030DirectRawPredictResponse\022\016\n"
- + "\006output\030\001 \001(\014\"\332\001\n"
- + "\032StreamDirectPredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022<\n"
- + "\006inputs\030\002 \003(\0132\'"
- + ".google.cloud.aiplatform.v1beta1.TensorB\003\340A\001\022@\n\n"
- + "parameters\030\003"
- + " \001(\0132\'.google.cloud.aiplatform.v1beta1.TensorB\003\340A\001\"\224\001\n"
- + "\033StreamDirectPredictResponse\0228\n"
- + "\007outputs\030\001 \003(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\022;\n\n"
- + "parameters\030\002 \001(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\"\213\001\n"
- + "\035StreamDirectRawPredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022\030\n"
- + "\013method_name\030\002 \001(\tB\003\340A\001\022\022\n"
- + "\005input\030\003 \001(\014B\003\340A\001\"0\n"
- + "\036StreamDirectRawPredictResponse\022\016\n"
- + "\006output\030\001 \001(\014\"\315\001\n"
- + "\027StreamingPredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\0227\n"
- + "\006inputs\030\002 \003(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\022;\n\n"
- + "parameters\030\003 \001(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\"\221\001\n"
- + "\030StreamingPredictResponse\0228\n"
- + "\007outputs\030\001 \003(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\022;\n\n"
- + "parameters\030\002 \001(\0132\'.google.cloud.aiplatform.v1beta1.Tensor\"~\n"
- + "\032StreamingRawPredictRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022\023\n"
- + "\013method_name\030\002 \001(\t\022\r\n"
- + "\005input\030\003 \001(\014\"-\n"
- + "\033StreamingRawPredictResponse\022\016\n"
- + "\006output\030\001 \001(\014\"\263\004\n"
- + "\016ExplainRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022.\n"
- + "\tinstances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\002\022*\n\n"
- + "parameters\030\004 \001(\0132\026.google.protobuf.Value\022[\n"
- + "\031explanation_spec_override\030\005 \001(\01328.googl"
- + "e.cloud.aiplatform.v1beta1.ExplanationSpecOverride\022\211\001\n"
- + "$concurrent_explanation_spec_override\030\006 \003(\0132V.google.cloud.aiplatf"
- + "orm.v1beta1.ExplainRequest.ConcurrentExplanationSpecOverrideEntryB\003\340A\001\022\031\n"
- + "\021deployed_model_id\030\003 \001(\t\032\202\001\n"
- + "&ConcurrentExplanationSpecOverrideEntry\022\013\n"
- + "\003key\030\001 \001(\t\022G\n"
- + "\005value\030\002"
- + " \001(\01328.google.cloud.aiplatform.v1beta1.ExplanationSpecOverride:\0028\001\"\361\003\n"
- + "\017ExplainResponse\022B\n"
- + "\014explanations\030\001 \003(\0132,.googl"
- + "e.cloud.aiplatform.v1beta1.Explanation\022m\n"
- + "\027concurrent_explanations\030\004 \003(\0132L.google"
- + ".cloud.aiplatform.v1beta1.ExplainResponse.ConcurrentExplanationsEntry\022\031\n"
- + "\021deployed_model_id\030\002 \001(\t\022+\n"
- + "\013predictions\030\003 \003(\0132\026.google.protobuf.Value\032[\n"
- + "\025ConcurrentExplanation\022B\n"
- + "\014explanations\030\001"
- + " \003(\0132,.google.cloud.aiplatform.v1beta1.Explanation\032\205\001\n"
- + "\033ConcurrentExplanationsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022U\n"
- + "\005value\030\002 \001(\0132F.google.cloud.aiplatform"
- + ".v1beta1.ExplainResponse.ConcurrentExplanation:\0028\001\"\347\003\n"
- + "\022CountTokensRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022\022\n"
- + "\005model\030\003 \001(\tB\003\340A\001\022.\n"
- + "\tinstances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\001\022?\n"
- + "\010contents\030\004"
- + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\022N\n"
- + "\022system_instruction\030\005"
- + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001H\000\210\001\001\0229\n"
- + "\005tools\030\006 "
- + "\003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001\022V\n"
- + "\021generation_config\030\007 \001(\01321.goo"
- + "gle.cloud.aiplatform.v1beta1.GenerationConfigB\003\340A\001H\001\210\001\001B\025\n"
- + "\023_system_instructionB\024\n"
- + "\022_generation_config\"\247\001\n"
- + "\023CountTokensResponse\022\024\n"
- + "\014total_tokens\030\001 \001(\005\022!\n"
- + "\031total_billable_characters\030\002 \001(\005\022W\n"
- + "\025prompt_tokens_details\030\003"
- + " \003(\01323.google.cloud.aiplatform.v1beta1.ModalityTokenCountB\003\340A\003\"\235\006\n"
- + "\026GenerateContentRequest\022\022\n"
- + "\005model\030\005 \001(\tB\003\340A\002\022?\n"
- + "\010contents\030\002"
- + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\002\022N\n"
- + "\022system_instruction\030\010"
- + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001H\000\210\001\001\022G\n"
- + "\016cached_content\030\t \001(\tB/\340A\001\372A)\n"
- + "\'aiplatform.googleapis.com/CachedContent\0229\n"
- + "\005tools\030\006"
- + " \003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001\022E\n"
- + "\013tool_config\030\007"
- + " \001(\0132+.google.cloud.aiplatform.v1beta1.ToolConfigB\003\340A\001\022X\n"
- + "\006labels\030\n"
- + " \003("
- + "\0132C.google.cloud.aiplatform.v1beta1.GenerateContentRequest.LabelsEntryB\003\340A\001\022L\n"
- + "\017safety_settings\030\003"
- + " \003(\0132..google.cloud.aiplatform.v1beta1.SafetySettingB\003\340A\001\022R\n"
- + "\022model_armor_config\030\013"
- + " \001(\01321.google.cloud.aiplatform.v1beta1.ModelArmorConfigB\003\340A\001\022Q\n"
- + "\021generation_config\030\004 \001(\01321.google.cloud."
- + "aiplatform.v1beta1.GenerationConfigB\003\340A\001\032-\n"
- + "\013LabelsEntry\022\013\n"
- + "\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001B\025\n"
- + "\023_system_instruction\"\310\t\n"
- + "\027GenerateContentResponse\022C\n\n"
- + "candidates\030\002 \003(\0132*"
- + ".google.cloud.aiplatform.v1beta1.CandidateB\003\340A\003\022\032\n\r"
- + "model_version\030\013 \001(\tB\003\340A\003\0224\n"
- + "\013create_time\030\014"
- + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n"
- + "\013response_id\030\r"
- + " \001(\tB\003\340A\003\022e\n"
- + "\017prompt_feedback\030\003 \001(\0132G.google.cloud.aipl"
- + "atform.v1beta1.GenerateContentResponse.PromptFeedbackB\003\340A\003\022^\n"
- + "\016usage_metadata\030\004 \001"
- + "(\0132F.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata\032\361\002\n"
- + "\016PromptFeedback\022p\n"
- + "\014block_reason\030\001 \001(\0162U.google.cloud.aiplatform.v1beta1.GenerateCo"
- + "ntentResponse.PromptFeedback.BlockedReasonB\003\340A\003\022J\n"
- + "\016safety_ratings\030\002 \003(\0132-.google"
- + ".cloud.aiplatform.v1beta1.SafetyRatingB\003\340A\003\022!\n"
- + "\024block_reason_message\030\003 \001(\tB\003\340A\003\"~\n\r"
- + "BlockedReason\022\036\n"
- + "\032BLOCKED_REASON_UNSPECIFIED\020\000\022\n\n"
- + "\006SAFETY\020\001\022\t\n"
- + "\005OTHER\020\002\022\r\n"
- + "\tBLOCKLIST\020\003\022\026\n"
- + "\022PROHIBITED_CONTENT\020\004\022\017\n"
- + "\013MODEL_ARMOR\020\005\032\300\003\n\r"
- + "UsageMetadata\022\032\n"
- + "\022prompt_token_count\030\001 \001(\005\022\036\n"
- + "\026candidates_token_count\030\002 \001(\005\022!\n"
- + "\024thoughts_token_count\030\016 \001(\005B\003\340A\003\022\031\n"
- + "\021total_token_count\030\003 \001(\005\022\'\n"
- + "\032cached_content_token_count\030\005 \001(\005B\003\340A\003\022W\n"
- + "\025prompt_tokens_details\030\t"
- + " \003(\01323.google.cloud.aiplatform.v1beta1.ModalityTokenCountB\003\340A\003\022V\n"
- + "\024cache_tokens_details\030\n"
- + " \003(\01323.google.cloud.aiplatform.v1beta1.ModalityTokenCountB\003\340A\003\022[\n"
- + "\031candidates_tokens_details\030\013 \003(\0132"
- + "3.google.cloud.aiplatform.v1beta1.ModalityTokenCountB\003\340A\003\"\204\001\n"
- + "\026ChatCompletionsRequest\022<\n"
- + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
- + "\"aiplatform.googleapis.com/Endpoint\022,\n"
- + "\thttp_body\030\002 \001(\0132\024.google.api.HttpBodyB\003\340A\001\"\203\001\n"
- + "\032PredictLongRunningResponse\022Y\n"
- + "\027generate_video_response\030\001"
- + " \001(\01326.google.cloud.aiplatform.v1beta1.GenerateVideoResponseH\000B\n\n"
- + "\010response\"\034\n"
- + "\032PredictLongRunningMetadata\"\232\001\n"
- + "\025GenerateVideoResponse\022\031\n"
- + "\021generated_samples\030\001 \003(\t\022%\n"
- + "\030rai_media_filtered_count\030\002 \001(\005H\000\210\001\001\022\"\n"
- + "\032rai_media_filtered_reasons\030\003 \003(\tB\033\n"
- + "\031_rai_media_filtered_count2\301 \n"
- + "\021PredictionService\022\250\002\n"
- + "\007Predict\022/.google.cloud.aiplatform.v1beta1.PredictRequest\0320.g"
+ + "ruct.proto\032\037google/protobuf/timestamp.pr"
+ + "oto\"\253\002\n\016PredictRequest\022<\n\010endpoint\030\001 \001(\t"
+ + "B*\340A\002\372A$\n\"aiplatform.googleapis.com/Endp"
+ + "oint\022.\n\tinstances\030\002 \003(\0132\026.google.protobu"
+ + "f.ValueB\003\340A\002\022*\n\nparameters\030\003 \001(\0132\026.googl"
+ + "e.protobuf.Value\022P\n\006labels\030\004 \003(\0132;.googl"
+ + "e.cloud.aiplatform.v1beta1.PredictReques"
+ + "t.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key"
+ + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\002\n\017PredictRes"
+ + "ponse\022+\n\013predictions\030\001 \003(\0132\026.google.prot"
+ + "obuf.Value\022\031\n\021deployed_model_id\030\002 \001(\t\0226\n"
+ + "\005model\030\003 \001(\tB\'\340A\003\372A!\n\037aiplatform.googlea"
+ + "pis.com/Model\022\035\n\020model_version_id\030\005 \001(\tB"
+ + "\003\340A\003\022\037\n\022model_display_name\030\004 \001(\tB\003\340A\003\022-\n"
+ + "\010metadata\030\006 \001(\0132\026.google.protobuf.ValueB"
+ + "\003\340A\003\"z\n\021RawPredictRequest\022<\n\010endpoint\030\001 "
+ + "\001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/E"
+ + "ndpoint\022\'\n\thttp_body\030\002 \001(\0132\024.google.api."
+ + "HttpBody\"\200\001\n\027StreamRawPredictRequest\022<\n\010"
+ + "endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googl"
+ + "eapis.com/Endpoint\022\'\n\thttp_body\030\002 \001(\0132\024."
+ + "google.api.HttpBody\"\312\001\n\024DirectPredictReq"
+ + "uest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatfo"
+ + "rm.googleapis.com/Endpoint\0227\n\006inputs\030\002 \003"
+ + "(\0132\'.google.cloud.aiplatform.v1beta1.Ten"
+ + "sor\022;\n\nparameters\030\003 \001(\0132\'.google.cloud.a"
+ + "iplatform.v1beta1.Tensor\"\216\001\n\025DirectPredi"
+ + "ctResponse\0228\n\007outputs\030\001 \003(\0132\'.google.clo"
+ + "ud.aiplatform.v1beta1.Tensor\022;\n\nparamete"
+ + "rs\030\002 \001(\0132\'.google.cloud.aiplatform.v1bet"
+ + "a1.Tensor\"{\n\027DirectRawPredictRequest\022<\n\010"
+ + "endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googl"
+ + "eapis.com/Endpoint\022\023\n\013method_name\030\002 \001(\t\022"
+ + "\r\n\005input\030\003 \001(\014\"*\n\030DirectRawPredictRespon"
+ + "se\022\016\n\006output\030\001 \001(\014\"\332\001\n\032StreamDirectPredi"
+ + "ctRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aip"
+ + "latform.googleapis.com/Endpoint\022<\n\006input"
+ + "s\030\002 \003(\0132\'.google.cloud.aiplatform.v1beta"
+ + "1.TensorB\003\340A\001\022@\n\nparameters\030\003 \001(\0132\'.goog"
+ + "le.cloud.aiplatform.v1beta1.TensorB\003\340A\001\""
+ + "\224\001\n\033StreamDirectPredictResponse\0228\n\007outpu"
+ + "ts\030\001 \003(\0132\'.google.cloud.aiplatform.v1bet"
+ + "a1.Tensor\022;\n\nparameters\030\002 \001(\0132\'.google.c"
+ + "loud.aiplatform.v1beta1.Tensor\"\213\001\n\035Strea"
+ + "mDirectRawPredictRequest\022<\n\010endpoint\030\001 \001"
+ + "(\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/En"
+ + "dpoint\022\030\n\013method_name\030\002 \001(\tB\003\340A\001\022\022\n\005inpu"
+ + "t\030\003 \001(\014B\003\340A\001\"0\n\036StreamDirectRawPredictRe"
+ + "sponse\022\016\n\006output\030\001 \001(\014\"\315\001\n\027StreamingPred"
+ + "ictRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"ai"
+ + "platform.googleapis.com/Endpoint\0227\n\006inpu"
+ + "ts\030\002 \003(\0132\'.google.cloud.aiplatform.v1bet"
+ + "a1.Tensor\022;\n\nparameters\030\003 \001(\0132\'.google.c"
+ + "loud.aiplatform.v1beta1.Tensor\"\221\001\n\030Strea"
+ + "mingPredictResponse\0228\n\007outputs\030\001 \003(\0132\'.g"
+ + "oogle.cloud.aiplatform.v1beta1.Tensor\022;\n"
+ + "\nparameters\030\002 \001(\0132\'.google.cloud.aiplatf"
+ + "orm.v1beta1.Tensor\"~\n\032StreamingRawPredic"
+ + "tRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aipl"
+ + "atform.googleapis.com/Endpoint\022\023\n\013method"
+ + "_name\030\002 \001(\t\022\r\n\005input\030\003 \001(\014\"-\n\033StreamingR"
+ + "awPredictResponse\022\016\n\006output\030\001 \001(\014\"\263\004\n\016Ex"
+ + "plainRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\""
+ + "aiplatform.googleapis.com/Endpoint\022.\n\tin"
+ + "stances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340"
+ + "A\002\022*\n\nparameters\030\004 \001(\0132\026.google.protobuf"
+ + ".Value\022[\n\031explanation_spec_override\030\005 \001("
+ + "\01328.google.cloud.aiplatform.v1beta1.Expl"
+ + "anationSpecOverride\022\211\001\n$concurrent_expla"
+ + "nation_spec_override\030\006 \003(\0132V.google.clou"
+ + "d.aiplatform.v1beta1.ExplainRequest.Conc"
+ + "urrentExplanationSpecOverrideEntryB\003\340A\001\022"
+ + "\031\n\021deployed_model_id\030\003 \001(\t\032\202\001\n&Concurren"
+ + "tExplanationSpecOverrideEntry\022\013\n\003key\030\001 \001"
+ + "(\t\022G\n\005value\030\002 \001(\01328.google.cloud.aiplatf"
+ + "orm.v1beta1.ExplanationSpecOverride:\0028\001\""
+ + "\361\003\n\017ExplainResponse\022B\n\014explanations\030\001 \003("
+ + "\0132,.google.cloud.aiplatform.v1beta1.Expl"
+ + "anation\022m\n\027concurrent_explanations\030\004 \003(\013"
+ + "2L.google.cloud.aiplatform.v1beta1.Expla"
+ + "inResponse.ConcurrentExplanationsEntry\022\031"
+ + "\n\021deployed_model_id\030\002 \001(\t\022+\n\013predictions"
+ + "\030\003 \003(\0132\026.google.protobuf.Value\032[\n\025Concur"
+ + "rentExplanation\022B\n\014explanations\030\001 \003(\0132,."
+ + "google.cloud.aiplatform.v1beta1.Explanat"
+ + "ion\032\205\001\n\033ConcurrentExplanationsEntry\022\013\n\003k"
+ + "ey\030\001 \001(\t\022U\n\005value\030\002 \001(\0132F.google.cloud.a"
+ + "iplatform.v1beta1.ExplainResponse.Concur"
+ + "rentExplanation:\0028\001\"\347\003\n\022CountTokensReque"
+ + "st\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform"
+ + ".googleapis.com/Endpoint\022\022\n\005model\030\003 \001(\tB"
+ + "\003\340A\001\022.\n\tinstances\030\002 \003(\0132\026.google.protobu"
+ + "f.ValueB\003\340A\001\022?\n\010contents\030\004 \003(\0132(.google."
+ + "cloud.aiplatform.v1beta1.ContentB\003\340A\001\022N\n"
+ + "\022system_instruction\030\005 \001(\0132(.google.cloud"
+ + ".aiplatform.v1beta1.ContentB\003\340A\001H\000\210\001\001\0229\n"
+ + "\005tools\030\006 \003(\0132%.google.cloud.aiplatform.v"
+ + "1beta1.ToolB\003\340A\001\022V\n\021generation_config\030\007 "
+ + "\001(\01321.google.cloud.aiplatform.v1beta1.Ge"
+ + "nerationConfigB\003\340A\001H\001\210\001\001B\025\n\023_system_inst"
+ + "ructionB\024\n\022_generation_config\"\247\001\n\023CountT"
+ + "okensResponse\022\024\n\014total_tokens\030\001 \001(\005\022!\n\031t"
+ + "otal_billable_characters\030\002 \001(\005\022W\n\025prompt"
+ + "_tokens_details\030\003 \003(\01323.google.cloud.aip"
+ + "latform.v1beta1.ModalityTokenCountB\003\340A\003\""
+ + "\235\006\n\026GenerateContentRequest\022\022\n\005model\030\005 \001("
+ + "\tB\003\340A\002\022?\n\010contents\030\002 \003(\0132(.google.cloud."
+ + "aiplatform.v1beta1.ContentB\003\340A\002\022N\n\022syste"
+ + "m_instruction\030\010 \001(\0132(.google.cloud.aipla"
+ + "tform.v1beta1.ContentB\003\340A\001H\000\210\001\001\022G\n\016cache"
+ + "d_content\030\t \001(\tB/\340A\001\372A)\n\'aiplatform.goog"
+ + "leapis.com/CachedContent\0229\n\005tools\030\006 \003(\0132"
+ + "%.google.cloud.aiplatform.v1beta1.ToolB\003"
+ + "\340A\001\022E\n\013tool_config\030\007 \001(\0132+.google.cloud."
+ + "aiplatform.v1beta1.ToolConfigB\003\340A\001\022X\n\006la"
+ + "bels\030\n \003(\0132C.google.cloud.aiplatform.v1b"
+ + "eta1.GenerateContentRequest.LabelsEntryB"
+ + "\003\340A\001\022L\n\017safety_settings\030\003 \003(\0132..google.c"
+ + "loud.aiplatform.v1beta1.SafetySettingB\003\340"
+ + "A\001\022R\n\022model_armor_config\030\013 \001(\01321.google."
+ + "cloud.aiplatform.v1beta1.ModelArmorConfi"
+ + "gB\003\340A\001\022Q\n\021generation_config\030\004 \001(\01321.goog"
+ + "le.cloud.aiplatform.v1beta1.GenerationCo"
+ + "nfigB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
+ + "\005value\030\002 \001(\t:\0028\001B\025\n\023_system_instruction\""
+ + "\310\t\n\027GenerateContentResponse\022C\n\ncandidate"
+ + "s\030\002 \003(\0132*.google.cloud.aiplatform.v1beta"
+ + "1.CandidateB\003\340A\003\022\032\n\rmodel_version\030\013 \001(\tB"
+ + "\003\340A\003\0224\n\013create_time\030\014 \001(\0132\032.google.proto"
+ + "buf.TimestampB\003\340A\003\022\030\n\013response_id\030\r \001(\tB"
+ + "\003\340A\003\022e\n\017prompt_feedback\030\003 \001(\0132G.google.c"
+ + "loud.aiplatform.v1beta1.GenerateContentR"
+ + "esponse.PromptFeedbackB\003\340A\003\022^\n\016usage_met"
+ + "adata\030\004 \001(\0132F.google.cloud.aiplatform.v1"
+ + "beta1.GenerateContentResponse.UsageMetad"
+ + "ata\032\361\002\n\016PromptFeedback\022p\n\014block_reason\030\001"
+ + " \001(\0162U.google.cloud.aiplatform.v1beta1.G"
+ + "enerateContentResponse.PromptFeedback.Bl"
+ + "ockedReasonB\003\340A\003\022J\n\016safety_ratings\030\002 \003(\013"
+ + "2-.google.cloud.aiplatform.v1beta1.Safet"
+ + "yRatingB\003\340A\003\022!\n\024block_reason_message\030\003 \001"
+ + "(\tB\003\340A\003\"~\n\rBlockedReason\022\036\n\032BLOCKED_REAS"
+ + "ON_UNSPECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022"
+ + "\r\n\tBLOCKLIST\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\022\017"
+ + "\n\013MODEL_ARMOR\020\005\032\300\003\n\rUsageMetadata\022\032\n\022pro"
+ + "mpt_token_count\030\001 \001(\005\022\036\n\026candidates_toke"
+ + "n_count\030\002 \001(\005\022!\n\024thoughts_token_count\030\016 "
+ + "\001(\005B\003\340A\003\022\031\n\021total_token_count\030\003 \001(\005\022\'\n\032c"
+ + "ached_content_token_count\030\005 \001(\005B\003\340A\003\022W\n\025"
+ + "prompt_tokens_details\030\t \003(\01323.google.clo"
+ + "ud.aiplatform.v1beta1.ModalityTokenCount"
+ + "B\003\340A\003\022V\n\024cache_tokens_details\030\n \003(\01323.go"
+ + "ogle.cloud.aiplatform.v1beta1.ModalityTo"
+ + "kenCountB\003\340A\003\022[\n\031candidates_tokens_detai"
+ + "ls\030\013 \003(\01323.google.cloud.aiplatform.v1bet"
+ + "a1.ModalityTokenCountB\003\340A\003\"\204\001\n\026ChatCompl"
+ + "etionsRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n"
+ + "\"aiplatform.googleapis.com/Endpoint\022,\n\th"
+ + "ttp_body\030\002 \001(\0132\024.google.api.HttpBodyB\003\340A"
+ + "\001\"\203\001\n\032PredictLongRunningResponse\022Y\n\027gene"
+ + "rate_video_response\030\001 \001(\01326.google.cloud"
+ + ".aiplatform.v1beta1.GenerateVideoRespons"
+ + "eH\000B\n\n\010response\"\034\n\032PredictLongRunningMet"
+ + "adata\"\232\001\n\025GenerateVideoResponse\022\031\n\021gener"
+ + "ated_samples\030\001 \003(\t\022%\n\030rai_media_filtered"
+ + "_count\030\002 \001(\005H\000\210\001\001\022\"\n\032rai_media_filtered_"
+ + "reasons\030\003 \003(\tB\033\n\031_rai_media_filtered_cou"
+ + "nt2\301 \n\021PredictionService\022\250\002\n\007Predict\022/.g"
+ "oogle.cloud.aiplatform.v1beta1.PredictRe"
- + "sponse\"\271\001\332A\035endpoint,instances,parameter"
- + "s\202\323\344\223\002\222\001\">/v1beta1/{endpoint=projects/*/"
- + "locations/*/endpoints/*}:predict:\001*ZM\"H/"
- + "v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict:\001*\022\215\002\n\n"
- + "RawPredict\0222.google.cloud.aiplatform.v1be"
- + "ta1.RawPredictRequest\032\024.google.api.HttpB"
- + "ody\"\264\001\332A\022endpoint,http_body\202\323\344\223\002\230\001\"A/v1b"
- + "eta1/{endpoint=projects/*/locations/*/endpoints/*}:rawPredict:\001*ZP\"K/v1beta1/{en"
- + "dpoint=projects/*/locations/*/publishers/*/models/*}:rawPredict:\001*\022\247\002\n"
- + "\020StreamRawPredict\0228.google.cloud.aiplatform.v1beta"
- + "1.StreamRawPredictRequest\032\024.google.api.H"
- + "ttpBody\"\300\001\332A\022endpoint,http_body\202\323\344\223\002\244\001\"G"
- + "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:streamRawPredict:\001*ZV\"Q/v"
- + "1beta1/{endpoint=projects/*/locations/*/"
- + "publishers/*/models/*}:streamRawPredict:\001*0\001\022\317\001\n\r"
- + "DirectPredict\0225.google.cloud.aiplatform.v1beta1.DirectPredictRequest\0326."
- + "google.cloud.aiplatform.v1beta1.DirectPr"
- + "edictResponse\"O\202\323\344\223\002I\"D/v1beta1/{endpoin"
- + "t=projects/*/locations/*/endpoints/*}:directPredict:\001*\022\333\001\n"
- + "\020DirectRawPredict\0228.google.cloud.aiplatform.v1beta1.DirectRawP"
- + "redictRequest\0329.google.cloud.aiplatform."
- + "v1beta1.DirectRawPredictResponse\"R\202\323\344\223\002L"
- + "\"G/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict:\001*\022\226\001\n"
- + "\023StreamDirectPredict\022;.google.cloud.aiplatform.v1beta1.StreamDirectPredictReques"
- + "t\032<.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse\"\000(\0010\001\022\237\001\n"
- + "\026StreamDirectRawPredict\022>.google.cloud.aiplatfo"
- + "rm.v1beta1.StreamDirectRawPredictRequest"
- + "\032?.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse\"\000(\0010\001\022\215\001\n"
- + "\020StreamingPredict\0228.google.cloud.aiplatform.v"
- + "1beta1.StreamingPredictRequest\0329.google."
- + "cloud.aiplatform.v1beta1.StreamingPredictResponse\"\000(\0010\001\022\311\002\n"
- + "\026ServerStreamingPredict\0228.google.cloud.aiplatform.v1beta1.Str"
- + "eamingPredictRequest\0329.google.cloud.aiplatform.v1beta1.StreamingPredictResponse\""
- + "\267\001\202\323\344\223\002\260\001\"M/v1beta1/{endpoint=projects/*"
- + "/locations/*/endpoints/*}:serverStreamingPredict:\001*Z\\\"W/v1beta1/{endpoint=projec"
- + "ts/*/locations/*/publishers/*/models/*}:serverStreamingPredict:\001*0\001\022\226\001\n"
- + "\023StreamingRawPredict\022;.google.cloud.aiplatform.v1"
- + "beta1.StreamingRawPredictRequest\032<.googl"
- + "e.cloud.aiplatform.v1beta1.StreamingRawPredictResponse\"\000(\0010\001\022\351\001\n"
- + "\007Explain\022/.google.cloud.aiplatform.v1beta1.ExplainReques"
- + "t\0320.google.cloud.aiplatform.v1beta1.Expl"
- + "ainResponse\"{\332A/endpoint,instances,param"
- + "eters,deployed_model_id\202\323\344\223\002C\">/v1beta1/"
- + "{endpoint=projects/*/locations/*/endpoints/*}:explain:\001*\022\237\003\n"
- + "\013CountTokens\0223.google.cloud.aiplatform.v1beta1.CountTokensRe"
- + "quest\0324.google.cloud.aiplatform.v1beta1."
- + "CountTokensResponse\"\244\002\332A\022endpoint,instan"
- + "ces\202\323\344\223\002\210\002\"B/v1beta1/{endpoint=projects/"
- + "*/locations/*/endpoints/*}:countTokens:\001*ZQ\"L/v1beta1/{endpoint=projects/*/locat"
- + "ions/*/publishers/*/models/*}:countTokens:\001*Z0\"+/v1beta1/{endpoint=endpoints/*}:"
- + "countTokens:\001*Z:\"5/v1beta1/{endpoint=publishers/*/models/*}:countTokens:\001*\022\253\003\n"
- + "\017GenerateContent\0227.google.cloud.aiplatform"
- + ".v1beta1.GenerateContentRequest\0328.google.cloud.aiplatform.v1beta1.GenerateConten"
- + "tResponse\"\244\002\332A\016model,contents\202\323\344\223\002\214\002\"C/v"
- + "1beta1/{model=projects/*/locations/*/endpoints/*}:generateContent:\001*ZR\"M/v1beta1"
- + "/{model=projects/*/locations/*/publishers/*/models/*}:generateContent:\001*Z1\",/v1b"
- + "eta1/{model=endpoints/*}:generateContent"
- + ":\001*Z;\"6/v1beta1/{model=publishers/*/models/*}:generateContent:\001*\022\313\003\n"
- + "\025StreamGenerateContent\0227.google.cloud.aiplatform.v1b"
- + "eta1.GenerateContentRequest\0328.google.cloud.aiplatform.v1beta1.GenerateContentRes"
- + "ponse\"\274\002\332A\016model,contents\202\323\344\223\002\244\002\"I/v1bet"
- + "a1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent:\001*ZX\"S/v1bet"
- + "a1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent:\001*"
- + "Z7\"2/v1beta1/{model=endpoints/*}:streamGenerateContent:\001*ZA\"/v1beta1/{endpoint=pr"
+ + "ojects/*/locations/*/endpoints/*}:predic"
+ + "t:\001*ZM\"H/v1beta1/{endpoint=projects/*/lo"
+ + "cations/*/publishers/*/models/*}:predict"
+ + ":\001*\022\215\002\n\nRawPredict\0222.google.cloud.aiplat"
+ + "form.v1beta1.RawPredictRequest\032\024.google."
+ + "api.HttpBody\"\264\001\332A\022endpoint,http_body\202\323\344\223"
+ + "\002\230\001\"A/v1beta1/{endpoint=projects/*/locat"
+ + "ions/*/endpoints/*}:rawPredict:\001*ZP\"K/v1"
+ + "beta1/{endpoint=projects/*/locations/*/p"
+ + "ublishers/*/models/*}:rawPredict:\001*\022\247\002\n\020"
+ + "StreamRawPredict\0228.google.cloud.aiplatfo"
+ + "rm.v1beta1.StreamRawPredictRequest\032\024.goo"
+ + "gle.api.HttpBody\"\300\001\332A\022endpoint,http_body"
+ + "\202\323\344\223\002\244\001\"G/v1beta1/{endpoint=projects/*/l"
+ + "ocations/*/endpoints/*}:streamRawPredict"
+ + ":\001*ZV\"Q/v1beta1/{endpoint=projects/*/loc"
+ + "ations/*/publishers/*/models/*}:streamRa"
+ + "wPredict:\001*0\001\022\317\001\n\rDirectPredict\0225.google"
+ + ".cloud.aiplatform.v1beta1.DirectPredictR"
+ + "equest\0326.google.cloud.aiplatform.v1beta1"
+ + ".DirectPredictResponse\"O\202\323\344\223\002I\"D/v1beta1"
+ + "/{endpoint=projects/*/locations/*/endpoi"
+ + "nts/*}:directPredict:\001*\022\333\001\n\020DirectRawPre"
+ + "dict\0228.google.cloud.aiplatform.v1beta1.D"
+ + "irectRawPredictRequest\0329.google.cloud.ai"
+ + "platform.v1beta1.DirectRawPredictRespons"
+ + "e\"R\202\323\344\223\002L\"G/v1beta1/{endpoint=projects/*"
+ + "/locations/*/endpoints/*}:directRawPredi"
+ + "ct:\001*\022\226\001\n\023StreamDirectPredict\022;.google.c"
+ + "loud.aiplatform.v1beta1.StreamDirectPred"
+ + "ictRequest\032<.google.cloud.aiplatform.v1b"
+ + "eta1.StreamDirectPredictResponse\"\000(\0010\001\022\237"
+ + "\001\n\026StreamDirectRawPredict\022>.google.cloud"
+ + ".aiplatform.v1beta1.StreamDirectRawPredi"
+ + "ctRequest\032?.google.cloud.aiplatform.v1be"
+ + "ta1.StreamDirectRawPredictResponse\"\000(\0010\001"
+ + "\022\215\001\n\020StreamingPredict\0228.google.cloud.aip"
+ + "latform.v1beta1.StreamingPredictRequest\032"
+ + "9.google.cloud.aiplatform.v1beta1.Stream"
+ + "ingPredictResponse\"\000(\0010\001\022\311\002\n\026ServerStrea"
+ + "mingPredict\0228.google.cloud.aiplatform.v1"
+ + "beta1.StreamingPredictRequest\0329.google.c"
+ + "loud.aiplatform.v1beta1.StreamingPredict"
+ + "Response\"\267\001\202\323\344\223\002\260\001\"M/v1beta1/{endpoint=p"
+ + "rojects/*/locations/*/endpoints/*}:serve"
+ + "rStreamingPredict:\001*Z\\\"W/v1beta1/{endpoi"
+ + "nt=projects/*/locations/*/publishers/*/m"
+ + "odels/*}:serverStreamingPredict:\001*0\001\022\226\001\n"
+ + "\023StreamingRawPredict\022;.google.cloud.aipl"
+ + "atform.v1beta1.StreamingRawPredictReques"
+ + "t\032<.google.cloud.aiplatform.v1beta1.Stre"
+ + "amingRawPredictResponse\"\000(\0010\001\022\351\001\n\007Explai"
+ + "n\022/.google.cloud.aiplatform.v1beta1.Expl"
+ + "ainRequest\0320.google.cloud.aiplatform.v1b"
+ + "eta1.ExplainResponse\"{\332A/endpoint,instan"
+ + "ces,parameters,deployed_model_id\202\323\344\223\002C\">"
+ + "/v1beta1/{endpoint=projects/*/locations/"
+ + "*/endpoints/*}:explain:\001*\022\237\003\n\013CountToken"
+ + "s\0223.google.cloud.aiplatform.v1beta1.Coun"
+ + "tTokensRequest\0324.google.cloud.aiplatform"
+ + ".v1beta1.CountTokensResponse\"\244\002\332A\022endpoi"
+ + "nt,instances\202\323\344\223\002\210\002\"B/v1beta1/{endpoint="
+ + "projects/*/locations/*/endpoints/*}:coun"
+ + "tTokens:\001*ZQ\"L/v1beta1/{endpoint=project"
+ + "s/*/locations/*/publishers/*/models/*}:c"
+ + "ountTokens:\001*Z0\"+/v1beta1/{endpoint=endp"
+ + "oints/*}:countTokens:\001*Z:\"5/v1beta1/{end"
+ + "point=publishers/*/models/*}:countTokens"
+ + ":\001*\022\253\003\n\017GenerateContent\0227.google.cloud.a"
+ + "iplatform.v1beta1.GenerateContentRequest"
+ + "\0328.google.cloud.aiplatform.v1beta1.Gener"
+ + "ateContentResponse\"\244\002\332A\016model,contents\202\323"
+ + "\344\223\002\214\002\"C/v1beta1/{model=projects/*/locati"
+ + "ons/*/endpoints/*}:generateContent:\001*ZR\""
+ + "M/v1beta1/{model=projects/*/locations/*/"
+ + "publishers/*/models/*}:generateContent:\001"
+ + "*Z1\",/v1beta1/{model=endpoints/*}:genera"
+ + "teContent:\001*Z;\"6/v1beta1/{model=publishe"
+ + "rs/*/models/*}:generateContent:\001*\022\313\003\n\025St"
+ + "reamGenerateContent\0227.google.cloud.aipla"
+ + "tform.v1beta1.GenerateContentRequest\0328.g"
+ + "oogle.cloud.aiplatform.v1beta1.GenerateC"
+ + "ontentResponse\"\274\002\332A\016model,contents\202\323\344\223\002\244"
+ + "\002\"I/v1beta1/{model=projects/*/locations/"
+ + "*/endpoints/*}:streamGenerateContent:\001*Z"
+ + "X\"S/v1beta1/{model=projects/*/locations/"
+ + "*/publishers/*/models/*}:streamGenerateC"
+ + "ontent:\001*Z7\"2/v1beta1/{model=endpoints/*"
+ + "}:streamGenerateContent:\001*ZA\"
*
* @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1beta1/tool.proto;l=330
+ * google/cloud/aiplatform/v1beta1/tool.proto;l=361
* @return The disableAttribution.
*/
@java.lang.Override
@@ -1149,7 +1149,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStore.Builder getVertexRagSt
*
*
* @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1beta1/tool.proto;l=330
+ * google/cloud/aiplatform/v1beta1/tool.proto;l=361
* @return The disableAttribution.
*/
@java.lang.Override
@@ -1170,7 +1170,7 @@ public boolean getDisableAttribution() {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1beta1/tool.proto;l=330
+ * google/cloud/aiplatform/v1beta1/tool.proto;l=361
* @param value The disableAttribution to set.
* @return This builder for chaining.
*/
@@ -1195,7 +1195,7 @@ public Builder setDisableAttribution(boolean value) {
*
*
* @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1beta1/tool.proto;l=330
+ * google/cloud/aiplatform/v1beta1/tool.proto;l=361
* @return This builder for chaining.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java
index e19afef9d5d5..8e69abfaa1ad 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalOrBuilder.java
@@ -113,7 +113,7 @@ public interface RetrievalOrBuilder
*
*
* @deprecated google.cloud.aiplatform.v1beta1.Retrieval.disable_attribution is deprecated. See
- * google/cloud/aiplatform/v1beta1/tool.proto;l=330
+ * google/cloud/aiplatform/v1beta1/tool.proto;l=361
* @return The disableAttribution.
*/
@java.lang.Deprecated
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java
index aa76e1ff57e1..24131006ff3e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java
@@ -70,6 +70,263 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1beta1.Tool.Builder.class);
}
+ /**
+ *
+ *
+ * + * These are available confidence level user can set to block malicious urls + * with chosen confidence and above. For understanding different confidence of + * webrisk, please refer to + * https://cloud.google.com/web-risk/docs/reference/rpc/google.cloud.webrisk.v1eap1#confidencelevel + *+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold} + */ + public enum PhishBlockThreshold implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Defaults to unspecified. + *+ * + *
PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0;
+ */
+ PHISH_BLOCK_THRESHOLD_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Blocks Low and above confidence URL that is risky. + *+ * + *
BLOCK_LOW_AND_ABOVE = 30;
+ */
+ BLOCK_LOW_AND_ABOVE(30),
+ /**
+ *
+ *
+ * + * Blocks Medium and above confidence URL that is risky. + *+ * + *
BLOCK_MEDIUM_AND_ABOVE = 40;
+ */
+ BLOCK_MEDIUM_AND_ABOVE(40),
+ /**
+ *
+ *
+ * + * Blocks High and above confidence URL that is risky. + *+ * + *
BLOCK_HIGH_AND_ABOVE = 50;
+ */
+ BLOCK_HIGH_AND_ABOVE(50),
+ /**
+ *
+ *
+ * + * Blocks Higher and above confidence URL that is risky. + *+ * + *
BLOCK_HIGHER_AND_ABOVE = 55;
+ */
+ BLOCK_HIGHER_AND_ABOVE(55),
+ /**
+ *
+ *
+ * + * Blocks Very high and above confidence URL that is risky. + *+ * + *
BLOCK_VERY_HIGH_AND_ABOVE = 60;
+ */
+ BLOCK_VERY_HIGH_AND_ABOVE(60),
+ /**
+ *
+ *
+ * + * Blocks Extremely high confidence URL that is risky. + *+ * + *
BLOCK_ONLY_EXTREMELY_HIGH = 100;
+ */
+ BLOCK_ONLY_EXTREMELY_HIGH(100),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Defaults to unspecified. + *+ * + *
PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0;
+ */
+ public static final int PHISH_BLOCK_THRESHOLD_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ * + * Blocks Low and above confidence URL that is risky. + *+ * + *
BLOCK_LOW_AND_ABOVE = 30;
+ */
+ public static final int BLOCK_LOW_AND_ABOVE_VALUE = 30;
+
+ /**
+ *
+ *
+ * + * Blocks Medium and above confidence URL that is risky. + *+ * + *
BLOCK_MEDIUM_AND_ABOVE = 40;
+ */
+ public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE = 40;
+
+ /**
+ *
+ *
+ * + * Blocks High and above confidence URL that is risky. + *+ * + *
BLOCK_HIGH_AND_ABOVE = 50;
+ */
+ public static final int BLOCK_HIGH_AND_ABOVE_VALUE = 50;
+
+ /**
+ *
+ *
+ * + * Blocks Higher and above confidence URL that is risky. + *+ * + *
BLOCK_HIGHER_AND_ABOVE = 55;
+ */
+ public static final int BLOCK_HIGHER_AND_ABOVE_VALUE = 55;
+
+ /**
+ *
+ *
+ * + * Blocks Very high and above confidence URL that is risky. + *+ * + *
BLOCK_VERY_HIGH_AND_ABOVE = 60;
+ */
+ public static final int BLOCK_VERY_HIGH_AND_ABOVE_VALUE = 60;
+
+ /**
+ *
+ *
+ * + * Blocks Extremely high confidence URL that is risky. + *+ * + *
BLOCK_ONLY_EXTREMELY_HIGH = 100;
+ */
+ public static final int BLOCK_ONLY_EXTREMELY_HIGH_VALUE = 100;
+
+ 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 PhishBlockThreshold 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 PhishBlockThreshold forNumber(int value) {
+ switch (value) {
+ case 0:
+ return PHISH_BLOCK_THRESHOLD_UNSPECIFIED;
+ case 30:
+ return BLOCK_LOW_AND_ABOVE;
+ case 40:
+ return BLOCK_MEDIUM_AND_ABOVE;
+ case 50:
+ return BLOCK_HIGH_AND_ABOVE;
+ case 55:
+ return BLOCK_HIGHER_AND_ABOVE;
+ case 60:
+ return BLOCK_VERY_HIGH_AND_ABOVE;
+ case 100:
+ return BLOCK_ONLY_EXTREMELY_HIGH;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ boolean hasBlockingConfidence();
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ int getBlockingConfidenceValue();
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold getBlockingConfidence();
}
/**
@@ -161,6 +466,7 @@ private GoogleSearch(com.google.protobuf.GeneratedMessageV3.Builder> builder)
private GoogleSearch() {
excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ blockingConfidence_ = 0;
}
@java.lang.Override
@@ -184,6 +490,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch.Builder.class);
}
+ private int bitField0_;
public static final int EXCLUDE_DOMAINS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
@@ -260,6 +567,71 @@ public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) {
return excludeDomains_.getByteString(index);
}
+ public static final int BLOCKING_CONFIDENCE_FIELD_NUMBER = 4;
+ private int blockingConfidence_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlockingConfidence() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ @java.lang.Override
+ public int getBlockingConfidenceValue() {
+ return blockingConfidence_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold getBlockingConfidence() {
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold result =
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold.forNumber(
+ blockingConfidence_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold.UNRECOGNIZED
+ : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -277,6 +649,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < excludeDomains_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, excludeDomains_.getRaw(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(4, blockingConfidence_);
+ }
getUnknownFields().writeTo(output);
}
@@ -294,6 +669,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getExcludeDomainsList().size();
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, blockingConfidence_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -311,6 +689,10 @@ public boolean equals(final java.lang.Object obj) {
(com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch) obj;
if (!getExcludeDomainsList().equals(other.getExcludeDomainsList())) return false;
+ if (hasBlockingConfidence() != other.hasBlockingConfidence()) return false;
+ if (hasBlockingConfidence()) {
+ if (blockingConfidence_ != other.blockingConfidence_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -326,6 +708,10 @@ public int hashCode() {
hash = (37 * hash) + EXCLUDE_DOMAINS_FIELD_NUMBER;
hash = (53 * hash) + getExcludeDomainsList().hashCode();
}
+ if (hasBlockingConfidence()) {
+ hash = (37 * hash) + BLOCKING_CONFIDENCE_FIELD_NUMBER;
+ hash = (53 * hash) + blockingConfidence_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -471,6 +857,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ blockingConfidence_ = 0;
return this;
}
@@ -511,6 +898,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch
excludeDomains_.makeImmutable();
result.excludeDomains_ = excludeDomains_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.blockingConfidence_ = blockingConfidence_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -571,6 +964,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Tool.GoogleSearch o
}
onChanged();
}
+ if (other.hasBlockingConfidence()) {
+ setBlockingConfidence(other.getBlockingConfidence());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -604,6 +1000,12 @@ public Builder mergeFrom(
excludeDomains_.add(s);
break;
} // case 26
+ case 32:
+ {
+ blockingConfidence_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 32
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -824,6 +1226,139 @@ public Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private int blockingConfidence_ = 0;
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the blockingConfidence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlockingConfidence() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for blockingConfidence.
+ */
+ @java.lang.Override
+ public int getBlockingConfidenceValue() {
+ return blockingConfidence_;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for blockingConfidence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlockingConfidenceValue(int value) {
+ blockingConfidence_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The blockingConfidence.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold getBlockingConfidence() {
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold result =
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold.forNumber(
+ blockingConfidence_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The blockingConfidence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlockingConfidence(
+ com.google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ blockingConfidence_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Optional. Sites with confidence level chosen & above this value will be + * blocked from the search results. + *+ * + *
+ * optional .google.cloud.aiplatform.v1beta1.Tool.PhishBlockThreshold blocking_confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBlockingConfidence() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ blockingConfidence_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java
index 34c1d993e5c1..c942a1096d13 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java
@@ -163,7 +163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "oogle/api/field_behavior.proto\032\031google/a"
+ "pi/resource.proto\032-google/cloud/aiplatfo"
+ "rm/v1beta1/openapi.proto\032\034google/protobu"
- + "f/struct.proto\032\030google/type/latlng.proto\"\307\007\n"
+ + "f/struct.proto\032\030google/type/latlng.proto\"\252\n\n"
+ "\004Tool\022X\n"
+ "\025function_declarations\030\001 \003(\013"
+ "24.google.cloud.aiplatform.v1beta1.FunctionDeclarationB\003\340A\001\022B\n"
@@ -182,21 +182,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013url_context\030\010"
+ " \001(\0132+.google.cloud.aiplatform.v1beta1.UrlContextB\003\340A\001\022L\n"
+ "\014computer_use\030\013 \001(\01321."
- + "google.cloud.aiplatform.v1beta1.Tool.ComputerUseB\003\340A\001\032,\n"
+ + "google.cloud.aiplatform.v1beta1.Tool.ComputerUseB\003\340A\001\032\246\001\n"
+ "\014GoogleSearch\022\034\n"
- + "\017exclude_domains\030\003 \003(\tB\003\340A\001\032\017\n\r"
+ + "\017exclude_domains\030\003 \003(\tB\003\340A\001\022`\n"
+ + "\023blocking_confidence\030\004 \001(\01629.google.cloud.aiplatform.v1be"
+ + "ta1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n"
+ + "\024_blocking_confidence\032\017\n\r"
+ "CodeExecution\032\253\001\n"
+ "\013ComputerUse\022W\n"
- + "\013environment\030\001 \001(\0162=.goog"
- + "le.cloud.aiplatform.v1beta1.Tool.ComputerUse.EnvironmentB\003\340A\002\"C\n"
+ + "\013environment\030\001 \001(\0162=.g"
+ + "oogle.cloud.aiplatform.v1beta1.Tool.ComputerUse.EnvironmentB\003\340A\002\"C\n"
+ "\013Environment\022\033\n"
+ "\027ENVIRONMENT_UNSPECIFIED\020\000\022\027\n"
- + "\023ENVIRONMENT_BROWSER\020\001\"\014\n\n"
+ + "\023ENVIRONMENT_BROWSER\020\001\"\345\001\n"
+ + "\023PhishBlockThreshold\022%\n"
+ + "!PHISH_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n"
+ + "\023BLOCK_LOW_AND_ABOVE\020\036\022\032\n"
+ + "\026BLOCK_MEDIUM_AND_ABOVE\020(\022\030\n"
+ + "\024BLOCK_HIGH_AND_ABOVE\0202\022\032\n"
+ + "\026BLOCK_HIGHER_AND_ABOVE\0207\022\035\n"
+ + "\031BLOCK_VERY_HIGH_AND_ABOVE\020<\022\035\n"
+ + "\031BLOCK_ONLY_EXTREMELY_HIGH\020d\"\014\n\n"
+ "UrlContext\"\260\003\n"
+ "\016ToolUseExample\022a\n"
+ "\023extension_operation\030\n"
- + " \001(\0132B.googl"
- + "e.cloud.aiplatform.v1beta1.ToolUseExample.ExtensionOperationH\000\022\027\n\r"
+ + " \001(\0132B.google.clo"
+ + "ud.aiplatform.v1beta1.ToolUseExample.ExtensionOperationH\000\022\027\n\r"
+ "function_name\030\013 \001(\tH\000\022\031\n"
+ "\014display_name\030\001 \001(\tB\003\340A\002\022\022\n"
+ "\005query\030\002 \001(\tB\003\340A\002\022/\n"
@@ -215,8 +226,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ " \001(\0132\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\022;\n"
+ "\026parameters_json_schema\030\005"
+ " \001(\0132\026.google.protobuf.ValueB\003\340A\001\022>\n"
- + "\010response\030\004 \001(\0132\'.goog"
- + "le.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\0229\n"
+ + "\010response\030\004"
+ + " \001(\0132\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\0229\n"
+ "\024response_json_schema\030\006"
+ " \001(\0132\026.google.protobuf.ValueB\003\340A\001\"^\n"
+ "\014FunctionCall\022\017\n"
@@ -228,15 +239,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\004name\030\001 \001(\tB\003\340A\002\022.\n"
+ "\010response\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002\"\246\001\n"
+ "\016ExecutableCode\022O\n"
- + "\010language\030\001 \001(\01628.google.cloud.aiplatfor"
- + "m.v1beta1.ExecutableCode.LanguageB\003\340A\002\022\021\n"
+ + "\010language\030\001"
+ + " \001(\01628.google.cloud.aiplatform.v1beta1.ExecutableCode.LanguageB\003\340A\002\022\021\n"
+ "\004code\030\002 \001(\tB\003\340A\002\"0\n"
+ "\010Language\022\030\n"
+ "\024LANGUAGE_UNSPECIFIED\020\000\022\n\n"
+ "\006PYTHON\020\001\"\345\001\n"
+ "\023CodeExecutionResult\022R\n"
- + "\007outcome\030\001 \001(\0162<.google.cl"
- + "oud.aiplatform.v1beta1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n"
+ + "\007outcome\030\001 \001(\0162<.google.cloud.a"
+ + "iplatform.v1beta1.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n"
+ "\006output\030\002 \001(\tB\003\340A\001\"e\n"
+ "\007Outcome\022\027\n"
+ "\023OUTCOME_UNSPECIFIED\020\000\022\016\n\n"
@@ -253,13 +264,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016VertexRagStore\022B\n"
+ "\013rag_corpora\030\001 \003(\tB-\030\001\340A\001\372A%\n"
+ "#aiplatform.googleapis.com/RagCorpus\022W\n\r"
- + "rag_resources\030\004 \003(\0132;.google.cloud.a"
- + "iplatform.v1beta1.VertexRagStore.RagResourceB\003\340A\001\022$\n"
+ + "rag_resources\030\004 \003(\0132;.google.cloud.aiplat"
+ + "form.v1beta1.VertexRagStore.RagResourceB\003\340A\001\022$\n"
+ "\020similarity_top_k\030\002 \001(\005B\005\030\001\340A\001H\000\210\001\001\022-\n"
+ "\031vector_distance_threshold\030\003"
+ " \001(\001B\005\030\001\340A\001H\001\210\001\001\022V\n"
- + "\024rag_retrieval_config\030\006"
- + " \001(\01323.google.cloud.aiplatform.v1beta1.RagRetrievalConfigB\003\340A\001\022\032\n\r"
+ + "\024rag_retrieval_config\030\006 \001(\0132"
+ + "3.google.cloud.aiplatform.v1beta1.RagRetrievalConfigB\003\340A\001\022\032\n\r"
+ "store_context\030\007 \001(\010B\003\340A\001\032i\n"
+ "\013RagResource\022?\n\n"
+ "rag_corpus\030\001 \001(\tB+\340A\001\372A%\n"
@@ -272,33 +283,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006engine\030\002 \001(\tB\003\340A\001\022\030\n"
+ "\013max_results\030\003 \001(\005B\003\340A\001\022\023\n"
+ "\006filter\030\004 \001(\tB\003\340A\001\022W\n"
- + "\020data_store_specs\030\005 \003(\0132=.google.cloud"
- + ".aiplatform.v1beta1.VertexAISearch.DataStoreSpec\0328\n\r"
+ + "\020data_store_specs\030\005 \003(\0132=.google.cloud.aipl"
+ + "atform.v1beta1.VertexAISearch.DataStoreSpec\0328\n\r"
+ "DataStoreSpec\022\022\n\n"
+ "data_store\030\001 \001(\t\022\023\n"
+ "\006filter\030\002 \001(\tB\003\340A\001\"r\n"
+ "\025GoogleSearchRetrieval\022Y\n"
- + "\030dynamic_retrieval_config\030\002"
- + " \001(\01327.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig\"\014\n\n"
- + "GoogleMaps\"3\n"
+ + "\030dynamic_retrieval_config\030\002 \001(\013"
+ + "27.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig\"(\n\n"
+ + "GoogleMaps\022\032\n\r"
+ + "enable_widget\030\001 \001(\010B\003\340A\001\"\255\001\n"
+ "\023EnterpriseWebSearch\022\034\n"
- + "\017exclude_domains\030\001 \003(\tB\003\340A\001\"\317\001\n"
+ + "\017exclude_domains\030\001 \003(\tB\003\340A\001\022`\n"
+ + "\023blocking_confidence\030\004 \001(\01629.google.cloud.ai"
+ + "platform.v1beta1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n"
+ + "\024_blocking_confidence\"\317\001\n"
+ "\026DynamicRetrievalConfig\022J\n"
- + "\004mode\030\001"
- + " \001(\0162<.google.cloud.aiplatform.v1beta1.DynamicRetrievalConfig.Mode\022#\n"
+ + "\004mode\030\001 \001(\0162<.g"
+ + "oogle.cloud.aiplatform.v1beta1.DynamicRetrievalConfig.Mode\022#\n"
+ "\021dynamic_threshold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n"
+ "\004Mode\022\024\n"
+ "\020MODE_UNSPECIFIED\020\000\022\020\n"
+ "\014MODE_DYNAMIC\020\001B\024\n"
+ "\022_dynamic_threshold\"\273\001\n\n"
+ "ToolConfig\022\\\n"
- + "\027function_calling_config\030\001 \001(\01326.google.clo"
- + "ud.aiplatform.v1beta1.FunctionCallingConfigB\003\340A\001\022O\n"
- + "\020retrieval_config\030\002 \001(\01320.goo"
- + "gle.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\334\001\n"
+ + "\027function_calling_config\030\001"
+ + " \001(\01326.google.cloud.aiplatform.v1beta1.FunctionCallingConfigB\003\340A\001\022O\n"
+ + "\020retrieval_config\030\002"
+ + " \001(\01320.google.cloud.aiplatform.v1beta1.RetrievalConfigB\003\340A\001\"\334\001\n"
+ "\025FunctionCallingConfig\022N\n"
- + "\004mode\030\001"
- + " \001(\0162;.google.cloud.aiplatform.v1beta1.FunctionCallingConfig.ModeB\003\340A\001\022#\n"
+ + "\004mode\030\001 \001(\0162;.go"
+ + "ogle.cloud.aiplatform.v1beta1.FunctionCallingConfig.ModeB\003\340A\001\022#\n"
+ "\026allowed_function_names\030\002 \003(\tB\003\340A\001\"N\n"
+ "\004Mode\022\024\n"
+ "\020MODE_UNSPECIFIED\020\000\022\010\n"
@@ -313,12 +328,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\016_language_code\"\317\006\n"
+ "\022RagRetrievalConfig\022\022\n"
+ "\005top_k\030\001 \001(\005B\003\340A\001\022\\\n\r"
- + "hybrid_search\030\002 \001(\0132@.google.cloud.aiplat"
- + "form.v1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n"
- + "\006filter\030\003 \001(\0132:.google.cloud"
- + ".aiplatform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n"
- + "\007ranking\030\004 \001(\0132;.google.clo"
- + "ud.aiplatform.v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n"
+ + "hybrid_search\030\002"
+ + " \001(\0132@.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearchB\003\340A\001\022O\n"
+ + "\006filter\030\003"
+ + " \001(\0132:.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n"
+ + "\007ranking\030\004 \001(\0132;.google.cloud.aiplatform."
+ + "v1beta1.RagRetrievalConfig.RankingB\003\340A\001\0321\n"
+ "\014HybridSearch\022\027\n"
+ "\005alpha\030\001 \001(\002B\003\340A\001H\000\210\001\001B\010\n"
+ "\006_alpha\032\223\001\n"
@@ -328,10 +343,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n"
+ "\023vector_db_threshold\032\331\002\n"
+ "\007Ranking\022d\n"
- + "\014rank_service\030\001 \001(\0132G.google.cloud.aiplatform.v1bet"
- + "a1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n"
- + "llm_ranker\030\003 \001(\0132E.google.cl"
- + "oud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n"
+ + "\014rank_service\030\001 \001(\0132G.goo"
+ + "gle.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\n"
+ + "llm_ranker\030\003 \001(\0132E.google.cloud.aiplatform"
+ + ".v1beta1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n"
+ "\013RankService\022\034\n\n"
+ "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n"
+ "\013_model_name\0328\n"
@@ -339,11 +354,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n"
+ "\013_model_nameB\020\n"
+ "\016ranking_configB\340\001\n"
- + "#com.google.cloud.aiplatform.v1beta1B\tToolProtoP\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"
+ + "#com.google.cloud.aiplatform.v1beta1B\tToolProtoP"
+ + "\001ZCcloud.google.com/go/aiplatform/apiv1b"
+ + "eta1/aiplatformpb;aiplatformpb\252\002\037Google."
+ + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\"
+ + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -377,7 +392,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_Tool_GoogleSearch_descriptor,
new java.lang.String[] {
- "ExcludeDomains",
+ "ExcludeDomains", "BlockingConfidence",
});
internal_static_google_cloud_aiplatform_v1beta1_Tool_CodeExecution_descriptor =
internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor.getNestedTypes().get(1);
@@ -531,14 +546,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
internal_static_google_cloud_aiplatform_v1beta1_GoogleMaps_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_GoogleMaps_descriptor,
- new java.lang.String[] {});
+ new java.lang.String[] {
+ "EnableWidget",
+ });
internal_static_google_cloud_aiplatform_v1beta1_EnterpriseWebSearch_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_google_cloud_aiplatform_v1beta1_EnterpriseWebSearch_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_EnterpriseWebSearch_descriptor,
new java.lang.String[] {
- "ExcludeDomains",
+ "ExcludeDomains", "BlockingConfidence",
});
internal_static_google_cloud_aiplatform_v1beta1_DynamicRetrievalConfig_descriptor =
getDescriptor().getMessageTypes().get(14);
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java
index bbd2636932c3..6f248e74747d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java
@@ -1141,7 +1141,7 @@ public com.google.protobuf.ParserCreateDatabase
Creates a new Database in a given project, location, and cluster.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createDatabase(CreateDatabaseRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *createDatabase(ClusterName parent, Database database, String databaseId) + *
createDatabase(String parent, Database database, String databaseId) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createDatabaseCallable() + *
ListLocations
Lists information about the supported locations for this service.
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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * Database database = Database.newBuilder().build(); + * String databaseId = "databaseId1688905718"; + * Database response = alloyDBAdminClient.createDatabase(parent, database, databaseId); + * } + * }+ * + * @param parent Required. Value for parent. + * @param database Required. The resource being created. + * @param databaseId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Database createDatabase(ClusterName parent, Database database, String databaseId) { + CreateDatabaseRequest request = + CreateDatabaseRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDatabase(database) + .setDatabaseId(databaseId) + .build(); + return createDatabase(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Database in a given project, location, and 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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + * Database database = Database.newBuilder().build(); + * String databaseId = "databaseId1688905718"; + * Database response = alloyDBAdminClient.createDatabase(parent, database, databaseId); + * } + * }+ * + * @param parent Required. Value for parent. + * @param database Required. The resource being created. + * @param databaseId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Database createDatabase(String parent, Database database, String databaseId) { + CreateDatabaseRequest request = + CreateDatabaseRequest.newBuilder() + .setParent(parent) + .setDatabase(database) + .setDatabaseId(databaseId) + .build(); + return createDatabase(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Database in a given project, location, and 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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * CreateDatabaseRequest request = + * CreateDatabaseRequest.newBuilder() + * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setDatabaseId("databaseId1688905718") + * .setDatabase(Database.newBuilder().build()) + * .build(); + * Database response = alloyDBAdminClient.createDatabase(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 Database createDatabase(CreateDatabaseRequest request) { + return createDatabaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Database in a given project, location, and 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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * CreateDatabaseRequest request = + * CreateDatabaseRequest.newBuilder() + * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setDatabaseId("databaseId1688905718") + * .setDatabase(Database.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = alloyDBAdminClient.createDatabaseCallable().futureCall(request); + * // Do something. + * Database response = future.get(); + * } + * }
CreateDatabase
Creates a new Database in a given project, location, and cluster.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *createDatabase(CreateDatabaseRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *createDatabase(ClusterName parent, Database database, String databaseId) + *
createDatabase(String parent, Database database, String databaseId) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *createDatabaseCallable() + *
ListLocations
Lists information about the supported locations for this service.
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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * ClusterName parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * Database database = Database.newBuilder().build(); + * String databaseId = "databaseId1688905718"; + * Database response = alloyDBAdminClient.createDatabase(parent, database, databaseId); + * } + * }+ * + * @param parent Required. Value for parent. + * @param database Required. The resource being created. + * @param databaseId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Database createDatabase(ClusterName parent, Database database, String databaseId) { + CreateDatabaseRequest request = + CreateDatabaseRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDatabase(database) + .setDatabaseId(databaseId) + .build(); + return createDatabase(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Database in a given project, location, and 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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * String parent = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + * Database database = Database.newBuilder().build(); + * String databaseId = "databaseId1688905718"; + * Database response = alloyDBAdminClient.createDatabase(parent, database, databaseId); + * } + * }+ * + * @param parent Required. Value for parent. + * @param database Required. The resource being created. + * @param databaseId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Database createDatabase(String parent, Database database, String databaseId) { + CreateDatabaseRequest request = + CreateDatabaseRequest.newBuilder() + .setParent(parent) + .setDatabase(database) + .setDatabaseId(databaseId) + .build(); + return createDatabase(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Database in a given project, location, and 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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * CreateDatabaseRequest request = + * CreateDatabaseRequest.newBuilder() + * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setDatabaseId("databaseId1688905718") + * .setDatabase(Database.newBuilder().build()) + * .build(); + * Database response = alloyDBAdminClient.createDatabase(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 Database createDatabase(CreateDatabaseRequest request) { + return createDatabaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Database in a given project, location, and 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 (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + * CreateDatabaseRequest request = + * CreateDatabaseRequest.newBuilder() + * .setParent(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setDatabaseId("databaseId1688905718") + * .setDatabase(Database.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = alloyDBAdminClient.createDatabaseCallable().futureCall(request); + * // Do something. + * Database response = future.get(); + * } + * }