Package com.google.cloud.dialogflow.v2
Class NotificationConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<NotificationConfig.Builder> implements NotificationConfigOrBuilder
Defines notification behavior.
Protobuf typegoogle.cloud.dialogflow.v2.NotificationConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NotificationConfig
build()
NotificationConfig
buildPartial()
NotificationConfig.Builder
clear()
NotificationConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
NotificationConfig.Builder
clearMessageFormat()
Format of message.NotificationConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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.NotificationConfig.Builder
clone()
NotificationConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
NotificationConfig.MessageFormat
getMessageFormat()
Format of message.int
getMessageFormatValue()
Format of message.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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
NotificationConfig.Builder
mergeFrom(NotificationConfig other)
NotificationConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NotificationConfig.Builder
mergeFrom(com.google.protobuf.Message other)
NotificationConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
NotificationConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
NotificationConfig.Builder
setMessageFormat(NotificationConfig.MessageFormat value)
Format of message.NotificationConfig.Builder
setMessageFormatValue(int value)
Format of message.NotificationConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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.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.NotificationConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
clear
public NotificationConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
getDefaultInstanceForType
public NotificationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NotificationConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NotificationConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NotificationConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
setField
public NotificationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
clearField
public NotificationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
clearOneof
public NotificationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
addRepeatedField
public NotificationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
mergeFrom
public NotificationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NotificationConfig.Builder>
-
mergeFrom
public NotificationConfig.Builder mergeFrom(NotificationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceNotificationConfigOrBuilder
- 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 interfaceNotificationConfigOrBuilder
- 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 interfaceNotificationConfigOrBuilder
- 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 interfaceNotificationConfigOrBuilder
- Returns:
- The messageFormat.
-
setMessageFormat
public NotificationConfig.Builder setMessageFormat(NotificationConfig.MessageFormat value)
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.
-
setUnknownFields
public final NotificationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
mergeUnknownFields
public final NotificationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
-