Class ConversationEvent.Builder (4.25.0)

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.v2.ConversationEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConversationEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversationEvent.Builder
Overrides

build()

public ConversationEvent build()
Returns
Type Description
ConversationEvent

buildPartial()

public ConversationEvent buildPartial()
Returns
Type Description
ConversationEvent

clear()

public ConversationEvent.Builder clear()
Returns
Type Description
ConversationEvent.Builder
Overrides

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
Type Description
ConversationEvent.Builder

This builder for chaining.

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;

Returns
Type Description
ConversationEvent.Builder

clearField(Descriptors.FieldDescriptor field)

public ConversationEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConversationEvent.Builder
Overrides

clearNewMessagePayload()

public ConversationEvent.Builder clearNewMessagePayload()

Payload of NEW_MESSAGE event.

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

Returns
Type Description
ConversationEvent.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConversationEvent.Builder
Overrides

clearPayload()

public ConversationEvent.Builder clearPayload()
Returns
Type Description
ConversationEvent.Builder

clearType()

public ConversationEvent.Builder clearType()

The type of the event that this notification refers to.

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

Returns
Type Description
ConversationEvent.Builder

This builder for chaining.

clone()

public ConversationEvent.Builder clone()
Returns
Type Description
ConversationEvent.Builder
Overrides

getConversation()

public String getConversation()

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

string conversation = 1;

Returns
Type Description
String

The conversation.

getConversationBytes()

public ByteString getConversationBytes()

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

string conversation = 1;

Returns
Type Description
ByteString

The bytes for conversation.

getDefaultInstanceForType()

public ConversationEvent getDefaultInstanceForType()
Returns
Type Description
ConversationEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getErrorStatus()

public Status getErrorStatus()

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

.google.rpc.Status error_status = 3;

Returns
Type Description
com.google.rpc.Status

The errorStatus.

getErrorStatusBuilder()

public Status.Builder getErrorStatusBuilder()

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

.google.rpc.Status error_status = 3;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorStatusOrBuilder()

public StatusOrBuilder getErrorStatusOrBuilder()

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

.google.rpc.Status error_status = 3;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getNewMessagePayload()

public Message getNewMessagePayload()

Payload of NEW_MESSAGE event.

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

Returns
Type Description
Message

The newMessagePayload.

getNewMessagePayloadBuilder()

public Message.Builder getNewMessagePayloadBuilder()

Payload of NEW_MESSAGE event.

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

Returns
Type Description
Message.Builder

getNewMessagePayloadOrBuilder()

public MessageOrBuilder getNewMessagePayloadOrBuilder()

Payload of NEW_MESSAGE event.

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

Returns
Type Description
MessageOrBuilder

getPayloadCase()

public ConversationEvent.PayloadCase getPayloadCase()
Returns
Type Description
ConversationEvent.PayloadCase

getType()

public ConversationEvent.Type getType()

The type of the event that this notification refers to.

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

Returns
Type Description
ConversationEvent.Type

The type.

getTypeValue()

public int getTypeValue()

The type of the event that this notification refers to.

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

Returns
Type Description
int

The enum numeric value on the wire for type.

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;

Returns
Type Description
boolean

Whether the errorStatus field is set.

hasNewMessagePayload()

public boolean hasNewMessagePayload()

Payload of NEW_MESSAGE event.

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

Returns
Type Description
boolean

Whether the newMessagePayload field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeErrorStatus(Status value)

public ConversationEvent.Builder mergeErrorStatus(Status value)

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

.google.rpc.Status error_status = 3;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ConversationEvent.Builder

mergeFrom(ConversationEvent other)

public ConversationEvent.Builder mergeFrom(ConversationEvent other)
Parameter
Name Description
other ConversationEvent
Returns
Type Description
ConversationEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConversationEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConversationEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConversationEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConversationEvent.Builder
Overrides

mergeNewMessagePayload(Message value)

public ConversationEvent.Builder mergeNewMessagePayload(Message value)

Payload of NEW_MESSAGE event.

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

Parameter
Name Description
value Message
Returns
Type Description
ConversationEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversationEvent.Builder
Overrides

setConversation(String value)

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;

Parameter
Name Description
value String

The conversation to set.

Returns
Type Description
ConversationEvent.Builder

This builder for chaining.

setConversationBytes(ByteString value)

public ConversationEvent.Builder setConversationBytes(ByteString value)

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

string conversation = 1;

Parameter
Name Description
value ByteString

The bytes for conversation to set.

Returns
Type Description
ConversationEvent.Builder

This builder for chaining.

setErrorStatus(Status value)

public ConversationEvent.Builder setErrorStatus(Status value)

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

.google.rpc.Status error_status = 3;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ConversationEvent.Builder

setErrorStatus(Status.Builder builderForValue)

public ConversationEvent.Builder setErrorStatus(Status.Builder builderForValue)

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

.google.rpc.Status error_status = 3;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
ConversationEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConversationEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversationEvent.Builder
Overrides

setNewMessagePayload(Message value)

public ConversationEvent.Builder setNewMessagePayload(Message value)

Payload of NEW_MESSAGE event.

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

Parameter
Name Description
value Message
Returns
Type Description
ConversationEvent.Builder

setNewMessagePayload(Message.Builder builderForValue)

public ConversationEvent.Builder setNewMessagePayload(Message.Builder builderForValue)

Payload of NEW_MESSAGE event.

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

Parameter
Name Description
builderForValue Message.Builder
Returns
Type Description
ConversationEvent.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConversationEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConversationEvent.Builder
Overrides

setType(ConversationEvent.Type value)

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;

Parameter
Name Description
value ConversationEvent.Type

The type to set.

Returns
Type Description
ConversationEvent.Builder

This builder for chaining.

setTypeValue(int value)

public ConversationEvent.Builder setTypeValue(int value)

The type of the event that this notification refers to.

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

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ConversationEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversationEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversationEvent.Builder
Overrides