Class Instance.InstanceMessage.Builder (2.1.11)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance.InstanceMessage build()
Returns
TypeDescription
Instance.InstanceMessage

buildPartial()

public Instance.InstanceMessage buildPartial()
Returns
TypeDescription
Instance.InstanceMessage

clear()

public Instance.InstanceMessage.Builder clear()
Returns
TypeDescription
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
TypeDescription
Instance.InstanceMessage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public Instance.InstanceMessage.Builder clearMessage()

Message on memcached instance which will be exposed to users.

string message = 2;

Returns
TypeDescription
Instance.InstanceMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Instance.InstanceMessage.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public Instance.InstanceMessage getDefaultInstanceForType()
Returns
TypeDescription
Instance.InstanceMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage()

public String getMessage()

Message on memcached instance which will be exposed to users.

string message = 2;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Message on memcached instance which will be exposed to users.

string message = 2;

Returns
TypeDescription
ByteString

The bytes for message.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Instance.InstanceMessage other)

public Instance.InstanceMessage.Builder mergeFrom(Instance.InstanceMessage other)
Parameter
NameDescription
otherInstance.InstanceMessage
Returns
TypeDescription
Instance.InstanceMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.InstanceMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueInstance.InstanceMessage.Code

The code to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Instance.InstanceMessage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.InstanceMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The message to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for message to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Instance.InstanceMessage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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