Interface OpDef.AttrDefOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
OpDef.AttrDef, OpDef.AttrDef.Builder
Enclosing class:
OpDef

public static interface OpDef.AttrDefOrBuilder
extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type Method Description
    AttrValue getAllowedValues()
    The set of allowed values.
    AttrValueOrBuilder getAllowedValuesOrBuilder()
    The set of allowed values.
    AttrValue getDefaultValue()
    A reasonable default for this attribute if the user does not supply a value.
    AttrValueOrBuilder getDefaultValueOrBuilder()
    A reasonable default for this attribute if the user does not supply a value.
    java.lang.String getDescription()
    Human-readable description.
    com.google.protobuf.ByteString getDescriptionBytes()
    Human-readable description.
    boolean getHasMinimum()
    For type == "int", this is a minimum value.
    long getMinimum()
    int64 minimum = 6;
    java.lang.String getName()
    A descriptive name for the argument.
    com.google.protobuf.ByteString getNameBytes()
    A descriptive name for the argument.
    java.lang.String getType()
    One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).
    com.google.protobuf.ByteString getTypeBytes()
    One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).
    boolean hasAllowedValues()
    The set of allowed values.
    boolean hasDefaultValue()
    A reasonable default for this attribute if the user does not supply a value.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getName

      java.lang.String getName()
       A descriptive name for the argument.  May be used, e.g. by the
       Python client, as a keyword argument name, and so should match
       the regexp "[a-z][a-z0-9_]+".
       
      string name = 1;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       A descriptive name for the argument.  May be used, e.g. by the
       Python client, as a keyword argument name, and so should match
       the regexp "[a-z][a-z0-9_]+".
       
      string name = 1;
      Returns:
      The bytes for name.
    • getType

      java.lang.String getType()
       One of the type names from attr_value.proto ("string", "list(string)",
       "int", etc.).
       
      string type = 2;
      Returns:
      The type.
    • getTypeBytes

      com.google.protobuf.ByteString getTypeBytes()
       One of the type names from attr_value.proto ("string", "list(string)",
       "int", etc.).
       
      string type = 2;
      Returns:
      The bytes for type.
    • hasDefaultValue

      boolean hasDefaultValue()
       A reasonable default for this attribute if the user does not supply
       a value.  If not specified, the user must supply a value.
       
      .tensorflow.AttrValue default_value = 3;
      Returns:
      Whether the defaultValue field is set.
    • getDefaultValue

      AttrValue getDefaultValue()
       A reasonable default for this attribute if the user does not supply
       a value.  If not specified, the user must supply a value.
       
      .tensorflow.AttrValue default_value = 3;
      Returns:
      The defaultValue.
    • getDefaultValueOrBuilder

      AttrValueOrBuilder getDefaultValueOrBuilder()
       A reasonable default for this attribute if the user does not supply
       a value.  If not specified, the user must supply a value.
       
      .tensorflow.AttrValue default_value = 3;
    • getDescription

      java.lang.String getDescription()
       Human-readable description.
       
      string description = 4;
      Returns:
      The description.
    • getDescriptionBytes

      com.google.protobuf.ByteString getDescriptionBytes()
       Human-readable description.
       
      string description = 4;
      Returns:
      The bytes for description.
    • getHasMinimum

      boolean getHasMinimum()
       For type == "int", this is a minimum value.  For "list(___)"
       types, this is the minimum length.
       
      bool has_minimum = 5;
      Returns:
      The hasMinimum.
    • getMinimum

      long getMinimum()
      int64 minimum = 6;
      Returns:
      The minimum.
    • hasAllowedValues

      boolean hasAllowedValues()
       The set of allowed values.  Has type that is the "list" version
       of the "type" field above (uses the "list" field of AttrValue).
       If type == "type" or "list(type)" above, then the "type" field
       of "allowed_values.list" has the set of allowed DataTypes.
       If type == "string" or "list(string)", then the "s" field of
       "allowed_values.list" has the set of allowed strings.
       
      .tensorflow.AttrValue allowed_values = 7;
      Returns:
      Whether the allowedValues field is set.
    • getAllowedValues

      AttrValue getAllowedValues()
       The set of allowed values.  Has type that is the "list" version
       of the "type" field above (uses the "list" field of AttrValue).
       If type == "type" or "list(type)" above, then the "type" field
       of "allowed_values.list" has the set of allowed DataTypes.
       If type == "string" or "list(string)", then the "s" field of
       "allowed_values.list" has the set of allowed strings.
       
      .tensorflow.AttrValue allowed_values = 7;
      Returns:
      The allowedValues.
    • getAllowedValuesOrBuilder

      AttrValueOrBuilder getAllowedValuesOrBuilder()
       The set of allowed values.  Has type that is the "list" version
       of the "type" field above (uses the "list" field of AttrValue).
       If type == "type" or "list(type)" above, then the "type" field
       of "allowed_values.list" has the set of allowed DataTypes.
       If type == "string" or "list(string)", then the "s" field of
       "allowed_values.list" has the set of allowed strings.
       
      .tensorflow.AttrValue allowed_values = 7;