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

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

There is a newer version: 1.0.0-M2.1
Show newest version
// 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 org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.MetaGraphDef) MetaGraphDefOrBuilder { private static final long serialVersionUID = 0L; // Use MetaGraphDef.newBuilder() to construct. private MetaGraphDef(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetaGraphDef() { assetFileDef_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetaGraphDef(); } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MetaGraphDef( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: 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_ & 0x00000001) != 0)) { collectionDef_ = org.nd4j.shade.protobuf.MapField.newMapField( CollectionDefDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } org.nd4j.shade.protobuf.MapEntry collectionDef__ = input.readMessage( CollectionDefDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); collectionDef_.getMutableMap().put( collectionDef__.getKey(), collectionDef__.getValue()); break; } case 42: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { signatureDef_ = org.nd4j.shade.protobuf.MapField.newMapField( SignatureDefDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } org.nd4j.shade.protobuf.MapEntry signatureDef__ = input.readMessage( SignatureDefDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); signatureDef_.getMutableMap().put( signatureDef__.getKey(), signatureDef__.getValue()); break; } case 50: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { assetFileDef_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } assetFileDef_.add( input.readMessage(org.tensorflow.framework.AssetFileDef.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { assetFileDef_ = java.util.Collections.unmodifiableList(assetFileDef_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected org.nd4j.shade.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetCollectionDef(); case 5: return internalGetSignatureDef(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected org.nd4j.shade.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) org.nd4j.shade.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; */ org.nd4j.shade.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; */ org.nd4j.shade.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; */ org.nd4j.shade.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; */ org.nd4j.shade.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; */ org.nd4j.shade.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; */ org.nd4j.shade.protobuf.ByteString getTensorflowGitVersionBytes(); /** *
     * A flag to denote whether default-valued attrs have been stripped from
     * the nodes in this graph_def.
     * 
