Class TriggerAction.Response.Builder (0.1.0)

public static final class TriggerAction.Response.Builder extends GeneratedMessage.Builder<TriggerAction.Response.Builder> implements TriggerAction.ResponseOrBuilder

Represents a response from the agent.

Protobuf type google.cloud.ces.v1.TriggerAction.Response

Static Methods

getDescriptor()

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

Methods

build()

public TriggerAction.Response build()
Returns
Type Description
TriggerAction.Response

buildPartial()

public TriggerAction.Response buildPartial()
Returns
Type Description
TriggerAction.Response

clear()

public TriggerAction.Response.Builder clear()
Returns
Type Description
TriggerAction.Response.Builder
Overrides

clearDisabled()

public TriggerAction.Response.Builder clearDisabled()

Optional. Whether the response is disabled. Disabled responses are not used by the agent.

bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TriggerAction.Response.Builder

This builder for chaining.

clearText()

public TriggerAction.Response.Builder clearText()

Required. Text for the agent to respond with.

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

Returns
Type Description
TriggerAction.Response.Builder

This builder for chaining.

getDefaultInstanceForType()

public TriggerAction.Response getDefaultInstanceForType()
Returns
Type Description
TriggerAction.Response

getDescriptorForType()

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

getDisabled()

public boolean getDisabled()

Optional. Whether the response is disabled. Disabled responses are not used by the agent.

bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disabled.

getText()

public String getText()

Required. Text for the agent to respond with.

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

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Required. Text for the agent to respond with.

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

Returns
Type Description
ByteString

The bytes for text.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TriggerAction.Response other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisabled(boolean value)

public TriggerAction.Response.Builder setDisabled(boolean value)

Optional. Whether the response is disabled. Disabled responses are not used by the agent.

bool disabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The disabled to set.

Returns
Type Description
TriggerAction.Response.Builder

This builder for chaining.

setText(String value)

public TriggerAction.Response.Builder setText(String value)

Required. Text for the agent to respond with.

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

Parameter
Name Description
value String

The text to set.

Returns
Type Description
TriggerAction.Response.Builder

This builder for chaining.

setTextBytes(ByteString value)

public TriggerAction.Response.Builder setTextBytes(ByteString value)

Required. Text for the agent to respond with.

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

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
TriggerAction.Response.Builder

This builder for chaining.