Send feedback
Class Errors (1.65.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.65.0 keyboard_arrow_down
public final class Errors extends GeneratedMessageV3 implements ErrorsOrBuilder
Protobuf type google.cloud.compute.v1.Errors
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 ()
newBuilder()
public static Errors . Builder newBuilder ()
newBuilder(Errors prototype)
public static Errors . Builder newBuilder ( Errors prototype )
Parameter
Name
Description
prototype
Errors
public static Errors parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Errors
public static Errors parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Errors
parseFrom(byte[] data)
public static Errors parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Errors
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Errors parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Errors
parseFrom(ByteString data)
public static Errors parseFrom ( ByteString data )
Returns
Type
Description
Errors
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Errors parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Errors
public static Errors parseFrom ( CodedInputStream input )
Returns
Type
Description
Errors
public static Errors parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Errors
public static Errors parseFrom ( InputStream input )
Returns
Type
Description
Errors
public static Errors parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Errors
parseFrom(ByteBuffer data)
public static Errors parseFrom ( ByteBuffer data )
Returns
Type
Description
Errors
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Errors parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Errors
parser()
public static Parser<Errors> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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
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
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;
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
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 ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
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
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Errors . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Errors . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Errors . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]