public static final class ConversationEvent.Builder extends GeneratedMessageV3.Builder<ConversationEvent.Builder> implements ConversationEventOrBuilder
Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.Protobuf type
google.cloud.dialogflow.v2beta1.ConversationEvent
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<ConversationEvent.Builder>
public ConversationEvent.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public ConversationEvent getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ConversationEvent build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ConversationEvent buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ConversationEvent.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public ConversationEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public ConversationEvent.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public ConversationEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public ConversationEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public ConversationEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public ConversationEvent.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ConversationEvent.Builder>
public ConversationEvent.Builder mergeFrom(ConversationEvent other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public ConversationEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ConversationEvent.Builder>
IOException
public ConversationEvent.PayloadCase getPayloadCase()
getPayloadCase
in interface ConversationEventOrBuilder
public ConversationEvent.Builder clearPayload()
public String getConversation()
Required. The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
getConversation
in interface ConversationEventOrBuilder
public ByteString getConversationBytes()
Required. The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
getConversationBytes
in interface ConversationEventOrBuilder
public ConversationEvent.Builder setConversation(String value)
Required. The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
value
- The conversation to set.public ConversationEvent.Builder clearConversation()
Required. The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
public ConversationEvent.Builder setConversationBytes(ByteString value)
Required. The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
value
- The bytes for conversation to set.public int getTypeValue()
Required. The type of the event that this notification refers to.
.google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;
getTypeValue
in interface ConversationEventOrBuilder
public ConversationEvent.Builder setTypeValue(int value)
Required. The type of the event that this notification refers to.
.google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;
value
- The enum numeric value on the wire for type to set.public ConversationEvent.Type getType()
Required. The type of the event that this notification refers to.
.google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;
getType
in interface ConversationEventOrBuilder
public ConversationEvent.Builder setType(ConversationEvent.Type value)
Required. The type of the event that this notification refers to.
.google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;
value
- The type to set.public ConversationEvent.Builder clearType()
Required. The type of the event that this notification refers to.
.google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;
public boolean hasErrorStatus()
Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
hasErrorStatus
in interface ConversationEventOrBuilder
public com.google.rpc.Status getErrorStatus()
Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
getErrorStatus
in interface ConversationEventOrBuilder
public ConversationEvent.Builder setErrorStatus(com.google.rpc.Status value)
Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
public ConversationEvent.Builder setErrorStatus(com.google.rpc.Status.Builder builderForValue)
Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
public ConversationEvent.Builder mergeErrorStatus(com.google.rpc.Status value)
Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
public ConversationEvent.Builder clearErrorStatus()
Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
public com.google.rpc.Status.Builder getErrorStatusBuilder()
Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder()
Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
getErrorStatusOrBuilder
in interface ConversationEventOrBuilder
public boolean hasNewMessagePayload()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
hasNewMessagePayload
in interface ConversationEventOrBuilder
public Message getNewMessagePayload()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
getNewMessagePayload
in interface ConversationEventOrBuilder
public ConversationEvent.Builder setNewMessagePayload(Message value)
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
public ConversationEvent.Builder setNewMessagePayload(Message.Builder builderForValue)
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
public ConversationEvent.Builder mergeNewMessagePayload(Message value)
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
public ConversationEvent.Builder clearNewMessagePayload()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
public Message.Builder getNewMessagePayloadBuilder()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
public MessageOrBuilder getNewMessagePayloadOrBuilder()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;
getNewMessagePayloadOrBuilder
in interface ConversationEventOrBuilder
public final ConversationEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
public final ConversationEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ConversationEvent.Builder>
Copyright © 2022 Google LLC. All rights reserved.