tensorflow.data.experimental.Snapshot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto Show documentation
Show all versions of proto Show documentation
Java API for TensorFlow protocol buffers.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/data/experimental/snapshot.proto
package tensorflow.data.experimental;
public final class Snapshot {
private Snapshot() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface SnapshotRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.SnapshotRecord)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
java.util.List
getTensorList();
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
org.tensorflow.framework.TensorProto getTensor(int index);
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
int getTensorCount();
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
java.util.List extends org.tensorflow.framework.TensorProtoOrBuilder>
getTensorOrBuilderList();
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder(
int index);
}
/**
*
* Each SnapshotRecord represents one batch of pre-processed input data. A batch
* consists of a list of tensors that we encode as TensorProtos. This message
* doesn't store the structure of the batch.
*
*
* Protobuf type {@code tensorflow.data.experimental.SnapshotRecord}
*/
public static final class SnapshotRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.data.experimental.SnapshotRecord)
SnapshotRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapshotRecord.newBuilder() to construct.
private SnapshotRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapshotRecord() {
tensor_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapshotRecord(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.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 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tensor_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tensor_.add(
input.readMessage(org.tensorflow.framework.TensorProto.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
tensor_ = java.util.Collections.unmodifiableList(tensor_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.data.experimental.Snapshot.SnapshotRecord.class, tensorflow.data.experimental.Snapshot.SnapshotRecord.Builder.class);
}
public static final int TENSOR_FIELD_NUMBER = 1;
private java.util.List tensor_;
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public java.util.List getTensorList() {
return tensor_;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public java.util.List extends org.tensorflow.framework.TensorProtoOrBuilder>
getTensorOrBuilderList() {
return tensor_;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public int getTensorCount() {
return tensor_.size();
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public org.tensorflow.framework.TensorProto getTensor(int index) {
return tensor_.get(index);
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder(
int index) {
return tensor_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < tensor_.size(); i++) {
output.writeMessage(1, tensor_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < tensor_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, tensor_.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 tensorflow.data.experimental.Snapshot.SnapshotRecord)) {
return super.equals(obj);
}
tensorflow.data.experimental.Snapshot.SnapshotRecord other = (tensorflow.data.experimental.Snapshot.SnapshotRecord) obj;
boolean result = true;
result = result && getTensorList()
.equals(other.getTensorList());
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();
if (getTensorCount() > 0) {
hash = (37 * hash) + TENSOR_FIELD_NUMBER;
hash = (53 * hash) + getTensorList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord 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 tensorflow.data.experimental.Snapshot.SnapshotRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord 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 tensorflow.data.experimental.Snapshot.SnapshotRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord 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(tensorflow.data.experimental.Snapshot.SnapshotRecord 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 SnapshotRecord represents one batch of pre-processed input data. A batch
* consists of a list of tensors that we encode as TensorProtos. This message
* doesn't store the structure of the batch.
*
*
* Protobuf type {@code tensorflow.data.experimental.SnapshotRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.SnapshotRecord)
tensorflow.data.experimental.Snapshot.SnapshotRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.data.experimental.Snapshot.SnapshotRecord.class, tensorflow.data.experimental.Snapshot.SnapshotRecord.Builder.class);
}
// Construct using tensorflow.data.experimental.Snapshot.SnapshotRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTensorFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (tensorBuilder_ == null) {
tensor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
tensorBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor;
}
public tensorflow.data.experimental.Snapshot.SnapshotRecord getDefaultInstanceForType() {
return tensorflow.data.experimental.Snapshot.SnapshotRecord.getDefaultInstance();
}
public tensorflow.data.experimental.Snapshot.SnapshotRecord build() {
tensorflow.data.experimental.Snapshot.SnapshotRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public tensorflow.data.experimental.Snapshot.SnapshotRecord buildPartial() {
tensorflow.data.experimental.Snapshot.SnapshotRecord result = new tensorflow.data.experimental.Snapshot.SnapshotRecord(this);
int from_bitField0_ = bitField0_;
if (tensorBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
tensor_ = java.util.Collections.unmodifiableList(tensor_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tensor_ = tensor_;
} else {
result.tensor_ = tensorBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.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, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.data.experimental.Snapshot.SnapshotRecord) {
return mergeFrom((tensorflow.data.experimental.Snapshot.SnapshotRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.data.experimental.Snapshot.SnapshotRecord other) {
if (other == tensorflow.data.experimental.Snapshot.SnapshotRecord.getDefaultInstance()) return this;
if (tensorBuilder_ == null) {
if (!other.tensor_.isEmpty()) {
if (tensor_.isEmpty()) {
tensor_ = other.tensor_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTensorIsMutable();
tensor_.addAll(other.tensor_);
}
onChanged();
}
} else {
if (!other.tensor_.isEmpty()) {
if (tensorBuilder_.isEmpty()) {
tensorBuilder_.dispose();
tensorBuilder_ = null;
tensor_ = other.tensor_;
bitField0_ = (bitField0_ & ~0x00000001);
tensorBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTensorFieldBuilder() : null;
} else {
tensorBuilder_.addAllMessages(other.tensor_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
tensorflow.data.experimental.Snapshot.SnapshotRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.data.experimental.Snapshot.SnapshotRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List tensor_ =
java.util.Collections.emptyList();
private void ensureTensorIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
tensor_ = new java.util.ArrayList(tensor_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> tensorBuilder_;
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public java.util.List getTensorList() {
if (tensorBuilder_ == null) {
return java.util.Collections.unmodifiableList(tensor_);
} else {
return tensorBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public int getTensorCount() {
if (tensorBuilder_ == null) {
return tensor_.size();
} else {
return tensorBuilder_.getCount();
}
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public org.tensorflow.framework.TensorProto getTensor(int index) {
if (tensorBuilder_ == null) {
return tensor_.get(index);
} else {
return tensorBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public Builder setTensor(
int index, org.tensorflow.framework.TensorProto value) {
if (tensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTensorIsMutable();
tensor_.set(index, value);
onChanged();
} else {
tensorBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public Builder setTensor(
int index, org.tensorflow.framework.TensorProto.Builder builderForValue) {
if (tensorBuilder_ == null) {
ensureTensorIsMutable();
tensor_.set(index, builderForValue.build());
onChanged();
} else {
tensorBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public Builder addTensor(org.tensorflow.framework.TensorProto value) {
if (tensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTensorIsMutable();
tensor_.add(value);
onChanged();
} else {
tensorBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public Builder addTensor(
int index, org.tensorflow.framework.TensorProto value) {
if (tensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTensorIsMutable();
tensor_.add(index, value);
onChanged();
} else {
tensorBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public Builder addTensor(
org.tensorflow.framework.TensorProto.Builder builderForValue) {
if (tensorBuilder_ == null) {
ensureTensorIsMutable();
tensor_.add(builderForValue.build());
onChanged();
} else {
tensorBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public Builder addTensor(
int index, org.tensorflow.framework.TensorProto.Builder builderForValue) {
if (tensorBuilder_ == null) {
ensureTensorIsMutable();
tensor_.add(index, builderForValue.build());
onChanged();
} else {
tensorBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public Builder addAllTensor(
java.lang.Iterable extends org.tensorflow.framework.TensorProto> values) {
if (tensorBuilder_ == null) {
ensureTensorIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tensor_);
onChanged();
} else {
tensorBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public Builder clearTensor() {
if (tensorBuilder_ == null) {
tensor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
tensorBuilder_.clear();
}
return this;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public Builder removeTensor(int index) {
if (tensorBuilder_ == null) {
ensureTensorIsMutable();
tensor_.remove(index);
onChanged();
} else {
tensorBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public org.tensorflow.framework.TensorProto.Builder getTensorBuilder(
int index) {
return getTensorFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public org.tensorflow.framework.TensorProtoOrBuilder getTensorOrBuilder(
int index) {
if (tensorBuilder_ == null) {
return tensor_.get(index); } else {
return tensorBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public java.util.List extends org.tensorflow.framework.TensorProtoOrBuilder>
getTensorOrBuilderList() {
if (tensorBuilder_ != null) {
return tensorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tensor_);
}
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public org.tensorflow.framework.TensorProto.Builder addTensorBuilder() {
return getTensorFieldBuilder().addBuilder(
org.tensorflow.framework.TensorProto.getDefaultInstance());
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public org.tensorflow.framework.TensorProto.Builder addTensorBuilder(
int index) {
return getTensorFieldBuilder().addBuilder(
index, org.tensorflow.framework.TensorProto.getDefaultInstance());
}
/**
* repeated .tensorflow.TensorProto tensor = 1;
*/
public java.util.List
getTensorBuilderList() {
return getTensorFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>
getTensorFieldBuilder() {
if (tensorBuilder_ == null) {
tensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>(
tensor_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
tensor_ = null;
}
return tensorBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.data.experimental.SnapshotRecord)
}
// @@protoc_insertion_point(class_scope:tensorflow.data.experimental.SnapshotRecord)
private static final tensorflow.data.experimental.Snapshot.SnapshotRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.data.experimental.Snapshot.SnapshotRecord();
}
public static tensorflow.data.experimental.Snapshot.SnapshotRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SnapshotRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapshotRecord(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public tensorflow.data.experimental.Snapshot.SnapshotRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SnapshotMetadataRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.SnapshotMetadataRecord)
com.google.protobuf.MessageOrBuilder {
/**
* string graph_fingerprint = 1;
*/
java.lang.String getGraphFingerprint();
/**
* string graph_fingerprint = 1;
*/
com.google.protobuf.ByteString
getGraphFingerprintBytes();
/**
* string run_id = 2;
*/
java.lang.String getRunId();
/**
* string run_id = 2;
*/
com.google.protobuf.ByteString
getRunIdBytes();
/**
* int64 creation_timestamp = 3;
*/
long getCreationTimestamp();
/**
* bool finalized = 1000;
*/
boolean getFinalized();
}
/**
*
* This stores the metadata information present in each snapshot record.
*
*
* Protobuf type {@code tensorflow.data.experimental.SnapshotMetadataRecord}
*/
public static final class SnapshotMetadataRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.data.experimental.SnapshotMetadataRecord)
SnapshotMetadataRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapshotMetadataRecord.newBuilder() to construct.
private SnapshotMetadataRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapshotMetadataRecord() {
graphFingerprint_ = "";
runId_ = "";
creationTimestamp_ = 0L;
finalized_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SnapshotMetadataRecord(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.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 10: {
java.lang.String s = input.readStringRequireUtf8();
graphFingerprint_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
runId_ = s;
break;
}
case 24: {
creationTimestamp_ = input.readInt64();
break;
}
case 8000: {
finalized_ = input.readBool();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord.class, tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord.Builder.class);
}
public static final int GRAPH_FINGERPRINT_FIELD_NUMBER = 1;
private volatile java.lang.Object graphFingerprint_;
/**
* string graph_fingerprint = 1;
*/
public java.lang.String getGraphFingerprint() {
java.lang.Object ref = graphFingerprint_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
graphFingerprint_ = s;
return s;
}
}
/**
* string graph_fingerprint = 1;
*/
public com.google.protobuf.ByteString
getGraphFingerprintBytes() {
java.lang.Object ref = graphFingerprint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
graphFingerprint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RUN_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object runId_;
/**
* string run_id = 2;
*/
public java.lang.String getRunId() {
java.lang.Object ref = runId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
runId_ = s;
return s;
}
}
/**
* string run_id = 2;
*/
public com.google.protobuf.ByteString
getRunIdBytes() {
java.lang.Object ref = runId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 3;
private long creationTimestamp_;
/**
* int64 creation_timestamp = 3;
*/
public long getCreationTimestamp() {
return creationTimestamp_;
}
public static final int FINALIZED_FIELD_NUMBER = 1000;
private boolean finalized_;
/**
* bool finalized = 1000;
*/
public boolean getFinalized() {
return finalized_;
}
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 (!getGraphFingerprintBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, graphFingerprint_);
}
if (!getRunIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runId_);
}
if (creationTimestamp_ != 0L) {
output.writeInt64(3, creationTimestamp_);
}
if (finalized_ != false) {
output.writeBool(1000, finalized_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getGraphFingerprintBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, graphFingerprint_);
}
if (!getRunIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runId_);
}
if (creationTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, creationTimestamp_);
}
if (finalized_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1000, finalized_);
}
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 tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord)) {
return super.equals(obj);
}
tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord other = (tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord) obj;
boolean result = true;
result = result && getGraphFingerprint()
.equals(other.getGraphFingerprint());
result = result && getRunId()
.equals(other.getRunId());
result = result && (getCreationTimestamp()
== other.getCreationTimestamp());
result = result && (getFinalized()
== other.getFinalized());
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) + GRAPH_FINGERPRINT_FIELD_NUMBER;
hash = (53 * hash) + getGraphFingerprint().hashCode();
hash = (37 * hash) + RUN_ID_FIELD_NUMBER;
hash = (53 * hash) + getRunId().hashCode();
hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreationTimestamp());
hash = (37 * hash) + FINALIZED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFinalized());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord 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 tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord 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 tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord 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(tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord 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;
}
/**
*
* This stores the metadata information present in each snapshot record.
*
*
* Protobuf type {@code tensorflow.data.experimental.SnapshotMetadataRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.SnapshotMetadataRecord)
tensorflow.data.experimental.Snapshot.SnapshotMetadataRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord.class, tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord.Builder.class);
}
// Construct using tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord.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();
graphFingerprint_ = "";
runId_ = "";
creationTimestamp_ = 0L;
finalized_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor;
}
public tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord getDefaultInstanceForType() {
return tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord.getDefaultInstance();
}
public tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord build() {
tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord buildPartial() {
tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord result = new tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord(this);
result.graphFingerprint_ = graphFingerprint_;
result.runId_ = runId_;
result.creationTimestamp_ = creationTimestamp_;
result.finalized_ = finalized_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.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, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord) {
return mergeFrom((tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord other) {
if (other == tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord.getDefaultInstance()) return this;
if (!other.getGraphFingerprint().isEmpty()) {
graphFingerprint_ = other.graphFingerprint_;
onChanged();
}
if (!other.getRunId().isEmpty()) {
runId_ = other.runId_;
onChanged();
}
if (other.getCreationTimestamp() != 0L) {
setCreationTimestamp(other.getCreationTimestamp());
}
if (other.getFinalized() != false) {
setFinalized(other.getFinalized());
}
this.mergeUnknownFields(other.unknownFields);
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 {
tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object graphFingerprint_ = "";
/**
* string graph_fingerprint = 1;
*/
public java.lang.String getGraphFingerprint() {
java.lang.Object ref = graphFingerprint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
graphFingerprint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string graph_fingerprint = 1;
*/
public com.google.protobuf.ByteString
getGraphFingerprintBytes() {
java.lang.Object ref = graphFingerprint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
graphFingerprint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string graph_fingerprint = 1;
*/
public Builder setGraphFingerprint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
graphFingerprint_ = value;
onChanged();
return this;
}
/**
* string graph_fingerprint = 1;
*/
public Builder clearGraphFingerprint() {
graphFingerprint_ = getDefaultInstance().getGraphFingerprint();
onChanged();
return this;
}
/**
* string graph_fingerprint = 1;
*/
public Builder setGraphFingerprintBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
graphFingerprint_ = value;
onChanged();
return this;
}
private java.lang.Object runId_ = "";
/**
* string run_id = 2;
*/
public java.lang.String getRunId() {
java.lang.Object ref = runId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
runId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string run_id = 2;
*/
public com.google.protobuf.ByteString
getRunIdBytes() {
java.lang.Object ref = runId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string run_id = 2;
*/
public Builder setRunId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
runId_ = value;
onChanged();
return this;
}
/**
* string run_id = 2;
*/
public Builder clearRunId() {
runId_ = getDefaultInstance().getRunId();
onChanged();
return this;
}
/**
* string run_id = 2;
*/
public Builder setRunIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
runId_ = value;
onChanged();
return this;
}
private long creationTimestamp_ ;
/**
* int64 creation_timestamp = 3;
*/
public long getCreationTimestamp() {
return creationTimestamp_;
}
/**
* int64 creation_timestamp = 3;
*/
public Builder setCreationTimestamp(long value) {
creationTimestamp_ = value;
onChanged();
return this;
}
/**
* int64 creation_timestamp = 3;
*/
public Builder clearCreationTimestamp() {
creationTimestamp_ = 0L;
onChanged();
return this;
}
private boolean finalized_ ;
/**
* bool finalized = 1000;
*/
public boolean getFinalized() {
return finalized_;
}
/**
* bool finalized = 1000;
*/
public Builder setFinalized(boolean value) {
finalized_ = value;
onChanged();
return this;
}
/**
* bool finalized = 1000;
*/
public Builder clearFinalized() {
finalized_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.data.experimental.SnapshotMetadataRecord)
}
// @@protoc_insertion_point(class_scope:tensorflow.data.experimental.SnapshotMetadataRecord)
private static final tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord();
}
public static tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SnapshotMetadataRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SnapshotMetadataRecord(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public tensorflow.data.experimental.Snapshot.SnapshotMetadataRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n9tensorflow/core/protobuf/data/experime" +
"ntal/snapshot.proto\022\034tensorflow.data.exp" +
"erimental\032&tensorflow/core/framework/ten" +
"sor.proto\"9\n\016SnapshotRecord\022\'\n\006tensor\030\001 " +
"\003(\0132\027.tensorflow.TensorProto\"s\n\026Snapshot" +
"MetadataRecord\022\031\n\021graph_fingerprint\030\001 \001(" +
"\t\022\016\n\006run_id\030\002 \001(\t\022\032\n\022creation_timestamp\030" +
"\003 \001(\003\022\022\n\tfinalized\030\350\007 \001(\010b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.tensorflow.framework.TensorProtos.getDescriptor(),
}, assigner);
internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor,
new java.lang.String[] { "Tensor", });
internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor,
new java.lang.String[] { "GraphFingerprint", "RunId", "CreationTimestamp", "Finalized", });
org.tensorflow.framework.TensorProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}