Class FactChunk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>
com.google.cloud.discoveryengine.v1beta.FactChunk.Builder
- All Implemented Interfaces:
FactChunkOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FactChunk
public static final class FactChunk.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>
implements FactChunkOrBuilder
Fact Chunk.Protobuf type
google.cloud.discoveryengine.v1beta.FactChunk-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Text content of the fact chunk.The index of this chunk.Source from which this fact chunk was retrieved.booleanMore fine-grained information for the source reference.Text content of the fact chunk.com.google.protobuf.ByteStringText content of the fact chunk.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetIndex()The index of this chunk.Deprecated.Source from which this fact chunk was retrieved.com.google.protobuf.ByteStringSource from which this fact chunk was retrieved.Deprecated.intMore fine-grained information for the source reference.More fine-grained information for the source reference.getSourceMetadataOrDefault(String key, String defaultValue) More fine-grained information for the source reference.More fine-grained information for the source reference.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) putAllSourceMetadata(Map<String, String> values) More fine-grained information for the source reference.putSourceMetadata(String key, String value) More fine-grained information for the source reference.More fine-grained information for the source reference.setChunkText(String value) Text content of the fact chunk.setChunkTextBytes(com.google.protobuf.ByteString value) Text content of the fact chunk.setIndex(int value) The index of this chunk.Source from which this fact chunk was retrieved.setSourceBytes(com.google.protobuf.ByteString value) Source from which this fact chunk was retrieved.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<FactChunk.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FactChunk.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<FactChunk.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<FactChunk.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FactChunk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>
-
mergeFrom
public FactChunk.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<FactChunk.Builder>- Throws:
IOException
-
getChunkText
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;- Specified by:
getChunkTextin interfaceFactChunkOrBuilder- Returns:
- The chunkText.
-
getChunkTextBytes
public com.google.protobuf.ByteString getChunkTextBytes()Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;- Specified by:
getChunkTextBytesin interfaceFactChunkOrBuilder- Returns:
- The bytes for chunkText.
-
setChunkText
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;- Parameters:
value- The chunkText to set.- Returns:
- This builder for chaining.
-
clearChunkText
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;- Returns:
- This builder for chaining.
-
setChunkTextBytes
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;- Parameters:
value- The bytes for chunkText to set.- Returns:
- This builder for chaining.
-
getSource
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
string source = 2;- Specified by:
getSourcein interfaceFactChunkOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
string source = 2;- Specified by:
getSourceBytesin interfaceFactChunkOrBuilder- Returns:
- The bytes for source.
-
setSource
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
string source = 2;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
string source = 2;- Returns:
- This builder for chaining.
-
setSourceBytes
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
string source = 2;- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
getIndex
public int getIndex()The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;- Specified by:
getIndexin interfaceFactChunkOrBuilder- Returns:
- The index.
-
setIndex
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;- Returns:
- This builder for chaining.
-
getSourceMetadataCount
public int getSourceMetadataCount()Description copied from interface:FactChunkOrBuilderMore fine-grained information for the source reference.
map<string, string> source_metadata = 3;- Specified by:
getSourceMetadataCountin interfaceFactChunkOrBuilder
-
containsSourceMetadata
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;- Specified by:
containsSourceMetadatain interfaceFactChunkOrBuilder
-
getSourceMetadata
Deprecated.UsegetSourceMetadataMap()instead.- Specified by:
getSourceMetadatain interfaceFactChunkOrBuilder
-
getSourceMetadataMap
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;- Specified by:
getSourceMetadataMapin interfaceFactChunkOrBuilder
-
getSourceMetadataOrDefault
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;- Specified by:
getSourceMetadataOrDefaultin interfaceFactChunkOrBuilder
-
getSourceMetadataOrThrow
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;- Specified by:
getSourceMetadataOrThrowin interfaceFactChunkOrBuilder
-
clearSourceMetadata
-
removeSourceMetadata
More fine-grained information for the source reference.
map<string, string> source_metadata = 3; -
getMutableSourceMetadata
Deprecated.Use alternate mutation accessors instead. -
putSourceMetadata
More fine-grained information for the source reference.
map<string, string> source_metadata = 3; -
putAllSourceMetadata
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;
-