Class ConversationEvent.Builder

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

public static final class ConversationEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConversationEvent.Builder> implements ConversationEventOrBuilder
 Represents a notification sent to Pub/Sub subscribers for conversation
 lifecycle events.
 
Protobuf type google.cloud.dialogflow.v2.ConversationEvent
  • 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<ConversationEvent.Builder>
    • clear

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

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

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

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

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

      public ConversationEvent.Builder mergeFrom(ConversationEvent other)
    • isInitialized

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

      public ConversationEvent.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<ConversationEvent.Builder>
      Throws:
      IOException
    • getPayloadCase

      public ConversationEvent.PayloadCase getPayloadCase()
      Specified by:
      getPayloadCase in interface ConversationEventOrBuilder
    • clearPayload

      public ConversationEvent.Builder clearPayload()
    • getConversation

      public String getConversation()
       The unique identifier of the conversation this notification
       refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Specified by:
      getConversation in interface ConversationEventOrBuilder
      Returns:
      The conversation.
    • getConversationBytes

      public com.google.protobuf.ByteString getConversationBytes()
       The unique identifier of the conversation this notification
       refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Specified by:
      getConversationBytes in interface ConversationEventOrBuilder
      Returns:
      The bytes for conversation.
    • setConversation

      public ConversationEvent.Builder setConversation(String value)
       The unique identifier of the conversation this notification
       refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Parameters:
      value - The conversation to set.
      Returns:
      This builder for chaining.
    • clearConversation

      public ConversationEvent.Builder clearConversation()
       The unique identifier of the conversation this notification
       refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Returns:
      This builder for chaining.
    • setConversationBytes

      public ConversationEvent.Builder setConversationBytes(com.google.protobuf.ByteString value)
       The unique identifier of the conversation this notification
       refers to.
       Format: `projects/<Project ID>/conversations/<Conversation ID>`.
       
      string conversation = 1;
      Parameters:
      value - The bytes for conversation to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       The type of the event that this notification refers to.
       
      .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
      Specified by:
      getTypeValue in interface ConversationEventOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public ConversationEvent.Builder setTypeValue(int value)
       The type of the event that this notification refers to.
       
      .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public ConversationEvent.Type getType()
       The type of the event that this notification refers to.
       
      .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
      Specified by:
      getType in interface ConversationEventOrBuilder
      Returns:
      The type.
    • setType

       The type of the event that this notification refers to.
       
      .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ConversationEvent.Builder clearType()
       The type of the event that this notification refers to.
       
      .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
      Returns:
      This builder for chaining.
    • hasErrorStatus

      public boolean hasErrorStatus()
       More detailed information about an error. Only set for type
       UNRECOVERABLE_ERROR_IN_PHONE_CALL.
       
      .google.rpc.Status error_status = 3;
      Specified by:
      hasErrorStatus in interface ConversationEventOrBuilder
      Returns:
      Whether the errorStatus field is set.
    • getErrorStatus

      public Status getErrorStatus()
       More detailed information about an error. Only set for type
       UNRECOVERABLE_ERROR_IN_PHONE_CALL.
       
      .google.rpc.Status error_status = 3;
      Specified by:
      getErrorStatus in interface ConversationEventOrBuilder
      Returns:
      The errorStatus.
    • setErrorStatus

      public ConversationEvent.Builder setErrorStatus(Status value)
       More detailed information about an error. Only set for type
       UNRECOVERABLE_ERROR_IN_PHONE_CALL.
       
      .google.rpc.Status error_status = 3;
    • setErrorStatus

      public ConversationEvent.Builder setErrorStatus(Status.Builder builderForValue)
       More detailed information about an error. Only set for type
       UNRECOVERABLE_ERROR_IN_PHONE_CALL.
       
      .google.rpc.Status error_status = 3;
    • mergeErrorStatus

      public ConversationEvent.Builder mergeErrorStatus(Status value)
       More detailed information about an error. Only set for type
       UNRECOVERABLE_ERROR_IN_PHONE_CALL.
       
      .google.rpc.Status error_status = 3;
    • clearErrorStatus

      public ConversationEvent.Builder clearErrorStatus()
       More detailed information about an error. Only set for type
       UNRECOVERABLE_ERROR_IN_PHONE_CALL.
       
      .google.rpc.Status error_status = 3;
    • getErrorStatusBuilder

      public Status.Builder getErrorStatusBuilder()
       More detailed information about an error. Only set for type
       UNRECOVERABLE_ERROR_IN_PHONE_CALL.
       
      .google.rpc.Status error_status = 3;
    • getErrorStatusOrBuilder

      public StatusOrBuilder getErrorStatusOrBuilder()
       More detailed information about an error. Only set for type
       UNRECOVERABLE_ERROR_IN_PHONE_CALL.
       
      .google.rpc.Status error_status = 3;
      Specified by:
      getErrorStatusOrBuilder in interface ConversationEventOrBuilder
    • hasNewMessagePayload

      public boolean hasNewMessagePayload()
       Payload of NEW_MESSAGE event.
       
      .google.cloud.dialogflow.v2.Message new_message_payload = 4;
      Specified by:
      hasNewMessagePayload in interface ConversationEventOrBuilder
      Returns:
      Whether the newMessagePayload field is set.
    • getNewMessagePayload

      public Message getNewMessagePayload()
       Payload of NEW_MESSAGE event.
       
      .google.cloud.dialogflow.v2.Message new_message_payload = 4;
      Specified by:
      getNewMessagePayload in interface ConversationEventOrBuilder
      Returns:
      The newMessagePayload.
    • setNewMessagePayload

      public ConversationEvent.Builder setNewMessagePayload(Message value)
       Payload of NEW_MESSAGE event.
       
      .google.cloud.dialogflow.v2.Message new_message_payload = 4;
    • setNewMessagePayload

      public ConversationEvent.Builder setNewMessagePayload(Message.Builder builderForValue)
       Payload of NEW_MESSAGE event.
       
      .google.cloud.dialogflow.v2.Message new_message_payload = 4;
    • mergeNewMessagePayload

      public ConversationEvent.Builder mergeNewMessagePayload(Message value)
       Payload of NEW_MESSAGE event.
       
      .google.cloud.dialogflow.v2.Message new_message_payload = 4;
    • clearNewMessagePayload

      public ConversationEvent.Builder clearNewMessagePayload()
       Payload of NEW_MESSAGE event.
       
      .google.cloud.dialogflow.v2.Message new_message_payload = 4;
    • getNewMessagePayloadBuilder

      public Message.Builder getNewMessagePayloadBuilder()
       Payload of NEW_MESSAGE event.
       
      .google.cloud.dialogflow.v2.Message new_message_payload = 4;
    • getNewMessagePayloadOrBuilder

      public MessageOrBuilder getNewMessagePayloadOrBuilder()
       Payload of NEW_MESSAGE event.
       
      .google.cloud.dialogflow.v2.Message new_message_payload = 4;
      Specified by:
      getNewMessagePayloadOrBuilder in interface ConversationEventOrBuilder
    • hasNewRecognitionResultPayload

      public boolean hasNewRecognitionResultPayload()
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
      Specified by:
      hasNewRecognitionResultPayload in interface ConversationEventOrBuilder
      Returns:
      Whether the newRecognitionResultPayload field is set.
    • getNewRecognitionResultPayload

      public StreamingRecognitionResult getNewRecognitionResultPayload()
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
      Specified by:
      getNewRecognitionResultPayload in interface ConversationEventOrBuilder
      Returns:
      The newRecognitionResultPayload.
    • setNewRecognitionResultPayload

      public ConversationEvent.Builder setNewRecognitionResultPayload(StreamingRecognitionResult value)
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
    • setNewRecognitionResultPayload

      public ConversationEvent.Builder setNewRecognitionResultPayload(StreamingRecognitionResult.Builder builderForValue)
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
    • mergeNewRecognitionResultPayload

      public ConversationEvent.Builder mergeNewRecognitionResultPayload(StreamingRecognitionResult value)
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
    • clearNewRecognitionResultPayload

      public ConversationEvent.Builder clearNewRecognitionResultPayload()
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
    • getNewRecognitionResultPayloadBuilder

      public StreamingRecognitionResult.Builder getNewRecognitionResultPayloadBuilder()
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
    • getNewRecognitionResultPayloadOrBuilder

      public StreamingRecognitionResultOrBuilder getNewRecognitionResultPayloadOrBuilder()
       Payload of NEW_RECOGNITION_RESULT event.
       
      .google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;
      Specified by:
      getNewRecognitionResultPayloadOrBuilder in interface ConversationEventOrBuilder