Class Instance.InstanceMessage.Builder (2.85.0)

public static final class Instance.InstanceMessage.Builder extends GeneratedMessage.Builder<Instance.InstanceMessage.Builder> implements Instance.InstanceMessageOrBuilder

Protobuf type google.cloud.memcache.v1beta2.Instance.InstanceMessage

Static Methods

getDescriptor()

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

Methods

build()

public Instance.InstanceMessage build()
Returns
Type Description
Instance.InstanceMessage

buildPartial()

public Instance.InstanceMessage buildPartial()
Returns
Type Description
Instance.InstanceMessage

clear()

public Instance.InstanceMessage.Builder clear()
Returns
Type Description
Instance.InstanceMessage.Builder
Overrides

clearCode()

public Instance.InstanceMessage.Builder clearCode()

A code that correspond to one type of user-facing message.

.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1;

Returns
Type Description
Instance.InstanceMessage.Builder

This builder for chaining.

clearMessage()

public Instance.InstanceMessage.Builder clearMessage()

Message on memcached instance which will be exposed to users.

string message = 2;

Returns
Type Description
Instance.InstanceMessage.Builder

This builder for chaining.

getCode()

public Instance.InstanceMessage.Code getCode()

A code that correspond to one type of user-facing message.

.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1;

Returns
Type Description
Instance.InstanceMessage.Code

The code.

getCodeValue()

public int getCodeValue()

A code that correspond to one type of user-facing message.

.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1;

Returns
Type Description
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public Instance.InstanceMessage getDefaultInstanceForType()
Returns
Type Description
Instance.InstanceMessage

getDescriptorForType()

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

getMessage()

public String getMessage()

Message on memcached instance which will be exposed to users.

string message = 2;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Message on memcached instance which will be exposed to users.

string message = 2;

Returns
Type Description
ByteString

The bytes for message.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.InstanceMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCode(Instance.InstanceMessage.Code value)

public Instance.InstanceMessage.Builder setCode(Instance.InstanceMessage.Code value)

A code that correspond to one type of user-facing message.

.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1;

Parameter
Name Description
value Instance.InstanceMessage.Code

The code to set.

Returns
Type Description
Instance.InstanceMessage.Builder

This builder for chaining.

setCodeValue(int value)

public Instance.InstanceMessage.Builder setCodeValue(int value)

A code that correspond to one type of user-facing message.

.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1;

Parameter
Name Description
value int

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

Returns
Type Description
Instance.InstanceMessage.Builder

This builder for chaining.

setMessage(String value)

public Instance.InstanceMessage.Builder setMessage(String value)

Message on memcached instance which will be exposed to users.

string message = 2;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
Instance.InstanceMessage.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public Instance.InstanceMessage.Builder setMessageBytes(ByteString value)

Message on memcached instance which will be exposed to users.

string message = 2;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
Instance.InstanceMessage.Builder

This builder for chaining.