Enum ApiDef.Visibility
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<ApiDef.Visibility>
- Enclosing class:
ApiDef
Protobuf enum
tensorflow.ApiDef.Visibility-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNormally this is "VISIBLE" unless you are inheriting a different value from another ApiDef.Hide this op by putting it into an internal namespace (or whatever is appropriate in the target language).Do not include this op in the generated API.Publicly visible in the API. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNormally this is "VISIBLE" unless you are inheriting a different value from another ApiDef.static final intHide this op by putting it into an internal namespace (or whatever is appropriate in the target language).static final intDo not include this op in the generated API.static final intPublicly visible in the API. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiDef.VisibilityforNumber(int value) static final Descriptors.EnumDescriptorfinal intstatic ApiDef.VisibilityvalueOf(int value) Deprecated.static ApiDef.VisibilityReturns the enum constant of this type with the specified name.static ApiDef.VisibilityReturns the enum constant of this type with the specified name.static ApiDef.Visibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT_VISIBILITY
Normally this is "VISIBLE" unless you are inheriting a different value from another ApiDef.
DEFAULT_VISIBILITY = 0; -
VISIBLE
Publicly visible in the API.
VISIBLE = 1; -
SKIP
Do not include this op in the generated API. If visibility is set to 'SKIP', other fields are ignored for this op.
SKIP = 2; -
HIDDEN
Hide this op by putting it into an internal namespace (or whatever is appropriate in the target language).
HIDDEN = 3; -
UNRECOGNIZED
-
-
Field Details
-
DEFAULT_VISIBILITY_VALUE
public static final int DEFAULT_VISIBILITY_VALUENormally this is "VISIBLE" unless you are inheriting a different value from another ApiDef.
DEFAULT_VISIBILITY = 0;- See Also:
-
VISIBLE_VALUE
public static final int VISIBLE_VALUEPublicly visible in the API.
VISIBLE = 1;- See Also:
-
SKIP_VALUE
public static final int SKIP_VALUEDo not include this op in the generated API. If visibility is set to 'SKIP', other fields are ignored for this op.
SKIP = 2;- See Also:
-
HIDDEN_VALUE
public static final int HIDDEN_VALUEHide this op by putting it into an internal namespace (or whatever is appropriate in the target language).
HIDDEN = 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 interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
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
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
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
-