Package com.google.cloud.apihub.v1
Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionAttribute can be linked to an API.Attribute can be linked to an API Operation.Attribute can be linked to a definition.Attribute can be linked to a Dependency.Attribute can be linked to a Deployment.Attribute can be linked to a ExternalAPI.Attribute can be linked to a Plugin.Scope Unspecified.Attribute can be linked to a Spec.Attribute can be linked to an API version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAttribute can be linked to an API Operation.static final intAttribute can be linked to an API.static final intAttribute can be linked to a definition.static final intAttribute can be linked to a Dependency.static final intAttribute can be linked to a Deployment.static final intAttribute can be linked to a ExternalAPI.static final intAttribute can be linked to a Plugin.static final intScope Unspecified.static final intAttribute can be linked to a Spec.static final intAttribute can be linked to an API version. -
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute.ScopeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Attribute.Scope>static Attribute.ScopevalueOf(int value) Deprecated.static Attribute.ScopevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Attribute.ScopeReturns the enum constant of this type with the specified name.static Attribute.Scope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SCOPE_UNSPECIFIED
Scope Unspecified.
SCOPE_UNSPECIFIED = 0; -
API
Attribute can be linked to an API.
API = 1; -
VERSION
Attribute can be linked to an API version.
VERSION = 2; -
SPEC
Attribute can be linked to a Spec.
SPEC = 3; -
API_OPERATION
Attribute can be linked to an API Operation.
API_OPERATION = 4; -
DEPLOYMENT
Attribute can be linked to a Deployment.
DEPLOYMENT = 5; -
DEPENDENCY
Attribute can be linked to a Dependency.
DEPENDENCY = 6; -
DEFINITION
Attribute can be linked to a definition.
DEFINITION = 7; -
EXTERNAL_API
Attribute can be linked to a ExternalAPI.
EXTERNAL_API = 8; -
PLUGIN
Attribute can be linked to a Plugin.
PLUGIN = 9; -
UNRECOGNIZED
-
-
Field Details
-
SCOPE_UNSPECIFIED_VALUE
public static final int SCOPE_UNSPECIFIED_VALUEScope Unspecified.
SCOPE_UNSPECIFIED = 0;- See Also:
-
API_VALUE
public static final int API_VALUEAttribute can be linked to an API.
API = 1;- See Also:
-
VERSION_VALUE
public static final int VERSION_VALUEAttribute can be linked to an API version.
VERSION = 2;- See Also:
-
SPEC_VALUE
public static final int SPEC_VALUEAttribute can be linked to a Spec.
SPEC = 3;- See Also:
-
API_OPERATION_VALUE
public static final int API_OPERATION_VALUEAttribute can be linked to an API Operation.
API_OPERATION = 4;- See Also:
-
DEPLOYMENT_VALUE
public static final int DEPLOYMENT_VALUEAttribute can be linked to a Deployment.
DEPLOYMENT = 5;- See Also:
-
DEPENDENCY_VALUE
public static final int DEPENDENCY_VALUEAttribute can be linked to a Dependency.
DEPENDENCY = 6;- See Also:
-
DEFINITION_VALUE
public static final int DEFINITION_VALUEAttribute can be linked to a definition.
DEFINITION = 7;- See Also:
-
EXTERNAL_API_VALUE
public static final int EXTERNAL_API_VALUEAttribute can be linked to a ExternalAPI.
EXTERNAL_API = 8;- See Also:
-
PLUGIN_VALUE
public static final int PLUGIN_VALUEAttribute can be linked to a Plugin.
PLUGIN = 9;- 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
-