org.tensorflow.framework.SaveSliceInfoDef 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.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/variable.proto
package org.tensorflow.framework;
/**
* Protobuf type {@code tensorflow.SaveSliceInfoDef}
*/
public final class SaveSliceInfoDef extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.SaveSliceInfoDef)
SaveSliceInfoDefOrBuilder {
private static final long serialVersionUID = 0L;
// Use SaveSliceInfoDef.newBuilder() to construct.
private SaveSliceInfoDef(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SaveSliceInfoDef() {
fullName_ = "";
fullShape_ = java.util.Collections.emptyList();
varOffset_ = java.util.Collections.emptyList();
varShape_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SaveSliceInfoDef(
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();
fullName_ = s;
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
fullShape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
fullShape_.add(input.readInt64());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
fullShape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
fullShape_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
varOffset_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
varOffset_.add(input.readInt64());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
varOffset_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
varOffset_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
varShape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
varShape_.add(input.readInt64());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
varShape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
varShape_.add(input.readInt64());
}
input.popLimit(limit);
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)) {
fullShape_ = java.util.Collections.unmodifiableList(fullShape_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
varOffset_ = java.util.Collections.unmodifiableList(varOffset_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
varShape_ = java.util.Collections.unmodifiableList(varShape_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.SaveSliceInfoDef.class, org.tensorflow.framework.SaveSliceInfoDef.Builder.class);
}
private int bitField0_;
public static final int FULL_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object fullName_;
/**
*
* Name of the full variable of which this is a slice.
*
*
* string full_name = 1;
*/
public java.lang.String getFullName() {
java.lang.Object ref = fullName_;
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();
fullName_ = s;
return s;
}
}
/**
*
* Name of the full variable of which this is a slice.
*
*
* string full_name = 1;
*/
public com.google.protobuf.ByteString
getFullNameBytes() {
java.lang.Object ref = fullName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fullName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FULL_SHAPE_FIELD_NUMBER = 2;
private java.util.List fullShape_;
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public java.util.List
getFullShapeList() {
return fullShape_;
}
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public int getFullShapeCount() {
return fullShape_.size();
}
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public long getFullShape(int index) {
return fullShape_.get(index);
}
private int fullShapeMemoizedSerializedSize = -1;
public static final int VAR_OFFSET_FIELD_NUMBER = 3;
private java.util.List varOffset_;
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public java.util.List
getVarOffsetList() {
return varOffset_;
}
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public int getVarOffsetCount() {
return varOffset_.size();
}
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public long getVarOffset(int index) {
return varOffset_.get(index);
}
private int varOffsetMemoizedSerializedSize = -1;
public static final int VAR_SHAPE_FIELD_NUMBER = 4;
private java.util.List varShape_;
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public java.util.List
getVarShapeList() {
return varShape_;
}
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public int getVarShapeCount() {
return varShape_.size();
}
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public long getVarShape(int index) {
return varShape_.get(index);
}
private int varShapeMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (!getFullNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullName_);
}
if (getFullShapeList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(fullShapeMemoizedSerializedSize);
}
for (int i = 0; i < fullShape_.size(); i++) {
output.writeInt64NoTag(fullShape_.get(i));
}
if (getVarOffsetList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(varOffsetMemoizedSerializedSize);
}
for (int i = 0; i < varOffset_.size(); i++) {
output.writeInt64NoTag(varOffset_.get(i));
}
if (getVarShapeList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(varShapeMemoizedSerializedSize);
}
for (int i = 0; i < varShape_.size(); i++) {
output.writeInt64NoTag(varShape_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getFullNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullName_);
}
{
int dataSize = 0;
for (int i = 0; i < fullShape_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(fullShape_.get(i));
}
size += dataSize;
if (!getFullShapeList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
fullShapeMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < varOffset_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(varOffset_.get(i));
}
size += dataSize;
if (!getVarOffsetList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
varOffsetMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < varShape_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(varShape_.get(i));
}
size += dataSize;
if (!getVarShapeList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
varShapeMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.SaveSliceInfoDef)) {
return super.equals(obj);
}
org.tensorflow.framework.SaveSliceInfoDef other = (org.tensorflow.framework.SaveSliceInfoDef) obj;
boolean result = true;
result = result && getFullName()
.equals(other.getFullName());
result = result && getFullShapeList()
.equals(other.getFullShapeList());
result = result && getVarOffsetList()
.equals(other.getVarOffsetList());
result = result && getVarShapeList()
.equals(other.getVarShapeList());
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) + FULL_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFullName().hashCode();
if (getFullShapeCount() > 0) {
hash = (37 * hash) + FULL_SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getFullShapeList().hashCode();
}
if (getVarOffsetCount() > 0) {
hash = (37 * hash) + VAR_OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getVarOffsetList().hashCode();
}
if (getVarShapeCount() > 0) {
hash = (37 * hash) + VAR_SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getVarShapeList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.SaveSliceInfoDef parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.SaveSliceInfoDef parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.SaveSliceInfoDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.SaveSliceInfoDef 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.framework.SaveSliceInfoDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.SaveSliceInfoDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.SaveSliceInfoDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.SaveSliceInfoDef 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.framework.SaveSliceInfoDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.SaveSliceInfoDef 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.framework.SaveSliceInfoDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.SaveSliceInfoDef 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.framework.SaveSliceInfoDef 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;
}
/**
* Protobuf type {@code tensorflow.SaveSliceInfoDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.SaveSliceInfoDef)
org.tensorflow.framework.SaveSliceInfoDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.SaveSliceInfoDef.class, org.tensorflow.framework.SaveSliceInfoDef.Builder.class);
}
// Construct using org.tensorflow.framework.SaveSliceInfoDef.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();
fullName_ = "";
fullShape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
varOffset_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
varShape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor;
}
public org.tensorflow.framework.SaveSliceInfoDef getDefaultInstanceForType() {
return org.tensorflow.framework.SaveSliceInfoDef.getDefaultInstance();
}
public org.tensorflow.framework.SaveSliceInfoDef build() {
org.tensorflow.framework.SaveSliceInfoDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.SaveSliceInfoDef buildPartial() {
org.tensorflow.framework.SaveSliceInfoDef result = new org.tensorflow.framework.SaveSliceInfoDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.fullName_ = fullName_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
fullShape_ = java.util.Collections.unmodifiableList(fullShape_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.fullShape_ = fullShape_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
varOffset_ = java.util.Collections.unmodifiableList(varOffset_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.varOffset_ = varOffset_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
varShape_ = java.util.Collections.unmodifiableList(varShape_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.varShape_ = varShape_;
result.bitField0_ = to_bitField0_;
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 org.tensorflow.framework.SaveSliceInfoDef) {
return mergeFrom((org.tensorflow.framework.SaveSliceInfoDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.SaveSliceInfoDef other) {
if (other == org.tensorflow.framework.SaveSliceInfoDef.getDefaultInstance()) return this;
if (!other.getFullName().isEmpty()) {
fullName_ = other.fullName_;
onChanged();
}
if (!other.fullShape_.isEmpty()) {
if (fullShape_.isEmpty()) {
fullShape_ = other.fullShape_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFullShapeIsMutable();
fullShape_.addAll(other.fullShape_);
}
onChanged();
}
if (!other.varOffset_.isEmpty()) {
if (varOffset_.isEmpty()) {
varOffset_ = other.varOffset_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureVarOffsetIsMutable();
varOffset_.addAll(other.varOffset_);
}
onChanged();
}
if (!other.varShape_.isEmpty()) {
if (varShape_.isEmpty()) {
varShape_ = other.varShape_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureVarShapeIsMutable();
varShape_.addAll(other.varShape_);
}
onChanged();
}
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 {
org.tensorflow.framework.SaveSliceInfoDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.SaveSliceInfoDef) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object fullName_ = "";
/**
*
* Name of the full variable of which this is a slice.
*
*
* string full_name = 1;
*/
public java.lang.String getFullName() {
java.lang.Object ref = fullName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fullName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the full variable of which this is a slice.
*
*
* string full_name = 1;
*/
public com.google.protobuf.ByteString
getFullNameBytes() {
java.lang.Object ref = fullName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fullName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the full variable of which this is a slice.
*
*
* string full_name = 1;
*/
public Builder setFullName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fullName_ = value;
onChanged();
return this;
}
/**
*
* Name of the full variable of which this is a slice.
*
*
* string full_name = 1;
*/
public Builder clearFullName() {
fullName_ = getDefaultInstance().getFullName();
onChanged();
return this;
}
/**
*
* Name of the full variable of which this is a slice.
*
*
* string full_name = 1;
*/
public Builder setFullNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fullName_ = value;
onChanged();
return this;
}
private java.util.List fullShape_ = java.util.Collections.emptyList();
private void ensureFullShapeIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
fullShape_ = new java.util.ArrayList(fullShape_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public java.util.List
getFullShapeList() {
return java.util.Collections.unmodifiableList(fullShape_);
}
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public int getFullShapeCount() {
return fullShape_.size();
}
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public long getFullShape(int index) {
return fullShape_.get(index);
}
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public Builder setFullShape(
int index, long value) {
ensureFullShapeIsMutable();
fullShape_.set(index, value);
onChanged();
return this;
}
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public Builder addFullShape(long value) {
ensureFullShapeIsMutable();
fullShape_.add(value);
onChanged();
return this;
}
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public Builder addAllFullShape(
java.lang.Iterable extends java.lang.Long> values) {
ensureFullShapeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fullShape_);
onChanged();
return this;
}
/**
*
* Shape of the full variable.
*
*
* repeated int64 full_shape = 2;
*/
public Builder clearFullShape() {
fullShape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List varOffset_ = java.util.Collections.emptyList();
private void ensureVarOffsetIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
varOffset_ = new java.util.ArrayList(varOffset_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public java.util.List
getVarOffsetList() {
return java.util.Collections.unmodifiableList(varOffset_);
}
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public int getVarOffsetCount() {
return varOffset_.size();
}
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public long getVarOffset(int index) {
return varOffset_.get(index);
}
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public Builder setVarOffset(
int index, long value) {
ensureVarOffsetIsMutable();
varOffset_.set(index, value);
onChanged();
return this;
}
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public Builder addVarOffset(long value) {
ensureVarOffsetIsMutable();
varOffset_.add(value);
onChanged();
return this;
}
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public Builder addAllVarOffset(
java.lang.Iterable extends java.lang.Long> values) {
ensureVarOffsetIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, varOffset_);
onChanged();
return this;
}
/**
*
* Offset of this variable into the full variable.
*
*
* repeated int64 var_offset = 3;
*/
public Builder clearVarOffset() {
varOffset_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private java.util.List varShape_ = java.util.Collections.emptyList();
private void ensureVarShapeIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
varShape_ = new java.util.ArrayList(varShape_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public java.util.List
getVarShapeList() {
return java.util.Collections.unmodifiableList(varShape_);
}
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public int getVarShapeCount() {
return varShape_.size();
}
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public long getVarShape(int index) {
return varShape_.get(index);
}
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public Builder setVarShape(
int index, long value) {
ensureVarShapeIsMutable();
varShape_.set(index, value);
onChanged();
return this;
}
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public Builder addVarShape(long value) {
ensureVarShapeIsMutable();
varShape_.add(value);
onChanged();
return this;
}
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public Builder addAllVarShape(
java.lang.Iterable extends java.lang.Long> values) {
ensureVarShapeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, varShape_);
onChanged();
return this;
}
/**
*
* Shape of this variable.
*
*
* repeated int64 var_shape = 4;
*/
public Builder clearVarShape() {
varShape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
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.SaveSliceInfoDef)
}
// @@protoc_insertion_point(class_scope:tensorflow.SaveSliceInfoDef)
private static final org.tensorflow.framework.SaveSliceInfoDef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.SaveSliceInfoDef();
}
public static org.tensorflow.framework.SaveSliceInfoDef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SaveSliceInfoDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SaveSliceInfoDef(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.SaveSliceInfoDef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy