Class SmartReplyAnswer.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SmartReplyAnswer.Builder>
com.google.cloud.dialogflow.v2.SmartReplyAnswer.Builder
All Implemented Interfaces:
SmartReplyAnswerOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SmartReplyAnswer

public static final class SmartReplyAnswer.Builder extends com.google.protobuf.GeneratedMessage.Builder<SmartReplyAnswer.Builder> implements SmartReplyAnswerOrBuilder
 Represents a smart reply answer.
 
Protobuf type google.cloud.dialogflow.v2.SmartReplyAnswer
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
    Smart reply confidence.
    The content of the reply.
    The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
    com.google.protobuf.ByteString
    The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
    float
    Smart reply confidence.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The content of the reply.
    com.google.protobuf.ByteString
    The content of the reply.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
    setAnswerRecordBytes(com.google.protobuf.ByteString value)
    The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
    setConfidence(float value)
    Smart reply confidence.
    The content of the reply.
    setReplyBytes(com.google.protobuf.ByteString value)
    The content of the reply.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<SmartReplyAnswer.Builder>
    • clear

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

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

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

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

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

      public SmartReplyAnswer.Builder mergeFrom(SmartReplyAnswer other)
    • isInitialized

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

      public SmartReplyAnswer.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<SmartReplyAnswer.Builder>
      Throws:
      IOException
    • getReply

      public String getReply()
       The content of the reply.
       
      string reply = 1;
      Specified by:
      getReply in interface SmartReplyAnswerOrBuilder
      Returns:
      The reply.
    • getReplyBytes

      public com.google.protobuf.ByteString getReplyBytes()
       The content of the reply.
       
      string reply = 1;
      Specified by:
      getReplyBytes in interface SmartReplyAnswerOrBuilder
      Returns:
      The bytes for reply.
    • setReply

      public SmartReplyAnswer.Builder setReply(String value)
       The content of the reply.
       
      string reply = 1;
      Parameters:
      value - The reply to set.
      Returns:
      This builder for chaining.
    • clearReply

      public SmartReplyAnswer.Builder clearReply()
       The content of the reply.
       
      string reply = 1;
      Returns:
      This builder for chaining.
    • setReplyBytes

      public SmartReplyAnswer.Builder setReplyBytes(com.google.protobuf.ByteString value)
       The content of the reply.
       
      string reply = 1;
      Parameters:
      value - The bytes for reply to set.
      Returns:
      This builder for chaining.
    • getConfidence

      public float getConfidence()
       Smart reply confidence.
       The system's confidence score that this reply is a good match for
       this conversation, as a value from 0.0 (completely uncertain) to 1.0
       (completely certain).
       
      float confidence = 2;
      Specified by:
      getConfidence in interface SmartReplyAnswerOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public SmartReplyAnswer.Builder setConfidence(float value)
       Smart reply confidence.
       The system's confidence score that this reply is a good match for
       this conversation, as a value from 0.0 (completely uncertain) to 1.0
       (completely certain).
       
      float confidence = 2;
      Parameters:
      value - The confidence to set.
      Returns:
      This builder for chaining.
    • clearConfidence

      public SmartReplyAnswer.Builder clearConfidence()
       Smart reply confidence.
       The system's confidence score that this reply is a good match for
       this conversation, as a value from 0.0 (completely uncertain) to 1.0
       (completely certain).
       
      float confidence = 2;
      Returns:
      This builder for chaining.
    • getAnswerRecord

      public String getAnswerRecord()
       The name of answer record, in the format of
       "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
       ID>"
       
      string answer_record = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getAnswerRecord in interface SmartReplyAnswerOrBuilder
      Returns:
      The answerRecord.
    • getAnswerRecordBytes

      public com.google.protobuf.ByteString getAnswerRecordBytes()
       The name of answer record, in the format of
       "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
       ID>"
       
      string answer_record = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getAnswerRecordBytes in interface SmartReplyAnswerOrBuilder
      Returns:
      The bytes for answerRecord.
    • setAnswerRecord

      public SmartReplyAnswer.Builder setAnswerRecord(String value)
       The name of answer record, in the format of
       "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
       ID>"
       
      string answer_record = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The answerRecord to set.
      Returns:
      This builder for chaining.
    • clearAnswerRecord

      public SmartReplyAnswer.Builder clearAnswerRecord()
       The name of answer record, in the format of
       "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
       ID>"
       
      string answer_record = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAnswerRecordBytes

      public SmartReplyAnswer.Builder setAnswerRecordBytes(com.google.protobuf.ByteString value)
       The name of answer record, in the format of
       "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
       ID>"
       
      string answer_record = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for answerRecord to set.
      Returns:
      This builder for chaining.