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()
- Alphabetic
- By Inheritance
- AttrDef
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allowedValues: Option[AttrValue]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearAllowedValues: AttrDef
- def clearDefaultValue: AttrDef
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
companion: AttrDef.type
- Definition Classes
- AttrDef → GeneratedMessage
- val defaultValue: Option[AttrValue]
- val description: String
- def discardUnknownFields: AttrDef
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def getAllowedValues: AttrValue
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getDefaultValue: AttrValue
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- AttrDef → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- AttrDef → GeneratedMessage
- val hasMinimum: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val minimum: Long
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
serializedSize: Int
- Definition Classes
- AttrDef → GeneratedMessage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- AttrDef → GeneratedMessage
- val type: String
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[AttrDef, AttrDef]) ⇒ Mutation[AttrDef]*): AttrDef
- Definition Classes
- Updatable
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withAllowedValues(__v: AttrValue): AttrDef
- def withDefaultValue(__v: AttrValue): AttrDef
- def withDescription(__v: String): AttrDef
- def withHasMinimum(__v: Boolean): AttrDef
- def withMinimum(__v: Long): AttrDef
- def withName(__v: String): AttrDef
- def withType(__v: String): AttrDef
- def withUnknownFields(__v: UnknownFieldSet): AttrDef
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- AttrDef → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated