public static final class OpDef.AttrDef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder> implements OpDef.AttrDefOrBuilder
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.Protobuf type
tensorflow.OpDef.AttrDef| Modifier and Type | Method and Description |
|---|---|
OpDef.AttrDef.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
OpDef.AttrDef |
build() |
OpDef.AttrDef |
buildPartial() |
OpDef.AttrDef.Builder |
clear() |
OpDef.AttrDef.Builder |
clearAllowedValues()
The set of allowed values.
|
OpDef.AttrDef.Builder |
clearDefaultValue()
A reasonable default for this attribute if the user does not supply
a value.
|
OpDef.AttrDef.Builder |
clearDescription()
Human-readable description.
|
OpDef.AttrDef.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OpDef.AttrDef.Builder |
clearHasMinimum()
For type == "int", this is a minimum value.
|
OpDef.AttrDef.Builder |
clearMinimum()
int64 minimum = 6; |
OpDef.AttrDef.Builder |
clearName()
A descriptive name for the argument.
|
OpDef.AttrDef.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OpDef.AttrDef.Builder |
clearType()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
|
OpDef.AttrDef.Builder |
clone() |
AttrValue |
getAllowedValues()
The set of allowed values.
|
AttrValue.Builder |
getAllowedValuesBuilder()
The set of allowed values.
|
AttrValueOrBuilder |
getAllowedValuesOrBuilder()
The set of allowed values.
|
OpDef.AttrDef |
getDefaultInstanceForType() |
AttrValue |
getDefaultValue()
A reasonable default for this attribute if the user does not supply
a value.
|
AttrValue.Builder |
getDefaultValueBuilder()
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.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OpDef.AttrDef.Builder |
mergeAllowedValues(AttrValue value)
The set of allowed values.
|
OpDef.AttrDef.Builder |
mergeDefaultValue(AttrValue value)
A reasonable default for this attribute if the user does not supply
a value.
|
OpDef.AttrDef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OpDef.AttrDef.Builder |
mergeFrom(com.google.protobuf.Message other) |
OpDef.AttrDef.Builder |
mergeFrom(OpDef.AttrDef other) |
OpDef.AttrDef.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OpDef.AttrDef.Builder |
setAllowedValues(AttrValue.Builder builderForValue)
The set of allowed values.
|
OpDef.AttrDef.Builder |
setAllowedValues(AttrValue value)
The set of allowed values.
|
OpDef.AttrDef.Builder |
setDefaultValue(AttrValue.Builder builderForValue)
A reasonable default for this attribute if the user does not supply
a value.
|
OpDef.AttrDef.Builder |
setDefaultValue(AttrValue value)
A reasonable default for this attribute if the user does not supply
a value.
|
OpDef.AttrDef.Builder |
setDescription(java.lang.String value)
Human-readable description.
|
OpDef.AttrDef.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Human-readable description.
|
OpDef.AttrDef.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
OpDef.AttrDef.Builder |
setHasMinimum(boolean value)
For type == "int", this is a minimum value.
|
OpDef.AttrDef.Builder |
setMinimum(long value)
int64 minimum = 6; |
OpDef.AttrDef.Builder |
setName(java.lang.String value)
A descriptive name for the argument.
|
OpDef.AttrDef.Builder |
setNameBytes(com.google.protobuf.ByteString value)
A descriptive name for the argument.
|
OpDef.AttrDef.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
OpDef.AttrDef.Builder |
setType(java.lang.String value)
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
|
OpDef.AttrDef.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
|
OpDef.AttrDef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OpDef.AttrDef build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OpDef.AttrDef buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OpDef.AttrDef.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef.Builder mergeFrom(OpDef.AttrDef other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public OpDef.AttrDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OpDef.AttrDef.Builder>java.io.IOExceptionpublic 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;getName in interface OpDef.AttrDefOrBuilderpublic 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;getNameBytes in interface OpDef.AttrDefOrBuilderpublic OpDef.AttrDef.Builder setName(java.lang.String value)
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;value - The name to set.public OpDef.AttrDef.Builder clearName()
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;public OpDef.AttrDef.Builder setNameBytes(com.google.protobuf.ByteString value)
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;value - The bytes for name to set.public java.lang.String getType()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;getType in interface OpDef.AttrDefOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;getTypeBytes in interface OpDef.AttrDefOrBuilderpublic OpDef.AttrDef.Builder setType(java.lang.String value)
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;value - The type to set.public OpDef.AttrDef.Builder clearType()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;public OpDef.AttrDef.Builder setTypeBytes(com.google.protobuf.ByteString value)
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;value - The bytes for type to set.public 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;hasDefaultValue in interface OpDef.AttrDefOrBuilderpublic 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;getDefaultValue in interface OpDef.AttrDefOrBuilderpublic OpDef.AttrDef.Builder setDefaultValue(AttrValue value)
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;public OpDef.AttrDef.Builder setDefaultValue(AttrValue.Builder builderForValue)
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;public OpDef.AttrDef.Builder mergeDefaultValue(AttrValue value)
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;public OpDef.AttrDef.Builder clearDefaultValue()
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;public AttrValue.Builder getDefaultValueBuilder()
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;public 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;getDefaultValueOrBuilder in interface OpDef.AttrDefOrBuilderpublic java.lang.String getDescription()
Human-readable description.
string description = 4;getDescription in interface OpDef.AttrDefOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Human-readable description.
string description = 4;getDescriptionBytes in interface OpDef.AttrDefOrBuilderpublic OpDef.AttrDef.Builder setDescription(java.lang.String value)
Human-readable description.
string description = 4;value - The description to set.public OpDef.AttrDef.Builder clearDescription()
Human-readable description.
string description = 4;public OpDef.AttrDef.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Human-readable description.
string description = 4;value - The bytes for description to set.public boolean getHasMinimum()
For type == "int", this is a minimum value. For "list(___)" types, this is the minimum length.
bool has_minimum = 5;getHasMinimum in interface OpDef.AttrDefOrBuilderpublic OpDef.AttrDef.Builder setHasMinimum(boolean value)
For type == "int", this is a minimum value. For "list(___)" types, this is the minimum length.
bool has_minimum = 5;value - The hasMinimum to set.public OpDef.AttrDef.Builder clearHasMinimum()
For type == "int", this is a minimum value. For "list(___)" types, this is the minimum length.
bool has_minimum = 5;public long getMinimum()
int64 minimum = 6;getMinimum in interface OpDef.AttrDefOrBuilderpublic OpDef.AttrDef.Builder setMinimum(long value)
int64 minimum = 6;value - The minimum to set.public OpDef.AttrDef.Builder clearMinimum()
int64 minimum = 6;public 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;hasAllowedValues in interface OpDef.AttrDefOrBuilderpublic 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;getAllowedValues in interface OpDef.AttrDefOrBuilderpublic OpDef.AttrDef.Builder setAllowedValues(AttrValue value)
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;public OpDef.AttrDef.Builder setAllowedValues(AttrValue.Builder builderForValue)
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;public OpDef.AttrDef.Builder mergeAllowedValues(AttrValue value)
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;public OpDef.AttrDef.Builder clearAllowedValues()
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;public AttrValue.Builder getAllowedValuesBuilder()
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;public 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;getAllowedValuesOrBuilder in interface OpDef.AttrDefOrBuilderpublic final OpDef.AttrDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>public final OpDef.AttrDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>