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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConversationEventbuild()ConversationEventbuildPartial()ConversationEvent.Builderclear()ConversationEvent.BuilderclearConversation()The unique identifier of the conversation this notification refers to.ConversationEvent.BuilderclearErrorStatus()More detailed information about an error.ConversationEvent.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ConversationEvent.BuilderclearNewMessagePayload()Payload of NEW_MESSAGE event.ConversationEvent.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ConversationEvent.BuilderclearPayload()ConversationEvent.BuilderclearType()The type of the event that this notification refers to.ConversationEvent.Builderclone()StringgetConversation()The unique identifier of the conversation this notification refers to.com.google.protobuf.ByteStringgetConversationBytes()The unique identifier of the conversation this notification refers to.ConversationEventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.rpc.StatusgetErrorStatus()More detailed information about an error.com.google.rpc.Status.BuildergetErrorStatusBuilder()More detailed information about an error.com.google.rpc.StatusOrBuildergetErrorStatusOrBuilder()More detailed information about an error.MessagegetNewMessagePayload()Payload of NEW_MESSAGE event.Message.BuildergetNewMessagePayloadBuilder()Payload of NEW_MESSAGE event.MessageOrBuildergetNewMessagePayloadOrBuilder()Payload of NEW_MESSAGE event.ConversationEvent.PayloadCasegetPayloadCase()ConversationEvent.TypegetType()The type of the event that this notification refers to.intgetTypeValue()The type of the event that this notification refers to.booleanhasErrorStatus()More detailed information about an error.booleanhasNewMessagePayload()Payload of NEW_MESSAGE event.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ConversationEvent.BuildermergeErrorStatus(com.google.rpc.Status value)More detailed information about an error.ConversationEvent.BuildermergeFrom(ConversationEvent other)ConversationEvent.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ConversationEvent.BuildermergeFrom(com.google.protobuf.Message other)ConversationEvent.BuildermergeNewMessagePayload(Message value)Payload of NEW_MESSAGE event.ConversationEvent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ConversationEvent.BuildersetConversation(String value)The unique identifier of the conversation this notification refers to.ConversationEvent.BuildersetConversationBytes(com.google.protobuf.ByteString value)The unique identifier of the conversation this notification refers to.ConversationEvent.BuildersetErrorStatus(com.google.rpc.Status value)More detailed information about an error.ConversationEvent.BuildersetErrorStatus(com.google.rpc.Status.Builder builderForValue)More detailed information about an error.ConversationEvent.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConversationEvent.BuildersetNewMessagePayload(Message value)Payload of NEW_MESSAGE event.ConversationEvent.BuildersetNewMessagePayload(Message.Builder builderForValue)Payload of NEW_MESSAGE event.ConversationEvent.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ConversationEvent.BuildersetType(ConversationEvent.Type value)The type of the event that this notification refers to.ConversationEvent.BuildersetTypeValue(int value)The type of the event that this notification refers to.ConversationEvent.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
clear
public ConversationEvent.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
getDefaultInstanceForType
public ConversationEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConversationEvent build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConversationEvent buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConversationEvent.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
setField
public ConversationEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
clearField
public ConversationEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
clearOneof
public ConversationEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
setRepeatedField
public ConversationEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
addRepeatedField
public ConversationEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
mergeFrom
public ConversationEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConversationEvent.Builder>
-
mergeFrom
public ConversationEvent.Builder mergeFrom(ConversationEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConversationEvent.Builder>- Throws:
IOException
-
getPayloadCase
public ConversationEvent.PayloadCase getPayloadCase()
- Specified by:
getPayloadCasein 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:
getConversationin 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:
getConversationBytesin 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:
getTypeValuein 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:
getTypein 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:
hasErrorStatusin 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:
getErrorStatusin 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:
getErrorStatusOrBuilderin interfaceConversationEventOrBuilder
-
hasNewMessagePayload
public boolean hasNewMessagePayload()
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;- Specified by:
hasNewMessagePayloadin 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:
getNewMessagePayloadin 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:
getNewMessagePayloadOrBuilderin interfaceConversationEventOrBuilder
-
setUnknownFields
public final ConversationEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
mergeUnknownFields
public final ConversationEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConversationEvent.Builder>
-
-