Class ApiWarning.Builder (0.1.0)

public static final class ApiWarning.Builder extends GeneratedMessage.Builder<ApiWarning.Builder> implements ApiWarningOrBuilder

An Admin API warning message.

Protobuf type google.cloud.sql.v1beta4.ApiWarning

Implements

ApiWarningOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public ApiWarning build()
Returns
Type Description
ApiWarning

buildPartial()

public ApiWarning buildPartial()
Returns
Type Description
ApiWarning

clear()

public ApiWarning.Builder clear()
Returns
Type Description
ApiWarning.Builder
Overrides

clearCode()

public ApiWarning.Builder clearCode()

Code to uniquely identify the warning type.

.google.cloud.sql.v1beta4.ApiWarning.SqlApiWarningCode code = 1;

Returns
Type Description
ApiWarning.Builder

This builder for chaining.

clearMessage()

public ApiWarning.Builder clearMessage()

The warning message.

string message = 2;

Returns
Type Description
ApiWarning.Builder

This builder for chaining.

clearRegion()

public ApiWarning.Builder clearRegion()

The region name for REGION_UNREACHABLE warning.

string region = 3;

Returns
Type Description
ApiWarning.Builder

This builder for chaining.

getCode()

public ApiWarning.SqlApiWarningCode getCode()

Code to uniquely identify the warning type.

.google.cloud.sql.v1beta4.ApiWarning.SqlApiWarningCode code = 1;

Returns
Type Description
ApiWarning.SqlApiWarningCode

The code.

getCodeValue()

public int getCodeValue()

Code to uniquely identify the warning type.

.google.cloud.sql.v1beta4.ApiWarning.SqlApiWarningCode code = 1;

Returns
Type Description
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public ApiWarning getDefaultInstanceForType()
Returns
Type Description
ApiWarning

getDescriptorForType()

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

getMessage()

public String getMessage()

The warning message.

string message = 2;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The warning message.

string message = 2;

Returns
Type Description
ByteString

The bytes for message.

getRegion()

public String getRegion()

The region name for REGION_UNREACHABLE warning.

string region = 3;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

The region name for REGION_UNREACHABLE warning.

string region = 3;

Returns
Type Description
ByteString

The bytes for region.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ApiWarning other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCode(ApiWarning.SqlApiWarningCode value)

public ApiWarning.Builder setCode(ApiWarning.SqlApiWarningCode value)

Code to uniquely identify the warning type.

.google.cloud.sql.v1beta4.ApiWarning.SqlApiWarningCode code = 1;

Parameter
Name Description
value ApiWarning.SqlApiWarningCode

The code to set.

Returns
Type Description
ApiWarning.Builder

This builder for chaining.

setCodeValue(int value)

public ApiWarning.Builder setCodeValue(int value)

Code to uniquely identify the warning type.

.google.cloud.sql.v1beta4.ApiWarning.SqlApiWarningCode code = 1;

Parameter
Name Description
value int

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

Returns
Type Description
ApiWarning.Builder

This builder for chaining.

setMessage(String value)

public ApiWarning.Builder setMessage(String value)

The warning message.

string message = 2;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
ApiWarning.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public ApiWarning.Builder setMessageBytes(ByteString value)

The warning message.

string message = 2;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
ApiWarning.Builder

This builder for chaining.

setRegion(String value)

public ApiWarning.Builder setRegion(String value)

The region name for REGION_UNREACHABLE warning.

string region = 3;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
ApiWarning.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public ApiWarning.Builder setRegionBytes(ByteString value)

The region name for REGION_UNREACHABLE warning.

string region = 3;

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
ApiWarning.Builder

This builder for chaining.