Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/saved_model.proto
package org.tensorflow.framework;
/**
*
* SavedModel is the high level serialization format for TensorFlow Models.
* See [todo: doc links, similar to session_bundle] for more information.
*
*
* Protobuf type {@code tensorflow.SavedModel}
*/
public final class SavedModel extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.SavedModel)
SavedModelOrBuilder {
private static final long serialVersionUID = 0L;
// Use SavedModel.newBuilder() to construct.
private SavedModel(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SavedModel() {
savedModelSchemaVersion_ = 0L;
metaGraphs_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SavedModel(
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
savedModelSchemaVersion_ = input.readInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
metaGraphs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
metaGraphs_.add(
input.readMessage(org.tensorflow.framework.MetaGraphDef.parser(), extensionRegistry));
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_ & 0x00000002) == 0x00000002)) {
metaGraphs_ = java.util.Collections.unmodifiableList(metaGraphs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_descriptor;
}
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.SavedModel.class, org.tensorflow.framework.SavedModel.Builder.class);
}
private int bitField0_;
public static final int SAVED_MODEL_SCHEMA_VERSION_FIELD_NUMBER = 1;
private long savedModelSchemaVersion_;
/**
*
* The schema version of the SavedModel instance. Used for versioning when
* making future changes to the specification/implementation. Initial value
* at release will be 1.
*
*
* int64 saved_model_schema_version = 1;
*/
public long getSavedModelSchemaVersion() {
return savedModelSchemaVersion_;
}
public static final int META_GRAPHS_FIELD_NUMBER = 2;
private java.util.List metaGraphs_;
/**
*
*
* repeated .tensorflow.MetaGraphDef meta_graphs = 2;
*/
public org.tensorflow.framework.MetaGraphDefOrBuilder getMetaGraphsOrBuilder(
int index) {
return metaGraphs_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (savedModelSchemaVersion_ != 0L) {
output.writeInt64(1, savedModelSchemaVersion_);
}
for (int i = 0; i < metaGraphs_.size(); i++) {
output.writeMessage(2, metaGraphs_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (savedModelSchemaVersion_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(1, savedModelSchemaVersion_);
}
for (int i = 0; i < metaGraphs_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, metaGraphs_.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.SavedModel)) {
return super.equals(obj);
}
org.tensorflow.framework.SavedModel other = (org.tensorflow.framework.SavedModel) obj;
boolean result = true;
result = result && (getSavedModelSchemaVersion()
== other.getSavedModelSchemaVersion());
result = result && getMetaGraphsList()
.equals(other.getMetaGraphsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SAVED_MODEL_SCHEMA_VERSION_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getSavedModelSchemaVersion());
if (getMetaGraphsCount() > 0) {
hash = (37 * hash) + META_GRAPHS_FIELD_NUMBER;
hash = (53 * hash) + getMetaGraphsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.SavedModel parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.SavedModel 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.SavedModel parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.SavedModel 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.SavedModel parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.SavedModel 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.SavedModel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.SavedModel 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.SavedModel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.SavedModel 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.SavedModel 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.SavedModel 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);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.SavedModel prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* SavedModel is the high level serialization format for TensorFlow Models.
* See [todo: doc links, similar to session_bundle] for more information.
*
*
* Protobuf type {@code tensorflow.SavedModel}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.SavedModel)
org.tensorflow.framework.SavedModelOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_descriptor;
}
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.SavedModel.class, org.tensorflow.framework.SavedModel.Builder.class);
}
// Construct using org.tensorflow.framework.SavedModel.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) {
getMetaGraphsFieldBuilder();
}
}
public Builder clear() {
super.clear();
savedModelSchemaVersion_ = 0L;
if (metaGraphsBuilder_ == null) {
metaGraphs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
metaGraphsBuilder_.clear();
}
return this;
}
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_descriptor;
}
public org.tensorflow.framework.SavedModel getDefaultInstanceForType() {
return org.tensorflow.framework.SavedModel.getDefaultInstance();
}
public org.tensorflow.framework.SavedModel build() {
org.tensorflow.framework.SavedModel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.SavedModel buildPartial() {
org.tensorflow.framework.SavedModel result = new org.tensorflow.framework.SavedModel(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.savedModelSchemaVersion_ = savedModelSchemaVersion_;
if (metaGraphsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
metaGraphs_ = java.util.Collections.unmodifiableList(metaGraphs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.metaGraphs_ = metaGraphs_;
} else {
result.metaGraphs_ = metaGraphsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) {
if (other instanceof org.tensorflow.framework.SavedModel) {
return mergeFrom((org.tensorflow.framework.SavedModel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.SavedModel other) {
if (other == org.tensorflow.framework.SavedModel.getDefaultInstance()) return this;
if (other.getSavedModelSchemaVersion() != 0L) {
setSavedModelSchemaVersion(other.getSavedModelSchemaVersion());
}
if (metaGraphsBuilder_ == null) {
if (!other.metaGraphs_.isEmpty()) {
if (metaGraphs_.isEmpty()) {
metaGraphs_ = other.metaGraphs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMetaGraphsIsMutable();
metaGraphs_.addAll(other.metaGraphs_);
}
onChanged();
}
} else {
if (!other.metaGraphs_.isEmpty()) {
if (metaGraphsBuilder_.isEmpty()) {
metaGraphsBuilder_.dispose();
metaGraphsBuilder_ = null;
metaGraphs_ = other.metaGraphs_;
bitField0_ = (bitField0_ & ~0x00000002);
metaGraphsBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMetaGraphsFieldBuilder() : null;
} else {
metaGraphsBuilder_.addAllMessages(other.metaGraphs_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.SavedModel parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.SavedModel) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long savedModelSchemaVersion_ ;
/**
*
* The schema version of the SavedModel instance. Used for versioning when
* making future changes to the specification/implementation. Initial value
* at release will be 1.
*
*
* int64 saved_model_schema_version = 1;
*/
public long getSavedModelSchemaVersion() {
return savedModelSchemaVersion_;
}
/**
*
* The schema version of the SavedModel instance. Used for versioning when
* making future changes to the specification/implementation. Initial value
* at release will be 1.
*
* The schema version of the SavedModel instance. Used for versioning when
* making future changes to the specification/implementation. Initial value
* at release will be 1.
*