Class ConversationEvent (4.3.1)

public final class ConversationEvent extends GeneratedMessageV3 implements ConversationEventOrBuilder

Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.

Protobuf type google.cloud.dialogflow.v2beta1.ConversationEvent

Fields

CONVERSATION_FIELD_NUMBER

public static final int CONVERSATION_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_STATUS_FIELD_NUMBER

public static final int ERROR_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

NEW_MESSAGE_PAYLOAD_FIELD_NUMBER

public static final int NEW_MESSAGE_PAYLOAD_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getConversation()

public String getConversation()

Required. The unique identifier of the conversation this notification refers to. Format: projects/<Project ID>/conversations/<Conversation ID>.

string conversation = 1;

Returns
TypeDescription
String

The conversation.

getConversationBytes()

public ByteString getConversationBytes()

Required. The unique identifier of the conversation this notification refers to. Format: projects/<Project ID>/conversations/<Conversation ID>.

string conversation = 1;

Returns
TypeDescription
ByteString

The bytes for conversation.

getDefaultInstance()

public static ConversationEvent getDefaultInstance()
Returns
TypeDescription
ConversationEvent

getDefaultInstanceForType()

public ConversationEvent getDefaultInstanceForType()
Returns
TypeDescription
ConversationEvent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getErrorStatus()

public Status getErrorStatus()

Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.

.google.rpc.Status error_status = 3;

Returns
TypeDescription
com.google.rpc.Status

The errorStatus.

getErrorStatusOrBuilder()

public StatusOrBuilder getErrorStatusOrBuilder()

Optional. More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.

.google.rpc.Status error_status = 3;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getNewMessagePayload()

public Message getNewMessagePayload()

Payload of NEW_MESSAGE event.

.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;

Returns
TypeDescription
Message

The newMessagePayload.

getNewMessagePayloadOrBuilder()

public MessageOrBuilder getNewMessagePayloadOrBuilder()

Payload of NEW_MESSAGE event.

.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;

Returns
TypeDescription
MessageOrBuilder

getParserForType()

public Parser<ConversationEvent> getParserForType()
Returns
TypeDescription
Parser<ConversationEvent>
Overrides

getPayloadCase()

public ConversationEvent.PayloadCase getPayloadCase()
Returns
TypeDescription
ConversationEvent.PayloadCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public ConversationEvent.Type getType()

Required. The type of the event that this notification refers to.

.google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;

Returns
TypeDescription
ConversationEvent.Type

The type.

getTypeValue()

public int getTypeValue()

Required. The type of the event that this notification refers to.

.google.cloud.dialogflow.v2beta1.ConversationEvent.Type type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasErrorStatus()

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;

Returns
TypeDescription
boolean

Whether the errorStatus field is set.

hasNewMessagePayload()

public boolean hasNewMessagePayload()

Payload of NEW_MESSAGE event.

.google.cloud.dialogflow.v2beta1.Message new_message_payload = 4;

Returns
TypeDescription
boolean

Whether the newMessagePayload field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static ConversationEvent.Builder newBuilder()
Returns
TypeDescription
ConversationEvent.Builder

newBuilder(ConversationEvent prototype)

public static ConversationEvent.Builder newBuilder(ConversationEvent prototype)
Parameter
NameDescription
prototypeConversationEvent
Returns
TypeDescription
ConversationEvent.Builder

newBuilderForType()

public ConversationEvent.Builder newBuilderForType()
Returns
TypeDescription
ConversationEvent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConversationEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConversationEvent.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static ConversationEvent parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConversationEvent parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConversationEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConversationEvent parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConversationEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConversationEvent parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConversationEvent parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConversationEvent parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConversationEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConversationEvent> parser()
Returns
TypeDescription
Parser<ConversationEvent>

toBuilder()

public ConversationEvent.Builder toBuilder()
Returns
TypeDescription
ConversationEvent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException