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.GeneratedMessage.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.GeneratedMessage.Builder<ConversationEvent.Builder>
implements ConversationEventOrBuilder
Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.Protobuf type
google.cloud.dialogflow.v2.ConversationEvent-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The unique identifier of the conversation this notification refers to.More detailed information about an error.Payload of NEW_MESSAGE event.Payload of NEW_RECOGNITION_RESULT event.The type of the event that this notification refers to.The unique identifier of the conversation this notification refers to.com.google.protobuf.ByteStringThe unique identifier of the conversation this notification refers to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorMore detailed information about an error.More detailed information about an error.More detailed information about an error.Payload of NEW_MESSAGE event.Payload of NEW_MESSAGE event.Payload of NEW_MESSAGE event.Payload of NEW_RECOGNITION_RESULT event.Payload of NEW_RECOGNITION_RESULT event.Payload of NEW_RECOGNITION_RESULT event.getType()The type of the event that this notification refers to.intThe type of the event that this notification refers to.booleanMore detailed information about an error.booleanPayload of NEW_MESSAGE event.booleanPayload of NEW_RECOGNITION_RESULT event.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeErrorStatus(Status value) More detailed information about an error.mergeFrom(ConversationEvent other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeNewMessagePayload(Message value) Payload of NEW_MESSAGE event.Payload of NEW_RECOGNITION_RESULT event.setConversation(String value) The unique identifier of the conversation this notification refers to.setConversationBytes(com.google.protobuf.ByteString value) The unique identifier of the conversation this notification refers to.setErrorStatus(Status value) More detailed information about an error.setErrorStatus(Status.Builder builderForValue) More detailed information about an error.setNewMessagePayload(Message value) Payload of NEW_MESSAGE event.setNewMessagePayload(Message.Builder builderForValue) Payload of NEW_MESSAGE event.Payload of NEW_RECOGNITION_RESULT event.setNewRecognitionResultPayload(StreamingRecognitionResult.Builder builderForValue) Payload of NEW_RECOGNITION_RESULT event.setType(ConversationEvent.Type value) The type of the event that this notification refers to.setTypeValue(int value) The type of the event that this notification refers to.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ConversationEvent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ConversationEvent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConversationEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
- Specified by:
getPayloadCasein interfaceConversationEventOrBuilder
-
clearPayload
-
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
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
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
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
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
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
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
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
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
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3; -
setErrorStatus
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3; -
mergeErrorStatus
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3; -
clearErrorStatus
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3; -
getErrorStatusBuilder
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
.google.rpc.Status error_status = 3; -
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
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;- Specified by:
getNewMessagePayloadin interfaceConversationEventOrBuilder- Returns:
- The newMessagePayload.
-
setNewMessagePayload
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4; -
setNewMessagePayload
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4; -
mergeNewMessagePayload
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4; -
clearNewMessagePayload
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4; -
getNewMessagePayloadBuilder
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4; -
getNewMessagePayloadOrBuilder
Payload of NEW_MESSAGE event.
.google.cloud.dialogflow.v2.Message new_message_payload = 4;- Specified by:
getNewMessagePayloadOrBuilderin interfaceConversationEventOrBuilder
-
hasNewRecognitionResultPayload
public boolean hasNewRecognitionResultPayload()Payload of NEW_RECOGNITION_RESULT event.
.google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;- Specified by:
hasNewRecognitionResultPayloadin interfaceConversationEventOrBuilder- Returns:
- Whether the newRecognitionResultPayload field is set.
-
getNewRecognitionResultPayload
Payload of NEW_RECOGNITION_RESULT event.
.google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;- Specified by:
getNewRecognitionResultPayloadin interfaceConversationEventOrBuilder- Returns:
- The newRecognitionResultPayload.
-
setNewRecognitionResultPayload
Payload of NEW_RECOGNITION_RESULT event.
.google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5; -
setNewRecognitionResultPayload
public ConversationEvent.Builder setNewRecognitionResultPayload(StreamingRecognitionResult.Builder builderForValue) Payload of NEW_RECOGNITION_RESULT event.
.google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5; -
mergeNewRecognitionResultPayload
Payload of NEW_RECOGNITION_RESULT event.
.google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5; -
clearNewRecognitionResultPayload
Payload of NEW_RECOGNITION_RESULT event.
.google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5; -
getNewRecognitionResultPayloadBuilder
Payload of NEW_RECOGNITION_RESULT event.
.google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5; -
getNewRecognitionResultPayloadOrBuilder
Payload of NEW_RECOGNITION_RESULT event.
.google.cloud.dialogflow.v2.StreamingRecognitionResult new_recognition_result_payload = 5;- Specified by:
getNewRecognitionResultPayloadOrBuilderin interfaceConversationEventOrBuilder
-