Class NotificationConfig.Builder

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

public static final class NotificationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<NotificationConfig.Builder> implements NotificationConfigOrBuilder
 Defines notification behavior.
 
Protobuf type google.cloud.dialogflow.v2.NotificationConfig
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Format of message.
    Name of the Pub/Sub topic to publish conversation events like [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] as serialized [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Format of message.
    int
    Format of message.
    Name of the Pub/Sub topic to publish conversation events like [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] as serialized [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
    com.google.protobuf.ByteString
    Name of the Pub/Sub topic to publish conversation events like [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] as serialized [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
    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)
     
    Format of message.
    Format of message.
    Name of the Pub/Sub topic to publish conversation events like [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] as serialized [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
    setTopicBytes(com.google.protobuf.ByteString value)
    Name of the Pub/Sub topic to publish conversation events like [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] as serialized [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.

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

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

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

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

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

      public NotificationConfig.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<NotificationConfig.Builder>
      Throws:
      IOException
    • getTopic

      public String getTopic()
       Name of the Pub/Sub topic to publish conversation
       events like
       [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED]
       as serialized
       [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
      
       For telephony integration to receive notification, make sure either this
       topic is in the same project as the conversation or you grant
       `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service
       Agent` role in the topic project.
      
       For chat integration to receive notification, make sure API caller has been
       granted the `Dialogflow Service Agent` role for the topic.
      
       Format: `projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>`.
       
      string topic = 1;
      Specified by:
      getTopic in interface NotificationConfigOrBuilder
      Returns:
      The topic.
    • getTopicBytes

      public com.google.protobuf.ByteString getTopicBytes()
       Name of the Pub/Sub topic to publish conversation
       events like
       [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED]
       as serialized
       [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
      
       For telephony integration to receive notification, make sure either this
       topic is in the same project as the conversation or you grant
       `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service
       Agent` role in the topic project.
      
       For chat integration to receive notification, make sure API caller has been
       granted the `Dialogflow Service Agent` role for the topic.
      
       Format: `projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>`.
       
      string topic = 1;
      Specified by:
      getTopicBytes in interface NotificationConfigOrBuilder
      Returns:
      The bytes for topic.
    • setTopic

      public NotificationConfig.Builder setTopic(String value)
       Name of the Pub/Sub topic to publish conversation
       events like
       [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED]
       as serialized
       [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
      
       For telephony integration to receive notification, make sure either this
       topic is in the same project as the conversation or you grant
       `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service
       Agent` role in the topic project.
      
       For chat integration to receive notification, make sure API caller has been
       granted the `Dialogflow Service Agent` role for the topic.
      
       Format: `projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>`.
       
      string topic = 1;
      Parameters:
      value - The topic to set.
      Returns:
      This builder for chaining.
    • clearTopic

      public NotificationConfig.Builder clearTopic()
       Name of the Pub/Sub topic to publish conversation
       events like
       [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED]
       as serialized
       [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
      
       For telephony integration to receive notification, make sure either this
       topic is in the same project as the conversation or you grant
       `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service
       Agent` role in the topic project.
      
       For chat integration to receive notification, make sure API caller has been
       granted the `Dialogflow Service Agent` role for the topic.
      
       Format: `projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>`.
       
      string topic = 1;
      Returns:
      This builder for chaining.
    • setTopicBytes

      public NotificationConfig.Builder setTopicBytes(com.google.protobuf.ByteString value)
       Name of the Pub/Sub topic to publish conversation
       events like
       [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED]
       as serialized
       [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos.
      
       For telephony integration to receive notification, make sure either this
       topic is in the same project as the conversation or you grant
       `service-<Conversation Project
       Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service
       Agent` role in the topic project.
      
       For chat integration to receive notification, make sure API caller has been
       granted the `Dialogflow Service Agent` role for the topic.
      
       Format: `projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>`.
       
      string topic = 1;
      Parameters:
      value - The bytes for topic to set.
      Returns:
      This builder for chaining.
    • getMessageFormatValue

      public int getMessageFormatValue()
       Format of message.
       
      .google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
      Specified by:
      getMessageFormatValue in interface NotificationConfigOrBuilder
      Returns:
      The enum numeric value on the wire for messageFormat.
    • setMessageFormatValue

      public NotificationConfig.Builder setMessageFormatValue(int value)
       Format of message.
       
      .google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
      Parameters:
      value - The enum numeric value on the wire for messageFormat to set.
      Returns:
      This builder for chaining.
    • getMessageFormat

      public NotificationConfig.MessageFormat getMessageFormat()
       Format of message.
       
      .google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
      Specified by:
      getMessageFormat in interface NotificationConfigOrBuilder
      Returns:
      The messageFormat.
    • setMessageFormat

       Format of message.
       
      .google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
      Parameters:
      value - The messageFormat to set.
      Returns:
      This builder for chaining.
    • clearMessageFormat

      public NotificationConfig.Builder clearMessageFormat()
       Format of message.
       
      .google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
      Returns:
      This builder for chaining.