Class AssistantGroundedContent

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1.AssistantGroundedContent
All Implemented Interfaces:
AssistantGroundedContentOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AssistantGroundedContent extends com.google.protobuf.GeneratedMessage implements AssistantGroundedContentOrBuilder
 A piece of content and possibly its grounding information.

 Not all content needs grounding. Phrases like "Of course, I will gladly
 search it for you." do not need grounding.
 
Protobuf type google.cloud.discoveryengine.v1.AssistantGroundedContent
See Also:
  • Field Details

    • TEXT_GROUNDING_METADATA_FIELD_NUMBER

      public static final int TEXT_GROUNDING_METADATA_FIELD_NUMBER
      See Also:
    • CONTENT_FIELD_NUMBER

      public static final int CONTENT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

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

      public AssistantGroundedContent.MetadataCase getMetadataCase()
      Specified by:
      getMetadataCase in interface AssistantGroundedContentOrBuilder
    • hasTextGroundingMetadata

      public boolean hasTextGroundingMetadata()
       Metadata for grounding based on text sources.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3;
      Specified by:
      hasTextGroundingMetadata in interface AssistantGroundedContentOrBuilder
      Returns:
      Whether the textGroundingMetadata field is set.
    • getTextGroundingMetadata

      public AssistantGroundedContent.TextGroundingMetadata getTextGroundingMetadata()
       Metadata for grounding based on text sources.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3;
      Specified by:
      getTextGroundingMetadata in interface AssistantGroundedContentOrBuilder
      Returns:
      The textGroundingMetadata.
    • getTextGroundingMetadataOrBuilder

      public AssistantGroundedContent.TextGroundingMetadataOrBuilder getTextGroundingMetadataOrBuilder()
       Metadata for grounding based on text sources.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3;
      Specified by:
      getTextGroundingMetadataOrBuilder in interface AssistantGroundedContentOrBuilder
    • hasContent

      public boolean hasContent()
       The content.
       
      .google.cloud.discoveryengine.v1.AssistantContent content = 1;
      Specified by:
      hasContent in interface AssistantGroundedContentOrBuilder
      Returns:
      Whether the content field is set.
    • getContent

      public AssistantContent getContent()
       The content.
       
      .google.cloud.discoveryengine.v1.AssistantContent content = 1;
      Specified by:
      getContent in interface AssistantGroundedContentOrBuilder
      Returns:
      The content.
    • getContentOrBuilder

      public AssistantContentOrBuilder getContentOrBuilder()
       The content.
       
      .google.cloud.discoveryengine.v1.AssistantContent content = 1;
      Specified by:
      getContentOrBuilder in interface AssistantGroundedContentOrBuilder
    • 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 AssistantGroundedContent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static AssistantGroundedContent.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static AssistantGroundedContent getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AssistantGroundedContent> 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 AssistantGroundedContent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder