Class AssistAnswer.Reply.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Reply.Builder>
com.google.cloud.discoveryengine.v1.AssistAnswer.Reply.Builder
All Implemented Interfaces:
AssistAnswer.ReplyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AssistAnswer.Reply

public static final class AssistAnswer.Reply.Builder extends com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Reply.Builder> implements AssistAnswer.ReplyOrBuilder
 One part of the multi-part response of the assist call.
 
Protobuf type google.cloud.discoveryengine.v1.AssistAnswer.Reply
  • 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.Builder<AssistAnswer.Reply.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Reply.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Reply.Builder>
    • getDefaultInstanceForType

      public AssistAnswer.Reply getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AssistAnswer.Reply build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AssistAnswer.Reply buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AssistAnswer.Reply.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AssistAnswer.Reply.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Reply.Builder>
    • mergeFrom

      public AssistAnswer.Reply.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AssistAnswer.Reply.Builder>
      Throws:
      IOException
    • getReplyCase

      public AssistAnswer.Reply.ReplyCase getReplyCase()
      Specified by:
      getReplyCase in interface AssistAnswer.ReplyOrBuilder
    • clearReply

      public AssistAnswer.Reply.Builder clearReply()
    • hasGroundedContent

      public boolean hasGroundedContent()
       Possibly grounded response text or media from the assistant.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;
      Specified by:
      hasGroundedContent in interface AssistAnswer.ReplyOrBuilder
      Returns:
      Whether the groundedContent field is set.
    • getGroundedContent

      public AssistantGroundedContent getGroundedContent()
       Possibly grounded response text or media from the assistant.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;
      Specified by:
      getGroundedContent in interface AssistAnswer.ReplyOrBuilder
      Returns:
      The groundedContent.
    • setGroundedContent

      public AssistAnswer.Reply.Builder setGroundedContent(AssistantGroundedContent value)
       Possibly grounded response text or media from the assistant.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;
    • setGroundedContent

      public AssistAnswer.Reply.Builder setGroundedContent(AssistantGroundedContent.Builder builderForValue)
       Possibly grounded response text or media from the assistant.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;
    • mergeGroundedContent

      public AssistAnswer.Reply.Builder mergeGroundedContent(AssistantGroundedContent value)
       Possibly grounded response text or media from the assistant.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;
    • clearGroundedContent

      public AssistAnswer.Reply.Builder clearGroundedContent()
       Possibly grounded response text or media from the assistant.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;
    • getGroundedContentBuilder

      public AssistantGroundedContent.Builder getGroundedContentBuilder()
       Possibly grounded response text or media from the assistant.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;
    • getGroundedContentOrBuilder

      public AssistantGroundedContentOrBuilder getGroundedContentOrBuilder()
       Possibly grounded response text or media from the assistant.
       
      .google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;
      Specified by:
      getGroundedContentOrBuilder in interface AssistAnswer.ReplyOrBuilder