Class Event.Builder (0.94.0)

public static final class Event.Builder extends GeneratedMessage.Builder<Event.Builder> implements EventOrBuilder

Event represents the event sent by the customer.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Event

Implements

EventOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Event build()
Returns
Type Description
Event

buildPartial()

public Event buildPartial()
Returns
Type Description
Event

clear()

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

clearEvent()

public Event.Builder clearEvent()

Required. Name of the event.

string event = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Event.Builder

This builder for chaining.

clearPayload()

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

clearText()

public Event.Builder clearText()

Optional. Unstructured text payload of the event.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Event.Builder

This builder for chaining.

getDefaultInstanceForType()

public Event getDefaultInstanceForType()
Returns
Type Description
Event

getDescriptorForType()

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

getEvent()

public String getEvent()

Required. Name of the event.

string event = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The event.

getEventBytes()

public ByteString getEventBytes()

Required. Name of the event.

string event = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for event.

getPayloadCase()

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

getText()

public String getText()

Optional. Unstructured text payload of the event.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Optional. Unstructured text payload of the event.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for text.

hasText()

public boolean hasText()

Optional. Unstructured text payload of the event.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Event other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEvent(String value)

public Event.Builder setEvent(String value)

Required. Name of the event.

string event = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The event to set.

Returns
Type Description
Event.Builder

This builder for chaining.

setEventBytes(ByteString value)

public Event.Builder setEventBytes(ByteString value)

Required. Name of the event.

string event = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for event to set.

Returns
Type Description
Event.Builder

This builder for chaining.

setText(String value)

public Event.Builder setText(String value)

Optional. Unstructured text payload of the event.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The text to set.

Returns
Type Description
Event.Builder

This builder for chaining.

setTextBytes(ByteString value)

public Event.Builder setTextBytes(ByteString value)

Optional. Unstructured text payload of the event.

string text = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
Event.Builder

This builder for chaining.