All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.framework.SaveSliceInfoDef Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show 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
    org.nd4j.shade.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tensorflow.SaveSliceInfoDef)
    SaveSliceInfoDefOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SaveSliceInfoDef.newBuilder() to construct.
  private SaveSliceInfoDef(org.nd4j.shade.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 org.nd4j.shade.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SaveSliceInfoDef(
      org.nd4j.shade.protobuf.CodedInputStream input,
      org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
      throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
        org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 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 (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
        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 org.nd4j.shade.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.tensorflow.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor;
  }

  protected org.nd4j.shade.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 { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.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 org.nd4j.shade.protobuf.ByteString getFullNameBytes() { java.lang.Object ref = fullName_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fullName_ = b; return b; } else { return (org.nd4j.shade.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(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getFullNameBytes().isEmpty()) { org.nd4j.shade.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 += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, fullName_); } { int dataSize = 0; for (int i = 0; i < fullShape_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64SizeNoTag(fullShape_.get(i)); } size += dataSize; if (!getFullShapeList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } fullShapeMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < varOffset_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64SizeNoTag(varOffset_.get(i)); } size += dataSize; if (!getVarOffsetList().isEmpty()) { size += 1; size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } varOffsetMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < varShape_.size(); i++) { dataSize += org.nd4j.shade.protobuf.CodedOutputStream .computeInt64SizeNoTag(varShape_.get(i)); } size += dataSize; if (!getVarShapeList().isEmpty()) { size += 1; size += org.nd4j.shade.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 org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.SaveSliceInfoDef parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.SaveSliceInfoDef parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.SaveSliceInfoDef parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.SaveSliceInfoDef parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.SaveSliceInfoDef parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.SaveSliceInfoDef parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.SaveSliceInfoDef parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.SaveSliceInfoDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.SaveSliceInfoDef parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.SaveSliceInfoDef parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.SaveSliceInfoDef parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.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( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.SaveSliceInfoDef} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.SaveSliceInfoDef) org.tensorflow.framework.SaveSliceInfoDefOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor; } protected org.nd4j.shade.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( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.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 org.nd4j.shade.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( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof org.tensorflow.framework.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( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.SaveSliceInfoDef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.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)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.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 org.nd4j.shade.protobuf.ByteString getFullNameBytes() { java.lang.Object ref = fullName_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fullName_ = b; return b; } else { return (org.nd4j.shade.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( org.nd4j.shade.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 values) { ensureFullShapeIsMutable(); org.nd4j.shade.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 values) { ensureVarOffsetIsMutable(); org.nd4j.shade.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 values) { ensureVarShapeIsMutable(); org.nd4j.shade.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 org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.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 org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public SaveSliceInfoDef parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new SaveSliceInfoDef(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.SaveSliceInfoDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy