Class CloudShellErrorDetails.Builder (2.7.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudShellErrorDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides

build()

public CloudShellErrorDetails build()
Returns
TypeDescription
CloudShellErrorDetails

buildPartial()

public CloudShellErrorDetails buildPartial()
Returns
TypeDescription
CloudShellErrorDetails

clear()

public CloudShellErrorDetails.Builder clear()
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides

clearCode()

public CloudShellErrorDetails.Builder clearCode()

Code indicating the specific error the occurred.

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

Returns
TypeDescription
CloudShellErrorDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CloudShellErrorDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudShellErrorDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides

clone()

public CloudShellErrorDetails.Builder clone()
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides

getCode()

public CloudShellErrorDetails.CloudShellErrorCode getCode()

Code indicating the specific error the occurred.

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

Returns
TypeDescription
CloudShellErrorDetails.CloudShellErrorCode

The code.

getCodeValue()

public int getCodeValue()

Code indicating the specific error the occurred.

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

Returns
TypeDescription
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public CloudShellErrorDetails getDefaultInstanceForType()
Returns
TypeDescription
CloudShellErrorDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudShellErrorDetails other)

public CloudShellErrorDetails.Builder mergeFrom(CloudShellErrorDetails other)
Parameter
NameDescription
otherCloudShellErrorDetails
Returns
TypeDescription
CloudShellErrorDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudShellErrorDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CloudShellErrorDetails.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudShellErrorDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCloudShellErrorDetails.CloudShellErrorCode

The code to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
CloudShellErrorDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CloudShellErrorDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides

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

public CloudShellErrorDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudShellErrorDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudShellErrorDetails.Builder
Overrides