
tensorflow.CheckpointStateOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/python/training/checkpoint_state.proto
package tensorflow;
public final class CheckpointStateOuterClass {
private CheckpointStateOuterClass() {}
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 CheckpointStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.CheckpointState)
com.google.protobuf.MessageOrBuilder {
/**
*
* Path to the most-recent model checkpoint.
*
*
* string model_checkpoint_path = 1;
*/
java.lang.String getModelCheckpointPath();
/**
*
* Path to the most-recent model checkpoint.
*
*
* string model_checkpoint_path = 1;
*/
com.google.protobuf.ByteString
getModelCheckpointPathBytes();
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
java.util.List
getAllModelCheckpointPathsList();
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
int getAllModelCheckpointPathsCount();
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
java.lang.String getAllModelCheckpointPaths(int index);
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
com.google.protobuf.ByteString
getAllModelCheckpointPathsBytes(int index);
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
java.util.List getAllModelCheckpointTimestampsList();
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
int getAllModelCheckpointTimestampsCount();
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
double getAllModelCheckpointTimestamps(int index);
/**
*
* Unix timestamp indicating the creation time for the last preserved
* checkpoint.
*
*
* double last_preserved_timestamp = 4;
*/
double getLastPreservedTimestamp();
}
/**
*
* Protocol buffer representing the checkpoint state.
*
*
* Protobuf type {@code tensorflow.CheckpointState}
*/
public static final class CheckpointState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.CheckpointState)
CheckpointStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use CheckpointState.newBuilder() to construct.
private CheckpointState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CheckpointState() {
modelCheckpointPath_ = "";
allModelCheckpointPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
allModelCheckpointTimestamps_ = java.util.Collections.emptyList();
lastPreservedTimestamp_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CheckpointState(
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
modelCheckpointPath_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
allModelCheckpointPaths_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
allModelCheckpointPaths_.add(s);
break;
}
case 25: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
allModelCheckpointTimestamps_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
allModelCheckpointTimestamps_.add(input.readDouble());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
allModelCheckpointTimestamps_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
allModelCheckpointTimestamps_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
case 33: {
lastPreservedTimestamp_ = input.readDouble();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_ & 0x00000002) == 0x00000002)) {
allModelCheckpointPaths_ = allModelCheckpointPaths_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
allModelCheckpointTimestamps_ = java.util.Collections.unmodifiableList(allModelCheckpointTimestamps_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.CheckpointStateOuterClass.internal_static_tensorflow_CheckpointState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.CheckpointStateOuterClass.internal_static_tensorflow_CheckpointState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.CheckpointStateOuterClass.CheckpointState.class, tensorflow.CheckpointStateOuterClass.CheckpointState.Builder.class);
}
private int bitField0_;
public static final int MODEL_CHECKPOINT_PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object modelCheckpointPath_;
/**
*
* Path to the most-recent model checkpoint.
*
*
* string model_checkpoint_path = 1;
*/
public java.lang.String getModelCheckpointPath() {
java.lang.Object ref = modelCheckpointPath_;
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();
modelCheckpointPath_ = s;
return s;
}
}
/**
*
* Path to the most-recent model checkpoint.
*
*
* string model_checkpoint_path = 1;
*/
public com.google.protobuf.ByteString
getModelCheckpointPathBytes() {
java.lang.Object ref = modelCheckpointPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modelCheckpointPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALL_MODEL_CHECKPOINT_PATHS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList allModelCheckpointPaths_;
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public com.google.protobuf.ProtocolStringList
getAllModelCheckpointPathsList() {
return allModelCheckpointPaths_;
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public int getAllModelCheckpointPathsCount() {
return allModelCheckpointPaths_.size();
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public java.lang.String getAllModelCheckpointPaths(int index) {
return allModelCheckpointPaths_.get(index);
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public com.google.protobuf.ByteString
getAllModelCheckpointPathsBytes(int index) {
return allModelCheckpointPaths_.getByteString(index);
}
public static final int ALL_MODEL_CHECKPOINT_TIMESTAMPS_FIELD_NUMBER = 3;
private java.util.List allModelCheckpointTimestamps_;
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public java.util.List
getAllModelCheckpointTimestampsList() {
return allModelCheckpointTimestamps_;
}
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public int getAllModelCheckpointTimestampsCount() {
return allModelCheckpointTimestamps_.size();
}
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public double getAllModelCheckpointTimestamps(int index) {
return allModelCheckpointTimestamps_.get(index);
}
private int allModelCheckpointTimestampsMemoizedSerializedSize = -1;
public static final int LAST_PRESERVED_TIMESTAMP_FIELD_NUMBER = 4;
private double lastPreservedTimestamp_;
/**
*
* Unix timestamp indicating the creation time for the last preserved
* checkpoint.
*
*
* double last_preserved_timestamp = 4;
*/
public double getLastPreservedTimestamp() {
return lastPreservedTimestamp_;
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!getModelCheckpointPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelCheckpointPath_);
}
for (int i = 0; i < allModelCheckpointPaths_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allModelCheckpointPaths_.getRaw(i));
}
if (getAllModelCheckpointTimestampsList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(allModelCheckpointTimestampsMemoizedSerializedSize);
}
for (int i = 0; i < allModelCheckpointTimestamps_.size(); i++) {
output.writeDoubleNoTag(allModelCheckpointTimestamps_.get(i));
}
if (lastPreservedTimestamp_ != 0D) {
output.writeDouble(4, lastPreservedTimestamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getModelCheckpointPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, modelCheckpointPath_);
}
{
int dataSize = 0;
for (int i = 0; i < allModelCheckpointPaths_.size(); i++) {
dataSize += computeStringSizeNoTag(allModelCheckpointPaths_.getRaw(i));
}
size += dataSize;
size += 1 * getAllModelCheckpointPathsList().size();
}
{
int dataSize = 0;
dataSize = 8 * getAllModelCheckpointTimestampsList().size();
size += dataSize;
if (!getAllModelCheckpointTimestampsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
allModelCheckpointTimestampsMemoizedSerializedSize = dataSize;
}
if (lastPreservedTimestamp_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, lastPreservedTimestamp_);
}
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.CheckpointStateOuterClass.CheckpointState)) {
return super.equals(obj);
}
tensorflow.CheckpointStateOuterClass.CheckpointState other = (tensorflow.CheckpointStateOuterClass.CheckpointState) obj;
boolean result = true;
result = result && getModelCheckpointPath()
.equals(other.getModelCheckpointPath());
result = result && getAllModelCheckpointPathsList()
.equals(other.getAllModelCheckpointPathsList());
result = result && getAllModelCheckpointTimestampsList()
.equals(other.getAllModelCheckpointTimestampsList());
result = result && (
java.lang.Double.doubleToLongBits(getLastPreservedTimestamp())
== java.lang.Double.doubleToLongBits(
other.getLastPreservedTimestamp()));
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) + MODEL_CHECKPOINT_PATH_FIELD_NUMBER;
hash = (53 * hash) + getModelCheckpointPath().hashCode();
if (getAllModelCheckpointPathsCount() > 0) {
hash = (37 * hash) + ALL_MODEL_CHECKPOINT_PATHS_FIELD_NUMBER;
hash = (53 * hash) + getAllModelCheckpointPathsList().hashCode();
}
if (getAllModelCheckpointTimestampsCount() > 0) {
hash = (37 * hash) + ALL_MODEL_CHECKPOINT_TIMESTAMPS_FIELD_NUMBER;
hash = (53 * hash) + getAllModelCheckpointTimestampsList().hashCode();
}
hash = (37 * hash) + LAST_PRESERVED_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLastPreservedTimestamp()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState 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.CheckpointStateOuterClass.CheckpointState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState 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.CheckpointStateOuterClass.CheckpointState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(tensorflow.CheckpointStateOuterClass.CheckpointState 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Protocol buffer representing the checkpoint state.
*
*
* Protobuf type {@code tensorflow.CheckpointState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.CheckpointState)
tensorflow.CheckpointStateOuterClass.CheckpointStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.CheckpointStateOuterClass.internal_static_tensorflow_CheckpointState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.CheckpointStateOuterClass.internal_static_tensorflow_CheckpointState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.CheckpointStateOuterClass.CheckpointState.class, tensorflow.CheckpointStateOuterClass.CheckpointState.Builder.class);
}
// Construct using tensorflow.CheckpointStateOuterClass.CheckpointState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
modelCheckpointPath_ = "";
allModelCheckpointPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
allModelCheckpointTimestamps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
lastPreservedTimestamp_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.CheckpointStateOuterClass.internal_static_tensorflow_CheckpointState_descriptor;
}
@java.lang.Override
public tensorflow.CheckpointStateOuterClass.CheckpointState getDefaultInstanceForType() {
return tensorflow.CheckpointStateOuterClass.CheckpointState.getDefaultInstance();
}
@java.lang.Override
public tensorflow.CheckpointStateOuterClass.CheckpointState build() {
tensorflow.CheckpointStateOuterClass.CheckpointState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.CheckpointStateOuterClass.CheckpointState buildPartial() {
tensorflow.CheckpointStateOuterClass.CheckpointState result = new tensorflow.CheckpointStateOuterClass.CheckpointState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.modelCheckpointPath_ = modelCheckpointPath_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
allModelCheckpointPaths_ = allModelCheckpointPaths_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.allModelCheckpointPaths_ = allModelCheckpointPaths_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
allModelCheckpointTimestamps_ = java.util.Collections.unmodifiableList(allModelCheckpointTimestamps_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.allModelCheckpointTimestamps_ = allModelCheckpointTimestamps_;
result.lastPreservedTimestamp_ = lastPreservedTimestamp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.CheckpointStateOuterClass.CheckpointState) {
return mergeFrom((tensorflow.CheckpointStateOuterClass.CheckpointState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.CheckpointStateOuterClass.CheckpointState other) {
if (other == tensorflow.CheckpointStateOuterClass.CheckpointState.getDefaultInstance()) return this;
if (!other.getModelCheckpointPath().isEmpty()) {
modelCheckpointPath_ = other.modelCheckpointPath_;
onChanged();
}
if (!other.allModelCheckpointPaths_.isEmpty()) {
if (allModelCheckpointPaths_.isEmpty()) {
allModelCheckpointPaths_ = other.allModelCheckpointPaths_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAllModelCheckpointPathsIsMutable();
allModelCheckpointPaths_.addAll(other.allModelCheckpointPaths_);
}
onChanged();
}
if (!other.allModelCheckpointTimestamps_.isEmpty()) {
if (allModelCheckpointTimestamps_.isEmpty()) {
allModelCheckpointTimestamps_ = other.allModelCheckpointTimestamps_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAllModelCheckpointTimestampsIsMutable();
allModelCheckpointTimestamps_.addAll(other.allModelCheckpointTimestamps_);
}
onChanged();
}
if (other.getLastPreservedTimestamp() != 0D) {
setLastPreservedTimestamp(other.getLastPreservedTimestamp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.CheckpointStateOuterClass.CheckpointState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.CheckpointStateOuterClass.CheckpointState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object modelCheckpointPath_ = "";
/**
*
* Path to the most-recent model checkpoint.
*
*
* string model_checkpoint_path = 1;
*/
public java.lang.String getModelCheckpointPath() {
java.lang.Object ref = modelCheckpointPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
modelCheckpointPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Path to the most-recent model checkpoint.
*
*
* string model_checkpoint_path = 1;
*/
public com.google.protobuf.ByteString
getModelCheckpointPathBytes() {
java.lang.Object ref = modelCheckpointPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modelCheckpointPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Path to the most-recent model checkpoint.
*
*
* string model_checkpoint_path = 1;
*/
public Builder setModelCheckpointPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
modelCheckpointPath_ = value;
onChanged();
return this;
}
/**
*
* Path to the most-recent model checkpoint.
*
*
* string model_checkpoint_path = 1;
*/
public Builder clearModelCheckpointPath() {
modelCheckpointPath_ = getDefaultInstance().getModelCheckpointPath();
onChanged();
return this;
}
/**
*
* Path to the most-recent model checkpoint.
*
*
* string model_checkpoint_path = 1;
*/
public Builder setModelCheckpointPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
modelCheckpointPath_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList allModelCheckpointPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAllModelCheckpointPathsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
allModelCheckpointPaths_ = new com.google.protobuf.LazyStringArrayList(allModelCheckpointPaths_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public com.google.protobuf.ProtocolStringList
getAllModelCheckpointPathsList() {
return allModelCheckpointPaths_.getUnmodifiableView();
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public int getAllModelCheckpointPathsCount() {
return allModelCheckpointPaths_.size();
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public java.lang.String getAllModelCheckpointPaths(int index) {
return allModelCheckpointPaths_.get(index);
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public com.google.protobuf.ByteString
getAllModelCheckpointPathsBytes(int index) {
return allModelCheckpointPaths_.getByteString(index);
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public Builder setAllModelCheckpointPaths(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllModelCheckpointPathsIsMutable();
allModelCheckpointPaths_.set(index, value);
onChanged();
return this;
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public Builder addAllModelCheckpointPaths(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllModelCheckpointPathsIsMutable();
allModelCheckpointPaths_.add(value);
onChanged();
return this;
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public Builder addAllAllModelCheckpointPaths(
java.lang.Iterable values) {
ensureAllModelCheckpointPathsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, allModelCheckpointPaths_);
onChanged();
return this;
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public Builder clearAllModelCheckpointPaths() {
allModelCheckpointPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Paths to all not-yet-deleted model checkpoints, sorted from oldest to
* newest.
* Note that the value of model_checkpoint_path should be the last item in
* this list.
*
*
* repeated string all_model_checkpoint_paths = 2;
*/
public Builder addAllModelCheckpointPathsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAllModelCheckpointPathsIsMutable();
allModelCheckpointPaths_.add(value);
onChanged();
return this;
}
private java.util.List allModelCheckpointTimestamps_ = java.util.Collections.emptyList();
private void ensureAllModelCheckpointTimestampsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
allModelCheckpointTimestamps_ = new java.util.ArrayList(allModelCheckpointTimestamps_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public java.util.List
getAllModelCheckpointTimestampsList() {
return java.util.Collections.unmodifiableList(allModelCheckpointTimestamps_);
}
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public int getAllModelCheckpointTimestampsCount() {
return allModelCheckpointTimestamps_.size();
}
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public double getAllModelCheckpointTimestamps(int index) {
return allModelCheckpointTimestamps_.get(index);
}
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public Builder setAllModelCheckpointTimestamps(
int index, double value) {
ensureAllModelCheckpointTimestampsIsMutable();
allModelCheckpointTimestamps_.set(index, value);
onChanged();
return this;
}
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public Builder addAllModelCheckpointTimestamps(double value) {
ensureAllModelCheckpointTimestampsIsMutable();
allModelCheckpointTimestamps_.add(value);
onChanged();
return this;
}
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public Builder addAllAllModelCheckpointTimestamps(
java.lang.Iterable extends java.lang.Double> values) {
ensureAllModelCheckpointTimestampsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, allModelCheckpointTimestamps_);
onChanged();
return this;
}
/**
*
* Unix timestamps corresponding to all_model_checkpoint_paths, indicating
* when each checkpoint was created.
*
*
* repeated double all_model_checkpoint_timestamps = 3;
*/
public Builder clearAllModelCheckpointTimestamps() {
allModelCheckpointTimestamps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private double lastPreservedTimestamp_ ;
/**
*
* Unix timestamp indicating the creation time for the last preserved
* checkpoint.
*
*
* double last_preserved_timestamp = 4;
*/
public double getLastPreservedTimestamp() {
return lastPreservedTimestamp_;
}
/**
*
* Unix timestamp indicating the creation time for the last preserved
* checkpoint.
*
*
* double last_preserved_timestamp = 4;
*/
public Builder setLastPreservedTimestamp(double value) {
lastPreservedTimestamp_ = value;
onChanged();
return this;
}
/**
*
* Unix timestamp indicating the creation time for the last preserved
* checkpoint.
*
*
* double last_preserved_timestamp = 4;
*/
public Builder clearLastPreservedTimestamp() {
lastPreservedTimestamp_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.CheckpointState)
}
// @@protoc_insertion_point(class_scope:tensorflow.CheckpointState)
private static final tensorflow.CheckpointStateOuterClass.CheckpointState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.CheckpointStateOuterClass.CheckpointState();
}
public static tensorflow.CheckpointStateOuterClass.CheckpointState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CheckpointState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CheckpointState(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.CheckpointStateOuterClass.CheckpointState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_CheckpointState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_CheckpointState_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n1tensorflow/python/training/checkpoint_" +
"state.proto\022\ntensorflow\"\237\001\n\017CheckpointSt" +
"ate\022\035\n\025model_checkpoint_path\030\001 \001(\t\022\"\n\032al" +
"l_model_checkpoint_paths\030\002 \003(\t\022\'\n\037all_mo" +
"del_checkpoint_timestamps\030\003 \003(\001\022 \n\030last_" +
"preserved_timestamp\030\004 \001(\001B\003\370\001\001b\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[] {
}, assigner);
internal_static_tensorflow_CheckpointState_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tensorflow_CheckpointState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_CheckpointState_descriptor,
new java.lang.String[] { "ModelCheckpointPath", "AllModelCheckpointPaths", "AllModelCheckpointTimestamps", "LastPreservedTimestamp", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy