Package org.tensorflow.framework
Class ApiDef.Attr.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
- org.tensorflow.framework.ApiDef.Attr.Builder
-
- All Implemented Interfaces:
Cloneable,org.nd4j.shade.protobuf.Message.Builder,org.nd4j.shade.protobuf.MessageLite.Builder,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,ApiDef.AttrOrBuilder
- Enclosing class:
- ApiDef.Attr
public static final class ApiDef.Attr.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder> implements ApiDef.AttrOrBuilder
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 typetensorflow.ApiDef.Attr
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiDef.Attr.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)ApiDef.Attrbuild()ApiDef.AttrbuildPartial()ApiDef.Attr.Builderclear()ApiDef.Attr.BuilderclearDefaultValue()Specify a new default value to use for this attr.ApiDef.Attr.BuilderclearDescription()Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.ApiDef.Attr.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)ApiDef.Attr.BuilderclearName()string name = 1;ApiDef.Attr.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)ApiDef.Attr.BuilderclearRenameTo()Change the name used to access this attr in the API from what is used in the GraphDef.ApiDef.Attr.Builderclone()ApiDef.AttrgetDefaultInstanceForType()AttrValuegetDefaultValue()Specify a new default value to use for this attr.AttrValue.BuildergetDefaultValueBuilder()Specify a new default value to use for this attr.AttrValueOrBuildergetDefaultValueOrBuilder()Specify a new default value to use for this attr.StringgetDescription()Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.org.nd4j.shade.protobuf.ByteStringgetDescriptionBytes()Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()string name = 1;org.nd4j.shade.protobuf.ByteStringgetNameBytes()string name = 1;StringgetRenameTo()Change the name used to access this attr in the API from what is used in the GraphDef.org.nd4j.shade.protobuf.ByteStringgetRenameToBytes()Change the name used to access this attr in the API from what is used in the GraphDef.booleanhasDefaultValue()Specify a new default value to use for this attr.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ApiDef.Attr.BuildermergeDefaultValue(AttrValue value)Specify a new default value to use for this attr.ApiDef.Attr.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)ApiDef.Attr.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)ApiDef.Attr.BuildermergeFrom(ApiDef.Attr other)ApiDef.Attr.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)ApiDef.Attr.BuildersetDefaultValue(AttrValue value)Specify a new default value to use for this attr.ApiDef.Attr.BuildersetDefaultValue(AttrValue.Builder builderForValue)Specify a new default value to use for this attr.ApiDef.Attr.BuildersetDescription(String value)Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.ApiDef.Attr.BuildersetDescriptionBytes(org.nd4j.shade.protobuf.ByteString value)Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.ApiDef.Attr.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)ApiDef.Attr.BuildersetName(String value)string name = 1;ApiDef.Attr.BuildersetNameBytes(org.nd4j.shade.protobuf.ByteString value)string name = 1;ApiDef.Attr.BuildersetRenameTo(String value)Change the name used to access this attr in the API from what is used in the GraphDef.ApiDef.Attr.BuildersetRenameToBytes(org.nd4j.shade.protobuf.ByteString value)Change the name used to access this attr in the API from what is used in the GraphDef.ApiDef.Attr.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ApiDef.Attr.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
clear
public ApiDef.Attr.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
getDefaultInstanceForType
public ApiDef.Attr getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public ApiDef.Attr build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public ApiDef.Attr buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public ApiDef.Attr.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
setField
public ApiDef.Attr.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
clearField
public ApiDef.Attr.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
clearOneof
public ApiDef.Attr.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
setRepeatedField
public ApiDef.Attr.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
addRepeatedField
public ApiDef.Attr.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
mergeFrom
public ApiDef.Attr.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<ApiDef.Attr.Builder>
-
mergeFrom
public ApiDef.Attr.Builder mergeFrom(ApiDef.Attr other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
mergeFrom
public ApiDef.Attr.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<ApiDef.Attr.Builder>- Throws:
IOException
-
getName
public String getName()
string name = 1;- Specified by:
getNamein interfaceApiDef.AttrOrBuilder- Returns:
- The name.
-
getNameBytes
public org.nd4j.shade.protobuf.ByteString getNameBytes()
string name = 1;- Specified by:
getNameBytesin interfaceApiDef.AttrOrBuilder- Returns:
- The bytes for name.
-
setName
public ApiDef.Attr.Builder setName(String value)
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ApiDef.Attr.Builder clearName()
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public ApiDef.Attr.Builder setNameBytes(org.nd4j.shade.protobuf.ByteString value)
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getRenameTo
public String getRenameTo()
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;- Specified by:
getRenameToin interfaceApiDef.AttrOrBuilder- Returns:
- The renameTo.
-
getRenameToBytes
public org.nd4j.shade.protobuf.ByteString getRenameToBytes()
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;- Specified by:
getRenameToBytesin interfaceApiDef.AttrOrBuilder- Returns:
- The bytes for renameTo.
-
setRenameTo
public ApiDef.Attr.Builder setRenameTo(String value)
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;- Parameters:
value- The renameTo to set.- Returns:
- This builder for chaining.
-
clearRenameTo
public ApiDef.Attr.Builder clearRenameTo()
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;- Returns:
- This builder for chaining.
-
setRenameToBytes
public ApiDef.Attr.Builder setRenameToBytes(org.nd4j.shade.protobuf.ByteString value)
Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in `backticks` will also be replaced in the summary & description fields.
string rename_to = 2;- Parameters:
value- The bytes for renameTo to set.- Returns:
- This builder for chaining.
-
hasDefaultValue
public boolean hasDefaultValue()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.tensorflow.AttrValue default_value = 3;- Specified by:
hasDefaultValuein interfaceApiDef.AttrOrBuilder- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
public AttrValue getDefaultValue()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.tensorflow.AttrValue default_value = 3;- Specified by:
getDefaultValuein interfaceApiDef.AttrOrBuilder- Returns:
- The defaultValue.
-
setDefaultValue
public ApiDef.Attr.Builder setDefaultValue(AttrValue value)
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.tensorflow.AttrValue default_value = 3;
-
setDefaultValue
public ApiDef.Attr.Builder setDefaultValue(AttrValue.Builder builderForValue)
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.tensorflow.AttrValue default_value = 3;
-
mergeDefaultValue
public ApiDef.Attr.Builder mergeDefaultValue(AttrValue value)
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.tensorflow.AttrValue default_value = 3;
-
clearDefaultValue
public ApiDef.Attr.Builder clearDefaultValue()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.tensorflow.AttrValue default_value = 3;
-
getDefaultValueBuilder
public AttrValue.Builder getDefaultValueBuilder()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.tensorflow.AttrValue default_value = 3;
-
getDefaultValueOrBuilder
public AttrValueOrBuilder getDefaultValueOrBuilder()
Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.
.tensorflow.AttrValue default_value = 3;- Specified by:
getDefaultValueOrBuilderin interfaceApiDef.AttrOrBuilder
-
getDescription
public String getDescription()
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;- Specified by:
getDescriptionin interfaceApiDef.AttrOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public org.nd4j.shade.protobuf.ByteString getDescriptionBytes()
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;- Specified by:
getDescriptionBytesin interfaceApiDef.AttrOrBuilder- Returns:
- The bytes for description.
-
setDescription
public ApiDef.Attr.Builder setDescription(String value)
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public ApiDef.Attr.Builder clearDescription()
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public ApiDef.Attr.Builder setDescriptionBytes(org.nd4j.shade.protobuf.ByteString value)
Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.
string description = 4;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ApiDef.Attr.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
mergeUnknownFields
public final ApiDef.Attr.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
-