Package com.google.cloud.dialogflow.v2
Class ConversationEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
- com.google.cloud.dialogflow.v2.ConversationEvent.Builder
-
- All Implemented Interfaces:
ConversationEventOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ConversationEvent
public static final class ConversationEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder> implements ConversationEventOrBuilder
Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.
Protobuf typegoogle.cloud.dialogflow.v2.ConversationEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationEvent.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ConversationEvent
build()
ConversationEvent
buildPartial()
ConversationEvent.Builder
clear()
ConversationEvent.Builder
clearConversation()
The unique identifier of the conversation this notification refers to.ConversationEvent.Builder
clearErrorStatus()
More detailed information about an error.ConversationEvent.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ConversationEvent.Builder
clearNewMessagePayload()
Payload of NEW_MESSAGE event.ConversationEvent.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ConversationEvent.Builder
clearPayload()
ConversationEvent.Builder
clearType()
The type of the event that this notification refers to.ConversationEvent.Builder
clone()
String
getConversation()
The unique identifier of the conversation this notification refers to.com.google.protobuf.ByteString
getConversationBytes()
The unique identifier of the conversation this notification refers to.ConversationEvent
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.rpc.Status
getErrorStatus()
More detailed information about an error.com.google.rpc.Status.Builder
getErrorStatusBuilder()
More detailed information about an error.com.google.rpc.StatusOrBuilder
getErrorStatusOrBuilder()
More detailed information about an error.Message
getNewMessagePayload()
Payload of NEW_MESSAGE event.Message.Builder
getNewMessagePayloadBuilder()
Payload of NEW_MESSAGE event.MessageOrBuilder
getNewMessagePayloadOrBuilder()
Payload of NEW_MESSAGE event.ConversationEvent.PayloadCase
getPayloadCase()
ConversationEvent.Type
getType()
The type of the event that this notification refers to.int
getTypeValue()
The type of the event that this notification refers to.boolean
hasErrorStatus()
More detailed information about an error.boolean
hasNewMessagePayload()
Payload of NEW_MESSAGE event.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ConversationEvent.Builder
mergeErrorStatus(com.google.rpc.Status value)
More detailed information about an error.ConversationEvent.Builder
mergeFrom(ConversationEvent other)
ConversationEvent.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ConversationEvent.Builder
mergeFrom(com.google.protobuf.Message other)
ConversationEvent.Builder
mergeNewMessagePayload(Message value)
Payload of NEW_MESSAGE event.ConversationEvent.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ConversationEvent.Builder
setConversation(String value)
The unique identifier of the conversation this notification refers to.ConversationEvent.Builder
setConversationBytes(com.google.protobuf.ByteString value)
The unique identifier of the conversation this notification refers to.ConversationEvent.Builder
setErrorStatus(com.google.rpc.Status value)
More detailed information about an error.ConversationEvent.Builder
setErrorStatus(com.google.rpc.Status.Builder builderForValue)
More detailed information about an error.ConversationEvent.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ConversationEvent.Builder
setNewMessagePayload(Message value)
Payload of NEW_MESSAGE event.ConversationEvent.Builder
setNewMessagePayload(Message.Builder builderForValue)
Payload of NEW_MESSAGE event.ConversationEvent.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ConversationEvent.Builder
setType(ConversationEvent.Type value)
The type of the event that this notification refers to.ConversationEvent.Builder
setTypeValue(int value)
The type of the event that this notification refers to.ConversationEvent.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<ConversationEvent.Builder>
-
clear
public ConversationEvent.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<ConversationEvent.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<ConversationEvent.Builder>
-
getDefaultInstanceForType
public ConversationEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConversationEvent build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConversationEvent buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConversationEvent.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<ConversationEvent.Builder>
-
setField
public ConversationEvent.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<ConversationEvent.Builder>
-
clearField
public ConversationEvent.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<ConversationEvent.Builder>
-
clearOneof
public ConversationEvent.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<ConversationEvent.Builder>
-
setRepeatedField
public ConversationEvent.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<ConversationEvent.Builder>
-
addRepeatedField
public ConversationEvent.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<ConversationEvent.Builder>
-
mergeFrom
public ConversationEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ConversationEvent.Builder>
-
mergeFrom
public ConversationEvent.Builder mergeFrom(ConversationEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
mergeFrom
public ConversationEvent.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<ConversationEvent.Builder>
- Throws:
IOException
-
getPayloadCase
public ConversationEvent.PayloadCase getPayloadCase()
- Specified by:
getPayloadCase
in interfaceConversationEventOrBuilder
-
clearPayload
public ConversationEvent.Builder clearPayload()
-
getConversation
public String getConversation()
The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Specified by:
getConversation
in interfaceConversationEventOrBuilder
- Returns:
- The conversation.
-
getConversationBytes
public com.google.protobuf.ByteString getConversationBytes()
The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Specified by:
getConversationBytes
in interfaceConversationEventOrBuilder
- Returns:
- The bytes for conversation.
-
setConversation
public ConversationEvent.Builder setConversation(String value)
The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Parameters:
value
- The conversation to set.- Returns:
- This builder for chaining.
-
clearConversation
public ConversationEvent.Builder clearConversation()
The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Returns:
- This builder for chaining.
-
setConversationBytes
public ConversationEvent.Builder setConversationBytes(com.google.protobuf.ByteString value)
The unique identifier of the conversation this notification refers to. Format: `projects/<Project ID>/conversations/<Conversation ID>`.
string conversation = 1;
- Parameters:
value
- The bytes for conversation to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
The type of the event that this notification refers to.
.google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
- Specified by:
getTypeValue
in interfaceConversationEventOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public ConversationEvent.Builder setTypeValue(int value)
The type of the event that this notification refers to.
.google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public ConversationEvent.Type getType()
The type of the event that this notification refers to.
.google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
- Specified by:
getType
in interfaceConversationEventOrBuilder
- Returns:
- The type.
-
setType
public ConversationEvent.Builder setType(ConversationEvent.Type value)
The type of the event that this notification refers to.
.google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public ConversationEvent.Builder clearType()
The type of the event that this notification refers to.
.google.cloud.dialogflow.v2.ConversationEvent.Type type = 2;
- Returns:
- This builder for chaining.
-
hasErrorStatus
public boolean hasErrorStatus()
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
- Specified by:
hasErrorStatus
in interfaceConversationEventOrBuilder
- Returns:
- Whether the errorStatus field is set.
-
getErrorStatus
public com.google.rpc.Status getErrorStatus()
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
- Specified by:
getErrorStatus
in interfaceConversationEventOrBuilder
- Returns:
- The errorStatus.
-
setErrorStatus
public ConversationEvent.Builder setErrorStatus(com.google.rpc.Status value)
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
-
setErrorStatus
public ConversationEvent.Builder setErrorStatus(com.google.rpc.Status.Builder builderForValue)
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
-
mergeErrorStatus
public ConversationEvent.Builder mergeErrorStatus(com.google.rpc.Status value)
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
-
clearErrorStatus
public ConversationEvent.Builder clearErrorStatus()
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
-
getErrorStatusBuilder
public com.google.rpc.Status.Builder getErrorStatusBuilder()
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
-
getErrorStatusOrBuilder
public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder()
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3;
- Specified by:
getErrorStatusOrBuilder
in interfaceConversationEventOrBuilder
-
hasNewMessagePayload
public boolean hasNewMessagePayload()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;
- Specified by:
hasNewMessagePayload
in interfaceConversationEventOrBuilder
- Returns:
- Whether the newMessagePayload field is set.
-
getNewMessagePayload
public Message getNewMessagePayload()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;
- Specified by:
getNewMessagePayload
in interfaceConversationEventOrBuilder
- Returns:
- The newMessagePayload.
-
setNewMessagePayload
public ConversationEvent.Builder setNewMessagePayload(Message value)
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;
-
setNewMessagePayload
public ConversationEvent.Builder setNewMessagePayload(Message.Builder builderForValue)
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;
-
mergeNewMessagePayload
public ConversationEvent.Builder mergeNewMessagePayload(Message value)
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;
-
clearNewMessagePayload
public ConversationEvent.Builder clearNewMessagePayload()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;
-
getNewMessagePayloadBuilder
public Message.Builder getNewMessagePayloadBuilder()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;
-
getNewMessagePayloadOrBuilder
public MessageOrBuilder getNewMessagePayloadOrBuilder()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;
- Specified by:
getNewMessagePayloadOrBuilder
in interfaceConversationEventOrBuilder
-
setUnknownFields
public final ConversationEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
mergeUnknownFields
public final ConversationEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
-