Enum Attribute.Scope

java.lang.Object
java.lang.Enum<Attribute.Scope>
com.google.cloud.apihub.v1.Attribute.Scope
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Attribute.Scope>
Enclosing class:
Attribute

public static enum Attribute.Scope extends Enum<Attribute.Scope> implements com.google.protobuf.ProtocolMessageEnum
 Enumeration for the scope of the attribute representing the resource in the
 API Hub to which the attribute can be linked.
 
Protobuf enum google.cloud.apihub.v1.Attribute.Scope
  • Enum Constant Details

    • SCOPE_UNSPECIFIED

      public static final Attribute.Scope SCOPE_UNSPECIFIED
       Scope Unspecified.
       
      SCOPE_UNSPECIFIED = 0;
    • API

      public static final Attribute.Scope API
       Attribute can be linked to an API.
       
      API = 1;
    • VERSION

      public static final Attribute.Scope VERSION
       Attribute can be linked to an API version.
       
      VERSION = 2;
    • SPEC

      public static final Attribute.Scope SPEC
       Attribute can be linked to a Spec.
       
      SPEC = 3;
    • API_OPERATION

      public static final Attribute.Scope API_OPERATION
       Attribute can be linked to an API Operation.
       
      API_OPERATION = 4;
    • DEPLOYMENT

      public static final Attribute.Scope DEPLOYMENT
       Attribute can be linked to a Deployment.
       
      DEPLOYMENT = 5;
    • DEPENDENCY

      public static final Attribute.Scope DEPENDENCY
       Attribute can be linked to a Dependency.
       
      DEPENDENCY = 6;
    • DEFINITION

      public static final Attribute.Scope DEFINITION
       Attribute can be linked to a definition.
       
      DEFINITION = 7;
    • EXTERNAL_API

      public static final Attribute.Scope EXTERNAL_API
       Attribute can be linked to a ExternalAPI.
       
      EXTERNAL_API = 8;
    • PLUGIN

      public static final Attribute.Scope PLUGIN
       Attribute can be linked to a Plugin.
       
      PLUGIN = 9;
    • UNRECOGNIZED

      public static final Attribute.Scope UNRECOGNIZED
  • Field Details

    • SCOPE_UNSPECIFIED_VALUE

      public static final int SCOPE_UNSPECIFIED_VALUE
       Scope Unspecified.
       
      SCOPE_UNSPECIFIED = 0;
      See Also:
    • API_VALUE

      public static final int API_VALUE
       Attribute can be linked to an API.
       
      API = 1;
      See Also:
    • VERSION_VALUE

      public static final int VERSION_VALUE
       Attribute can be linked to an API version.
       
      VERSION = 2;
      See Also:
    • SPEC_VALUE

      public static final int SPEC_VALUE
       Attribute can be linked to a Spec.
       
      SPEC = 3;
      See Also:
    • API_OPERATION_VALUE

      public static final int API_OPERATION_VALUE
       Attribute can be linked to an API Operation.
       
      API_OPERATION = 4;
      See Also:
    • DEPLOYMENT_VALUE

      public static final int DEPLOYMENT_VALUE
       Attribute can be linked to a Deployment.
       
      DEPLOYMENT = 5;
      See Also:
    • DEPENDENCY_VALUE

      public static final int DEPENDENCY_VALUE
       Attribute can be linked to a Dependency.
       
      DEPENDENCY = 6;
      See Also:
    • DEFINITION_VALUE

      public static final int DEFINITION_VALUE
       Attribute can be linked to a definition.
       
      DEFINITION = 7;
      See Also:
    • EXTERNAL_API_VALUE

      public static final int EXTERNAL_API_VALUE
       Attribute can be linked to a ExternalAPI.
       
      EXTERNAL_API = 8;
      See Also:
    • PLUGIN_VALUE

      public static final int PLUGIN_VALUE
       Attribute can be linked to a Plugin.
       
      PLUGIN = 9;
      See Also:
  • Method Details

    • values

      public static Attribute.Scope[] 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 Attribute.Scope 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 Attribute.Scope 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 Attribute.Scope 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<Attribute.Scope> 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 Attribute.Scope 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