public final class Errors extends GeneratedMessageV3 implements ErrorsOrBuilder
Protobuf type google.cloud.compute.v1.Errors
Static Fields
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER
Field Value
ERROR_DETAILS_FIELD_NUMBER
public static final int ERROR_DETAILS_FIELD_NUMBER
Field Value
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
Field Value
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Errors getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Errors.Builder newBuilder()
Returns
newBuilder(Errors prototype)
public static Errors.Builder newBuilder(Errors prototype)
Parameter
Name | Description |
prototype | Errors
|
Returns
public static Errors parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Errors parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Errors parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Errors parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Errors parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Errors parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Errors parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Errors parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Errors parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Errors parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Errors parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Errors parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Errors> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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
getDefaultInstanceForType()
public Errors getDefaultInstanceForType()
Returns
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
Returns
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
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
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
Returns
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
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
getParserForType()
public Parser<Errors> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Errors.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Errors.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Errors.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions