public static final class GroundingMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder> implements GroundingMetadataOrBuilder
Metadata returned to client when grounding is enabled.Protobuf type
google.cloud.aiplatform.v1beta1.GroundingMetadatagetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public GroundingMetadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public GroundingMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GroundingMetadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GroundingMetadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GroundingMetadata.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public GroundingMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public GroundingMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public GroundingMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public GroundingMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public GroundingMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public GroundingMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroundingMetadata.Builder>public GroundingMetadata.Builder mergeFrom(GroundingMetadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public GroundingMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroundingMetadata.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList getWebSearchQueriesList()
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
getWebSearchQueriesList in interface GroundingMetadataOrBuilderpublic int getWebSearchQueriesCount()
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
getWebSearchQueriesCount in interface GroundingMetadataOrBuilderpublic String getWebSearchQueries(int index)
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
getWebSearchQueries in interface GroundingMetadataOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index)
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
getWebSearchQueriesBytes in interface GroundingMetadataOrBuilderindex - The index of the value to return.public GroundingMetadata.Builder setWebSearchQueries(int index, String value)
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
index - The index to set the value at.value - The webSearchQueries to set.public GroundingMetadata.Builder addWebSearchQueries(String value)
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
value - The webSearchQueries to add.public GroundingMetadata.Builder addAllWebSearchQueries(Iterable<String> values)
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
values - The webSearchQueries to add.public GroundingMetadata.Builder clearWebSearchQueries()
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value)
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes of the webSearchQueries to add.public List<GroundingAttribution> getGroundingAttributionsList()
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
getGroundingAttributionsList in interface GroundingMetadataOrBuilderpublic int getGroundingAttributionsCount()
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
getGroundingAttributionsCount in interface GroundingMetadataOrBuilderpublic GroundingAttribution getGroundingAttributions(int index)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
getGroundingAttributions in interface GroundingMetadataOrBuilderpublic GroundingMetadata.Builder setGroundingAttributions(int index, GroundingAttribution value)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder setGroundingAttributions(int index, GroundingAttribution.Builder builderForValue)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder addGroundingAttributions(GroundingAttribution value)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder addGroundingAttributions(int index, GroundingAttribution value)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder addGroundingAttributions(GroundingAttribution.Builder builderForValue)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder addGroundingAttributions(int index, GroundingAttribution.Builder builderForValue)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder addAllGroundingAttributions(Iterable<? extends GroundingAttribution> values)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder clearGroundingAttributions()
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder removeGroundingAttributions(int index)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingAttribution.Builder getGroundingAttributionsBuilder(int index)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingAttributionOrBuilder getGroundingAttributionsOrBuilder(int index)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
getGroundingAttributionsOrBuilder in interface GroundingMetadataOrBuilderpublic List<? extends GroundingAttributionOrBuilder> getGroundingAttributionsOrBuilderList()
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
getGroundingAttributionsOrBuilderList in interface GroundingMetadataOrBuilderpublic GroundingAttribution.Builder addGroundingAttributionsBuilder()
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public GroundingAttribution.Builder addGroundingAttributionsBuilder(int index)
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public List<GroundingAttribution.Builder> getGroundingAttributionsBuilderList()
Optional. List of grounding attributions.
repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
public final GroundingMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>public final GroundingMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingMetadata.Builder>Copyright © 2024 Google LLC. All rights reserved.