Class Errors (1.65.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
Type Description
int

ERROR_DETAILS_FIELD_NUMBER

public static final int ERROR_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Errors getDefaultInstance()
Returns
Type Description
Errors

getDescriptor()

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

newBuilder()

public static Errors.Builder newBuilder()
Returns
Type Description
Errors.Builder

newBuilder(Errors prototype)

public static Errors.Builder newBuilder(Errors prototype)
Parameter
Name Description
prototype Errors
Returns
Type Description
Errors.Builder

parseDelimitedFrom(InputStream input)

public static Errors parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Errors
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Errors parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Errors
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Errors parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Errors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Errors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Errors parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Errors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Errors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Errors parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Errors
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Errors
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Errors parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Errors
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Errors
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Errors parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Errors
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Errors parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Errors
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Errors> parser()
Returns
Type Description
Parser<Errors>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCode()

public String getCode()

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

optional string code = 3059181;

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

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

optional string code = 3059181;

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public Errors getDefaultInstanceForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for location.

getMessage()

public String getMessage()

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

optional string message = 418054151;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

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

optional string message = 418054151;

Returns
Type Description
ByteString

The bytes for message.

getParserForType()

public Parser<Errors> getParserForType()
Returns
Type Description
Parser<Errors>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCode()

public boolean hasCode()

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

optional string code = 3059181;

Returns
Type Description
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
Type Description
boolean

Whether the location field is set.

hasMessage()

public boolean hasMessage()

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

optional string message = 418054151;

Returns
Type Description
boolean

Whether the message field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Errors.Builder newBuilderForType()
Returns
Type Description
Errors.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Errors.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Errors.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Errors.Builder toBuilder()
Returns
Type Description
Errors.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException