Enum ApiDef.Visibility

  • All Implemented Interfaces:
    Serializable, Comparable<ApiDef.Visibility>, org.nd4j.shade.protobuf.Internal.EnumLite, org.nd4j.shade.protobuf.ProtocolMessageEnum
    Enclosing class:
    ApiDef

    public static enum ApiDef.Visibility
    extends Enum<ApiDef.Visibility>
    implements org.nd4j.shade.protobuf.ProtocolMessageEnum
    Protobuf enum tensorflow.ApiDef.Visibility
    • Enum Constant Detail

      • 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;
    • Field Detail

      • 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:
        Constant Field Values
      • VISIBLE_VALUE

        public static final int VISIBLE_VALUE
         Publicly visible in the API.
         
        VISIBLE = 1;
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
    • Method Detail

      • values

        public static ApiDef.Visibility[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ApiDef.Visibility c : ApiDef.Visibility.values())
            System.out.println(c);
        
        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 org.nd4j.shade.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.Internal.EnumLiteMap<ApiDef.Visibility> internalGetValueMap()
      • getValueDescriptor

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

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

        public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static ApiDef.Visibility valueOf​(org.nd4j.shade.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