Class OpDef.AttrDef.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OpDef.AttrDef.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
org.tensorflow.proto.OpDef.AttrDef.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, OpDef.AttrDefOrBuilder
- Enclosing class:
OpDef.AttrDef
public static final class OpDef.AttrDef.Builder
extends 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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()The set of allowed values.A reasonable default for this attribute if the user does not supply a value.Human-readable description.For type == "int", this is a minimum value.int64 minimum = 6;A descriptive name for the argument.One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).clone()The set of allowed values.The set of allowed values.The set of allowed values.A reasonable default for this attribute if the user does not supply a value.A reasonable default for this attribute if the user does not supply a value.A reasonable default for this attribute if the user does not supply a value.Human-readable description.Human-readable description.static final Descriptors.DescriptorbooleanFor type == "int", this is a minimum value.longint64 minimum = 6;getName()A descriptive name for the argument.A descriptive name for the argument.getType()One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).booleanThe set of allowed values.booleanA reasonable default for this attribute if the user does not supply a value.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeAllowedValues(AttrValue value) The set of allowed values.mergeDefaultValue(AttrValue value) A reasonable default for this attribute if the user does not supply a value.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(OpDef.AttrDef other) final OpDef.AttrDef.BuildermergeUnknownFields(UnknownFieldSet unknownFields) setAllowedValues(AttrValue value) The set of allowed values.setAllowedValues(AttrValue.Builder builderForValue) The set of allowed values.setDefaultValue(AttrValue value) A reasonable default for this attribute if the user does not supply a value.setDefaultValue(AttrValue.Builder builderForValue) A reasonable default for this attribute if the user does not supply a value.setDescription(String value) Human-readable description.setDescriptionBytes(ByteString value) Human-readable description.setField(Descriptors.FieldDescriptor field, Object value) setHasMinimum(boolean value) For type == "int", this is a minimum value.setMinimum(long value) int64 minimum = 6;A descriptive name for the argument.setNameBytes(ByteString value) A descriptive name for the argument.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).setTypeBytes(ByteString value) One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).final OpDef.AttrDef.BuildersetUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
setRepeatedField
public OpDef.AttrDef.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OpDef.AttrDef.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
mergeFrom
public OpDef.AttrDef.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OpDef.AttrDef.Builder>- Throws:
IOException
-
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;- Specified by:
getNamein interfaceOpDef.AttrDefOrBuilder- Returns:
- The name.
-
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;- Specified by:
getNameBytesin interfaceOpDef.AttrDefOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getType
One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).string type = 2;- Specified by:
getTypein interfaceOpDef.AttrDefOrBuilder- Returns:
- The type.
-
getTypeBytes
One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).string type = 2;- Specified by:
getTypeBytesin interfaceOpDef.AttrDefOrBuilder- Returns:
- The bytes for type.
-
setType
One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).string type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).string type = 2;- Returns:
- This builder for chaining.
-
setTypeBytes
One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).string type = 2;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasDefaultValue
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;- Specified by:
hasDefaultValuein interfaceOpDef.AttrDefOrBuilder- Returns:
- Whether the defaultValue field is set.
-
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;- Specified by:
getDefaultValuein interfaceOpDef.AttrDefOrBuilder- Returns:
- The defaultValue.
-
setDefaultValue
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; -
setDefaultValue
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; -
mergeDefaultValue
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; -
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; -
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; -
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;- Specified by:
getDefaultValueOrBuilderin interfaceOpDef.AttrDefOrBuilder
-
getDescription
Human-readable description.
string description = 4;- Specified by:
getDescriptionin interfaceOpDef.AttrDefOrBuilder- Returns:
- The description.
-
getDescriptionBytes
Human-readable description.
string description = 4;- Specified by:
getDescriptionBytesin interfaceOpDef.AttrDefOrBuilder- Returns:
- The bytes for description.
-
setDescription
Human-readable description.
string description = 4;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Human-readable description.
string description = 4;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Human-readable description.
string description = 4;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getHasMinimum
public boolean getHasMinimum()For type == "int", this is a minimum value. For "list(___)" types, this is the minimum length.
bool has_minimum = 5;- Specified by:
getHasMinimumin interfaceOpDef.AttrDefOrBuilder- Returns:
- The hasMinimum.
-
setHasMinimum
For type == "int", this is a minimum value. For "list(___)" types, this is the minimum length.
bool has_minimum = 5;- Parameters:
value- The hasMinimum to set.- Returns:
- This builder for chaining.
-
clearHasMinimum
For type == "int", this is a minimum value. For "list(___)" types, this is the minimum length.
bool has_minimum = 5;- Returns:
- This builder for chaining.
-
getMinimum
public long getMinimum()int64 minimum = 6;- Specified by:
getMinimumin interfaceOpDef.AttrDefOrBuilder- Returns:
- The minimum.
-
setMinimum
int64 minimum = 6;- Parameters:
value- The minimum to set.- Returns:
- This builder for chaining.
-
clearMinimum
-
hasAllowedValues
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;- Specified by:
hasAllowedValuesin interfaceOpDef.AttrDefOrBuilder- Returns:
- Whether the allowedValues field is set.
-
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;- Specified by:
getAllowedValuesin interfaceOpDef.AttrDefOrBuilder- Returns:
- The allowedValues.
-
setAllowedValues
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; -
setAllowedValues
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; -
mergeAllowedValues
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; -
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; -
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; -
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;- Specified by:
getAllowedValuesOrBuilderin interfaceOpDef.AttrDefOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-