Class NotificationConfig.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public NotificationConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
      • setField

        public NotificationConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
      • clearField

        public NotificationConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
      • clearOneof

        public NotificationConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
      • setRepeatedField

        public NotificationConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
      • addRepeatedField

        public NotificationConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v2beta1.ConversationEvent.Type.CONVERSATION_STARTED]
         as serialized
         [ConversationEvent][google.cloud.dialogflow.v2beta1.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.v2beta1.ConversationEvent.Type.CONVERSATION_STARTED]
         as serialized
         [ConversationEvent][google.cloud.dialogflow.v2beta1.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.v2beta1.ConversationEvent.Type.CONVERSATION_STARTED]
         as serialized
         [ConversationEvent][google.cloud.dialogflow.v2beta1.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.v2beta1.ConversationEvent.Type.CONVERSATION_STARTED]
         as serialized
         [ConversationEvent][google.cloud.dialogflow.v2beta1.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.v2beta1.ConversationEvent.Type.CONVERSATION_STARTED]
         as serialized
         [ConversationEvent][google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.NotificationConfig.MessageFormat message_format = 2;
        Parameters:
        value - The enum numeric value on the wire for messageFormat to set.
        Returns:
        This builder for chaining.
      • setMessageFormat

        public NotificationConfig.Builder setMessageFormat​(NotificationConfig.MessageFormat value)
         Format of message.
         
        .google.cloud.dialogflow.v2beta1.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.v2beta1.NotificationConfig.MessageFormat message_format = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NotificationConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
      • mergeUnknownFields

        public final NotificationConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>