All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.framework.MetaGraphDef Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/meta_graph.proto

package org.tensorflow.framework;

/**
 * 
 * NOTE: This protocol buffer is evolving, and will go through revisions in the
 * coming months.
 * Protocol buffer containing the following which are necessary to restart
 * training, run inference. It can be used to serialize/de-serialize memory
 * objects necessary for running computation in a graph when crossing the
 * process boundary. It can be used for long term storage of graphs,
 * cross-language execution of graphs, etc.
 *   MetaInfoDef
 *   GraphDef
 *   SaverDef
 *   CollectionDef
 *   TensorInfo
 *   SignatureDef
 * 
* * Protobuf type {@code tensorflow.MetaGraphDef} */ public final class MetaGraphDef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.MetaGraphDef) MetaGraphDefOrBuilder { // Use MetaGraphDef.newBuilder() to construct. private MetaGraphDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetaGraphDef() { assetFileDef_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MetaGraphDef( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder subBuilder = null; if (metaInfoDef_ != null) { subBuilder = metaInfoDef_.toBuilder(); } metaInfoDef_ = input.readMessage(org.tensorflow.framework.MetaGraphDef.MetaInfoDef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metaInfoDef_); metaInfoDef_ = subBuilder.buildPartial(); } break; } case 18: { org.tensorflow.framework.GraphDef.Builder subBuilder = null; if (graphDef_ != null) { subBuilder = graphDef_.toBuilder(); } graphDef_ = input.readMessage(org.tensorflow.framework.GraphDef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(graphDef_); graphDef_ = subBuilder.buildPartial(); } break; } case 26: { org.tensorflow.util.SaverDef.Builder subBuilder = null; if (saverDef_ != null) { subBuilder = saverDef_.toBuilder(); } saverDef_ = input.readMessage(org.tensorflow.util.SaverDef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(saverDef_); saverDef_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { collectionDef_ = com.google.protobuf.MapField.newMapField( CollectionDefDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000008; } com.google.protobuf.MapEntry collectionDef__ = input.readMessage( CollectionDefDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); collectionDef_.getMutableMap().put( collectionDef__.getKey(), collectionDef__.getValue()); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { signatureDef_ = com.google.protobuf.MapField.newMapField( SignatureDefDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000010; } com.google.protobuf.MapEntry signatureDef__ = input.readMessage( SignatureDefDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); signatureDef_.getMutableMap().put( signatureDef__.getKey(), signatureDef__.getValue()); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { assetFileDef_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } assetFileDef_.add( input.readMessage(org.tensorflow.framework.AssetFileDef.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { assetFileDef_ = java.util.Collections.unmodifiableList(assetFileDef_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetCollectionDef(); case 5: return internalGetSignatureDef(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.MetaGraphDef.class, org.tensorflow.framework.MetaGraphDef.Builder.class); } public interface MetaInfoDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MetaGraphDef.MetaInfoDef) com.google.protobuf.MessageOrBuilder { /** *
     * 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; */ 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; */ com.google.protobuf.ByteString getMetaGraphVersionBytes(); /** *
     * 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; */ 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; */ org.tensorflow.framework.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; */ org.tensorflow.framework.OpListOrBuilder getStrippedOpListOrBuilder(); /** *
     * 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; */ 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; */ 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; */ com.google.protobuf.AnyOrBuilder getAnyInfoOrBuilder(); /** *
     * 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; */ java.util.List 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; */ 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; */ 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; */ com.google.protobuf.ByteString getTagsBytes(int index); /** *
     * 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; */ 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; */ com.google.protobuf.ByteString getTensorflowVersionBytes(); /** *
     * 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; */ 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; */ com.google.protobuf.ByteString getTensorflowGitVersionBytes(); } /** *
   * 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 {@code tensorflow.MetaGraphDef.MetaInfoDef} */ public static final class MetaInfoDef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.MetaGraphDef.MetaInfoDef) MetaInfoDefOrBuilder { // Use MetaInfoDef.newBuilder() to construct. private MetaInfoDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetaInfoDef() { metaGraphVersion_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; tensorflowVersion_ = ""; tensorflowGitVersion_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MetaInfoDef( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); metaGraphVersion_ = s; break; } case 18: { org.tensorflow.framework.OpList.Builder subBuilder = null; if (strippedOpList_ != null) { subBuilder = strippedOpList_.toBuilder(); } strippedOpList_ = input.readMessage(org.tensorflow.framework.OpList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(strippedOpList_); strippedOpList_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Any.Builder subBuilder = null; if (anyInfo_ != null) { subBuilder = anyInfo_.toBuilder(); } anyInfo_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(anyInfo_); anyInfo_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { tags_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } tags_.add(s); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); tensorflowVersion_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); tensorflowGitVersion_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { tags_ = tags_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.MetaGraphDef.MetaInfoDef.class, org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder.class); } private int bitField0_; public static final int META_GRAPH_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object metaGraphVersion_; /** *
     * 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; */ public java.lang.String getMetaGraphVersion() { java.lang.Object ref = metaGraphVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metaGraphVersion_ = s; return s; } } /** *
     * 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; */ public com.google.protobuf.ByteString getMetaGraphVersionBytes() { java.lang.Object ref = metaGraphVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); metaGraphVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STRIPPED_OP_LIST_FIELD_NUMBER = 2; private org.tensorflow.framework.OpList strippedOpList_; /** *
     * 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; */ public boolean hasStrippedOpList() { return strippedOpList_ != null; } /** *
     * 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; */ public org.tensorflow.framework.OpList getStrippedOpList() { return strippedOpList_ == null ? org.tensorflow.framework.OpList.getDefaultInstance() : strippedOpList_; } /** *
     * 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; */ public org.tensorflow.framework.OpListOrBuilder getStrippedOpListOrBuilder() { return getStrippedOpList(); } public static final int ANY_INFO_FIELD_NUMBER = 3; private com.google.protobuf.Any anyInfo_; /** *
     * 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; */ public boolean hasAnyInfo() { return anyInfo_ != null; } /** *
     * 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; */ public com.google.protobuf.Any getAnyInfo() { return anyInfo_ == null ? com.google.protobuf.Any.getDefaultInstance() : anyInfo_; } /** *
     * 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; */ public com.google.protobuf.AnyOrBuilder getAnyInfoOrBuilder() { return getAnyInfo(); } public static final int TAGS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList tags_; /** *
     * 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; */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** *
     * 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; */ public int getTagsCount() { return tags_.size(); } /** *
     * 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; */ public java.lang.String getTags(int index) { return tags_.get(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; */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int TENSORFLOW_VERSION_FIELD_NUMBER = 5; private volatile java.lang.Object tensorflowVersion_; /** *
     * 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; */ public java.lang.String getTensorflowVersion() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tensorflowVersion_ = s; return s; } } /** *
     * 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; */ public com.google.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tensorflowVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TENSORFLOW_GIT_VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object tensorflowGitVersion_; /** *
     * 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; */ public java.lang.String getTensorflowGitVersion() { java.lang.Object ref = tensorflowGitVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tensorflowGitVersion_ = s; return s; } } /** *
     * 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; */ public com.google.protobuf.ByteString getTensorflowGitVersionBytes() { java.lang.Object ref = tensorflowGitVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tensorflowGitVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMetaGraphVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metaGraphVersion_); } if (strippedOpList_ != null) { output.writeMessage(2, getStrippedOpList()); } if (anyInfo_ != null) { output.writeMessage(3, getAnyInfo()); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); } if (!getTensorflowVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tensorflowVersion_); } if (!getTensorflowGitVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tensorflowGitVersion_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMetaGraphVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metaGraphVersion_); } if (strippedOpList_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStrippedOpList()); } if (anyInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAnyInfo()); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } if (!getTensorflowVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tensorflowVersion_); } if (!getTensorflowGitVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tensorflowGitVersion_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.MetaGraphDef.MetaInfoDef)) { return super.equals(obj); } org.tensorflow.framework.MetaGraphDef.MetaInfoDef other = (org.tensorflow.framework.MetaGraphDef.MetaInfoDef) obj; boolean result = true; result = result && getMetaGraphVersion() .equals(other.getMetaGraphVersion()); result = result && (hasStrippedOpList() == other.hasStrippedOpList()); if (hasStrippedOpList()) { result = result && getStrippedOpList() .equals(other.getStrippedOpList()); } result = result && (hasAnyInfo() == other.hasAnyInfo()); if (hasAnyInfo()) { result = result && getAnyInfo() .equals(other.getAnyInfo()); } result = result && getTagsList() .equals(other.getTagsList()); result = result && getTensorflowVersion() .equals(other.getTensorflowVersion()); result = result && getTensorflowGitVersion() .equals(other.getTensorflowGitVersion()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + META_GRAPH_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMetaGraphVersion().hashCode(); if (hasStrippedOpList()) { hash = (37 * hash) + STRIPPED_OP_LIST_FIELD_NUMBER; hash = (53 * hash) + getStrippedOpList().hashCode(); } if (hasAnyInfo()) { hash = (37 * hash) + ANY_INFO_FIELD_NUMBER; hash = (53 * hash) + getAnyInfo().hashCode(); } if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } hash = (37 * hash) + TENSORFLOW_VERSION_FIELD_NUMBER; hash = (53 * hash) + getTensorflowVersion().hashCode(); hash = (37 * hash) + TENSORFLOW_GIT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getTensorflowGitVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.MetaGraphDef.MetaInfoDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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 {@code tensorflow.MetaGraphDef.MetaInfoDef} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.MetaGraphDef.MetaInfoDef) org.tensorflow.framework.MetaGraphDef.MetaInfoDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.MetaGraphDef.MetaInfoDef.class, org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder.class); } // Construct using org.tensorflow.framework.MetaGraphDef.MetaInfoDef.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); metaGraphVersion_ = ""; if (strippedOpListBuilder_ == null) { strippedOpList_ = null; } else { strippedOpList_ = null; strippedOpListBuilder_ = null; } if (anyInfoBuilder_ == null) { anyInfo_ = null; } else { anyInfo_ = null; anyInfoBuilder_ = null; } tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); tensorflowVersion_ = ""; tensorflowGitVersion_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; } public org.tensorflow.framework.MetaGraphDef.MetaInfoDef getDefaultInstanceForType() { return org.tensorflow.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance(); } public org.tensorflow.framework.MetaGraphDef.MetaInfoDef build() { org.tensorflow.framework.MetaGraphDef.MetaInfoDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.MetaGraphDef.MetaInfoDef buildPartial() { org.tensorflow.framework.MetaGraphDef.MetaInfoDef result = new org.tensorflow.framework.MetaGraphDef.MetaInfoDef(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.metaGraphVersion_ = metaGraphVersion_; if (strippedOpListBuilder_ == null) { result.strippedOpList_ = strippedOpList_; } else { result.strippedOpList_ = strippedOpListBuilder_.build(); } if (anyInfoBuilder_ == null) { result.anyInfo_ = anyInfo_; } else { result.anyInfo_ = anyInfoBuilder_.build(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.tags_ = tags_; result.tensorflowVersion_ = tensorflowVersion_; result.tensorflowGitVersion_ = tensorflowGitVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.framework.MetaGraphDef.MetaInfoDef) { return mergeFrom((org.tensorflow.framework.MetaGraphDef.MetaInfoDef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.MetaGraphDef.MetaInfoDef other) { if (other == org.tensorflow.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance()) return this; if (!other.getMetaGraphVersion().isEmpty()) { metaGraphVersion_ = other.metaGraphVersion_; onChanged(); } if (other.hasStrippedOpList()) { mergeStrippedOpList(other.getStrippedOpList()); } if (other.hasAnyInfo()) { mergeAnyInfo(other.getAnyInfo()); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (!other.getTensorflowVersion().isEmpty()) { tensorflowVersion_ = other.tensorflowVersion_; onChanged(); } if (!other.getTensorflowGitVersion().isEmpty()) { tensorflowGitVersion_ = other.tensorflowGitVersion_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.MetaGraphDef.MetaInfoDef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.MetaGraphDef.MetaInfoDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object metaGraphVersion_ = ""; /** *
       * 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; */ public java.lang.String getMetaGraphVersion() { java.lang.Object ref = metaGraphVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metaGraphVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 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; */ public com.google.protobuf.ByteString getMetaGraphVersionBytes() { java.lang.Object ref = metaGraphVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); metaGraphVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 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; */ public Builder setMetaGraphVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } metaGraphVersion_ = value; onChanged(); return this; } /** *
       * 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; */ public Builder clearMetaGraphVersion() { metaGraphVersion_ = getDefaultInstance().getMetaGraphVersion(); onChanged(); return this; } /** *
       * 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; */ public Builder setMetaGraphVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); metaGraphVersion_ = value; onChanged(); return this; } private org.tensorflow.framework.OpList strippedOpList_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.OpList, org.tensorflow.framework.OpList.Builder, org.tensorflow.framework.OpListOrBuilder> strippedOpListBuilder_; /** *
       * 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; */ public boolean hasStrippedOpList() { return strippedOpListBuilder_ != null || strippedOpList_ != null; } /** *
       * 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; */ public org.tensorflow.framework.OpList getStrippedOpList() { if (strippedOpListBuilder_ == null) { return strippedOpList_ == null ? org.tensorflow.framework.OpList.getDefaultInstance() : strippedOpList_; } else { return strippedOpListBuilder_.getMessage(); } } /** *
       * 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; */ public Builder setStrippedOpList(org.tensorflow.framework.OpList value) { if (strippedOpListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } strippedOpList_ = value; onChanged(); } else { strippedOpListBuilder_.setMessage(value); } return this; } /** *
       * 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; */ public Builder setStrippedOpList( org.tensorflow.framework.OpList.Builder builderForValue) { if (strippedOpListBuilder_ == null) { strippedOpList_ = builderForValue.build(); onChanged(); } else { strippedOpListBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 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; */ public Builder mergeStrippedOpList(org.tensorflow.framework.OpList value) { if (strippedOpListBuilder_ == null) { if (strippedOpList_ != null) { strippedOpList_ = org.tensorflow.framework.OpList.newBuilder(strippedOpList_).mergeFrom(value).buildPartial(); } else { strippedOpList_ = value; } onChanged(); } else { strippedOpListBuilder_.mergeFrom(value); } return this; } /** *
       * 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; */ public Builder clearStrippedOpList() { if (strippedOpListBuilder_ == null) { strippedOpList_ = null; onChanged(); } else { strippedOpList_ = null; strippedOpListBuilder_ = null; } return this; } /** *
       * 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; */ public org.tensorflow.framework.OpList.Builder getStrippedOpListBuilder() { onChanged(); return getStrippedOpListFieldBuilder().getBuilder(); } /** *
       * 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; */ public org.tensorflow.framework.OpListOrBuilder getStrippedOpListOrBuilder() { if (strippedOpListBuilder_ != null) { return strippedOpListBuilder_.getMessageOrBuilder(); } else { return strippedOpList_ == null ? org.tensorflow.framework.OpList.getDefaultInstance() : strippedOpList_; } } /** *
       * 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; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.OpList, org.tensorflow.framework.OpList.Builder, org.tensorflow.framework.OpListOrBuilder> getStrippedOpListFieldBuilder() { if (strippedOpListBuilder_ == null) { strippedOpListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.OpList, org.tensorflow.framework.OpList.Builder, org.tensorflow.framework.OpListOrBuilder>( getStrippedOpList(), getParentForChildren(), isClean()); strippedOpList_ = null; } return strippedOpListBuilder_; } private com.google.protobuf.Any anyInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> anyInfoBuilder_; /** *
       * 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; */ public boolean hasAnyInfo() { return anyInfoBuilder_ != null || anyInfo_ != null; } /** *
       * 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; */ public com.google.protobuf.Any getAnyInfo() { if (anyInfoBuilder_ == null) { return anyInfo_ == null ? com.google.protobuf.Any.getDefaultInstance() : anyInfo_; } else { return anyInfoBuilder_.getMessage(); } } /** *
       * 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; */ public Builder setAnyInfo(com.google.protobuf.Any value) { if (anyInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } anyInfo_ = value; onChanged(); } else { anyInfoBuilder_.setMessage(value); } return this; } /** *
       * 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; */ public Builder setAnyInfo( com.google.protobuf.Any.Builder builderForValue) { if (anyInfoBuilder_ == null) { anyInfo_ = builderForValue.build(); onChanged(); } else { anyInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 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; */ public Builder mergeAnyInfo(com.google.protobuf.Any value) { if (anyInfoBuilder_ == null) { if (anyInfo_ != null) { anyInfo_ = com.google.protobuf.Any.newBuilder(anyInfo_).mergeFrom(value).buildPartial(); } else { anyInfo_ = value; } onChanged(); } else { anyInfoBuilder_.mergeFrom(value); } return this; } /** *
       * 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; */ public Builder clearAnyInfo() { if (anyInfoBuilder_ == null) { anyInfo_ = null; onChanged(); } else { anyInfo_ = null; anyInfoBuilder_ = null; } return this; } /** *
       * 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; */ public com.google.protobuf.Any.Builder getAnyInfoBuilder() { onChanged(); return getAnyInfoFieldBuilder().getBuilder(); } /** *
       * 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; */ public com.google.protobuf.AnyOrBuilder getAnyInfoOrBuilder() { if (anyInfoBuilder_ != null) { return anyInfoBuilder_.getMessageOrBuilder(); } else { return anyInfo_ == null ? com.google.protobuf.Any.getDefaultInstance() : anyInfo_; } } /** *
       * 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getAnyInfoFieldBuilder() { if (anyInfoBuilder_ == null) { anyInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getAnyInfo(), getParentForChildren(), isClean()); anyInfo_ = null; } return anyInfoBuilder_; } private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000008; } } /** *
       * 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; */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** *
       * 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; */ public int getTagsCount() { return tags_.size(); } /** *
       * 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; */ public java.lang.String getTags(int index) { return tags_.get(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; */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(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; */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** *
       * 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; */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** *
       * 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; */ public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); return this; } /** *
       * 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; */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * 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; */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } private java.lang.Object tensorflowVersion_ = ""; /** *
       * 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; */ public java.lang.String getTensorflowVersion() { java.lang.Object ref = tensorflowVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tensorflowVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 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; */ public com.google.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tensorflowVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 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; */ public Builder setTensorflowVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tensorflowVersion_ = value; onChanged(); return this; } /** *
       * 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; */ public Builder clearTensorflowVersion() { tensorflowVersion_ = getDefaultInstance().getTensorflowVersion(); onChanged(); return this; } /** *
       * 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; */ public Builder setTensorflowVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tensorflowVersion_ = value; onChanged(); return this; } private java.lang.Object tensorflowGitVersion_ = ""; /** *
       * 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; */ public java.lang.String getTensorflowGitVersion() { java.lang.Object ref = tensorflowGitVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tensorflowGitVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 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; */ public com.google.protobuf.ByteString getTensorflowGitVersionBytes() { java.lang.Object ref = tensorflowGitVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tensorflowGitVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 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; */ public Builder setTensorflowGitVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tensorflowGitVersion_ = value; onChanged(); return this; } /** *
       * 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; */ public Builder clearTensorflowGitVersion() { tensorflowGitVersion_ = getDefaultInstance().getTensorflowGitVersion(); onChanged(); return this; } /** *
       * 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; */ public Builder setTensorflowGitVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tensorflowGitVersion_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:tensorflow.MetaGraphDef.MetaInfoDef) } // @@protoc_insertion_point(class_scope:tensorflow.MetaGraphDef.MetaInfoDef) private static final org.tensorflow.framework.MetaGraphDef.MetaInfoDef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.MetaGraphDef.MetaInfoDef(); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MetaInfoDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MetaInfoDef(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.MetaGraphDef.MetaInfoDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int META_INFO_DEF_FIELD_NUMBER = 1; private org.tensorflow.framework.MetaGraphDef.MetaInfoDef metaInfoDef_; /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public boolean hasMetaInfoDef() { return metaInfoDef_ != null; } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public org.tensorflow.framework.MetaGraphDef.MetaInfoDef getMetaInfoDef() { return metaInfoDef_ == null ? org.tensorflow.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance() : metaInfoDef_; } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public org.tensorflow.framework.MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder() { return getMetaInfoDef(); } public static final int GRAPH_DEF_FIELD_NUMBER = 2; private org.tensorflow.framework.GraphDef graphDef_; /** *
   * GraphDef.
   * 
* * .tensorflow.GraphDef graph_def = 2; */ public boolean hasGraphDef() { return graphDef_ != null; } /** *
   * GraphDef.
   * 
* * .tensorflow.GraphDef graph_def = 2; */ public org.tensorflow.framework.GraphDef getGraphDef() { return graphDef_ == null ? org.tensorflow.framework.GraphDef.getDefaultInstance() : graphDef_; } /** *
   * GraphDef.
   * 
* * .tensorflow.GraphDef graph_def = 2; */ public org.tensorflow.framework.GraphDefOrBuilder getGraphDefOrBuilder() { return getGraphDef(); } public static final int SAVER_DEF_FIELD_NUMBER = 3; private org.tensorflow.util.SaverDef saverDef_; /** *
   * SaverDef.
   * 
* * .tensorflow.SaverDef saver_def = 3; */ public boolean hasSaverDef() { return saverDef_ != null; } /** *
   * SaverDef.
   * 
* * .tensorflow.SaverDef saver_def = 3; */ public org.tensorflow.util.SaverDef getSaverDef() { return saverDef_ == null ? org.tensorflow.util.SaverDef.getDefaultInstance() : saverDef_; } /** *
   * SaverDef.
   * 
* * .tensorflow.SaverDef saver_def = 3; */ public org.tensorflow.util.SaverDefOrBuilder getSaverDefOrBuilder() { return getSaverDef(); } public static final int COLLECTION_DEF_FIELD_NUMBER = 4; private static final class CollectionDefDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.tensorflow.framework.CollectionDef> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_CollectionDefEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.tensorflow.framework.CollectionDef.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.tensorflow.framework.CollectionDef> collectionDef_; private com.google.protobuf.MapField internalGetCollectionDef() { if (collectionDef_ == null) { return com.google.protobuf.MapField.emptyMapField( CollectionDefDefaultEntryHolder.defaultEntry); } return collectionDef_; } public int getCollectionDefCount() { return internalGetCollectionDef().getMap().size(); } /** *
   * collection_def: Map from collection name to collections.
   * See CollectionDef section for details.
   * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public boolean containsCollectionDef( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCollectionDef().getMap().containsKey(key); } /** * Use {@link #getCollectionDefMap()} instead. */ @java.lang.Deprecated public java.util.Map getCollectionDef() { return getCollectionDefMap(); } /** *
   * collection_def: Map from collection name to collections.
   * See CollectionDef section for details.
   * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public java.util.Map getCollectionDefMap() { return internalGetCollectionDef().getMap(); } /** *
   * collection_def: Map from collection name to collections.
   * See CollectionDef section for details.
   * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public org.tensorflow.framework.CollectionDef getCollectionDefOrDefault( java.lang.String key, org.tensorflow.framework.CollectionDef defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCollectionDef().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * collection_def: Map from collection name to collections.
   * See CollectionDef section for details.
   * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public org.tensorflow.framework.CollectionDef getCollectionDefOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCollectionDef().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SIGNATURE_DEF_FIELD_NUMBER = 5; private static final class SignatureDefDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.tensorflow.framework.SignatureDef> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_SignatureDefEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.tensorflow.framework.SignatureDef.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.tensorflow.framework.SignatureDef> signatureDef_; private com.google.protobuf.MapField internalGetSignatureDef() { if (signatureDef_ == null) { return com.google.protobuf.MapField.emptyMapField( SignatureDefDefaultEntryHolder.defaultEntry); } return signatureDef_; } public int getSignatureDefCount() { return internalGetSignatureDef().getMap().size(); } /** *
   * signature_def: Map from user supplied key for a signature to a single
   * SignatureDef.
   * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public boolean containsSignatureDef( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSignatureDef().getMap().containsKey(key); } /** * Use {@link #getSignatureDefMap()} instead. */ @java.lang.Deprecated public java.util.Map getSignatureDef() { return getSignatureDefMap(); } /** *
   * signature_def: Map from user supplied key for a signature to a single
   * SignatureDef.
   * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public java.util.Map getSignatureDefMap() { return internalGetSignatureDef().getMap(); } /** *
   * signature_def: Map from user supplied key for a signature to a single
   * SignatureDef.
   * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public org.tensorflow.framework.SignatureDef getSignatureDefOrDefault( java.lang.String key, org.tensorflow.framework.SignatureDef defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSignatureDef().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * signature_def: Map from user supplied key for a signature to a single
   * SignatureDef.
   * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public org.tensorflow.framework.SignatureDef getSignatureDefOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSignatureDef().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ASSET_FILE_DEF_FIELD_NUMBER = 6; private java.util.List assetFileDef_; /** *
   * Asset file def to be used with the defined graph.
   * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public java.util.List getAssetFileDefList() { return assetFileDef_; } /** *
   * Asset file def to be used with the defined graph.
   * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public java.util.List getAssetFileDefOrBuilderList() { return assetFileDef_; } /** *
   * Asset file def to be used with the defined graph.
   * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public int getAssetFileDefCount() { return assetFileDef_.size(); } /** *
   * Asset file def to be used with the defined graph.
   * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public org.tensorflow.framework.AssetFileDef getAssetFileDef(int index) { return assetFileDef_.get(index); } /** *
   * Asset file def to be used with the defined graph.
   * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public org.tensorflow.framework.AssetFileDefOrBuilder getAssetFileDefOrBuilder( int index) { return assetFileDef_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (metaInfoDef_ != null) { output.writeMessage(1, getMetaInfoDef()); } if (graphDef_ != null) { output.writeMessage(2, getGraphDef()); } if (saverDef_ != null) { output.writeMessage(3, getSaverDef()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetCollectionDef(), CollectionDefDefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetSignatureDef(), SignatureDefDefaultEntryHolder.defaultEntry, 5); for (int i = 0; i < assetFileDef_.size(); i++) { output.writeMessage(6, assetFileDef_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (metaInfoDef_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMetaInfoDef()); } if (graphDef_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getGraphDef()); } if (saverDef_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSaverDef()); } for (java.util.Map.Entry entry : internalGetCollectionDef().getMap().entrySet()) { com.google.protobuf.MapEntry collectionDef__ = CollectionDefDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, collectionDef__); } for (java.util.Map.Entry entry : internalGetSignatureDef().getMap().entrySet()) { com.google.protobuf.MapEntry signatureDef__ = SignatureDefDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, signatureDef__); } for (int i = 0; i < assetFileDef_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, assetFileDef_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.MetaGraphDef)) { return super.equals(obj); } org.tensorflow.framework.MetaGraphDef other = (org.tensorflow.framework.MetaGraphDef) obj; boolean result = true; result = result && (hasMetaInfoDef() == other.hasMetaInfoDef()); if (hasMetaInfoDef()) { result = result && getMetaInfoDef() .equals(other.getMetaInfoDef()); } result = result && (hasGraphDef() == other.hasGraphDef()); if (hasGraphDef()) { result = result && getGraphDef() .equals(other.getGraphDef()); } result = result && (hasSaverDef() == other.hasSaverDef()); if (hasSaverDef()) { result = result && getSaverDef() .equals(other.getSaverDef()); } result = result && internalGetCollectionDef().equals( other.internalGetCollectionDef()); result = result && internalGetSignatureDef().equals( other.internalGetSignatureDef()); result = result && getAssetFileDefList() .equals(other.getAssetFileDefList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMetaInfoDef()) { hash = (37 * hash) + META_INFO_DEF_FIELD_NUMBER; hash = (53 * hash) + getMetaInfoDef().hashCode(); } if (hasGraphDef()) { hash = (37 * hash) + GRAPH_DEF_FIELD_NUMBER; hash = (53 * hash) + getGraphDef().hashCode(); } if (hasSaverDef()) { hash = (37 * hash) + SAVER_DEF_FIELD_NUMBER; hash = (53 * hash) + getSaverDef().hashCode(); } if (!internalGetCollectionDef().getMap().isEmpty()) { hash = (37 * hash) + COLLECTION_DEF_FIELD_NUMBER; hash = (53 * hash) + internalGetCollectionDef().hashCode(); } if (!internalGetSignatureDef().getMap().isEmpty()) { hash = (37 * hash) + SIGNATURE_DEF_FIELD_NUMBER; hash = (53 * hash) + internalGetSignatureDef().hashCode(); } if (getAssetFileDefCount() > 0) { hash = (37 * hash) + ASSET_FILE_DEF_FIELD_NUMBER; hash = (53 * hash) + getAssetFileDefList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.MetaGraphDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.MetaGraphDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * NOTE: This protocol buffer is evolving, and will go through revisions in the
   * coming months.
   * Protocol buffer containing the following which are necessary to restart
   * training, run inference. It can be used to serialize/de-serialize memory
   * objects necessary for running computation in a graph when crossing the
   * process boundary. It can be used for long term storage of graphs,
   * cross-language execution of graphs, etc.
   *   MetaInfoDef
   *   GraphDef
   *   SaverDef
   *   CollectionDef
   *   TensorInfo
   *   SignatureDef
   * 
* * Protobuf type {@code tensorflow.MetaGraphDef} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.MetaGraphDef) org.tensorflow.framework.MetaGraphDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetCollectionDef(); case 5: return internalGetSignatureDef(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableCollectionDef(); case 5: return internalGetMutableSignatureDef(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.MetaGraphDef.class, org.tensorflow.framework.MetaGraphDef.Builder.class); } // Construct using org.tensorflow.framework.MetaGraphDef.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAssetFileDefFieldBuilder(); } } public Builder clear() { super.clear(); if (metaInfoDefBuilder_ == null) { metaInfoDef_ = null; } else { metaInfoDef_ = null; metaInfoDefBuilder_ = null; } if (graphDefBuilder_ == null) { graphDef_ = null; } else { graphDef_ = null; graphDefBuilder_ = null; } if (saverDefBuilder_ == null) { saverDef_ = null; } else { saverDef_ = null; saverDefBuilder_ = null; } internalGetMutableCollectionDef().clear(); internalGetMutableSignatureDef().clear(); if (assetFileDefBuilder_ == null) { assetFileDef_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { assetFileDefBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor; } public org.tensorflow.framework.MetaGraphDef getDefaultInstanceForType() { return org.tensorflow.framework.MetaGraphDef.getDefaultInstance(); } public org.tensorflow.framework.MetaGraphDef build() { org.tensorflow.framework.MetaGraphDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.MetaGraphDef buildPartial() { org.tensorflow.framework.MetaGraphDef result = new org.tensorflow.framework.MetaGraphDef(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (metaInfoDefBuilder_ == null) { result.metaInfoDef_ = metaInfoDef_; } else { result.metaInfoDef_ = metaInfoDefBuilder_.build(); } if (graphDefBuilder_ == null) { result.graphDef_ = graphDef_; } else { result.graphDef_ = graphDefBuilder_.build(); } if (saverDefBuilder_ == null) { result.saverDef_ = saverDef_; } else { result.saverDef_ = saverDefBuilder_.build(); } result.collectionDef_ = internalGetCollectionDef(); result.collectionDef_.makeImmutable(); result.signatureDef_ = internalGetSignatureDef(); result.signatureDef_.makeImmutable(); if (assetFileDefBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { assetFileDef_ = java.util.Collections.unmodifiableList(assetFileDef_); bitField0_ = (bitField0_ & ~0x00000020); } result.assetFileDef_ = assetFileDef_; } else { result.assetFileDef_ = assetFileDefBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.framework.MetaGraphDef) { return mergeFrom((org.tensorflow.framework.MetaGraphDef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.MetaGraphDef other) { if (other == org.tensorflow.framework.MetaGraphDef.getDefaultInstance()) return this; if (other.hasMetaInfoDef()) { mergeMetaInfoDef(other.getMetaInfoDef()); } if (other.hasGraphDef()) { mergeGraphDef(other.getGraphDef()); } if (other.hasSaverDef()) { mergeSaverDef(other.getSaverDef()); } internalGetMutableCollectionDef().mergeFrom( other.internalGetCollectionDef()); internalGetMutableSignatureDef().mergeFrom( other.internalGetSignatureDef()); if (assetFileDefBuilder_ == null) { if (!other.assetFileDef_.isEmpty()) { if (assetFileDef_.isEmpty()) { assetFileDef_ = other.assetFileDef_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAssetFileDefIsMutable(); assetFileDef_.addAll(other.assetFileDef_); } onChanged(); } } else { if (!other.assetFileDef_.isEmpty()) { if (assetFileDefBuilder_.isEmpty()) { assetFileDefBuilder_.dispose(); assetFileDefBuilder_ = null; assetFileDef_ = other.assetFileDef_; bitField0_ = (bitField0_ & ~0x00000020); assetFileDefBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAssetFileDefFieldBuilder() : null; } else { assetFileDefBuilder_.addAllMessages(other.assetFileDef_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.MetaGraphDef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.MetaGraphDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tensorflow.framework.MetaGraphDef.MetaInfoDef metaInfoDef_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.MetaGraphDef.MetaInfoDef, org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.framework.MetaGraphDef.MetaInfoDefOrBuilder> metaInfoDefBuilder_; /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public boolean hasMetaInfoDef() { return metaInfoDefBuilder_ != null || metaInfoDef_ != null; } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public org.tensorflow.framework.MetaGraphDef.MetaInfoDef getMetaInfoDef() { if (metaInfoDefBuilder_ == null) { return metaInfoDef_ == null ? org.tensorflow.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance() : metaInfoDef_; } else { return metaInfoDefBuilder_.getMessage(); } } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public Builder setMetaInfoDef(org.tensorflow.framework.MetaGraphDef.MetaInfoDef value) { if (metaInfoDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metaInfoDef_ = value; onChanged(); } else { metaInfoDefBuilder_.setMessage(value); } return this; } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public Builder setMetaInfoDef( org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder builderForValue) { if (metaInfoDefBuilder_ == null) { metaInfoDef_ = builderForValue.build(); onChanged(); } else { metaInfoDefBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public Builder mergeMetaInfoDef(org.tensorflow.framework.MetaGraphDef.MetaInfoDef value) { if (metaInfoDefBuilder_ == null) { if (metaInfoDef_ != null) { metaInfoDef_ = org.tensorflow.framework.MetaGraphDef.MetaInfoDef.newBuilder(metaInfoDef_).mergeFrom(value).buildPartial(); } else { metaInfoDef_ = value; } onChanged(); } else { metaInfoDefBuilder_.mergeFrom(value); } return this; } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public Builder clearMetaInfoDef() { if (metaInfoDefBuilder_ == null) { metaInfoDef_ = null; onChanged(); } else { metaInfoDef_ = null; metaInfoDefBuilder_ = null; } return this; } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder getMetaInfoDefBuilder() { onChanged(); return getMetaInfoDefFieldBuilder().getBuilder(); } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ public org.tensorflow.framework.MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder() { if (metaInfoDefBuilder_ != null) { return metaInfoDefBuilder_.getMessageOrBuilder(); } else { return metaInfoDef_ == null ? org.tensorflow.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance() : metaInfoDef_; } } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.MetaGraphDef.MetaInfoDef, org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.framework.MetaGraphDef.MetaInfoDefOrBuilder> getMetaInfoDefFieldBuilder() { if (metaInfoDefBuilder_ == null) { metaInfoDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.MetaGraphDef.MetaInfoDef, org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.framework.MetaGraphDef.MetaInfoDefOrBuilder>( getMetaInfoDef(), getParentForChildren(), isClean()); metaInfoDef_ = null; } return metaInfoDefBuilder_; } private org.tensorflow.framework.GraphDef graphDef_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.GraphDef, org.tensorflow.framework.GraphDef.Builder, org.tensorflow.framework.GraphDefOrBuilder> graphDefBuilder_; /** *
     * GraphDef.
     * 
* * .tensorflow.GraphDef graph_def = 2; */ public boolean hasGraphDef() { return graphDefBuilder_ != null || graphDef_ != null; } /** *
     * GraphDef.
     * 
* * .tensorflow.GraphDef graph_def = 2; */ public org.tensorflow.framework.GraphDef getGraphDef() { if (graphDefBuilder_ == null) { return graphDef_ == null ? org.tensorflow.framework.GraphDef.getDefaultInstance() : graphDef_; } else { return graphDefBuilder_.getMessage(); } } /** *
     * GraphDef.
     * 
* * .tensorflow.GraphDef graph_def = 2; */ public Builder setGraphDef(org.tensorflow.framework.GraphDef value) { if (graphDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } graphDef_ = value; onChanged(); } else { graphDefBuilder_.setMessage(value); } return this; } /** *
     * GraphDef.
     * 
* * .tensorflow.GraphDef graph_def = 2; */ public Builder setGraphDef( org.tensorflow.framework.GraphDef.Builder builderForValue) { if (graphDefBuilder_ == null) { graphDef_ = builderForValue.build(); onChanged(); } else { graphDefBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * GraphDef.
     * 
* * .tensorflow.GraphDef graph_def = 2; */ public Builder mergeGraphDef(org.tensorflow.framework.GraphDef value) { if (graphDefBuilder_ == null) { if (graphDef_ != null) { graphDef_ = org.tensorflow.framework.GraphDef.newBuilder(graphDef_).mergeFrom(value).buildPartial(); } else { graphDef_ = value; } onChanged(); } else { graphDefBuilder_.mergeFrom(value); } return this; } /** *
     * GraphDef.
     * 
* * .tensorflow.GraphDef graph_def = 2; */ public Builder clearGraphDef() { if (graphDefBuilder_ == null) { graphDef_ = null; onChanged(); } else { graphDef_ = null; graphDefBuilder_ = null; } return this; } /** *
     * GraphDef.
     * 
* * .tensorflow.GraphDef graph_def = 2; */ public org.tensorflow.framework.GraphDef.Builder getGraphDefBuilder() { onChanged(); return getGraphDefFieldBuilder().getBuilder(); } /** *
     * GraphDef.
     * 
* * .tensorflow.GraphDef graph_def = 2; */ public org.tensorflow.framework.GraphDefOrBuilder getGraphDefOrBuilder() { if (graphDefBuilder_ != null) { return graphDefBuilder_.getMessageOrBuilder(); } else { return graphDef_ == null ? org.tensorflow.framework.GraphDef.getDefaultInstance() : graphDef_; } } /** *
     * GraphDef.
     * 
* * .tensorflow.GraphDef graph_def = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.GraphDef, org.tensorflow.framework.GraphDef.Builder, org.tensorflow.framework.GraphDefOrBuilder> getGraphDefFieldBuilder() { if (graphDefBuilder_ == null) { graphDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.GraphDef, org.tensorflow.framework.GraphDef.Builder, org.tensorflow.framework.GraphDefOrBuilder>( getGraphDef(), getParentForChildren(), isClean()); graphDef_ = null; } return graphDefBuilder_; } private org.tensorflow.util.SaverDef saverDef_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.util.SaverDef, org.tensorflow.util.SaverDef.Builder, org.tensorflow.util.SaverDefOrBuilder> saverDefBuilder_; /** *
     * SaverDef.
     * 
* * .tensorflow.SaverDef saver_def = 3; */ public boolean hasSaverDef() { return saverDefBuilder_ != null || saverDef_ != null; } /** *
     * SaverDef.
     * 
* * .tensorflow.SaverDef saver_def = 3; */ public org.tensorflow.util.SaverDef getSaverDef() { if (saverDefBuilder_ == null) { return saverDef_ == null ? org.tensorflow.util.SaverDef.getDefaultInstance() : saverDef_; } else { return saverDefBuilder_.getMessage(); } } /** *
     * SaverDef.
     * 
* * .tensorflow.SaverDef saver_def = 3; */ public Builder setSaverDef(org.tensorflow.util.SaverDef value) { if (saverDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } saverDef_ = value; onChanged(); } else { saverDefBuilder_.setMessage(value); } return this; } /** *
     * SaverDef.
     * 
* * .tensorflow.SaverDef saver_def = 3; */ public Builder setSaverDef( org.tensorflow.util.SaverDef.Builder builderForValue) { if (saverDefBuilder_ == null) { saverDef_ = builderForValue.build(); onChanged(); } else { saverDefBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * SaverDef.
     * 
* * .tensorflow.SaverDef saver_def = 3; */ public Builder mergeSaverDef(org.tensorflow.util.SaverDef value) { if (saverDefBuilder_ == null) { if (saverDef_ != null) { saverDef_ = org.tensorflow.util.SaverDef.newBuilder(saverDef_).mergeFrom(value).buildPartial(); } else { saverDef_ = value; } onChanged(); } else { saverDefBuilder_.mergeFrom(value); } return this; } /** *
     * SaverDef.
     * 
* * .tensorflow.SaverDef saver_def = 3; */ public Builder clearSaverDef() { if (saverDefBuilder_ == null) { saverDef_ = null; onChanged(); } else { saverDef_ = null; saverDefBuilder_ = null; } return this; } /** *
     * SaverDef.
     * 
* * .tensorflow.SaverDef saver_def = 3; */ public org.tensorflow.util.SaverDef.Builder getSaverDefBuilder() { onChanged(); return getSaverDefFieldBuilder().getBuilder(); } /** *
     * SaverDef.
     * 
* * .tensorflow.SaverDef saver_def = 3; */ public org.tensorflow.util.SaverDefOrBuilder getSaverDefOrBuilder() { if (saverDefBuilder_ != null) { return saverDefBuilder_.getMessageOrBuilder(); } else { return saverDef_ == null ? org.tensorflow.util.SaverDef.getDefaultInstance() : saverDef_; } } /** *
     * SaverDef.
     * 
* * .tensorflow.SaverDef saver_def = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.util.SaverDef, org.tensorflow.util.SaverDef.Builder, org.tensorflow.util.SaverDefOrBuilder> getSaverDefFieldBuilder() { if (saverDefBuilder_ == null) { saverDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.util.SaverDef, org.tensorflow.util.SaverDef.Builder, org.tensorflow.util.SaverDefOrBuilder>( getSaverDef(), getParentForChildren(), isClean()); saverDef_ = null; } return saverDefBuilder_; } private com.google.protobuf.MapField< java.lang.String, org.tensorflow.framework.CollectionDef> collectionDef_; private com.google.protobuf.MapField internalGetCollectionDef() { if (collectionDef_ == null) { return com.google.protobuf.MapField.emptyMapField( CollectionDefDefaultEntryHolder.defaultEntry); } return collectionDef_; } private com.google.protobuf.MapField internalGetMutableCollectionDef() { onChanged();; if (collectionDef_ == null) { collectionDef_ = com.google.protobuf.MapField.newMapField( CollectionDefDefaultEntryHolder.defaultEntry); } if (!collectionDef_.isMutable()) { collectionDef_ = collectionDef_.copy(); } return collectionDef_; } public int getCollectionDefCount() { return internalGetCollectionDef().getMap().size(); } /** *
     * collection_def: Map from collection name to collections.
     * See CollectionDef section for details.
     * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public boolean containsCollectionDef( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCollectionDef().getMap().containsKey(key); } /** * Use {@link #getCollectionDefMap()} instead. */ @java.lang.Deprecated public java.util.Map getCollectionDef() { return getCollectionDefMap(); } /** *
     * collection_def: Map from collection name to collections.
     * See CollectionDef section for details.
     * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public java.util.Map getCollectionDefMap() { return internalGetCollectionDef().getMap(); } /** *
     * collection_def: Map from collection name to collections.
     * See CollectionDef section for details.
     * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public org.tensorflow.framework.CollectionDef getCollectionDefOrDefault( java.lang.String key, org.tensorflow.framework.CollectionDef defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCollectionDef().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * collection_def: Map from collection name to collections.
     * See CollectionDef section for details.
     * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public org.tensorflow.framework.CollectionDef getCollectionDefOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCollectionDef().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCollectionDef() { internalGetMutableCollectionDef().getMutableMap() .clear(); return this; } /** *
     * collection_def: Map from collection name to collections.
     * See CollectionDef section for details.
     * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public Builder removeCollectionDef( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableCollectionDef().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCollectionDef() { return internalGetMutableCollectionDef().getMutableMap(); } /** *
     * collection_def: Map from collection name to collections.
     * See CollectionDef section for details.
     * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public Builder putCollectionDef( java.lang.String key, org.tensorflow.framework.CollectionDef value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableCollectionDef().getMutableMap() .put(key, value); return this; } /** *
     * collection_def: Map from collection name to collections.
     * See CollectionDef section for details.
     * 
* * map<string, .tensorflow.CollectionDef> collection_def = 4; */ public Builder putAllCollectionDef( java.util.Map values) { internalGetMutableCollectionDef().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, org.tensorflow.framework.SignatureDef> signatureDef_; private com.google.protobuf.MapField internalGetSignatureDef() { if (signatureDef_ == null) { return com.google.protobuf.MapField.emptyMapField( SignatureDefDefaultEntryHolder.defaultEntry); } return signatureDef_; } private com.google.protobuf.MapField internalGetMutableSignatureDef() { onChanged();; if (signatureDef_ == null) { signatureDef_ = com.google.protobuf.MapField.newMapField( SignatureDefDefaultEntryHolder.defaultEntry); } if (!signatureDef_.isMutable()) { signatureDef_ = signatureDef_.copy(); } return signatureDef_; } public int getSignatureDefCount() { return internalGetSignatureDef().getMap().size(); } /** *
     * signature_def: Map from user supplied key for a signature to a single
     * SignatureDef.
     * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public boolean containsSignatureDef( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSignatureDef().getMap().containsKey(key); } /** * Use {@link #getSignatureDefMap()} instead. */ @java.lang.Deprecated public java.util.Map getSignatureDef() { return getSignatureDefMap(); } /** *
     * signature_def: Map from user supplied key for a signature to a single
     * SignatureDef.
     * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public java.util.Map getSignatureDefMap() { return internalGetSignatureDef().getMap(); } /** *
     * signature_def: Map from user supplied key for a signature to a single
     * SignatureDef.
     * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public org.tensorflow.framework.SignatureDef getSignatureDefOrDefault( java.lang.String key, org.tensorflow.framework.SignatureDef defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSignatureDef().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * signature_def: Map from user supplied key for a signature to a single
     * SignatureDef.
     * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public org.tensorflow.framework.SignatureDef getSignatureDefOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSignatureDef().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSignatureDef() { internalGetMutableSignatureDef().getMutableMap() .clear(); return this; } /** *
     * signature_def: Map from user supplied key for a signature to a single
     * SignatureDef.
     * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public Builder removeSignatureDef( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableSignatureDef().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSignatureDef() { return internalGetMutableSignatureDef().getMutableMap(); } /** *
     * signature_def: Map from user supplied key for a signature to a single
     * SignatureDef.
     * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public Builder putSignatureDef( java.lang.String key, org.tensorflow.framework.SignatureDef value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableSignatureDef().getMutableMap() .put(key, value); return this; } /** *
     * signature_def: Map from user supplied key for a signature to a single
     * SignatureDef.
     * 
* * map<string, .tensorflow.SignatureDef> signature_def = 5; */ public Builder putAllSignatureDef( java.util.Map values) { internalGetMutableSignatureDef().getMutableMap() .putAll(values); return this; } private java.util.List assetFileDef_ = java.util.Collections.emptyList(); private void ensureAssetFileDefIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { assetFileDef_ = new java.util.ArrayList(assetFileDef_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.AssetFileDef, org.tensorflow.framework.AssetFileDef.Builder, org.tensorflow.framework.AssetFileDefOrBuilder> assetFileDefBuilder_; /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public java.util.List getAssetFileDefList() { if (assetFileDefBuilder_ == null) { return java.util.Collections.unmodifiableList(assetFileDef_); } else { return assetFileDefBuilder_.getMessageList(); } } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public int getAssetFileDefCount() { if (assetFileDefBuilder_ == null) { return assetFileDef_.size(); } else { return assetFileDefBuilder_.getCount(); } } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public org.tensorflow.framework.AssetFileDef getAssetFileDef(int index) { if (assetFileDefBuilder_ == null) { return assetFileDef_.get(index); } else { return assetFileDefBuilder_.getMessage(index); } } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public Builder setAssetFileDef( int index, org.tensorflow.framework.AssetFileDef value) { if (assetFileDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetFileDefIsMutable(); assetFileDef_.set(index, value); onChanged(); } else { assetFileDefBuilder_.setMessage(index, value); } return this; } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public Builder setAssetFileDef( int index, org.tensorflow.framework.AssetFileDef.Builder builderForValue) { if (assetFileDefBuilder_ == null) { ensureAssetFileDefIsMutable(); assetFileDef_.set(index, builderForValue.build()); onChanged(); } else { assetFileDefBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public Builder addAssetFileDef(org.tensorflow.framework.AssetFileDef value) { if (assetFileDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetFileDefIsMutable(); assetFileDef_.add(value); onChanged(); } else { assetFileDefBuilder_.addMessage(value); } return this; } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public Builder addAssetFileDef( int index, org.tensorflow.framework.AssetFileDef value) { if (assetFileDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssetFileDefIsMutable(); assetFileDef_.add(index, value); onChanged(); } else { assetFileDefBuilder_.addMessage(index, value); } return this; } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public Builder addAssetFileDef( org.tensorflow.framework.AssetFileDef.Builder builderForValue) { if (assetFileDefBuilder_ == null) { ensureAssetFileDefIsMutable(); assetFileDef_.add(builderForValue.build()); onChanged(); } else { assetFileDefBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public Builder addAssetFileDef( int index, org.tensorflow.framework.AssetFileDef.Builder builderForValue) { if (assetFileDefBuilder_ == null) { ensureAssetFileDefIsMutable(); assetFileDef_.add(index, builderForValue.build()); onChanged(); } else { assetFileDefBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public Builder addAllAssetFileDef( java.lang.Iterable values) { if (assetFileDefBuilder_ == null) { ensureAssetFileDefIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, assetFileDef_); onChanged(); } else { assetFileDefBuilder_.addAllMessages(values); } return this; } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public Builder clearAssetFileDef() { if (assetFileDefBuilder_ == null) { assetFileDef_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { assetFileDefBuilder_.clear(); } return this; } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public Builder removeAssetFileDef(int index) { if (assetFileDefBuilder_ == null) { ensureAssetFileDefIsMutable(); assetFileDef_.remove(index); onChanged(); } else { assetFileDefBuilder_.remove(index); } return this; } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public org.tensorflow.framework.AssetFileDef.Builder getAssetFileDefBuilder( int index) { return getAssetFileDefFieldBuilder().getBuilder(index); } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public org.tensorflow.framework.AssetFileDefOrBuilder getAssetFileDefOrBuilder( int index) { if (assetFileDefBuilder_ == null) { return assetFileDef_.get(index); } else { return assetFileDefBuilder_.getMessageOrBuilder(index); } } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public java.util.List getAssetFileDefOrBuilderList() { if (assetFileDefBuilder_ != null) { return assetFileDefBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(assetFileDef_); } } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public org.tensorflow.framework.AssetFileDef.Builder addAssetFileDefBuilder() { return getAssetFileDefFieldBuilder().addBuilder( org.tensorflow.framework.AssetFileDef.getDefaultInstance()); } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public org.tensorflow.framework.AssetFileDef.Builder addAssetFileDefBuilder( int index) { return getAssetFileDefFieldBuilder().addBuilder( index, org.tensorflow.framework.AssetFileDef.getDefaultInstance()); } /** *
     * Asset file def to be used with the defined graph.
     * 
* * repeated .tensorflow.AssetFileDef asset_file_def = 6; */ public java.util.List getAssetFileDefBuilderList() { return getAssetFileDefFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.AssetFileDef, org.tensorflow.framework.AssetFileDef.Builder, org.tensorflow.framework.AssetFileDefOrBuilder> getAssetFileDefFieldBuilder() { if (assetFileDefBuilder_ == null) { assetFileDefBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.AssetFileDef, org.tensorflow.framework.AssetFileDef.Builder, org.tensorflow.framework.AssetFileDefOrBuilder>( assetFileDef_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); assetFileDef_ = null; } return assetFileDefBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:tensorflow.MetaGraphDef) } // @@protoc_insertion_point(class_scope:tensorflow.MetaGraphDef) private static final org.tensorflow.framework.MetaGraphDef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.MetaGraphDef(); } public static org.tensorflow.framework.MetaGraphDef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MetaGraphDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MetaGraphDef(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.MetaGraphDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy