Class StatusDetails.Builder (1.45.0)

public static final class StatusDetails.Builder extends GeneratedMessageV3.Builder<StatusDetails.Builder> implements StatusDetailsOrBuilder

Structured and human-readable details for a status.

Protobuf type google.cloud.gkehub.servicemesh.v1beta.StatusDetails

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StatusDetails build()
Returns
Type Description
StatusDetails

buildPartial()

public StatusDetails buildPartial()
Returns
Type Description
StatusDetails

clear()

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

clearCode()

public StatusDetails.Builder clearCode()

A machine-readable code that further describes a broad status.

string code = 1;

Returns
Type Description
StatusDetails.Builder

This builder for chaining.

clearDetails()

public StatusDetails.Builder clearDetails()

Human-readable explanation of code.

string details = 2;

Returns
Type Description
StatusDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public StatusDetails.Builder clone()
Returns
Type Description
StatusDetails.Builder
Overrides

getCode()

public String getCode()

A machine-readable code that further describes a broad status.

string code = 1;

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

A machine-readable code that further describes a broad status.

string code = 1;

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public StatusDetails getDefaultInstanceForType()
Returns
Type Description
StatusDetails

getDescriptorForType()

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

getDetails()

public String getDetails()

Human-readable explanation of code.

string details = 2;

Returns
Type Description
String

The details.

getDetailsBytes()

public ByteString getDetailsBytes()

Human-readable explanation of code.

string details = 2;

Returns
Type Description
ByteString

The bytes for details.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StatusDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StatusDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StatusDetails.Builder
Overrides

setCode(String value)

public StatusDetails.Builder setCode(String value)

A machine-readable code that further describes a broad status.

string code = 1;

Parameter
Name Description
value String

The code to set.

Returns
Type Description
StatusDetails.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public StatusDetails.Builder setCodeBytes(ByteString value)

A machine-readable code that further describes a broad status.

string code = 1;

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
StatusDetails.Builder

This builder for chaining.

setDetails(String value)

public StatusDetails.Builder setDetails(String value)

Human-readable explanation of code.

string details = 2;

Parameter
Name Description
value String

The details to set.

Returns
Type Description
StatusDetails.Builder

This builder for chaining.

setDetailsBytes(ByteString value)

public StatusDetails.Builder setDetailsBytes(ByteString value)

Human-readable explanation of code.

string details = 2;

Parameter
Name Description
value ByteString

The bytes for details to set.

Returns
Type Description
StatusDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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