Package org.tensorflow.framework
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.framework.OpDef.AttrDef.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,OpDef.AttrDefOrBuilder
- Enclosing class:
OpDef.AttrDef
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.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.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) For type == "int", this is a minimum value.int64 minimum = 6;A descriptive name for the argument.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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.com.google.protobuf.ByteStringHuman-readable description.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanFor type == "int", this is a minimum value.longint64 minimum = 6;getName()A descriptive name for the argument.com.google.protobuf.ByteStringA descriptive name for the argument.getType()One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).com.google.protobuf.ByteStringOne 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 com.google.protobuf.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(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(OpDef.AttrDef other) final OpDef.AttrDef.BuildermergeUnknownFields(com.google.protobuf.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(com.google.protobuf.ByteString value) Human-readable description.setHasMinimum(boolean value) For type == "int", this is a minimum value.setMinimum(long value) int64 minimum = 6;A descriptive name for the argument.setNameBytes(com.google.protobuf.ByteString value) A descriptive name for the argument.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).setTypeBytes(com.google.protobuf.ByteString value) One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).final OpDef.AttrDef.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
setField
public OpDef.AttrDef.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
setRepeatedField
public OpDef.AttrDef.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
addRepeatedField
public OpDef.AttrDef.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OpDef.AttrDef.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
mergeFrom
public OpDef.AttrDef.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.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
public 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;- 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
public com.google.protobuf.ByteString 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
public com.google.protobuf.ByteString 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
int64 minimum = 6;- Returns:
- This builder for chaining.
-
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
public final OpDef.AttrDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-
mergeUnknownFields
public final OpDef.AttrDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpDef.AttrDef.Builder>
-