Class FactChunk

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.FactChunk
All Implemented Interfaces:
FactChunkOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class FactChunk extends com.google.protobuf.GeneratedMessage implements FactChunkOrBuilder
 Fact Chunk.
 
Protobuf type google.cloud.discoveryengine.v1beta.FactChunk
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Fact Chunk.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    More fine-grained information for the source reference.
    boolean
     
    Text content of the fact chunk.
    com.google.protobuf.ByteString
    Text content of the fact chunk.
    static FactChunk
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    int
    The index of this chunk.
    com.google.protobuf.Parser<FactChunk>
     
    int
     
    Source from which this fact chunk was retrieved.
    com.google.protobuf.ByteString
    Source from which this fact chunk was retrieved.
    Deprecated.
    int
    More fine-grained information for the source reference.
    More fine-grained information for the source reference.
    More fine-grained information for the source reference.
    More fine-grained information for the source reference.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
    newBuilder(FactChunk prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static FactChunk
     
    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(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
     
    static FactChunk
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static FactChunk
     
    static FactChunk
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<FactChunk>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getChunkText

      public String getChunkText()
       Text content of the fact chunk. Can be at most 10K characters long.
       
      string chunk_text = 1;
      Specified by:
      getChunkText in interface FactChunkOrBuilder
      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:
      getChunkTextBytes in interface FactChunkOrBuilder
      Returns:
      The bytes for chunkText.
    • getSource

      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;
      Specified by:
      getSource in interface FactChunkOrBuilder
      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:
      getSourceBytes in interface FactChunkOrBuilder
      Returns:
      The bytes for source.
    • getIndex

      public int getIndex()
       The index of this chunk. Currently, only used for the streaming mode.
       
      int32 index = 4;
      Specified by:
      getIndex in interface FactChunkOrBuilder
      Returns:
      The index.
    • getSourceMetadataCount

      public int getSourceMetadataCount()
      Description copied from interface: FactChunkOrBuilder
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;
      Specified by:
      getSourceMetadataCount in interface FactChunkOrBuilder
    • containsSourceMetadata

      public boolean containsSourceMetadata(String key)
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;
      Specified by:
      containsSourceMetadata in interface FactChunkOrBuilder
    • getSourceMetadata

      @Deprecated public Map<String,String> getSourceMetadata()
      Deprecated.
      Specified by:
      getSourceMetadata in interface FactChunkOrBuilder
    • getSourceMetadataMap

      public Map<String,String> getSourceMetadataMap()
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;
      Specified by:
      getSourceMetadataMap in interface FactChunkOrBuilder
    • getSourceMetadataOrDefault

      public String getSourceMetadataOrDefault(String key, String defaultValue)
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;
      Specified by:
      getSourceMetadataOrDefault in interface FactChunkOrBuilder
    • getSourceMetadataOrThrow

      public String getSourceMetadataOrThrow(String key)
       More fine-grained information for the source reference.
       
      map<string, string> source_metadata = 3;
      Specified by:
      getSourceMetadataOrThrow in interface FactChunkOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static FactChunk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FactChunk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FactChunk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FactChunk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FactChunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FactChunk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FactChunk parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FactChunk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FactChunk parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FactChunk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FactChunk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FactChunk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public FactChunk.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static FactChunk.Builder newBuilder()
    • newBuilder

      public static FactChunk.Builder newBuilder(FactChunk prototype)
    • toBuilder

      public FactChunk.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected FactChunk.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static FactChunk getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FactChunk> parser()
    • getParserForType

      public com.google.protobuf.Parser<FactChunk> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public FactChunk getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder