Class ApiDef.Attr.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ApiDef.Attr.Builder>
com.google.protobuf.GeneratedMessageV3.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 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 type
tensorflow.ApiDef.Attr-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()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.clone()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 GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDefaultValue(AttrValue value) Specify a new default value to use for this attr.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(ApiDef.Attr other) final ApiDef.Attr.BuildermergeUnknownFields(UnknownFieldSet unknownFields) 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.setField(Descriptors.FieldDescriptor field, Object value) 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.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) final ApiDef.Attr.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<ApiDef.Attr.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.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
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
setRepeatedField
public ApiDef.Attr.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<ApiDef.Attr.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 classGeneratedMessageV3.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.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<ApiDef.Attr.Builder>
-