public final class FactChunk extends com.google.protobuf.GeneratedMessageV3 implements FactChunkOrBuilder
Fact Chunk.Protobuf type
google.cloud.discoveryengine.v1alpha.FactChunk| Modifier and Type | Class and Description |
|---|---|
static class |
FactChunk.Builder
Fact Chunk.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_TEXT_FIELD_NUMBER |
static int |
INDEX_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
static int |
SOURCE_METADATA_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSourceMetadata(String key)
More fine-grained information for the source reference.
|
boolean |
equals(Object obj) |
String |
getChunkText()
Text content of the fact chunk.
|
com.google.protobuf.ByteString |
getChunkTextBytes()
Text content of the fact chunk.
|
static FactChunk |
getDefaultInstance() |
FactChunk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getIndex()
The index of this chunk.
|
com.google.protobuf.Parser<FactChunk> |
getParserForType() |
int |
getSerializedSize() |
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.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static FactChunk.Builder |
newBuilder() |
static FactChunk.Builder |
newBuilder(FactChunk prototype) |
FactChunk.Builder |
newBuilderForType() |
protected FactChunk.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static FactChunk |
parseDelimitedFrom(InputStream input) |
static FactChunk |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(byte[] data) |
static FactChunk |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(ByteBuffer data) |
static FactChunk |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(com.google.protobuf.ByteString data) |
static FactChunk |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(com.google.protobuf.CodedInputStream input) |
static FactChunk |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(InputStream input) |
static FactChunk |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<FactChunk> |
parser() |
FactChunk.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CHUNK_TEXT_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
public static final int SOURCE_METADATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 int getIndex()
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;getIndex in interface FactChunkOrBuilderpublic 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static FactChunk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(InputStream input) throws IOException
IOExceptionpublic static FactChunk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FactChunk parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static FactChunk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FactChunk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static FactChunk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic FactChunk.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static FactChunk.Builder newBuilder()
public static FactChunk.Builder newBuilder(FactChunk prototype)
public FactChunk.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected FactChunk.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static FactChunk getDefaultInstance()
public static com.google.protobuf.Parser<FactChunk> parser()
public com.google.protobuf.Parser<FactChunk> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public FactChunk getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.