Class ActionStatus.Builder (0.5.0)

public static final class ActionStatus.Builder extends GeneratedMessageV3.Builder<ActionStatus.Builder> implements ActionStatusOrBuilder

Represents the status for a request to either invoke or submit a dialog.

Protobuf type google.chat.v1.ActionStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ActionStatus build()
Returns
TypeDescription
ActionStatus

buildPartial()

public ActionStatus buildPartial()
Returns
TypeDescription
ActionStatus

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStatusCode()

public ActionStatus.Builder clearStatusCode()

The status code.

.google.rpc.Code status_code = 1;

Returns
TypeDescription
ActionStatus.Builder

This builder for chaining.

clearUserFacingMessage()

public ActionStatus.Builder clearUserFacingMessage()

The message to send users about the status of their request. If unset, a generic message based on the status_code is sent.

string user_facing_message = 2;

Returns
TypeDescription
ActionStatus.Builder

This builder for chaining.

clone()

public ActionStatus.Builder clone()
Returns
TypeDescription
ActionStatus.Builder
Overrides

getDefaultInstanceForType()

public ActionStatus getDefaultInstanceForType()
Returns
TypeDescription
ActionStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getStatusCode()

public Code getStatusCode()

The status code.

.google.rpc.Code status_code = 1;

Returns
TypeDescription
com.google.rpc.Code

The statusCode.

getStatusCodeValue()

public int getStatusCodeValue()

The status code.

.google.rpc.Code status_code = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for statusCode.

getUserFacingMessage()

public String getUserFacingMessage()

The message to send users about the status of their request. If unset, a generic message based on the status_code is sent.

string user_facing_message = 2;

Returns
TypeDescription
String

The userFacingMessage.

getUserFacingMessageBytes()

public ByteString getUserFacingMessageBytes()

The message to send users about the status of their request. If unset, a generic message based on the status_code is sent.

string user_facing_message = 2;

Returns
TypeDescription
ByteString

The bytes for userFacingMessage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ActionStatus other)

public ActionStatus.Builder mergeFrom(ActionStatus other)
Parameter
NameDescription
otherActionStatus
Returns
TypeDescription
ActionStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStatusCode(Code value)

public ActionStatus.Builder setStatusCode(Code value)

The status code.

.google.rpc.Code status_code = 1;

Parameter
NameDescription
valuecom.google.rpc.Code

The statusCode to set.

Returns
TypeDescription
ActionStatus.Builder

This builder for chaining.

setStatusCodeValue(int value)

public ActionStatus.Builder setStatusCodeValue(int value)

The status code.

.google.rpc.Code status_code = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ActionStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserFacingMessage(String value)

public ActionStatus.Builder setUserFacingMessage(String value)

The message to send users about the status of their request. If unset, a generic message based on the status_code is sent.

string user_facing_message = 2;

Parameter
NameDescription
valueString

The userFacingMessage to set.

Returns
TypeDescription
ActionStatus.Builder

This builder for chaining.

setUserFacingMessageBytes(ByteString value)

public ActionStatus.Builder setUserFacingMessageBytes(ByteString value)

The message to send users about the status of their request. If unset, a generic message based on the status_code is sent.

string user_facing_message = 2;

Parameter
NameDescription
valueByteString

The bytes for userFacingMessage to set.

Returns
TypeDescription
ActionStatus.Builder

This builder for chaining.