Package com.google.cloud.config.v1
Enum Preview.ErrorCode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Preview.ErrorCode>
- Enclosing class:
- Preview
public static enum Preview.ErrorCode
extends Enum<Preview.ErrorCode>
implements com.google.protobuf.ProtocolMessageEnum
Possible errors that can occur with previews.Protobuf enum
google.cloud.config.v1.Preview.ErrorCode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCloud Storage bucket failed for a non-permissions-related issue.Cloud Storage bucket failed to create due to a permissions issue.Cloud Build failed due to a permissions issue.Acquiring lock on provided deployment reference failed.No error code was specified.Failed to import values from an external source.Preview encountered an error when trying to access Cloud Build API.Preview created a build but build failed and logs were generated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCloud Storage bucket failed for a non-permissions-related issue.static final intCloud Storage bucket failed to create due to a permissions issue.static final intCloud Build failed due to a permissions issue.static final intAcquiring lock on provided deployment reference failed.static final intNo error code was specified.static final intFailed to import values from an external source.static final intPreview encountered an error when trying to access Cloud Build API.static final intPreview created a build but build failed and logs were generated. -
Method Summary
Modifier and TypeMethodDescriptionstatic Preview.ErrorCodeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Preview.ErrorCode>static Preview.ErrorCodevalueOf(int value) Deprecated.static Preview.ErrorCodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Preview.ErrorCodeReturns the enum constant of this type with the specified name.static Preview.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ERROR_CODE_UNSPECIFIED
No error code was specified.
ERROR_CODE_UNSPECIFIED = 0; -
CLOUD_BUILD_PERMISSION_DENIED
Cloud Build failed due to a permissions issue.
CLOUD_BUILD_PERMISSION_DENIED = 1; -
BUCKET_CREATION_PERMISSION_DENIED
Cloud Storage bucket failed to create due to a permissions issue.
BUCKET_CREATION_PERMISSION_DENIED = 2; -
BUCKET_CREATION_FAILED
Cloud Storage bucket failed for a non-permissions-related issue.
BUCKET_CREATION_FAILED = 3; -
DEPLOYMENT_LOCK_ACQUIRE_FAILED
Acquiring lock on provided deployment reference failed.
DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4; -
PREVIEW_BUILD_API_FAILED
Preview encountered an error when trying to access Cloud Build API.
PREVIEW_BUILD_API_FAILED = 5; -
PREVIEW_BUILD_RUN_FAILED
Preview created a build but build failed and logs were generated.
PREVIEW_BUILD_RUN_FAILED = 6; -
EXTERNAL_VALUE_SOURCE_IMPORT_FAILED
Failed to import values from an external source.
EXTERNAL_VALUE_SOURCE_IMPORT_FAILED = 7; -
UNRECOGNIZED
-
-
Field Details
-
ERROR_CODE_UNSPECIFIED_VALUE
public static final int ERROR_CODE_UNSPECIFIED_VALUENo error code was specified.
ERROR_CODE_UNSPECIFIED = 0;- See Also:
-
CLOUD_BUILD_PERMISSION_DENIED_VALUE
public static final int CLOUD_BUILD_PERMISSION_DENIED_VALUECloud Build failed due to a permissions issue.
CLOUD_BUILD_PERMISSION_DENIED = 1;- See Also:
-
BUCKET_CREATION_PERMISSION_DENIED_VALUE
public static final int BUCKET_CREATION_PERMISSION_DENIED_VALUECloud Storage bucket failed to create due to a permissions issue.
BUCKET_CREATION_PERMISSION_DENIED = 2;- See Also:
-
BUCKET_CREATION_FAILED_VALUE
public static final int BUCKET_CREATION_FAILED_VALUECloud Storage bucket failed for a non-permissions-related issue.
BUCKET_CREATION_FAILED = 3;- See Also:
-
DEPLOYMENT_LOCK_ACQUIRE_FAILED_VALUE
public static final int DEPLOYMENT_LOCK_ACQUIRE_FAILED_VALUEAcquiring lock on provided deployment reference failed.
DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4;- See Also:
-
PREVIEW_BUILD_API_FAILED_VALUE
public static final int PREVIEW_BUILD_API_FAILED_VALUEPreview encountered an error when trying to access Cloud Build API.
PREVIEW_BUILD_API_FAILED = 5;- See Also:
-
PREVIEW_BUILD_RUN_FAILED_VALUE
public static final int PREVIEW_BUILD_RUN_FAILED_VALUEPreview created a build but build failed and logs were generated.
PREVIEW_BUILD_RUN_FAILED = 6;- See Also:
-
EXTERNAL_VALUE_SOURCE_IMPORT_FAILED_VALUE
public static final int EXTERNAL_VALUE_SOURCE_IMPORT_FAILED_VALUEFailed to import values from an external source.
EXTERNAL_VALUE_SOURCE_IMPORT_FAILED = 7;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-