Enum Warning.WarningCode

java.lang.Object
java.lang.Enum<Warning.WarningCode>
com.google.cloud.kms.inventory.v1.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 Details

    • WARNING_CODE_UNSPECIFIED

      public static final Warning.WarningCode WARNING_CODE_UNSPECIFIED
       Default value. This value is unused.
       
      WARNING_CODE_UNSPECIFIED = 0;
    • INSUFFICIENT_PERMISSIONS_PARTIAL_DATA

      public static final Warning.WarningCode 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

      public static final Warning.WarningCode 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

      public static final Warning.WarningCode 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

      public static final Warning.WarningCode UNRECOGNIZED
  • Field Details

    • WARNING_CODE_UNSPECIFIED_VALUE

      public static final int WARNING_CODE_UNSPECIFIED_VALUE
       Default value. This value is unused.
       
      WARNING_CODE_UNSPECIFIED = 0;
      See Also:
    • INSUFFICIENT_PERMISSIONS_PARTIAL_DATA_VALUE

      public static final int INSUFFICIENT_PERMISSIONS_PARTIAL_DATA_VALUE
       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;
      See Also:
    • RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA_VALUE

      public static final int RESOURCE_LIMIT_EXCEEDED_PARTIAL_DATA_VALUE
       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;
      See Also:
    • ORG_LESS_PROJECT_PARTIAL_DATA_VALUE

      public static final int ORG_LESS_PROJECT_PARTIAL_DATA_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static Warning.WarningCode[] 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

      public static Warning.WarningCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Warning.WarningCode valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Warning.WarningCode forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Warning.WarningCode> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Warning.WarningCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null