public static final class FactChunk.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.Builder> implements FactChunkOrBuilder
Fact Chunk.Protobuf type
google.cloud.discoveryengine.v1alpha.FactChunk| Modifier and Type | Method and Description |
|---|---|
FactChunk.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FactChunk |
build() |
FactChunk |
buildPartial() |
FactChunk.Builder |
clear() |
FactChunk.Builder |
clearChunkText()
Text content of the fact chunk.
|
FactChunk.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
FactChunk.Builder |
clearIndex()
The index of this chunk.
|
FactChunk.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
FactChunk.Builder |
clearSource()
Source from which this fact chunk was retrieved.
|
FactChunk.Builder |
clearSourceMetadata() |
FactChunk.Builder |
clone() |
boolean |
containsSourceMetadata(String key)
More fine-grained information for the source reference.
|
String |
getChunkText()
Text content of the fact chunk.
|
com.google.protobuf.ByteString |
getChunkTextBytes()
Text content of the fact chunk.
|
FactChunk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getIndex()
The index of this chunk.
|
Map<String,String> |
getMutableSourceMetadata()
Deprecated.
|
String |
getSource()
Source from which this fact chunk was retrieved.
|
com.google.protobuf.ByteString |
getSourceBytes()
Source from which this fact chunk was retrieved.
|
Map<String,String> |
getSourceMetadata()
Deprecated.
|
int |
getSourceMetadataCount()
More fine-grained information for the source reference.
|
Map<String,String> |
getSourceMetadataMap()
More fine-grained information for the source reference.
|
String |
getSourceMetadataOrDefault(String key,
String defaultValue)
More fine-grained information for the source reference.
|
String |
getSourceMetadataOrThrow(String key)
More fine-grained information for the source reference.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
FactChunk.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FactChunk.Builder |
mergeFrom(FactChunk other) |
FactChunk.Builder |
mergeFrom(com.google.protobuf.Message other) |
FactChunk.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FactChunk.Builder |
putAllSourceMetadata(Map<String,String> values)
More fine-grained information for the source reference.
|
FactChunk.Builder |
putSourceMetadata(String key,
String value)
More fine-grained information for the source reference.
|
FactChunk.Builder |
removeSourceMetadata(String key)
More fine-grained information for the source reference.
|
FactChunk.Builder |
setChunkText(String value)
Text content of the fact chunk.
|
FactChunk.Builder |
setChunkTextBytes(com.google.protobuf.ByteString value)
Text content of the fact chunk.
|
FactChunk.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FactChunk.Builder |
setIndex(int value)
The index of this chunk.
|
FactChunk.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
FactChunk.Builder |
setSource(String value)
Source from which this fact chunk was retrieved.
|
FactChunk.Builder |
setSourceBytes(com.google.protobuf.ByteString value)
Source from which this fact chunk was retrieved.
|
FactChunk.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, 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<FactChunk.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.Builder>public FactChunk.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.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<FactChunk.Builder>public FactChunk getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FactChunk build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FactChunk buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FactChunk.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.Builder>public FactChunk.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<FactChunk.Builder>public FactChunk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.Builder>public FactChunk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.Builder>public FactChunk.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<FactChunk.Builder>public FactChunk.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<FactChunk.Builder>public FactChunk.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FactChunk.Builder>public FactChunk.Builder mergeFrom(FactChunk other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.Builder>public FactChunk.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<FactChunk.Builder>IOExceptionpublic String getChunkText()
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;getChunkText in interface FactChunkOrBuilderpublic com.google.protobuf.ByteString getChunkTextBytes()
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;getChunkTextBytes in interface FactChunkOrBuilderpublic FactChunk.Builder setChunkText(String value)
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;value - The chunkText to set.public FactChunk.Builder clearChunkText()
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;public FactChunk.Builder setChunkTextBytes(com.google.protobuf.ByteString value)
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;value - The bytes for chunkText to set.public String 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;getSource in interface FactChunkOrBuilderpublic 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;getSourceBytes in interface FactChunkOrBuilderpublic FactChunk.Builder setSource(String value)
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;value - The source to set.public FactChunk.Builder 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;public FactChunk.Builder setSourceBytes(com.google.protobuf.ByteString value)
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;value - The bytes for source to set.public int getIndex()
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;getIndex in interface FactChunkOrBuilderpublic FactChunk.Builder setIndex(int value)
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;value - The index to set.public FactChunk.Builder clearIndex()
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;public int getSourceMetadataCount()
FactChunkOrBuilderMore fine-grained information for the source reference.
map<string, string> source_metadata = 3;getSourceMetadataCount in interface FactChunkOrBuilderpublic boolean containsSourceMetadata(String key)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;containsSourceMetadata in interface FactChunkOrBuilder@Deprecated public Map<String,String> getSourceMetadata()
getSourceMetadataMap() instead.getSourceMetadata in interface FactChunkOrBuilderpublic Map<String,String> getSourceMetadataMap()
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;getSourceMetadataMap in interface FactChunkOrBuilderpublic String getSourceMetadataOrDefault(String key, String defaultValue)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;getSourceMetadataOrDefault in interface FactChunkOrBuilderpublic String getSourceMetadataOrThrow(String key)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;getSourceMetadataOrThrow in interface FactChunkOrBuilderpublic FactChunk.Builder clearSourceMetadata()
public FactChunk.Builder removeSourceMetadata(String key)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;@Deprecated public Map<String,String> getMutableSourceMetadata()
public FactChunk.Builder putSourceMetadata(String key, String value)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;public FactChunk.Builder putAllSourceMetadata(Map<String,String> values)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;public final FactChunk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.Builder>public final FactChunk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FactChunk.Builder>Copyright © 2024 Google LLC. All rights reserved.