public static final class Event.Builder extends GeneratedMessage.Builder<Event.Builder> implements EventOrBuilderEvent represents the event sent by the customer.
Protobuf type google.cloud.dialogflow.cx.v3beta1.Event
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Event.BuilderImplements
EventOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Event.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Event.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
Event.Builder |
This builder for chaining. |