Enum Class ResourceDescriptor.Style

java.lang.Object
java.lang.Enum<ResourceDescriptor.Style>
com.google.api.ResourceDescriptor.Style
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ResourceDescriptor.Style>, Constable
Enclosing class:
ResourceDescriptor

public static enum ResourceDescriptor.Style extends Enum<ResourceDescriptor.Style> implements com.google.protobuf.ProtocolMessageEnum
 A flag representing a specific style that a resource claims to conform to.
 
Protobuf enum google.api.ResourceDescriptor.Style
  • Enum Constant Details

    • STYLE_UNSPECIFIED

      public static final ResourceDescriptor.Style STYLE_UNSPECIFIED
       The unspecified value. Do not use.
       
      STYLE_UNSPECIFIED = 0;
    • DECLARATIVE_FRIENDLY

      public static final ResourceDescriptor.Style DECLARATIVE_FRIENDLY
       This resource is intended to be "declarative-friendly".
       Declarative-friendly resources must be more strictly consistent, and
       setting this to true communicates to tools that this resource should
       adhere to declarative-friendly expectations.
       Note: This is used by the API linter (linter.aip.dev) to enable
       additional checks.
       
      DECLARATIVE_FRIENDLY = 1;
    • UNRECOGNIZED

      public static final ResourceDescriptor.Style UNRECOGNIZED
  • Field Details

    • STYLE_UNSPECIFIED_VALUE

      public static final int STYLE_UNSPECIFIED_VALUE
       The unspecified value. Do not use.
       
      STYLE_UNSPECIFIED = 0;
      See Also:
    • DECLARATIVE_FRIENDLY_VALUE

      public static final int DECLARATIVE_FRIENDLY_VALUE
       This resource is intended to be "declarative-friendly".
       Declarative-friendly resources must be more strictly consistent, and
       setting this to true communicates to tools that this resource should
       adhere to declarative-friendly expectations.
       Note: This is used by the API linter (linter.aip.dev) to enable
       additional checks.
       
      DECLARATIVE_FRIENDLY = 1;
      See Also:
  • Method Details

    • values

      public static ResourceDescriptor.Style[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResourceDescriptor.Style valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 ResourceDescriptor.Style valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static ResourceDescriptor.Style 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<ResourceDescriptor.Style> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ResourceDescriptor.Style valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null