Class MetaGraphDef.MetaInfoDef

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.MetaGraphDef.MetaInfoDef
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, MetaGraphDef.MetaInfoDefOrBuilder
Enclosing class:
MetaGraphDef

public static final class MetaGraphDef.MetaInfoDef extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Field Details

    • META_GRAPH_VERSION_FIELD_NUMBER

      public static final int META_GRAPH_VERSION_FIELD_NUMBER
      See Also:
    • STRIPPED_OP_LIST_FIELD_NUMBER

      public static final int STRIPPED_OP_LIST_FIELD_NUMBER
      See Also:
    • ANY_INFO_FIELD_NUMBER

      public static final int ANY_INFO_FIELD_NUMBER
      See Also:
    • TAGS_FIELD_NUMBER

      public static final int TAGS_FIELD_NUMBER
      See Also:
    • TENSORFLOW_VERSION_FIELD_NUMBER

      public static final int TENSORFLOW_VERSION_FIELD_NUMBER
      See Also:
    • TENSORFLOW_GIT_VERSION_FIELD_NUMBER

      public static final int TENSORFLOW_GIT_VERSION_FIELD_NUMBER
      See Also:
    • STRIPPED_DEFAULT_ATTRS_FIELD_NUMBER

      public static final int STRIPPED_DEFAULT_ATTRS_FIELD_NUMBER
      See Also:
    • FUNCTION_ALIASES_FIELD_NUMBER

      public static final int FUNCTION_ALIASES_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getMetaGraphVersion

      public 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:
      getMetaGraphVersion in interface MetaGraphDef.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:
      getMetaGraphVersionBytes in interface MetaGraphDef.MetaInfoDefOrBuilder
      Returns:
      The bytes for metaGraphVersion.
    • 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:
      hasStrippedOpList in interface MetaGraphDef.MetaInfoDefOrBuilder
      Returns:
      Whether the strippedOpList field is set.
    • getStrippedOpList

      public OpList 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:
      getStrippedOpList in interface MetaGraphDef.MetaInfoDefOrBuilder
      Returns:
      The strippedOpList.
    • getStrippedOpListOrBuilder

      public OpListOrBuilder 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:
      getStrippedOpListOrBuilder in interface MetaGraphDef.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:
      hasAnyInfo in interface MetaGraphDef.MetaInfoDefOrBuilder
      Returns:
      Whether the anyInfo field is set.
    • getAnyInfo

      public 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:
      getAnyInfo in interface MetaGraphDef.MetaInfoDefOrBuilder
      Returns:
      The anyInfo.
    • getAnyInfoOrBuilder

      public 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:
      getAnyInfoOrBuilder in interface MetaGraphDef.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:
      getTagsList in interface MetaGraphDef.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:
      getTagsCount in interface MetaGraphDef.MetaInfoDefOrBuilder
      Returns:
      The count of tags.
    • getTags

      public 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:
      getTags in interface MetaGraphDef.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:
      getTagsBytes in interface MetaGraphDef.MetaInfoDefOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • getTensorflowVersion

      public 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:
      getTensorflowVersion in interface MetaGraphDef.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:
      getTensorflowVersionBytes in interface MetaGraphDef.MetaInfoDefOrBuilder
      Returns:
      The bytes for tensorflowVersion.
    • getTensorflowGitVersion

      public 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:
      getTensorflowGitVersion in interface MetaGraphDef.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:
      getTensorflowGitVersionBytes in interface MetaGraphDef.MetaInfoDefOrBuilder
      Returns:
      The bytes for tensorflowGitVersion.
    • 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:
      getStrippedDefaultAttrs in interface MetaGraphDef.MetaInfoDefOrBuilder
      Returns:
      The strippedDefaultAttrs.
    • getFunctionAliasesCount

      public int getFunctionAliasesCount()
      Description copied from interface: MetaGraphDef.MetaInfoDefOrBuilder
       FunctionDef name to aliases mapping.
       
      map<string, string> function_aliases = 8;
      Specified by:
      getFunctionAliasesCount in interface MetaGraphDef.MetaInfoDefOrBuilder
    • containsFunctionAliases

      public boolean containsFunctionAliases(String key)
       FunctionDef name to aliases mapping.
       
      map<string, string> function_aliases = 8;
      Specified by:
      containsFunctionAliases in interface MetaGraphDef.MetaInfoDefOrBuilder
    • getFunctionAliases

      @Deprecated public Map<String,String> getFunctionAliases()
      Deprecated.
      Specified by:
      getFunctionAliases in interface MetaGraphDef.MetaInfoDefOrBuilder
    • getFunctionAliasesMap

      public Map<String,String> getFunctionAliasesMap()
       FunctionDef name to aliases mapping.
       
      map<string, string> function_aliases = 8;
      Specified by:
      getFunctionAliasesMap in interface MetaGraphDef.MetaInfoDefOrBuilder
    • getFunctionAliasesOrDefault

      public String getFunctionAliasesOrDefault(String key, String defaultValue)
       FunctionDef name to aliases mapping.
       
      map<string, string> function_aliases = 8;
      Specified by:
      getFunctionAliasesOrDefault in interface MetaGraphDef.MetaInfoDefOrBuilder
    • getFunctionAliasesOrThrow

      public String getFunctionAliasesOrThrow(String key)
       FunctionDef name to aliases mapping.
       
      map<string, string> function_aliases = 8;
      Specified by:
      getFunctionAliasesOrThrow in interface MetaGraphDef.MetaInfoDefOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MetaGraphDef.MetaInfoDef parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MetaGraphDef.MetaInfoDef parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetaGraphDef.MetaInfoDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MetaGraphDef.MetaInfoDef.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MetaGraphDef.MetaInfoDef.Builder newBuilder()
    • newBuilder

      public static MetaGraphDef.MetaInfoDef.Builder newBuilder(MetaGraphDef.MetaInfoDef prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MetaGraphDef.MetaInfoDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static MetaGraphDef.MetaInfoDef getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MetaGraphDef.MetaInfoDef> parser()
    • getParserForType

      public com.google.protobuf.Parser<MetaGraphDef.MetaInfoDef> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public MetaGraphDef.MetaInfoDef getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder