public static final class NotificationConfig.Builder extends GeneratedMessageV3.Builder<NotificationConfig.Builder> implements NotificationConfigOrBuilder
Defines notification behavior.Protobuf type
google.cloud.dialogflow.v2.NotificationConfig
Modifier and Type | Method and Description |
---|---|
NotificationConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
NotificationConfig |
build() |
NotificationConfig |
buildPartial() |
NotificationConfig.Builder |
clear() |
NotificationConfig.Builder |
clearField(Descriptors.FieldDescriptor field) |
NotificationConfig.Builder |
clearMessageFormat()
Format of message.
|
NotificationConfig.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
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.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
NotificationConfig.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
NotificationConfig.Builder |
mergeFrom(Message other) |
NotificationConfig.Builder |
mergeFrom(NotificationConfig other) |
NotificationConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
NotificationConfig.Builder |
setField(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(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(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(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public NotificationConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public NotificationConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public NotificationConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder mergeFrom(NotificationConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<NotificationConfig.Builder>
IOException
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;
getTopic
in interface NotificationConfigOrBuilder
public 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;
getTopicBytes
in interface NotificationConfigOrBuilder
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;
value
- The topic to set.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;
public NotificationConfig.Builder setTopicBytes(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;
value
- The bytes for topic to set.public int getMessageFormatValue()
Format of message.
.google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
getMessageFormatValue
in interface NotificationConfigOrBuilder
public NotificationConfig.Builder setMessageFormatValue(int value)
Format of message.
.google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
value
- The enum numeric value on the wire for messageFormat to set.public NotificationConfig.MessageFormat getMessageFormat()
Format of message.
.google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
getMessageFormat
in interface NotificationConfigOrBuilder
public NotificationConfig.Builder setMessageFormat(NotificationConfig.MessageFormat value)
Format of message.
.google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
value
- The messageFormat to set.public NotificationConfig.Builder clearMessageFormat()
Format of message.
.google.cloud.dialogflow.v2.NotificationConfig.MessageFormat message_format = 2;
public final NotificationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public final NotificationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.