Packages

final case class AttrDef(name: String = "", type: String = "", defaultValue: Option[AttrValue] = _root_.scala.None, description: String = "", hasMinimum: Boolean = false, minimum: Long = 0L, allowedValues: Option[AttrValue] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[AttrDef] with Product with Serializable

Description of the graph-construction-time configuration of this Op. That is to say, this describes the attr fields that will be specified in the NodeDef.

name

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_]+".

type

One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).

defaultValue

A reasonable default for this attribute if the user does not supply a value. If not specified, the user must supply a value.

description

Human-readable description.

hasMinimum

For type == "int", this is a minimum value. For "list(_)" types, this is the minimum length.

allowedValues

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.

Annotations
@SerialVersionUID()
Linear Supertypes
Updatable[AttrDef], GeneratedMessage, Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AttrDef
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AttrDef(name: String = "", type: String = "", defaultValue: Option[AttrValue] = _root_.scala.None, description: String = "", hasMinimum: Boolean = false, minimum: Long = 0L, allowedValues: Option[AttrValue] = _root_.scala.None, unknownFields: UnknownFieldSet = ...)

    name

    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_]+".

    type

    One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).

    defaultValue

    A reasonable default for this attribute if the user does not supply a value. If not specified, the user must supply a value.

    description

    Human-readable description.

    hasMinimum

    For type == "int", this is a minimum value. For "list(_)" types, this is the minimum length.

    allowedValues

    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.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val allowedValues: Option[AttrValue]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clearAllowedValues: AttrDef
  7. def clearDefaultValue: AttrDef
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  9. def companion: AttrDef.type
    Definition Classes
    AttrDef → GeneratedMessage
  10. val defaultValue: Option[AttrValue]
  11. val description: String
  12. def discardUnknownFields: AttrDef
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def getAllowedValues: AttrValue
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def getDefaultValue: AttrValue
  17. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    AttrDef → GeneratedMessage
  18. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    AttrDef → GeneratedMessage
  19. val hasMinimum: Boolean
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val minimum: Long
  22. val name: String
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def serializedSize: Int
    Definition Classes
    AttrDef → GeneratedMessage
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  29. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  30. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  31. def toProtoString: String
    Definition Classes
    AttrDef → GeneratedMessage
  32. val type: String
  33. val unknownFields: UnknownFieldSet
  34. def update(ms: (Lens[AttrDef, AttrDef]) ⇒ Mutation[AttrDef]*): AttrDef
    Definition Classes
    Updatable
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withAllowedValues(__v: AttrValue): AttrDef
  39. def withDefaultValue(__v: AttrValue): AttrDef
  40. def withDescription(__v: String): AttrDef
  41. def withHasMinimum(__v: Boolean): AttrDef
  42. def withMinimum(__v: Long): AttrDef
  43. def withName(__v: String): AttrDef
  44. def withType(__v: String): AttrDef
  45. def withUnknownFields(__v: UnknownFieldSet): AttrDef
  46. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  47. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    AttrDef → GeneratedMessage
  48. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Updatable[AttrDef]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped