Class AssistAnswer

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

@Generated public final class AssistAnswer extends com.google.protobuf.GeneratedMessage implements AssistAnswerOrBuilder
 AssistAnswer resource, main part of
 [AssistResponse][google.cloud.discoveryengine.v1.AssistResponse].
 
Protobuf type google.cloud.discoveryengine.v1.AssistAnswer
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • REPLIES_FIELD_NUMBER

      public static final int REPLIES_FIELD_NUMBER
      See Also:
    • ASSIST_SKIPPED_REASONS_FIELD_NUMBER

      public static final int ASSIST_SKIPPED_REASONS_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
    • getName

      public String getName()
       Immutable. Resource name of the `AssistAnswer`.
       Format:
       `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
      
       This field must be a UTF-8 encoded string with a length limit of 1024
       characters.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface AssistAnswerOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. Resource name of the `AssistAnswer`.
       Format:
       `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
      
       This field must be a UTF-8 encoded string with a length limit of 1024
       characters.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface AssistAnswerOrBuilder
      Returns:
      The bytes for name.
    • getStateValue

      public int getStateValue()
       State of the answer generation.
       
      .google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;
      Specified by:
      getStateValue in interface AssistAnswerOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public AssistAnswer.State getState()
       State of the answer generation.
       
      .google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;
      Specified by:
      getState in interface AssistAnswerOrBuilder
      Returns:
      The state.
    • getRepliesList

      public List<AssistAnswer.Reply> getRepliesList()
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
      Specified by:
      getRepliesList in interface AssistAnswerOrBuilder
    • getRepliesOrBuilderList

      public List<? extends AssistAnswer.ReplyOrBuilder> getRepliesOrBuilderList()
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
      Specified by:
      getRepliesOrBuilderList in interface AssistAnswerOrBuilder
    • getRepliesCount

      public int getRepliesCount()
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
      Specified by:
      getRepliesCount in interface AssistAnswerOrBuilder
    • getReplies

      public AssistAnswer.Reply getReplies(int index)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
      Specified by:
      getReplies in interface AssistAnswerOrBuilder
    • getRepliesOrBuilder

      public AssistAnswer.ReplyOrBuilder getRepliesOrBuilder(int index)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
      Specified by:
      getRepliesOrBuilder in interface AssistAnswerOrBuilder
    • getAssistSkippedReasonsList

      public List<AssistAnswer.AssistSkippedReason> getAssistSkippedReasonsList()
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Specified by:
      getAssistSkippedReasonsList in interface AssistAnswerOrBuilder
      Returns:
      A list containing the assistSkippedReasons.
    • getAssistSkippedReasonsCount

      public int getAssistSkippedReasonsCount()
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Specified by:
      getAssistSkippedReasonsCount in interface AssistAnswerOrBuilder
      Returns:
      The count of assistSkippedReasons.
    • getAssistSkippedReasons

      public AssistAnswer.AssistSkippedReason getAssistSkippedReasons(int index)
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Specified by:
      getAssistSkippedReasons in interface AssistAnswerOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The assistSkippedReasons at the given index.
    • getAssistSkippedReasonsValueList

      public List<Integer> getAssistSkippedReasonsValueList()
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Specified by:
      getAssistSkippedReasonsValueList in interface AssistAnswerOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for assistSkippedReasons.
    • getAssistSkippedReasonsValue

      public int getAssistSkippedReasonsValue(int index)
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Specified by:
      getAssistSkippedReasonsValue in interface AssistAnswerOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of assistSkippedReasons at the given index.
    • 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 AssistAnswer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static AssistAnswer.Builder newBuilder()
    • newBuilder

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

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

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

      public static AssistAnswer getDefaultInstance()
    • parser

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

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