* * bool stripped_default_attrs = 7; */ boolean getStrippedDefaultAttrs(); } /** *
   * 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 org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.MetaGraphDef.MetaInfoDef) MetaInfoDefOrBuilder { private static final long serialVersionUID = 0L; // Use MetaInfoDef.newBuilder() to construct. private MetaInfoDef(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetaInfoDef() { metaGraphVersion_ = ""; tags_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; tensorflowVersion_ = ""; tensorflowGitVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetaInfoDef(); } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MetaInfoDef( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: 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: { org.nd4j.shade.protobuf.Any.Builder subBuilder = null; if (anyInfo_ != null) { subBuilder = anyInfo_.toBuilder(); } anyInfo_ = input.readMessage(org.nd4j.shade.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_ & 0x00000001) != 0)) { tags_ = new org.nd4j.shade.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } 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; } case 56: { strippedDefaultAttrs_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { tags_ = tags_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; } @java.lang.Override protected org.nd4j.shade.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); } 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 { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.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 org.nd4j.shade.protobuf.ByteString getMetaGraphVersionBytes() { java.lang.Object ref = metaGraphVersion_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); metaGraphVersion_ = b; return b; } else { return (org.nd4j.shade.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 org.nd4j.shade.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 org.nd4j.shade.protobuf.Any getAnyInfo() { return anyInfo_ == null ? org.nd4j.shade.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 org.nd4j.shade.protobuf.AnyOrBuilder getAnyInfoOrBuilder() { return getAnyInfo(); } public static final int TAGS_FIELD_NUMBER = 4; private org.nd4j.shade.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 org.nd4j.shade.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 org.nd4j.shade.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 { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.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 org.nd4j.shade.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tensorflowVersion_ = b; return b; } else { return (org.nd4j.shade.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 { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.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 org.nd4j.shade.protobuf.ByteString getTensorflowGitVersionBytes() { java.lang.Object ref = tensorflowGitVersion_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tensorflowGitVersion_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int STRIPPED_DEFAULT_ATTRS_FIELD_NUMBER = 7; private boolean strippedDefaultAttrs_; /** *
     * A flag to denote whether default-valued attrs have been stripped from
     * the nodes in this graph_def.
     * 
* * bool stripped_default_attrs = 7; */ public boolean getStrippedDefaultAttrs() { return strippedDefaultAttrs_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMetaGraphVersionBytes().isEmpty()) { org.nd4j.shade.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++) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); } if (!getTensorflowVersionBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 5, tensorflowVersion_); } if (!getTensorflowGitVersionBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 6, tensorflowGitVersion_); } if (strippedDefaultAttrs_ != false) { output.writeBool(7, strippedDefaultAttrs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMetaGraphVersionBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, metaGraphVersion_); } if (strippedOpList_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(2, getStrippedOpList()); } if (anyInfo_ != null) { size += org.nd4j.shade.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 += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(5, tensorflowVersion_); } if (!getTensorflowGitVersionBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(6, tensorflowGitVersion_); } if (strippedDefaultAttrs_ != false) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeBoolSize(7, strippedDefaultAttrs_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @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; if (!getMetaGraphVersion() .equals(other.getMetaGraphVersion())) return false; if (hasStrippedOpList() != other.hasStrippedOpList()) return false; if (hasStrippedOpList()) { if (!getStrippedOpList() .equals(other.getStrippedOpList())) return false; } if (hasAnyInfo() != other.hasAnyInfo()) return false; if (hasAnyInfo()) { if (!getAnyInfo() .equals(other.getAnyInfo())) return false; } if (!getTagsList() .equals(other.getTagsList())) return false; if (!getTensorflowVersion() .equals(other.getTensorflowVersion())) return false; if (!getTensorflowGitVersion() .equals(other.getTensorflowGitVersion())) return false; if (getStrippedDefaultAttrs() != other.getStrippedDefaultAttrs()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @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 = (37 * hash) + STRIPPED_DEFAULT_ATTRS_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean( getStrippedDefaultAttrs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef.MetaInfoDef parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.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 org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.MetaGraphDef.MetaInfoDef) org.tensorflow.framework.MetaGraphDef.MetaInfoDefOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; } @java.lang.Override protected org.nd4j.shade.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( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override 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_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); tensorflowVersion_ = ""; tensorflowGitVersion_ = ""; strippedDefaultAttrs_ = false; return this; } @java.lang.Override public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; } @java.lang.Override public org.tensorflow.framework.MetaGraphDef.MetaInfoDef getDefaultInstanceForType() { return org.tensorflow.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance(); } @java.lang.Override public org.tensorflow.framework.MetaGraphDef.MetaInfoDef build() { org.tensorflow.framework.MetaGraphDef.MetaInfoDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.framework.MetaGraphDef.MetaInfoDef buildPartial() { org.tensorflow.framework.MetaGraphDef.MetaInfoDef result = new org.tensorflow.framework.MetaGraphDef.MetaInfoDef(this); int from_bitField0_ = bitField0_; 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_ & 0x00000001) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.tags_ = tags_; result.tensorflowVersion_ = tensorflowVersion_; result.tensorflowGitVersion_ = tensorflowGitVersion_; result.strippedDefaultAttrs_ = strippedDefaultAttrs_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(org.nd4j.shade.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_ & ~0x00000001); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (!other.getTensorflowVersion().isEmpty()) { tensorflowVersion_ = other.tensorflowVersion_; onChanged(); } if (!other.getTensorflowGitVersion().isEmpty()) { tensorflowGitVersion_ = other.tensorflowGitVersion_; onChanged(); } if (other.getStrippedDefaultAttrs() != false) { setStrippedDefaultAttrs(other.getStrippedDefaultAttrs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.MetaGraphDef.MetaInfoDef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.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)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.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 org.nd4j.shade.protobuf.ByteString getMetaGraphVersionBytes() { java.lang.Object ref = metaGraphVersion_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); metaGraphVersion_ = b; return b; } else { return (org.nd4j.shade.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( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); metaGraphVersion_ = value; onChanged(); return this; } private org.tensorflow.framework.OpList strippedOpList_; private org.nd4j.shade.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 org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.OpList, org.tensorflow.framework.OpList.Builder, org.tensorflow.framework.OpListOrBuilder> getStrippedOpListFieldBuilder() { if (strippedOpListBuilder_ == null) { strippedOpListBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.OpList, org.tensorflow.framework.OpList.Builder, org.tensorflow.framework.OpListOrBuilder>( getStrippedOpList(), getParentForChildren(), isClean()); strippedOpList_ = null; } return strippedOpListBuilder_; } private org.nd4j.shade.protobuf.Any anyInfo_; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.nd4j.shade.protobuf.Any, org.nd4j.shade.protobuf.Any.Builder, org.nd4j.shade.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 org.nd4j.shade.protobuf.Any getAnyInfo() { if (anyInfoBuilder_ == null) { return anyInfo_ == null ? org.nd4j.shade.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(org.nd4j.shade.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( org.nd4j.shade.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(org.nd4j.shade.protobuf.Any value) { if (anyInfoBuilder_ == null) { if (anyInfo_ != null) { anyInfo_ = org.nd4j.shade.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 org.nd4j.shade.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 org.nd4j.shade.protobuf.AnyOrBuilder getAnyInfoOrBuilder() { if (anyInfoBuilder_ != null) { return anyInfoBuilder_.getMessageOrBuilder(); } else { return anyInfo_ == null ? org.nd4j.shade.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 org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.nd4j.shade.protobuf.Any, org.nd4j.shade.protobuf.Any.Builder, org.nd4j.shade.protobuf.AnyOrBuilder> getAnyInfoFieldBuilder() { if (anyInfoBuilder_ == null) { anyInfoBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.nd4j.shade.protobuf.Any, org.nd4j.shade.protobuf.Any.Builder, org.nd4j.shade.protobuf.AnyOrBuilder>( getAnyInfo(), getParentForChildren(), isClean()); anyInfo_ = null; } return anyInfoBuilder_; } private org.nd4j.shade.protobuf.LazyStringList tags_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tags_ = new org.nd4j.shade.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000001; } } /** *
       * 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 org.nd4j.shade.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 org.nd4j.shade.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(); org.nd4j.shade.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_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); 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( org.nd4j.shade.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)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.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 org.nd4j.shade.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tensorflowVersion_ = b; return b; } else { return (org.nd4j.shade.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( org.nd4j.shade.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)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.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 org.nd4j.shade.protobuf.ByteString getTensorflowGitVersionBytes() { java.lang.Object ref = tensorflowGitVersion_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tensorflowGitVersion_ = b; return b; } else { return (org.nd4j.shade.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( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tensorflowGitVersion_ = value; onChanged(); return this; } private boolean strippedDefaultAttrs_ ; /** *
       * A flag to denote whether default-valued attrs have been stripped from
       * the nodes in this graph_def.
       * 
* * bool stripped_default_attrs = 7; */ public boolean getStrippedDefaultAttrs() { return strippedDefaultAttrs_; } /** *
       * A flag to denote whether default-valued attrs have been stripped from
       * the nodes in this graph_def.
       * 
* * bool stripped_default_attrs = 7; */ public Builder setStrippedDefaultAttrs(boolean value) { strippedDefaultAttrs_ = value; onChanged(); return this; } /** *
       * A flag to denote whether default-valued attrs have been stripped from
       * the nodes in this graph_def.
       * 
* * bool stripped_default_attrs = 7; */ public Builder clearStrippedDefaultAttrs() { strippedDefaultAttrs_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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 org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { @java.lang.Override public MetaInfoDef parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new MetaInfoDef(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tensorflow.framework.MetaGraphDef.MetaInfoDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } 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 org.nd4j.shade.protobuf.MapEntry< java.lang.String, org.tensorflow.framework.CollectionDef> defaultEntry = org.nd4j.shade.protobuf.MapEntry .newDefaultInstance( org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_CollectionDefEntry_descriptor, org.nd4j.shade.protobuf.WireFormat.FieldType.STRING, "", org.nd4j.shade.protobuf.WireFormat.FieldType.MESSAGE, org.tensorflow.framework.CollectionDef.getDefaultInstance()); } private org.nd4j.shade.protobuf.MapField< java.lang.String, org.tensorflow.framework.CollectionDef> collectionDef_; private org.nd4j.shade.protobuf.MapField internalGetCollectionDef() { if (collectionDef_ == null) { return org.nd4j.shade.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 org.nd4j.shade.protobuf.MapEntry< java.lang.String, org.tensorflow.framework.SignatureDef> defaultEntry = org.nd4j.shade.protobuf.MapEntry .newDefaultInstance( org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_SignatureDefEntry_descriptor, org.nd4j.shade.protobuf.WireFormat.FieldType.STRING, "", org.nd4j.shade.protobuf.WireFormat.FieldType.MESSAGE, org.tensorflow.framework.SignatureDef.getDefaultInstance()); } private org.nd4j.shade.protobuf.MapField< java.lang.String, org.tensorflow.framework.SignatureDef> signatureDef_; private org.nd4j.shade.protobuf.MapField internalGetSignatureDef() { if (signatureDef_ == null) { return org.nd4j.shade.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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(org.nd4j.shade.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()); } org.nd4j.shade.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetCollectionDef(), CollectionDefDefaultEntryHolder.defaultEntry, 4); org.nd4j.shade.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetSignatureDef(), SignatureDefDefaultEntryHolder.defaultEntry, 5); for (int i = 0; i < assetFileDef_.size(); i++) { output.writeMessage(6, assetFileDef_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (metaInfoDef_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(1, getMetaInfoDef()); } if (graphDef_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(2, getGraphDef()); } if (saverDef_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(3, getSaverDef()); } for (java.util.Map.Entry entry : internalGetCollectionDef().getMap().entrySet()) { org.nd4j.shade.protobuf.MapEntry collectionDef__ = CollectionDefDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(4, collectionDef__); } for (java.util.Map.Entry entry : internalGetSignatureDef().getMap().entrySet()) { org.nd4j.shade.protobuf.MapEntry signatureDef__ = SignatureDefDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(5, signatureDef__); } for (int i = 0; i < assetFileDef_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(6, assetFileDef_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @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; if (hasMetaInfoDef() != other.hasMetaInfoDef()) return false; if (hasMetaInfoDef()) { if (!getMetaInfoDef() .equals(other.getMetaInfoDef())) return false; } if (hasGraphDef() != other.hasGraphDef()) return false; if (hasGraphDef()) { if (!getGraphDef() .equals(other.getGraphDef())) return false; } if (hasSaverDef() != other.hasSaverDef()) return false; if (hasSaverDef()) { if (!getSaverDef() .equals(other.getSaverDef())) return false; } if (!internalGetCollectionDef().equals( other.internalGetCollectionDef())) return false; if (!internalGetSignatureDef().equals( other.internalGetSignatureDef())) return false; if (!getAssetFileDefList() .equals(other.getAssetFileDefList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @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 org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.MetaGraphDef parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.MetaGraphDef parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.MetaGraphDef parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.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 org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.MetaGraphDef) org.tensorflow.framework.MetaGraphDefOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor; } @SuppressWarnings({"rawtypes"}) protected org.nd4j.shade.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 org.nd4j.shade.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableCollectionDef(); case 5: return internalGetMutableSignatureDef(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected org.nd4j.shade.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( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAssetFileDefFieldBuilder(); } } @java.lang.Override 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_ & ~0x00000004); } else { assetFileDefBuilder_.clear(); } return this; } @java.lang.Override public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor; } @java.lang.Override public org.tensorflow.framework.MetaGraphDef getDefaultInstanceForType() { return org.tensorflow.framework.MetaGraphDef.getDefaultInstance(); } @java.lang.Override public org.tensorflow.framework.MetaGraphDef build() { org.tensorflow.framework.MetaGraphDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.framework.MetaGraphDef buildPartial() { org.tensorflow.framework.MetaGraphDef result = new org.tensorflow.framework.MetaGraphDef(this); int from_bitField0_ = bitField0_; 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_ & 0x00000004) != 0)) { assetFileDef_ = java.util.Collections.unmodifiableList(assetFileDef_); bitField0_ = (bitField0_ & ~0x00000004); } result.assetFileDef_ = assetFileDef_; } else { result.assetFileDef_ = assetFileDefBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(org.nd4j.shade.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_ & ~0x00000004); } else { ensureAssetFileDefIsMutable(); assetFileDef_.addAll(other.assetFileDef_); } onChanged(); } } else { if (!other.assetFileDef_.isEmpty()) { if (assetFileDefBuilder_.isEmpty()) { assetFileDefBuilder_.dispose(); assetFileDefBuilder_ = null; assetFileDef_ = other.assetFileDef_; bitField0_ = (bitField0_ & ~0x00000004); assetFileDefBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAssetFileDefFieldBuilder() : null; } else { assetFileDefBuilder_.addAllMessages(other.assetFileDef_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.MetaGraphDef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.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_; private org.nd4j.shade.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 org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.MetaGraphDef.MetaInfoDef, org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.framework.MetaGraphDef.MetaInfoDefOrBuilder> getMetaInfoDefFieldBuilder() { if (metaInfoDefBuilder_ == null) { metaInfoDefBuilder_ = new org.nd4j.shade.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_; private org.nd4j.shade.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 org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.GraphDef, org.tensorflow.framework.GraphDef.Builder, org.tensorflow.framework.GraphDefOrBuilder> getGraphDefFieldBuilder() { if (graphDefBuilder_ == null) { graphDefBuilder_ = new org.nd4j.shade.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_; private org.nd4j.shade.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 org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.util.SaverDef, org.tensorflow.util.SaverDef.Builder, org.tensorflow.util.SaverDefOrBuilder> getSaverDefFieldBuilder() { if (saverDefBuilder_ == null) { saverDefBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.util.SaverDef, org.tensorflow.util.SaverDef.Builder, org.tensorflow.util.SaverDefOrBuilder>( getSaverDef(), getParentForChildren(), isClean()); saverDef_ = null; } return saverDefBuilder_; } private org.nd4j.shade.protobuf.MapField< java.lang.String, org.tensorflow.framework.CollectionDef> collectionDef_; private org.nd4j.shade.protobuf.MapField internalGetCollectionDef() { if (collectionDef_ == null) { return org.nd4j.shade.protobuf.MapField.emptyMapField( CollectionDefDefaultEntryHolder.defaultEntry); } return collectionDef_; } private org.nd4j.shade.protobuf.MapField internalGetMutableCollectionDef() { onChanged();; if (collectionDef_ == null) { collectionDef_ = org.nd4j.shade.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 org.nd4j.shade.protobuf.MapField< java.lang.String, org.tensorflow.framework.SignatureDef> signatureDef_; private org.nd4j.shade.protobuf.MapField internalGetSignatureDef() { if (signatureDef_ == null) { return org.nd4j.shade.protobuf.MapField.emptyMapField( SignatureDefDefaultEntryHolder.defaultEntry); } return signatureDef_; } private org.nd4j.shade.protobuf.MapField internalGetMutableSignatureDef() { onChanged();; if (signatureDef_ == null) { signatureDef_ = org.nd4j.shade.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_ & 0x00000004) != 0)) { assetFileDef_ = new java.util.ArrayList(assetFileDef_); bitField0_ |= 0x00000004; } } private org.nd4j.shade.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(); org.nd4j.shade.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_ & ~0x00000004); 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 org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.AssetFileDef, org.tensorflow.framework.AssetFileDef.Builder, org.tensorflow.framework.AssetFileDefOrBuilder> getAssetFileDefFieldBuilder() { if (assetFileDefBuilder_ == null) { assetFileDefBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.AssetFileDef, org.tensorflow.framework.AssetFileDef.Builder, org.tensorflow.framework.AssetFileDefOrBuilder>( assetFileDef_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); assetFileDef_ = null; } return assetFileDefBuilder_; } @java.lang.Override public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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 org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { @java.lang.Override public MetaGraphDef parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new MetaGraphDef(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tensorflow.framework.MetaGraphDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy