Enum Warning.WarningCode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Warning.WarningCode>
- Enclosing class:
- Warning
public static enum Warning.WarningCode
extends Enum<Warning.WarningCode>
implements com.google.protobuf.ProtocolMessageEnum
Different types of warnings that can be returned to the user. The display_message contains detailed information regarding the warning_code.Protobuf enum
google.cloud.kms.inventory.v1.Warning.WarningCode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the caller or service agent lacks necessary permissions to view some of the requested data.Indicates that the project exists outside of an organization resource.Indicates that a resource limit has been exceeded, resulting in partial data.Default value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that the caller or service agent lacks necessary permissions to view some of the requested data.static final intIndicates that the project exists outside of an organization resource.static final intIndicates that a resource limit has been exceeded, resulting in partial data.static final intDefault value. -
Method Summary
Modifier and TypeMethodDescriptionstatic Warning.WarningCodeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Warning.WarningCode>static Warning.WarningCodevalueOf(int value) Deprecated.static Warning.WarningCodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Warning.WarningCodeReturns the enum constant of this type with the specified name.static Warning.WarningCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
WARNING_CODE_UNSPECIFIED
Default value. This value is unused.
WARNING_CODE_UNSPECIFIED = 0; -
INSUFFICIENT_PERMISSIONS_PARTIAL_DATA
Indicates that the caller or service agent lacks necessary permissions to view some of the requested data. The response may be partial. Example: - KMS organization service agent {service_agent_name} lacks the `cloudasset.assets.searchAllResources` permission on the scope.INSUFFICIENT_PERMISSIONS_PARTIAL_DATA = 1; -
RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA
Indicates that a resource limit has been exceeded, resulting in partial data. Example: - The project has more than 10,000 assets (resources, crypto keys, key handles, IAM policies, etc).
RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA = 2; -
ORG_LESS_PROJECT_PARTIAL_DATA
Indicates that the project exists outside of an organization resource. Thus the analysis is only done for the project level data and results might be partial.
ORG_LESS_PROJECT_PARTIAL_DATA = 3; -
UNRECOGNIZED
-
-
Field Details
-
WARNING_CODE_UNSPECIFIED_VALUE
public static final int WARNING_CODE_UNSPECIFIED_VALUEDefault value. This value is unused.
WARNING_CODE_UNSPECIFIED = 0;- See Also:
-
INSUFFICIENT_PERMISSIONS_PARTIAL_DATA_VALUE
public static final int INSUFFICIENT_PERMISSIONS_PARTIAL_DATA_VALUEIndicates that the caller or service agent lacks necessary permissions to view some of the requested data. The response may be partial. Example: - KMS organization service agent {service_agent_name} lacks the `cloudasset.assets.searchAllResources` permission on the scope.INSUFFICIENT_PERMISSIONS_PARTIAL_DATA = 1;- See Also:
-
RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA_VALUE
public static final int RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA_VALUEIndicates that a resource limit has been exceeded, resulting in partial data. Example: - The project has more than 10,000 assets (resources, crypto keys, key handles, IAM policies, etc).
RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA = 2;- See Also:
-
ORG_LESS_PROJECT_PARTIAL_DATA_VALUE
public static final int ORG_LESS_PROJECT_PARTIAL_DATA_VALUEIndicates that the project exists outside of an organization resource. Thus the analysis is only done for the project level data and results might be partial.
ORG_LESS_PROJECT_PARTIAL_DATA = 3;- 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
-