Class CloudShellErrorDetails.Builder (2.48.0)

public static final class CloudShellErrorDetails.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudShellErrorDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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