Class ApiDef.Attr.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ApiDef.Attr.Builder>
com.google.protobuf.GeneratedMessage.Builder<ApiDef.Attr.Builder>
org.tensorflow.proto.ApiDef.Attr.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, ApiDef.AttrOrBuilder
- Enclosing class:
ApiDef.Attr
public static final class ApiDef.Attr.Builder
extends GeneratedMessage.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 type
tensorflow.ApiDef.Attr-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specify a new default value to use for this attr.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 name = 1;Change the name used to access this attr in the API from what is used in the GraphDef.Specify a new default value to use for this attr.Specify a new default value to use for this attr.Specify a new default value to use for this attr.Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.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 final Descriptors.DescriptorgetName()string name = 1;string name = 1;Change the name used to access this attr in the API from what is used in the GraphDef.Change the name used to access this attr in the API from what is used in the GraphDef.booleanSpecify a new default value to use for this attr.protected GeneratedMessage.FieldAccessorTablefinal booleanmergeDefaultValue(AttrValue value) Specify a new default value to use for this attr.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(ApiDef.Attr other) setDefaultValue(AttrValue value) Specify a new default value to use for this attr.setDefaultValue(AttrValue.Builder builderForValue) Specify a new default value to use for this attr.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.setDescriptionBytes(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 name = 1;setNameBytes(ByteString value) string name = 1;setRenameTo(String value) Change the name used to access this attr in the API from what is used in the GraphDef.setRenameToBytes(ByteString value) Change the name used to access this attr in the API from what is used in the GraphDef.Methods inherited from class GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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, mergeDelimitedFrom
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessage.Builder<ApiDef.Attr.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessage.Builder<ApiDef.Attr.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessage.Builder<ApiDef.Attr.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
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ApiDef.Attr.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessage.Builder<ApiDef.Attr.Builder>
-
mergeFrom
public ApiDef.Attr.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ApiDef.Attr.Builder>- Throws:
IOException
-
getName
string name = 1;- Specified by:
getNamein interfaceApiDef.AttrOrBuilder- Returns:
- The name.
-
getNameBytes
string name = 1;- Specified by:
getNameBytesin interfaceApiDef.AttrOrBuilder- Returns:
- The bytes for name.
-
setName
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
-
setNameBytes
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
-