Class GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>
com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
- All Implemented Interfaces:
GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateGroundedContentRequest.GroundingSource.InlineSource
public static final class GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
extends com.google.protobuf.GeneratedMessage.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.InlineSource-
Method Summary
Modifier and TypeMethodDescriptionaddAllGroundingFacts(Iterable<? extends GroundingFact> values) List of facts to be used for grounding.addGroundingFacts(int index, GroundingFact value) List of facts to be used for grounding.addGroundingFacts(int index, GroundingFact.Builder builderForValue) List of facts to be used for grounding.addGroundingFacts(GroundingFact value) List of facts to be used for grounding.addGroundingFacts(GroundingFact.Builder builderForValue) List of facts to be used for grounding.List of facts to be used for grounding.addGroundingFactsBuilder(int index) List of facts to be used for grounding.build()clear()List of facts to be used for grounding.booleancontainsAttributes(String key) Attributes associated with the content.Deprecated.intAttributes associated with the content.Attributes associated with the content.getAttributesOrDefault(String key, String defaultValue) Attributes associated with the content.Attributes associated with the content.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGroundingFacts(int index) List of facts to be used for grounding.getGroundingFactsBuilder(int index) List of facts to be used for grounding.List of facts to be used for grounding.intList of facts to be used for grounding.List of facts to be used for grounding.getGroundingFactsOrBuilder(int index) List of facts to be used for grounding.List<? extends GroundingFactOrBuilder>List of facts to be used for grounding.Deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllAttributes(Map<String, String> values) Attributes associated with the content.putAttributes(String key, String value) Attributes associated with the content.removeAttributes(String key) Attributes associated with the content.removeGroundingFacts(int index) List of facts to be used for grounding.setGroundingFacts(int index, GroundingFact value) List of facts to be used for grounding.setGroundingFacts(int index, GroundingFact.Builder builderForValue) List of facts to be used for grounding.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>
-
mergeFrom
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder>- Throws:
IOException
-
getGroundingFactsList
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;- Specified by:
getGroundingFactsListin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
getGroundingFactsCount
public int getGroundingFactsCount()List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;- Specified by:
getGroundingFactsCountin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
getGroundingFacts
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;- Specified by:
getGroundingFactsin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
setGroundingFacts
public 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; -
setGroundingFacts
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; -
addGroundingFacts
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; -
addGroundingFacts
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; -
addGroundingFacts
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; -
addGroundingFacts
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; -
addAllGroundingFacts
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; -
clearGroundingFacts
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1; -
removeGroundingFacts
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; -
getGroundingFactsBuilder
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1; -
getGroundingFactsOrBuilder
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;- Specified by:
getGroundingFactsOrBuilderin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
getGroundingFactsOrBuilderList
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1;- Specified by:
getGroundingFactsOrBuilderListin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
addGroundingFactsBuilder
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1; -
addGroundingFactsBuilder
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1; -
getGroundingFactsBuilderList
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1beta.GroundingFact grounding_facts = 1; -
getAttributesCount
public int getAttributesCount()Description copied from interface: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;- Specified by:
getAttributesCountin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
containsAttributes
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;- Specified by:
containsAttributesin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
getAttributes
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
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;- Specified by:
getAttributesMapin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
getAttributesOrDefault
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;- Specified by:
getAttributesOrDefaultin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
getAttributesOrThrow
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;- Specified by:
getAttributesOrThrowin interfaceGenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
-
clearAttributes
-
removeAttributes
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; -
getMutableAttributes
Deprecated.Use alternate mutation accessors instead. -
putAttributes
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; -
putAllAttributes
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;
-