Package org.tensorflow.framework
Class OpDef.AttrDef.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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,java.lang.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 Type Method Description OpDef.AttrDef.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)OpDef.AttrDefbuild()OpDef.AttrDefbuildPartial()OpDef.AttrDef.Builderclear()OpDef.AttrDef.BuilderclearAllowedValues()The set of allowed values.OpDef.AttrDef.BuilderclearDefaultValue()A reasonable default for this attribute if the user does not supply a value.OpDef.AttrDef.BuilderclearDescription()Human-readable description.OpDef.AttrDef.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OpDef.AttrDef.BuilderclearHasMinimum()For type == "int", this is a minimum value.OpDef.AttrDef.BuilderclearMinimum()int64 minimum = 6;OpDef.AttrDef.BuilderclearName()A descriptive name for the argument.OpDef.AttrDef.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OpDef.AttrDef.BuilderclearType()One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).OpDef.AttrDef.Builderclone()AttrValuegetAllowedValues()The set of allowed values.AttrValue.BuildergetAllowedValuesBuilder()The set of allowed values.AttrValueOrBuildergetAllowedValuesOrBuilder()The set of allowed values.OpDef.AttrDefgetDefaultInstanceForType()AttrValuegetDefaultValue()A reasonable default for this attribute if the user does not supply a value.AttrValue.BuildergetDefaultValueBuilder()A reasonable default for this attribute if the user does not supply a value.AttrValueOrBuildergetDefaultValueOrBuilder()A reasonable default for this attribute if the user does not supply a value.java.lang.StringgetDescription()Human-readable description.com.google.protobuf.ByteStringgetDescriptionBytes()Human-readable description.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetHasMinimum()For type == "int", this is a minimum value.longgetMinimum()int64 minimum = 6;java.lang.StringgetName()A descriptive name for the argument.com.google.protobuf.ByteStringgetNameBytes()A descriptive name for the argument.java.lang.StringgetType()One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).com.google.protobuf.ByteStringgetTypeBytes()One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).booleanhasAllowedValues()The set of allowed values.booleanhasDefaultValue()A reasonable default for this attribute if the user does not supply a value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OpDef.AttrDef.BuildermergeAllowedValues(AttrValue value)The set of allowed values.OpDef.AttrDef.BuildermergeDefaultValue(AttrValue value)A reasonable default for this attribute if the user does not supply a value.OpDef.AttrDef.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OpDef.AttrDef.BuildermergeFrom(com.google.protobuf.Message other)OpDef.AttrDef.BuildermergeFrom(OpDef.AttrDef other)OpDef.AttrDef.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OpDef.AttrDef.BuildersetAllowedValues(AttrValue value)The set of allowed values.OpDef.AttrDef.BuildersetAllowedValues(AttrValue.Builder builderForValue)The set of allowed values.OpDef.AttrDef.BuildersetDefaultValue(AttrValue value)A reasonable default for this attribute if the user does not supply a value.OpDef.AttrDef.BuildersetDefaultValue(AttrValue.Builder builderForValue)A reasonable default for this attribute if the user does not supply a value.OpDef.AttrDef.BuildersetDescription(java.lang.String value)Human-readable description.OpDef.AttrDef.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Human-readable description.OpDef.AttrDef.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)OpDef.AttrDef.BuildersetHasMinimum(boolean value)For type == "int", this is a minimum value.OpDef.AttrDef.BuildersetMinimum(long value)int64 minimum = 6;OpDef.AttrDef.BuildersetName(java.lang.String value)A descriptive name for the argument.OpDef.AttrDef.BuildersetNameBytes(com.google.protobuf.ByteString value)A descriptive name for the argument.OpDef.AttrDef.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)OpDef.AttrDef.BuildersetType(java.lang.String value)One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).OpDef.AttrDef.BuildersetTypeBytes(com.google.protobuf.ByteString value)One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
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, java.lang.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, java.lang.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, java.lang.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 java.io.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:
java.io.IOException
-
getName
public 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;- 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
public java.lang.String 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
public java.lang.String 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>
-