Class ConversationEvent.Builder (4.5.11)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConversationEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConversationEvent.Builder
Overrides

build()

public ConversationEvent build()
Returns
TypeDescription
ConversationEvent

buildPartial()

public ConversationEvent buildPartial()
Returns
TypeDescription
ConversationEvent

clear()

public ConversationEvent.Builder clear()
Returns
TypeDescription
ConversationEvent.Builder
Overrides

clearConversation()

public ConversationEvent.Builder clearConversation()

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

string conversation = 1;

Returns
TypeDescription
ConversationEvent.Builder

This builder for chaining.

clearErrorStatus()

public ConversationEvent.Builder clearErrorStatus()

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

.google.rpc.Status error_status = 3;

Returns
TypeDescription
ConversationEvent.Builder

clearField(Descriptors.FieldDescriptor field)

public ConversationEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConversationEvent.Builder
Overrides

clearNewMessagePayload()

public ConversationEvent.Builder clearNewMessagePayload()

Payload of NEW_MESSAGE event.

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

Returns
TypeDescription
ConversationEvent.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConversationEvent.Builder
Overrides

clearPayload()

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

clearType()

public ConversationEvent.Builder clearType()

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

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

Returns
TypeDescription
ConversationEvent.Builder

This builder for chaining.

clone()

public ConversationEvent.Builder clone()
Returns
TypeDescription
ConversationEvent.Builder
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.

getDefaultInstanceForType()

public ConversationEvent getDefaultInstanceForType()
Returns
TypeDescription
ConversationEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getErrorStatusBuilder()

public Status.Builder getErrorStatusBuilder()

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.Builder

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.

getNewMessagePayloadBuilder()

public Message.Builder getNewMessagePayloadBuilder()

Payload of NEW_MESSAGE event.

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

Returns
TypeDescription
Message.Builder

getNewMessagePayloadOrBuilder()

public MessageOrBuilder getNewMessagePayloadOrBuilder()

Payload of NEW_MESSAGE event.

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

Returns
TypeDescription
MessageOrBuilder

getPayloadCase()

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

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeErrorStatus(Status value)

public ConversationEvent.Builder mergeErrorStatus(Status value)

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

.google.rpc.Status error_status = 3;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ConversationEvent.Builder

mergeFrom(ConversationEvent other)

public ConversationEvent.Builder mergeFrom(ConversationEvent other)
Parameter
NameDescription
otherConversationEvent
Returns
TypeDescription
ConversationEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConversationEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationEvent.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConversationEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConversationEvent.Builder
Overrides

mergeNewMessagePayload(Message value)

public ConversationEvent.Builder mergeNewMessagePayload(Message value)

Payload of NEW_MESSAGE event.

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

Parameter
NameDescription
valueMessage
Returns
TypeDescription
ConversationEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConversationEvent.Builder
Overrides

setConversation(String value)

public ConversationEvent.Builder setConversation(String value)

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

string conversation = 1;

Parameter
NameDescription
valueString

The conversation to set.

Returns
TypeDescription
ConversationEvent.Builder

This builder for chaining.

setConversationBytes(ByteString value)

public ConversationEvent.Builder setConversationBytes(ByteString value)

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

string conversation = 1;

Parameter
NameDescription
valueByteString

The bytes for conversation to set.

Returns
TypeDescription
ConversationEvent.Builder

This builder for chaining.

setErrorStatus(Status value)

public ConversationEvent.Builder setErrorStatus(Status value)

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

.google.rpc.Status error_status = 3;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ConversationEvent.Builder

setErrorStatus(Status.Builder builderForValue)

public ConversationEvent.Builder setErrorStatus(Status.Builder builderForValue)

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

.google.rpc.Status error_status = 3;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ConversationEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConversationEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConversationEvent.Builder
Overrides

setNewMessagePayload(Message value)

public ConversationEvent.Builder setNewMessagePayload(Message value)

Payload of NEW_MESSAGE event.

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

Parameter
NameDescription
valueMessage
Returns
TypeDescription
ConversationEvent.Builder

setNewMessagePayload(Message.Builder builderForValue)

public ConversationEvent.Builder setNewMessagePayload(Message.Builder builderForValue)

Payload of NEW_MESSAGE event.

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

Parameter
NameDescription
builderForValueMessage.Builder
Returns
TypeDescription
ConversationEvent.Builder

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

public ConversationEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConversationEvent.Builder
Overrides

setType(ConversationEvent.Type value)

public ConversationEvent.Builder setType(ConversationEvent.Type value)

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

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

Parameter
NameDescription
valueConversationEvent.Type

The type to set.

Returns
TypeDescription
ConversationEvent.Builder

This builder for chaining.

setTypeValue(int value)

public ConversationEvent.Builder setTypeValue(int value)

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

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ConversationEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversationEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConversationEvent.Builder
Overrides