Class CloudShellErrorDetails.Builder (2.84.0)

public static final class CloudShellErrorDetails.Builder extends GeneratedMessage.Builder<CloudShellErrorDetails.Builder> implements CloudShellErrorDetailsOrBuilder

Cloud-shell specific information that will be included as details in failure responses.

Protobuf type google.cloud.shell.v1.CloudShellErrorDetails

Static Methods

getDescriptor()

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

Methods

build()

public CloudShellErrorDetails build()
Returns
Type Description
CloudShellErrorDetails

buildPartial()

public CloudShellErrorDetails buildPartial()
Returns
Type Description
CloudShellErrorDetails

clear()

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

clearCode()

public CloudShellErrorDetails.Builder clearCode()

Code indicating the specific error the occurred.

.google.cloud.shell.v1.CloudShellErrorDetails.CloudShellErrorCode code = 1;

Returns
Type Description
CloudShellErrorDetails.Builder

This builder for chaining.

getCode()

public CloudShellErrorDetails.CloudShellErrorCode getCode()

Code indicating the specific error the occurred.

.google.cloud.shell.v1.CloudShellErrorDetails.CloudShellErrorCode code = 1;

Returns
Type Description
CloudShellErrorDetails.CloudShellErrorCode

The code.

getCodeValue()

public int getCodeValue()

Code indicating the specific error the occurred.

.google.cloud.shell.v1.CloudShellErrorDetails.CloudShellErrorCode code = 1;

Returns
Type Description
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public CloudShellErrorDetails getDefaultInstanceForType()
Returns
Type Description
CloudShellErrorDetails

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudShellErrorDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCode(CloudShellErrorDetails.CloudShellErrorCode value)

public CloudShellErrorDetails.Builder setCode(CloudShellErrorDetails.CloudShellErrorCode value)

Code indicating the specific error the occurred.

.google.cloud.shell.v1.CloudShellErrorDetails.CloudShellErrorCode code = 1;

Parameter
Name Description
value CloudShellErrorDetails.CloudShellErrorCode

The code to set.

Returns
Type Description
CloudShellErrorDetails.Builder

This builder for chaining.

setCodeValue(int value)

public CloudShellErrorDetails.Builder setCodeValue(int value)

Code indicating the specific error the occurred.

.google.cloud.shell.v1.CloudShellErrorDetails.CloudShellErrorCode code = 1;

Parameter
Name Description
value int

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

Returns
Type Description
CloudShellErrorDetails.Builder

This builder for chaining.