Class Instance.InstanceMessage.Builder (2.46.0)

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

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.InstanceMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.InstanceMessage.Builder
Overrides

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.v1.Instance.InstanceMessage.Code code = 1;

Returns
Type Description
Instance.InstanceMessage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Instance.InstanceMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Instance.InstanceMessage.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.InstanceMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Instance.InstanceMessage.Builder
Overrides

clone()

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

getCode()

public Instance.InstanceMessage.Code getCode()

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

.google.cloud.memcache.v1.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.v1.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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.InstanceMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.v1.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.v1.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.

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.InstanceMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.InstanceMessage.Builder
Overrides

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.

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

public Instance.InstanceMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Instance.InstanceMessage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.InstanceMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.InstanceMessage.Builder
Overrides