Class Warning.Builder (0.76.0)

public static final class Warning.Builder extends GeneratedMessage.Builder<Warning.Builder> implements WarningOrBuilder

A warning message that indicates potential problems with the response data.

Protobuf type google.cloud.kms.inventory.v1.Warning

Implements

WarningOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Warning build()
Returns
Type Description
Warning

buildPartial()

public Warning buildPartial()
Returns
Type Description
Warning

clear()

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

clearDisplayMessage()

public Warning.Builder clearDisplayMessage()

The literal message providing context and details about the warnings.

string display_message = 2;

Returns
Type Description
Warning.Builder

This builder for chaining.

clearWarningCode()

public Warning.Builder clearWarningCode()

The specific warning code for the displayed message.

.google.cloud.kms.inventory.v1.Warning.WarningCode warning_code = 1;

Returns
Type Description
Warning.Builder

This builder for chaining.

getDefaultInstanceForType()

public Warning getDefaultInstanceForType()
Returns
Type Description
Warning

getDescriptorForType()

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

getDisplayMessage()

public String getDisplayMessage()

The literal message providing context and details about the warnings.

string display_message = 2;

Returns
Type Description
String

The displayMessage.

getDisplayMessageBytes()

public ByteString getDisplayMessageBytes()

The literal message providing context and details about the warnings.

string display_message = 2;

Returns
Type Description
ByteString

The bytes for displayMessage.

getWarningCode()

public Warning.WarningCode getWarningCode()

The specific warning code for the displayed message.

.google.cloud.kms.inventory.v1.Warning.WarningCode warning_code = 1;

Returns
Type Description
Warning.WarningCode

The warningCode.

getWarningCodeValue()

public int getWarningCodeValue()

The specific warning code for the displayed message.

.google.cloud.kms.inventory.v1.Warning.WarningCode warning_code = 1;

Returns
Type Description
int

The enum numeric value on the wire for warningCode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Warning other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisplayMessage(String value)

public Warning.Builder setDisplayMessage(String value)

The literal message providing context and details about the warnings.

string display_message = 2;

Parameter
Name Description
value String

The displayMessage to set.

Returns
Type Description
Warning.Builder

This builder for chaining.

setDisplayMessageBytes(ByteString value)

public Warning.Builder setDisplayMessageBytes(ByteString value)

The literal message providing context and details about the warnings.

string display_message = 2;

Parameter
Name Description
value ByteString

The bytes for displayMessage to set.

Returns
Type Description
Warning.Builder

This builder for chaining.

setWarningCode(Warning.WarningCode value)

public Warning.Builder setWarningCode(Warning.WarningCode value)

The specific warning code for the displayed message.

.google.cloud.kms.inventory.v1.Warning.WarningCode warning_code = 1;

Parameter
Name Description
value Warning.WarningCode

The warningCode to set.

Returns
Type Description
Warning.Builder

This builder for chaining.

setWarningCodeValue(int value)

public Warning.Builder setWarningCodeValue(int value)

The specific warning code for the displayed message.

.google.cloud.kms.inventory.v1.Warning.WarningCode warning_code = 1;

Parameter
Name Description
value int

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

Returns
Type Description
Warning.Builder

This builder for chaining.