Package org.tensorflow.framework
Class MetaGraphDef.MetaInfoDef.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
org.tensorflow.framework.MetaGraphDef.MetaInfoDef.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,MetaGraphDef.MetaInfoDefOrBuilder
- Enclosing class:
- MetaGraphDef.MetaInfoDef
public static final class MetaGraphDef.MetaInfoDef.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder> implements MetaGraphDef.MetaInfoDefOrBuilder
Meta information regarding the graph to be exported. To be used by users of this protocol buffer to encode information regarding their meta graph.Protobuf type
tensorflow.MetaGraphDef.MetaInfoDef-
Method Summary
Modifier and Type Method Description MetaGraphDef.MetaInfoDef.BuilderaddAllTags(java.lang.Iterable<java.lang.String> values)User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)MetaGraphDef.MetaInfoDef.BuilderaddTags(java.lang.String value)User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef.BuilderaddTagsBytes(com.google.protobuf.ByteString value)User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDefbuild()MetaGraphDef.MetaInfoDefbuildPartial()MetaGraphDef.MetaInfoDef.Builderclear()MetaGraphDef.MetaInfoDef.BuilderclearAnyInfo()A serialized protobuf.MetaGraphDef.MetaInfoDef.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MetaGraphDef.MetaInfoDef.BuilderclearFunctionAliases()MetaGraphDef.MetaInfoDef.BuilderclearMetaGraphVersion()User specified Version string.MetaGraphDef.MetaInfoDef.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MetaGraphDef.MetaInfoDef.BuilderclearStrippedDefaultAttrs()A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.MetaGraphDef.MetaInfoDef.BuilderclearStrippedOpList()A copy of the OpDefs used by the producer of this graph_def.MetaGraphDef.MetaInfoDef.BuilderclearTags()User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef.BuilderclearTensorflowGitVersion()The __git_version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.BuilderclearTensorflowVersion()The __version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.Builderclone()booleancontainsFunctionAliases(java.lang.String key)FunctionDef name to aliases mapping.com.google.protobuf.AnygetAnyInfo()A serialized protobuf.com.google.protobuf.Any.BuildergetAnyInfoBuilder()A serialized protobuf.com.google.protobuf.AnyOrBuildergetAnyInfoOrBuilder()A serialized protobuf.MetaGraphDef.MetaInfoDefgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.util.Map<java.lang.String,java.lang.String>getFunctionAliases()Deprecated.intgetFunctionAliasesCount()FunctionDef name to aliases mapping.java.util.Map<java.lang.String,java.lang.String>getFunctionAliasesMap()FunctionDef name to aliases mapping.java.lang.StringgetFunctionAliasesOrDefault(java.lang.String key, java.lang.String defaultValue)FunctionDef name to aliases mapping.java.lang.StringgetFunctionAliasesOrThrow(java.lang.String key)FunctionDef name to aliases mapping.java.lang.StringgetMetaGraphVersion()User specified Version string.com.google.protobuf.ByteStringgetMetaGraphVersionBytes()User specified Version string.java.util.Map<java.lang.String,java.lang.String>getMutableFunctionAliases()Deprecated.booleangetStrippedDefaultAttrs()A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.OpListgetStrippedOpList()A copy of the OpDefs used by the producer of this graph_def.OpList.BuildergetStrippedOpListBuilder()A copy of the OpDefs used by the producer of this graph_def.OpListOrBuildergetStrippedOpListOrBuilder()A copy of the OpDefs used by the producer of this graph_def.java.lang.StringgetTags(int index)User supplied tag(s) on the meta_graph and included graph_def.com.google.protobuf.ByteStringgetTagsBytes(int index)User supplied tag(s) on the meta_graph and included graph_def.intgetTagsCount()User supplied tag(s) on the meta_graph and included graph_def.com.google.protobuf.ProtocolStringListgetTagsList()User supplied tag(s) on the meta_graph and included graph_def.java.lang.StringgetTensorflowGitVersion()The __git_version__ string of the tensorflow build used to write this graph.com.google.protobuf.ByteStringgetTensorflowGitVersionBytes()The __git_version__ string of the tensorflow build used to write this graph.java.lang.StringgetTensorflowVersion()The __version__ string of the tensorflow build used to write this graph.com.google.protobuf.ByteStringgetTensorflowVersionBytes()The __version__ string of the tensorflow build used to write this graph.booleanhasAnyInfo()A serialized protobuf.booleanhasStrippedOpList()A copy of the OpDefs used by the producer of this graph_def.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()MetaGraphDef.MetaInfoDef.BuildermergeAnyInfo(com.google.protobuf.Any value)A serialized protobuf.MetaGraphDef.MetaInfoDef.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MetaGraphDef.MetaInfoDef.BuildermergeFrom(com.google.protobuf.Message other)MetaGraphDef.MetaInfoDef.BuildermergeFrom(MetaGraphDef.MetaInfoDef other)MetaGraphDef.MetaInfoDef.BuildermergeStrippedOpList(OpList value)A copy of the OpDefs used by the producer of this graph_def.MetaGraphDef.MetaInfoDef.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MetaGraphDef.MetaInfoDef.BuilderputAllFunctionAliases(java.util.Map<java.lang.String,java.lang.String> values)FunctionDef name to aliases mapping.MetaGraphDef.MetaInfoDef.BuilderputFunctionAliases(java.lang.String key, java.lang.String value)FunctionDef name to aliases mapping.MetaGraphDef.MetaInfoDef.BuilderremoveFunctionAliases(java.lang.String key)FunctionDef name to aliases mapping.MetaGraphDef.MetaInfoDef.BuildersetAnyInfo(com.google.protobuf.Any value)A serialized protobuf.MetaGraphDef.MetaInfoDef.BuildersetAnyInfo(com.google.protobuf.Any.Builder builderForValue)A serialized protobuf.MetaGraphDef.MetaInfoDef.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)MetaGraphDef.MetaInfoDef.BuildersetMetaGraphVersion(java.lang.String value)User specified Version string.MetaGraphDef.MetaInfoDef.BuildersetMetaGraphVersionBytes(com.google.protobuf.ByteString value)User specified Version string.MetaGraphDef.MetaInfoDef.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)MetaGraphDef.MetaInfoDef.BuildersetStrippedDefaultAttrs(boolean value)A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.MetaGraphDef.MetaInfoDef.BuildersetStrippedOpList(OpList value)A copy of the OpDefs used by the producer of this graph_def.MetaGraphDef.MetaInfoDef.BuildersetStrippedOpList(OpList.Builder builderForValue)A copy of the OpDefs used by the producer of this graph_def.MetaGraphDef.MetaInfoDef.BuildersetTags(int index, java.lang.String value)User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef.BuildersetTensorflowGitVersion(java.lang.String value)The __git_version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.BuildersetTensorflowGitVersionBytes(com.google.protobuf.ByteString value)The __git_version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.BuildersetTensorflowVersion(java.lang.String value)The __version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.BuildersetTensorflowVersionBytes(com.google.protobuf.ByteString value)The __version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.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, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.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<MetaGraphDef.MetaInfoDef.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<MetaGraphDef.MetaInfoDef.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<MetaGraphDef.MetaInfoDef.Builder>
-
setField
public MetaGraphDef.MetaInfoDef.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<MetaGraphDef.MetaInfoDef.Builder>
-
clearField
public MetaGraphDef.MetaInfoDef.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
clearOneof
public MetaGraphDef.MetaInfoDef.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
setRepeatedField
public MetaGraphDef.MetaInfoDef.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<MetaGraphDef.MetaInfoDef.Builder>
-
addRepeatedField
public MetaGraphDef.MetaInfoDef.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<MetaGraphDef.MetaInfoDef.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
mergeFrom
public MetaGraphDef.MetaInfoDef.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<MetaGraphDef.MetaInfoDef.Builder>- Throws:
java.io.IOException
-
getMetaGraphVersion
public java.lang.String getMetaGraphVersion()User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;- Specified by:
getMetaGraphVersionin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The metaGraphVersion.
-
getMetaGraphVersionBytes
public com.google.protobuf.ByteString getMetaGraphVersionBytes()User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;- Specified by:
getMetaGraphVersionBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The bytes for metaGraphVersion.
-
setMetaGraphVersion
User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;- Parameters:
value- The metaGraphVersion to set.- Returns:
- This builder for chaining.
-
clearMetaGraphVersion
User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;- Returns:
- This builder for chaining.
-
setMetaGraphVersionBytes
public MetaGraphDef.MetaInfoDef.Builder setMetaGraphVersionBytes(com.google.protobuf.ByteString value)User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;- Parameters:
value- The bytes for metaGraphVersion to set.- Returns:
- This builder for chaining.
-
hasStrippedOpList
public boolean hasStrippedOpList()A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;- Specified by:
hasStrippedOpListin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- Whether the strippedOpList field is set.
-
getStrippedOpList
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;- Specified by:
getStrippedOpListin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The strippedOpList.
-
setStrippedOpList
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2; -
setStrippedOpList
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2; -
mergeStrippedOpList
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2; -
clearStrippedOpList
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2; -
getStrippedOpListBuilder
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2; -
getStrippedOpListOrBuilder
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;- Specified by:
getStrippedOpListOrBuilderin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
hasAnyInfo
public boolean hasAnyInfo()A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;- Specified by:
hasAnyInfoin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- Whether the anyInfo field is set.
-
getAnyInfo
public com.google.protobuf.Any getAnyInfo()A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;- Specified by:
getAnyInfoin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The anyInfo.
-
setAnyInfo
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3; -
setAnyInfo
public MetaGraphDef.MetaInfoDef.Builder setAnyInfo(com.google.protobuf.Any.Builder builderForValue)A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3; -
mergeAnyInfo
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3; -
clearAnyInfo
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3; -
getAnyInfoBuilder
public com.google.protobuf.Any.Builder getAnyInfoBuilder()A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3; -
getAnyInfoOrBuilder
public com.google.protobuf.AnyOrBuilder getAnyInfoOrBuilder()A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;- Specified by:
getAnyInfoOrBuilderin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Specified by:
getTagsListin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Specified by:
getTagsCountin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The count of tags.
-
getTags
public java.lang.String getTags(int index)User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Specified by:
getTagsin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index)User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Specified by:
getTagsBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Returns:
- This builder for chaining.
-
addTagsBytes
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
getTensorflowVersion
public java.lang.String getTensorflowVersion()The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;- Specified by:
getTensorflowVersionin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The tensorflowVersion.
-
getTensorflowVersionBytes
public com.google.protobuf.ByteString getTensorflowVersionBytes()The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;- Specified by:
getTensorflowVersionBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The bytes for tensorflowVersion.
-
setTensorflowVersion
The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;- Parameters:
value- The tensorflowVersion to set.- Returns:
- This builder for chaining.
-
clearTensorflowVersion
The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;- Returns:
- This builder for chaining.
-
setTensorflowVersionBytes
public MetaGraphDef.MetaInfoDef.Builder setTensorflowVersionBytes(com.google.protobuf.ByteString value)The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;- Parameters:
value- The bytes for tensorflowVersion to set.- Returns:
- This builder for chaining.
-
getTensorflowGitVersion
public java.lang.String getTensorflowGitVersion()The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;- Specified by:
getTensorflowGitVersionin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The tensorflowGitVersion.
-
getTensorflowGitVersionBytes
public com.google.protobuf.ByteString getTensorflowGitVersionBytes()The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;- Specified by:
getTensorflowGitVersionBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The bytes for tensorflowGitVersion.
-
setTensorflowGitVersion
The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;- Parameters:
value- The tensorflowGitVersion to set.- Returns:
- This builder for chaining.
-
clearTensorflowGitVersion
The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;- Returns:
- This builder for chaining.
-
setTensorflowGitVersionBytes
public MetaGraphDef.MetaInfoDef.Builder setTensorflowGitVersionBytes(com.google.protobuf.ByteString value)The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;- Parameters:
value- The bytes for tensorflowGitVersion to set.- Returns:
- This builder for chaining.
-
getStrippedDefaultAttrs
public boolean getStrippedDefaultAttrs()A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.
bool stripped_default_attrs = 7;- Specified by:
getStrippedDefaultAttrsin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The strippedDefaultAttrs.
-
setStrippedDefaultAttrs
A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.
bool stripped_default_attrs = 7;- Parameters:
value- The strippedDefaultAttrs to set.- Returns:
- This builder for chaining.
-
clearStrippedDefaultAttrs
A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.
bool stripped_default_attrs = 7;- Returns:
- This builder for chaining.
-
getFunctionAliasesCount
public int getFunctionAliasesCount()Description copied from interface:MetaGraphDef.MetaInfoDefOrBuilderFunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
getFunctionAliasesCountin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
containsFunctionAliases
public boolean containsFunctionAliases(java.lang.String key)FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
containsFunctionAliasesin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getFunctionAliases
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getFunctionAliases()Deprecated.UsegetFunctionAliasesMap()instead.- Specified by:
getFunctionAliasesin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getFunctionAliasesMap
public java.util.Map<java.lang.String,java.lang.String> getFunctionAliasesMap()FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
getFunctionAliasesMapin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getFunctionAliasesOrDefault
public java.lang.String getFunctionAliasesOrDefault(java.lang.String key, java.lang.String defaultValue)FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
getFunctionAliasesOrDefaultin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getFunctionAliasesOrThrow
public java.lang.String getFunctionAliasesOrThrow(java.lang.String key)FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
getFunctionAliasesOrThrowin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
clearFunctionAliases
-
removeFunctionAliases
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8; -
getMutableFunctionAliases
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableFunctionAliases()Deprecated.Use alternate mutation accessors instead. -
putFunctionAliases
public MetaGraphDef.MetaInfoDef.Builder putFunctionAliases(java.lang.String key, java.lang.String value)FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8; -
putAllFunctionAliases
public MetaGraphDef.MetaInfoDef.Builder putAllFunctionAliases(java.util.Map<java.lang.String,java.lang.String> values)FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8; -
setUnknownFields
public final MetaGraphDef.MetaInfoDef.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
mergeUnknownFields
public final MetaGraphDef.MetaInfoDef.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-