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/util/saved_tensor_slice.proto
package org.tensorflow.util;
/**
*
* Each record in a v3 checkpoint file is a serialized SavedTensorSlices
* message.
*
*
* Protobuf type {@code tensorflow.SavedTensorSlices}
*/
public final class SavedTensorSlices extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.SavedTensorSlices)
SavedTensorSlicesOrBuilder {
// Use SavedTensorSlices.newBuilder() to construct.
private SavedTensorSlices(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private SavedTensorSlices() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private SavedTensorSlices(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
org.tensorflow.util.SavedTensorSliceMeta.Builder subBuilder = null;
if (meta_ != null) {
subBuilder = meta_.toBuilder();
}
meta_ = input.readMessage(org.tensorflow.util.SavedTensorSliceMeta.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(meta_);
meta_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.tensorflow.util.SavedSlice.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(org.tensorflow.util.SavedSlice.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.SavedTensorSlices.class, org.tensorflow.util.SavedTensorSlices.Builder.class);
}
public static final int META_FIELD_NUMBER = 1;
private org.tensorflow.util.SavedTensorSliceMeta meta_;
/**
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
*
* .tensorflow.SavedTensorSliceMeta meta = 1;
*/
public boolean hasMeta() {
return meta_ != null;
}
/**
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
*
* .tensorflow.SavedTensorSliceMeta meta = 1;
*/
public org.tensorflow.util.SavedTensorSliceMetaOrBuilder getMetaOrBuilder() {
return getMeta();
}
public static final int DATA_FIELD_NUMBER = 2;
private org.tensorflow.util.SavedSlice data_;
/**
*
* This exists in all but the first item of each checkpoint file.
*
*
* .tensorflow.SavedSlice data = 2;
*/
public boolean hasData() {
return data_ != null;
}
/**
*
* This exists in all but the first item of each checkpoint file.
*
* This exists in all but the first item of each checkpoint file.
*
*
* .tensorflow.SavedSlice data = 2;
*/
public org.tensorflow.util.SavedSliceOrBuilder getDataOrBuilder() {
return getData();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (meta_ != null) {
output.writeMessage(1, getMeta());
}
if (data_ != null) {
output.writeMessage(2, getData());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (meta_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMeta());
}
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getData());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.util.SavedTensorSlices)) {
return super.equals(obj);
}
org.tensorflow.util.SavedTensorSlices other = (org.tensorflow.util.SavedTensorSlices) obj;
boolean result = true;
result = result && (hasMeta() == other.hasMeta());
if (hasMeta()) {
result = result && getMeta()
.equals(other.getMeta());
}
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMeta()) {
hash = (37 * hash) + META_FIELD_NUMBER;
hash = (53 * hash) + getMeta().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.util.SavedTensorSlices parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.util.SavedTensorSlices parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.util.SavedTensorSlices parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.util.SavedTensorSlices prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Each record in a v3 checkpoint file is a serialized SavedTensorSlices
* message.
*
*
* Protobuf type {@code tensorflow.SavedTensorSlices}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.SavedTensorSlices)
org.tensorflow.util.SavedTensorSlicesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.util.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.util.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.util.SavedTensorSlices.class, org.tensorflow.util.SavedTensorSlices.Builder.class);
}
// Construct using org.tensorflow.util.SavedTensorSlices.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (metaBuilder_ == null) {
meta_ = null;
} else {
meta_ = null;
metaBuilder_ = null;
}
if (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.util.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_descriptor;
}
public org.tensorflow.util.SavedTensorSlices getDefaultInstanceForType() {
return org.tensorflow.util.SavedTensorSlices.getDefaultInstance();
}
public org.tensorflow.util.SavedTensorSlices build() {
org.tensorflow.util.SavedTensorSlices result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.util.SavedTensorSlices buildPartial() {
org.tensorflow.util.SavedTensorSlices result = new org.tensorflow.util.SavedTensorSlices(this);
if (metaBuilder_ == null) {
result.meta_ = meta_;
} else {
result.meta_ = metaBuilder_.build();
}
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tensorflow.util.SavedTensorSlices) {
return mergeFrom((org.tensorflow.util.SavedTensorSlices)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.util.SavedTensorSlices other) {
if (other == org.tensorflow.util.SavedTensorSlices.getDefaultInstance()) return this;
if (other.hasMeta()) {
mergeMeta(other.getMeta());
}
if (other.hasData()) {
mergeData(other.getData());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.util.SavedTensorSlices parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.util.SavedTensorSlices) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.tensorflow.util.SavedTensorSliceMeta meta_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.tensorflow.util.SavedTensorSliceMeta, org.tensorflow.util.SavedTensorSliceMeta.Builder, org.tensorflow.util.SavedTensorSliceMetaOrBuilder> metaBuilder_;
/**
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
*
* .tensorflow.SavedTensorSliceMeta meta = 1;
*/
public Builder setMeta(org.tensorflow.util.SavedTensorSliceMeta value) {
if (metaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
meta_ = value;
onChanged();
} else {
metaBuilder_.setMessage(value);
}
return this;
}
/**
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
*
* .tensorflow.SavedTensorSliceMeta meta = 1;
*/
public org.tensorflow.util.SavedTensorSliceMeta.Builder getMetaBuilder() {
onChanged();
return getMetaFieldBuilder().getBuilder();
}
/**
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*
* This is only present at the first item of each checkpoint file and serves
* as a table of contents, listing all the tensor slices saved in this file.
*