public static final class GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder> implements GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
Message to be used for grounding based on inline content.Protobuf type
google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.InlineSourcegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.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<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerateGroundedContentRequest.GroundingSource.InlineSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerateGroundedContentRequest.GroundingSource.InlineSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource.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<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource.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<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource.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<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(GenerateGroundedContentRequest.GroundingSource.InlineSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public GenerateGroundedContentRequest.GroundingSource.InlineSource.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<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>IOExceptionpublic List<GroundingFact> getGroundingFactsList()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
getGroundingFactsList in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic int getGroundingFactsCount()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
getGroundingFactsCount in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic GroundingFact getGroundingFacts(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
getGroundingFacts in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setGroundingFacts(int index, GroundingFact value)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setGroundingFacts(int index, GroundingFact.Builder builderForValue)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addGroundingFacts(GroundingFact value)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addGroundingFacts(int index, GroundingFact value)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addGroundingFacts(GroundingFact.Builder builderForValue)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addGroundingFacts(int index, GroundingFact.Builder builderForValue)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addAllGroundingFacts(Iterable<? extends GroundingFact> values)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearGroundingFacts()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder removeGroundingFacts(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GroundingFact.Builder getGroundingFactsBuilder(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GroundingFactOrBuilder getGroundingFactsOrBuilder(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
getGroundingFactsOrBuilder in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic List<? extends GroundingFactOrBuilder> getGroundingFactsOrBuilderList()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
getGroundingFactsOrBuilderList in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic GroundingFact.Builder addGroundingFactsBuilder()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public GroundingFact.Builder addGroundingFactsBuilder(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public List<GroundingFact.Builder> getGroundingFactsBuilderList()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;
public int getAttributesCount()
GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderAttributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content).
map<string, string> attributes = 2;getAttributesCount in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic boolean containsAttributes(String key)
Attributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content).
map<string, string> attributes = 2;containsAttributes in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder@Deprecated public Map<String,String> getAttributes()
getAttributesMap() instead.getAttributes in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic Map<String,String> getAttributesMap()
Attributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content).
map<string, string> attributes = 2;getAttributesMap in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic String getAttributesOrDefault(String key, String defaultValue)
Attributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content).
map<string, string> attributes = 2;getAttributesOrDefault in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic String getAttributesOrThrow(String key)
Attributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content).
map<string, string> attributes = 2;getAttributesOrThrow in interface GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilderpublic GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearAttributes()
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder removeAttributes(String key)
Attributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content).
map<string, string> attributes = 2;@Deprecated public Map<String,String> getMutableAttributes()
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder putAttributes(String key, String value)
Attributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content).
map<string, string> attributes = 2;public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder putAllAttributes(Map<String,String> values)
Attributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content).
map<string, string> attributes = 2;public final GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>public final GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>Copyright © 2025 Google LLC. All rights reserved.