Class AssistAnswer.Builder

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

public static final class AssistAnswer.Builder extends com.google.protobuf.GeneratedMessage.Builder<AssistAnswer.Builder> implements AssistAnswerOrBuilder
 AssistAnswer resource, main part of
 [AssistResponse][google.cloud.discoveryengine.v1.AssistResponse].
 
Protobuf type google.cloud.discoveryengine.v1.AssistAnswer
  • 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.Builder>
    • clear

      public AssistAnswer.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.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.Builder>
    • getDefaultInstanceForType

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

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

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

      public AssistAnswer.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.Builder>
    • mergeFrom

      public AssistAnswer.Builder mergeFrom(AssistAnswer other)
    • isInitialized

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

      public AssistAnswer.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.Builder>
      Throws:
      IOException
    • 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.
    • setName

      public AssistAnswer.Builder setName(String value)
       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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AssistAnswer.Builder clearName()
       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];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AssistAnswer.Builder setNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStateValue

      public AssistAnswer.Builder setStateValue(int value)
       State of the answer generation.
       
      .google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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.
    • setState

      public AssistAnswer.Builder setState(AssistAnswer.State value)
       State of the answer generation.
       
      .google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public AssistAnswer.Builder clearState()
       State of the answer generation.
       
      .google.cloud.discoveryengine.v1.AssistAnswer.State state = 2;
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setReplies

      public AssistAnswer.Builder setReplies(int index, AssistAnswer.Reply value)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • setReplies

      public AssistAnswer.Builder setReplies(int index, AssistAnswer.Reply.Builder builderForValue)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • addReplies

      public AssistAnswer.Builder addReplies(AssistAnswer.Reply value)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • addReplies

      public AssistAnswer.Builder addReplies(int index, AssistAnswer.Reply value)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • addReplies

      public AssistAnswer.Builder addReplies(AssistAnswer.Reply.Builder builderForValue)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • addReplies

      public AssistAnswer.Builder addReplies(int index, AssistAnswer.Reply.Builder builderForValue)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • addAllReplies

      public AssistAnswer.Builder addAllReplies(Iterable<? extends AssistAnswer.Reply> values)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • clearReplies

      public AssistAnswer.Builder clearReplies()
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • removeReplies

      public AssistAnswer.Builder removeReplies(int index)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • getRepliesBuilder

      public AssistAnswer.Reply.Builder getRepliesBuilder(int index)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • 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
    • 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
    • addRepliesBuilder

      public AssistAnswer.Reply.Builder addRepliesBuilder()
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • addRepliesBuilder

      public AssistAnswer.Reply.Builder addRepliesBuilder(int index)
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • getRepliesBuilderList

      public List<AssistAnswer.Reply.Builder> getRepliesBuilderList()
       Replies of the assistant.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.Reply replies = 3;
    • 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.
    • setAssistSkippedReasons

      public AssistAnswer.Builder setAssistSkippedReasons(int index, AssistAnswer.AssistSkippedReason value)
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Parameters:
      index - The index to set the value at.
      value - The assistSkippedReasons to set.
      Returns:
      This builder for chaining.
    • addAssistSkippedReasons

      public AssistAnswer.Builder addAssistSkippedReasons(AssistAnswer.AssistSkippedReason value)
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Parameters:
      value - The assistSkippedReasons to add.
      Returns:
      This builder for chaining.
    • addAllAssistSkippedReasons

      public AssistAnswer.Builder addAllAssistSkippedReasons(Iterable<? extends AssistAnswer.AssistSkippedReason> values)
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Parameters:
      values - The assistSkippedReasons to add.
      Returns:
      This builder for chaining.
    • clearAssistSkippedReasons

      public AssistAnswer.Builder clearAssistSkippedReasons()
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Returns:
      This builder for chaining.
    • 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.
    • setAssistSkippedReasonsValue

      public AssistAnswer.Builder setAssistSkippedReasonsValue(int index, int value)
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for assistSkippedReasons to set.
      Returns:
      This builder for chaining.
    • addAssistSkippedReasonsValue

      public AssistAnswer.Builder addAssistSkippedReasonsValue(int value)
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Parameters:
      value - The enum numeric value on the wire for assistSkippedReasons to add.
      Returns:
      This builder for chaining.
    • addAllAssistSkippedReasonsValue

      public AssistAnswer.Builder addAllAssistSkippedReasonsValue(Iterable<Integer> values)
       Reasons for not answering the assist call.
       
      repeated .google.cloud.discoveryengine.v1.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5;
      Parameters:
      values - The enum numeric values on the wire for assistSkippedReasons to add.
      Returns:
      This builder for chaining.