Enum ApiDef.Visibility

java.lang.Object
java.lang.Enum<ApiDef.Visibility>
org.tensorflow.proto.ApiDef.Visibility
All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<ApiDef.Visibility>
Enclosing class:
ApiDef

public static enum ApiDef.Visibility extends Enum<ApiDef.Visibility> implements ProtocolMessageEnum
Protobuf enum tensorflow.ApiDef.Visibility
  • Enum Constant Details

    • DEFAULT_VISIBILITY

      public static final ApiDef.Visibility DEFAULT_VISIBILITY
      Normally this is "VISIBLE" unless you are inheriting a
      different value from another ApiDef.
      
      DEFAULT_VISIBILITY = 0;
    • VISIBLE

      public static final ApiDef.Visibility VISIBLE
      Publicly visible in the API.
      
      VISIBLE = 1;
    • SKIP

      public static final ApiDef.Visibility 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

      public static final ApiDef.Visibility HIDDEN
      Hide this op by putting it into an internal namespace (or whatever
      is appropriate in the target language).
      
      HIDDEN = 3;
    • UNRECOGNIZED

      public static final ApiDef.Visibility UNRECOGNIZED
  • Field Details

    • DEFAULT_VISIBILITY_VALUE

      public static final int DEFAULT_VISIBILITY_VALUE
      Normally 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_VALUE
      Publicly visible in the API.
      
      VISIBLE = 1;
      See Also:
    • SKIP_VALUE

      public static final int SKIP_VALUE
      Do 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_VALUE
      Hide this op by putting it into an internal namespace (or whatever
      is appropriate in the target language).
      
      HIDDEN = 3;
      See Also:
  • Method Details

    • values

      public static ApiDef.Visibility[] 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 ApiDef.Visibility 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 Internal.EnumLite
      Specified by:
      getNumber in interface ProtocolMessageEnum
    • valueOf

      @Deprecated public static ApiDef.Visibility 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 ApiDef.Visibility 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 Internal.EnumLiteMap<ApiDef.Visibility> internalGetValueMap()
    • getValueDescriptor

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

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

      public static final Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ApiDef.Visibility valueOf(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