Class Errors (1.46.0)

public final class Errors extends GeneratedMessageV3 implements ErrorsOrBuilder

Protobuf type google.cloud.compute.v1.Errors

Implements

ErrorsOrBuilder

Static Fields

CODE_FIELD_NUMBER

public static final int CODE_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_DETAILS_FIELD_NUMBER

public static final int ERROR_DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Errors getDefaultInstance()
Returns
TypeDescription
Errors

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Errors.Builder newBuilder()
Returns
TypeDescription
Errors.Builder

newBuilder(Errors prototype)

public static Errors.Builder newBuilder(Errors prototype)
Parameter
NameDescription
prototypeErrors
Returns
TypeDescription
Errors.Builder

parseDelimitedFrom(InputStream input)

public static Errors parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Errors
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Errors parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Errors
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Errors parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Errors
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Errors
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Errors parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Errors
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Errors
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Errors parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Errors
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Errors
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Errors parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Errors
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Errors
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Errors parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Errors
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Errors
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Errors> parser()
Returns
TypeDescription
Parser<Errors>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCode()

public String getCode()

[Output Only] The error type identifier for this error.

optional string code = 3059181;

Returns
TypeDescription
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

[Output Only] The error type identifier for this error.

optional string code = 3059181;

Returns
TypeDescription
ByteString

The bytes for code.

getDefaultInstanceForType()

public Errors getDefaultInstanceForType()
Returns
TypeDescription
Errors

getErrorDetails(int index)

public ErrorDetails getErrorDetails(int index)

[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.

repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;

Parameter
NameDescription
indexint
Returns
TypeDescription
ErrorDetails

getErrorDetailsCount()

public int getErrorDetailsCount()

[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.

repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;

Returns
TypeDescription
int

getErrorDetailsList()

public List<ErrorDetails> getErrorDetailsList()

[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.

repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;

Returns
TypeDescription
List<ErrorDetails>

getErrorDetailsOrBuilder(int index)

public ErrorDetailsOrBuilder getErrorDetailsOrBuilder(int index)

[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.

repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;

Parameter
NameDescription
indexint
Returns
TypeDescription
ErrorDetailsOrBuilder

getErrorDetailsOrBuilderList()

public List<? extends ErrorDetailsOrBuilder> getErrorDetailsOrBuilderList()

[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.

repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.ErrorDetailsOrBuilder>

getLocation()

public String getLocation()

[Output Only] Indicates the field in the request that caused the error. This property is optional.

optional string location = 290430901;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

[Output Only] Indicates the field in the request that caused the error. This property is optional.

optional string location = 290430901;

Returns
TypeDescription
ByteString

The bytes for location.

getMessage()

public String getMessage()

[Output Only] An optional, human-readable error message.

optional string message = 418054151;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

[Output Only] An optional, human-readable error message.

optional string message = 418054151;

Returns
TypeDescription
ByteString

The bytes for message.

getParserForType()

public Parser<Errors> getParserForType()
Returns
TypeDescription
Parser<Errors>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCode()

public boolean hasCode()

[Output Only] The error type identifier for this error.

optional string code = 3059181;

Returns
TypeDescription
boolean

Whether the code field is set.

hasLocation()

public boolean hasLocation()

[Output Only] Indicates the field in the request that caused the error. This property is optional.

optional string location = 290430901;

Returns
TypeDescription
boolean

Whether the location field is set.

hasMessage()

public boolean hasMessage()

[Output Only] An optional, human-readable error message.

optional string message = 418054151;

Returns
TypeDescription
boolean

Whether the message field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Errors.Builder newBuilderForType()
Returns
TypeDescription
Errors.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Errors.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Errors.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Errors.Builder toBuilder()
Returns
TypeDescription
Errors.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException