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

ucar.nc2.stream.NcStreamProto Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ncStream.proto

package ucar.nc2.stream;

public final class NcStreamProto {
  private NcStreamProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code DataType}
   */
  public enum DataType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * CHAR = 0;
     */
    CHAR(0),
    /**
     * BYTE = 1;
     */
    BYTE(1),
    /**
     * SHORT = 2;
     */
    SHORT(2),
    /**
     * INT = 3;
     */
    INT(3),
    /**
     * LONG = 4;
     */
    LONG(4),
    /**
     * FLOAT = 5;
     */
    FLOAT(5),
    /**
     * DOUBLE = 6;
     */
    DOUBLE(6),
    /**
     * STRING = 7;
     */
    STRING(7),
    /**
     * STRUCTURE = 8;
     */
    STRUCTURE(8),
    /**
     * SEQUENCE = 9;
     */
    SEQUENCE(9),
    /**
     * ENUM1 = 10;
     */
    ENUM1(10),
    /**
     * ENUM2 = 11;
     */
    ENUM2(11),
    /**
     * ENUM4 = 12;
     */
    ENUM4(12),
    /**
     * OPAQUE = 13;
     */
    OPAQUE(13),
    /**
     * UBYTE = 14;
     */
    UBYTE(14),
    /**
     * USHORT = 15;
     */
    USHORT(15),
    /**
     * UINT = 16;
     */
    UINT(16),
    /**
     * ULONG = 17;
     */
    ULONG(17),
    UNRECOGNIZED(-1),
    ;

    /**
     * CHAR = 0;
     */
    public static final int CHAR_VALUE = 0;
    /**
     * BYTE = 1;
     */
    public static final int BYTE_VALUE = 1;
    /**
     * SHORT = 2;
     */
    public static final int SHORT_VALUE = 2;
    /**
     * INT = 3;
     */
    public static final int INT_VALUE = 3;
    /**
     * LONG = 4;
     */
    public static final int LONG_VALUE = 4;
    /**
     * FLOAT = 5;
     */
    public static final int FLOAT_VALUE = 5;
    /**
     * DOUBLE = 6;
     */
    public static final int DOUBLE_VALUE = 6;
    /**
     * STRING = 7;
     */
    public static final int STRING_VALUE = 7;
    /**
     * STRUCTURE = 8;
     */
    public static final int STRUCTURE_VALUE = 8;
    /**
     * SEQUENCE = 9;
     */
    public static final int SEQUENCE_VALUE = 9;
    /**
     * ENUM1 = 10;
     */
    public static final int ENUM1_VALUE = 10;
    /**
     * ENUM2 = 11;
     */
    public static final int ENUM2_VALUE = 11;
    /**
     * ENUM4 = 12;
     */
    public static final int ENUM4_VALUE = 12;
    /**
     * OPAQUE = 13;
     */
    public static final int OPAQUE_VALUE = 13;
    /**
     * UBYTE = 14;
     */
    public static final int UBYTE_VALUE = 14;
    /**
     * USHORT = 15;
     */
    public static final int USHORT_VALUE = 15;
    /**
     * UINT = 16;
     */
    public static final int UINT_VALUE = 16;
    /**
     * ULONG = 17;
     */
    public static final int ULONG_VALUE = 17;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static DataType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static DataType forNumber(int value) {
      switch (value) {
        case 0: return CHAR;
        case 1: return BYTE;
        case 2: return SHORT;
        case 3: return INT;
        case 4: return LONG;
        case 5: return FLOAT;
        case 6: return DOUBLE;
        case 7: return STRING;
        case 8: return STRUCTURE;
        case 9: return SEQUENCE;
        case 10: return ENUM1;
        case 11: return ENUM2;
        case 12: return ENUM4;
        case 13: return OPAQUE;
        case 14: return UBYTE;
        case 15: return USHORT;
        case 16: return UINT;
        case 17: return ULONG;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        DataType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public DataType findValueByNumber(int number) {
              return DataType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return ucar.nc2.stream.NcStreamProto.getDescriptor().getEnumTypes().get(0);
    }

    private static final DataType[] VALUES = values();

    public static DataType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private DataType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:DataType)
  }

  /**
   * Protobuf enum {@code Compress}
   */
  public enum Compress
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * NONE = 0;
     */
    NONE(0),
    /**
     * DEFLATE = 1;
     */
    DEFLATE(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * NONE = 0;
     */
    public static final int NONE_VALUE = 0;
    /**
     * DEFLATE = 1;
     */
    public static final int DEFLATE_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Compress valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Compress forNumber(int value) {
      switch (value) {
        case 0: return NONE;
        case 1: return DEFLATE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Compress> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public Compress findValueByNumber(int number) {
              return Compress.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return ucar.nc2.stream.NcStreamProto.getDescriptor().getEnumTypes().get(1);
    }

    private static final Compress[] VALUES = values();

    public static Compress valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Compress(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:Compress)
  }

  public interface AttributeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:Attribute)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string name = 1;
     * @return The name.
     */
    java.lang.String getName();
    /**
     * string name = 1;
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * 
     * < 5.0
     * 
* * .Attribute.Type type = 2; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * < 5.0
     * 
* * .Attribute.Type type = 2; * @return The type. */ ucar.nc2.stream.NcStreamProto.Attribute.Type getType(); /** * uint32 len = 3; * @return The len. */ int getLen(); /** *
     * not needed if len == 0, Attribute with name but no value
     * 
* * bytes data = 4; * @return The data. */ com.google.protobuf.ByteString getData(); /** *
     * used for string data
     * 
* * repeated string sdata = 5; * @return A list containing the sdata. */ java.util.List getSdataList(); /** *
     * used for string data
     * 
* * repeated string sdata = 5; * @return The count of sdata. */ int getSdataCount(); /** *
     * used for string data
     * 
* * repeated string sdata = 5; * @param index The index of the element to return. * @return The sdata at the given index. */ java.lang.String getSdata(int index); /** *
     * used for string data
     * 
* * repeated string sdata = 5; * @param index The index of the value to return. * @return The bytes of the sdata at the given index. */ com.google.protobuf.ByteString getSdataBytes(int index); /** *
     * not used
     * 
* * bool unsigned = 6; * @return The unsigned. */ boolean getUnsigned(); /** *
     * 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
     * 
* * .DataType dataType = 7; * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** *
     * 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
     * 
* * .DataType dataType = 7; * @return The dataType. */ ucar.nc2.stream.NcStreamProto.DataType getDataType(); } /** * Protobuf type {@code Attribute} */ public static final class Attribute extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Attribute) AttributeOrBuilder { private static final long serialVersionUID = 0L; // Use Attribute.newBuilder() to construct. private Attribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Attribute() { name_ = ""; type_ = 0; data_ = com.google.protobuf.ByteString.EMPTY; sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); dataType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Attribute(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Attribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Attribute.class, ucar.nc2.stream.NcStreamProto.Attribute.Builder.class); } /** *
     * < 5.0
     * 
* * Protobuf enum {@code Attribute.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * STRING = 0; */ STRING(0), /** * BYTE = 1; */ BYTE(1), /** * SHORT = 2; */ SHORT(2), /** * INT = 3; */ INT(3), /** * LONG = 4; */ LONG(4), /** * FLOAT = 5; */ FLOAT(5), /** * DOUBLE = 6; */ DOUBLE(6), UNRECOGNIZED(-1), ; /** * STRING = 0; */ public static final int STRING_VALUE = 0; /** * BYTE = 1; */ public static final int BYTE_VALUE = 1; /** * SHORT = 2; */ public static final int SHORT_VALUE = 2; /** * INT = 3; */ public static final int INT_VALUE = 3; /** * LONG = 4; */ public static final int LONG_VALUE = 4; /** * FLOAT = 5; */ public static final int FLOAT_VALUE = 5; /** * DOUBLE = 6; */ public static final int DOUBLE_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Type forNumber(int value) { switch (value) { case 0: return STRING; case 1: return BYTE; case 2: return SHORT; case 3: return INT; case 4: return LONG; case 5: return FLOAT; case 6: return DOUBLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.Attribute.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Attribute.Type) } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** *
     * < 5.0
     * 
* * .Attribute.Type type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * < 5.0
     * 
* * .Attribute.Type type = 2; * @return The type. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Attribute.Type getType() { ucar.nc2.stream.NcStreamProto.Attribute.Type result = ucar.nc2.stream.NcStreamProto.Attribute.Type.forNumber(type_); return result == null ? ucar.nc2.stream.NcStreamProto.Attribute.Type.UNRECOGNIZED : result; } public static final int LEN_FIELD_NUMBER = 3; private int len_ = 0; /** * uint32 len = 3; * @return The len. */ @java.lang.Override public int getLen() { return len_; } public static final int DATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
     * not needed if len == 0, Attribute with name but no value
     * 
* * bytes data = 4; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int SDATA_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * used for string data
     * 
* * repeated string sdata = 5; * @return A list containing the sdata. */ public com.google.protobuf.ProtocolStringList getSdataList() { return sdata_; } /** *
     * used for string data
     * 
* * repeated string sdata = 5; * @return The count of sdata. */ public int getSdataCount() { return sdata_.size(); } /** *
     * used for string data
     * 
* * repeated string sdata = 5; * @param index The index of the element to return. * @return The sdata at the given index. */ public java.lang.String getSdata(int index) { return sdata_.get(index); } /** *
     * used for string data
     * 
* * repeated string sdata = 5; * @param index The index of the value to return. * @return The bytes of the sdata at the given index. */ public com.google.protobuf.ByteString getSdataBytes(int index) { return sdata_.getByteString(index); } public static final int UNSIGNED_FIELD_NUMBER = 6; private boolean unsigned_ = false; /** *
     * not used
     * 
* * bool unsigned = 6; * @return The unsigned. */ @java.lang.Override public boolean getUnsigned() { return unsigned_; } public static final int DATATYPE_FIELD_NUMBER = 7; private int dataType_ = 0; /** *
     * 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
     * 
* * .DataType dataType = 7; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** *
     * 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
     * 
* * .DataType dataType = 7; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != ucar.nc2.stream.NcStreamProto.Attribute.Type.STRING.getNumber()) { output.writeEnum(2, type_); } if (len_ != 0) { output.writeUInt32(3, len_); } if (!data_.isEmpty()) { output.writeBytes(4, data_); } for (int i = 0; i < sdata_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sdata_.getRaw(i)); } if (unsigned_ != false) { output.writeBool(6, unsigned_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { output.writeEnum(7, dataType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != ucar.nc2.stream.NcStreamProto.Attribute.Type.STRING.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (len_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, len_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, data_); } { int dataSize = 0; for (int i = 0; i < sdata_.size(); i++) { dataSize += computeStringSizeNoTag(sdata_.getRaw(i)); } size += dataSize; size += 1 * getSdataList().size(); } if (unsigned_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, unsigned_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, dataType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Attribute)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Attribute other = (ucar.nc2.stream.NcStreamProto.Attribute) obj; if (!getName() .equals(other.getName())) return false; if (type_ != other.type_) return false; if (getLen() != other.getLen()) return false; if (!getData() .equals(other.getData())) return false; if (!getSdataList() .equals(other.getSdataList())) return false; if (getUnsigned() != other.getUnsigned()) return false; if (dataType_ != other.dataType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + LEN_FIELD_NUMBER; hash = (53 * hash) + getLen(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); if (getSdataCount() > 0) { hash = (37 * hash) + SDATA_FIELD_NUMBER; hash = (53 * hash) + getSdataList().hashCode(); } hash = (37 * hash) + UNSIGNED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUnsigned()); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Attribute 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 ucar.nc2.stream.NcStreamProto.Attribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Attribute 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 ucar.nc2.stream.NcStreamProto.Attribute parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Attribute 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(ucar.nc2.stream.NcStreamProto.Attribute 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; } /** * Protobuf type {@code Attribute} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Attribute) ucar.nc2.stream.NcStreamProto.AttributeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Attribute_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Attribute.class, ucar.nc2.stream.NcStreamProto.Attribute.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Attribute.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; type_ = 0; len_ = 0; data_ = com.google.protobuf.ByteString.EMPTY; sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); unsigned_ = false; dataType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Attribute_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Attribute getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Attribute build() { ucar.nc2.stream.NcStreamProto.Attribute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Attribute buildPartial() { ucar.nc2.stream.NcStreamProto.Attribute result = new ucar.nc2.stream.NcStreamProto.Attribute(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Attribute result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.len_ = len_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.data_ = data_; } if (((from_bitField0_ & 0x00000010) != 0)) { sdata_.makeImmutable(); result.sdata_ = sdata_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.unsigned_ = unsigned_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.dataType_ = dataType_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Attribute) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Attribute)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Attribute other) { if (other == ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getLen() != 0) { setLen(other.getLen()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (!other.sdata_.isEmpty()) { if (sdata_.isEmpty()) { sdata_ = other.sdata_; bitField0_ |= 0x00000010; } else { ensureSdataIsMutable(); sdata_.addAll(other.sdata_); } onChanged(); } if (other.getUnsigned() != false) { setUnsigned(other.getUnsigned()); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { type_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { len_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { data_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureSdataIsMutable(); sdata_.add(s); break; } // case 42 case 48: { unsigned_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { dataType_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int type_ = 0; /** *
       * < 5.0
       * 
* * .Attribute.Type type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * < 5.0
       * 
* * .Attribute.Type type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * < 5.0
       * 
* * .Attribute.Type type = 2; * @return The type. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Attribute.Type getType() { ucar.nc2.stream.NcStreamProto.Attribute.Type result = ucar.nc2.stream.NcStreamProto.Attribute.Type.forNumber(type_); return result == null ? ucar.nc2.stream.NcStreamProto.Attribute.Type.UNRECOGNIZED : result; } /** *
       * < 5.0
       * 
* * .Attribute.Type type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(ucar.nc2.stream.NcStreamProto.Attribute.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** *
       * < 5.0
       * 
* * .Attribute.Type type = 2; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } private int len_ ; /** * uint32 len = 3; * @return The len. */ @java.lang.Override public int getLen() { return len_; } /** * uint32 len = 3; * @param value The len to set. * @return This builder for chaining. */ public Builder setLen(int value) { len_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * uint32 len = 3; * @return This builder for chaining. */ public Builder clearLen() { bitField0_ = (bitField0_ & ~0x00000004); len_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * not needed if len == 0, Attribute with name but no value
       * 
* * bytes data = 4; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * not needed if len == 0, Attribute with name but no value
       * 
* * bytes data = 4; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * not needed if len == 0, Attribute with name but no value
       * 
* * bytes data = 4; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000008); data_ = getDefaultInstance().getData(); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSdataIsMutable() { if (!sdata_.isModifiable()) { sdata_ = new com.google.protobuf.LazyStringArrayList(sdata_); } bitField0_ |= 0x00000010; } /** *
       * used for string data
       * 
* * repeated string sdata = 5; * @return A list containing the sdata. */ public com.google.protobuf.ProtocolStringList getSdataList() { sdata_.makeImmutable(); return sdata_; } /** *
       * used for string data
       * 
* * repeated string sdata = 5; * @return The count of sdata. */ public int getSdataCount() { return sdata_.size(); } /** *
       * used for string data
       * 
* * repeated string sdata = 5; * @param index The index of the element to return. * @return The sdata at the given index. */ public java.lang.String getSdata(int index) { return sdata_.get(index); } /** *
       * used for string data
       * 
* * repeated string sdata = 5; * @param index The index of the value to return. * @return The bytes of the sdata at the given index. */ public com.google.protobuf.ByteString getSdataBytes(int index) { return sdata_.getByteString(index); } /** *
       * used for string data
       * 
* * repeated string sdata = 5; * @param index The index to set the value at. * @param value The sdata to set. * @return This builder for chaining. */ public Builder setSdata( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSdataIsMutable(); sdata_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * used for string data
       * 
* * repeated string sdata = 5; * @param value The sdata to add. * @return This builder for chaining. */ public Builder addSdata( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSdataIsMutable(); sdata_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * used for string data
       * 
* * repeated string sdata = 5; * @param values The sdata to add. * @return This builder for chaining. */ public Builder addAllSdata( java.lang.Iterable values) { ensureSdataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sdata_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * used for string data
       * 
* * repeated string sdata = 5; * @return This builder for chaining. */ public Builder clearSdata() { sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** *
       * used for string data
       * 
* * repeated string sdata = 5; * @param value The bytes of the sdata to add. * @return This builder for chaining. */ public Builder addSdataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSdataIsMutable(); sdata_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private boolean unsigned_ ; /** *
       * not used
       * 
* * bool unsigned = 6; * @return The unsigned. */ @java.lang.Override public boolean getUnsigned() { return unsigned_; } /** *
       * not used
       * 
* * bool unsigned = 6; * @param value The unsigned to set. * @return This builder for chaining. */ public Builder setUnsigned(boolean value) { unsigned_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * not used
       * 
* * bool unsigned = 6; * @return This builder for chaining. */ public Builder clearUnsigned() { bitField0_ = (bitField0_ & ~0x00000020); unsigned_ = false; onChanged(); return this; } private int dataType_ = 0; /** *
       * 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
       * 
* * .DataType dataType = 7; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** *
       * 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
       * 
* * .DataType dataType = 7; * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { dataType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
       * 
* * .DataType dataType = 7; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } /** *
       * 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
       * 
* * .DataType dataType = 7; * @param value The dataType to set. * @return This builder for chaining. */ public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; dataType_ = value.getNumber(); onChanged(); return this; } /** *
       * 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
       * 
* * .DataType dataType = 7; * @return This builder for chaining. */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000040); dataType_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Attribute) } // @@protoc_insertion_point(class_scope:Attribute) private static final ucar.nc2.stream.NcStreamProto.Attribute DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Attribute(); } public static ucar.nc2.stream.NcStreamProto.Attribute getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Attribute parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Attribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DimensionOrBuilder extends // @@protoc_insertion_point(interface_extends:Dimension) com.google.protobuf.MessageOrBuilder { /** *
     * short name - optional when private
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * short name - optional when private
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * optional when vlen, may be zero (unlimited no data yet)
     * 
* * uint64 length = 2; * @return The length. */ long getLength(); /** *
     * is this needed ??
     * 
* * bool isUnlimited = 3; * @return The isUnlimited. */ boolean getIsUnlimited(); /** * bool isVlen = 4; * @return The isVlen. */ boolean getIsVlen(); /** * bool isPrivate = 5; * @return The isPrivate. */ boolean getIsPrivate(); } /** * Protobuf type {@code Dimension} */ public static final class Dimension extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Dimension) DimensionOrBuilder { private static final long serialVersionUID = 0L; // Use Dimension.newBuilder() to construct. private Dimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Dimension() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Dimension(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Dimension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Dimension_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Dimension.class, ucar.nc2.stream.NcStreamProto.Dimension.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * short name - optional when private
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * short name - optional when private
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LENGTH_FIELD_NUMBER = 2; private long length_ = 0L; /** *
     * optional when vlen, may be zero (unlimited no data yet)
     * 
* * uint64 length = 2; * @return The length. */ @java.lang.Override public long getLength() { return length_; } public static final int ISUNLIMITED_FIELD_NUMBER = 3; private boolean isUnlimited_ = false; /** *
     * is this needed ??
     * 
* * bool isUnlimited = 3; * @return The isUnlimited. */ @java.lang.Override public boolean getIsUnlimited() { return isUnlimited_; } public static final int ISVLEN_FIELD_NUMBER = 4; private boolean isVlen_ = false; /** * bool isVlen = 4; * @return The isVlen. */ @java.lang.Override public boolean getIsVlen() { return isVlen_; } public static final int ISPRIVATE_FIELD_NUMBER = 5; private boolean isPrivate_ = false; /** * bool isPrivate = 5; * @return The isPrivate. */ @java.lang.Override public boolean getIsPrivate() { return isPrivate_; } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (length_ != 0L) { output.writeUInt64(2, length_); } if (isUnlimited_ != false) { output.writeBool(3, isUnlimited_); } if (isVlen_ != false) { output.writeBool(4, isVlen_); } if (isPrivate_ != false) { output.writeBool(5, isPrivate_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (length_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, length_); } if (isUnlimited_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isUnlimited_); } if (isVlen_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, isVlen_); } if (isPrivate_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isPrivate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Dimension)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Dimension other = (ucar.nc2.stream.NcStreamProto.Dimension) obj; if (!getName() .equals(other.getName())) return false; if (getLength() != other.getLength()) return false; if (getIsUnlimited() != other.getIsUnlimited()) return false; if (getIsVlen() != other.getIsVlen()) return false; if (getIsPrivate() != other.getIsPrivate()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + LENGTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLength()); hash = (37 * hash) + ISUNLIMITED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsUnlimited()); hash = (37 * hash) + ISVLEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsVlen()); hash = (37 * hash) + ISPRIVATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsPrivate()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Dimension 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 ucar.nc2.stream.NcStreamProto.Dimension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Dimension 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 ucar.nc2.stream.NcStreamProto.Dimension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Dimension 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(ucar.nc2.stream.NcStreamProto.Dimension 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; } /** * Protobuf type {@code Dimension} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Dimension) ucar.nc2.stream.NcStreamProto.DimensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Dimension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Dimension_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Dimension.class, ucar.nc2.stream.NcStreamProto.Dimension.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Dimension.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; length_ = 0L; isUnlimited_ = false; isVlen_ = false; isPrivate_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Dimension_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Dimension getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Dimension build() { ucar.nc2.stream.NcStreamProto.Dimension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Dimension buildPartial() { ucar.nc2.stream.NcStreamProto.Dimension result = new ucar.nc2.stream.NcStreamProto.Dimension(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Dimension result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.length_ = length_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.isUnlimited_ = isUnlimited_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.isVlen_ = isVlen_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.isPrivate_ = isPrivate_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Dimension) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Dimension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Dimension other) { if (other == ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.getLength() != 0L) { setLength(other.getLength()); } if (other.getIsUnlimited() != false) { setIsUnlimited(other.getIsUnlimited()); } if (other.getIsVlen() != false) { setIsVlen(other.getIsVlen()); } if (other.getIsPrivate() != false) { setIsPrivate(other.getIsPrivate()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { length_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { isUnlimited_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { isVlen_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { isPrivate_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * short name - optional when private
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * short name - optional when private
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * short name - optional when private
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * short name - optional when private
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * short name - optional when private
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long length_ ; /** *
       * optional when vlen, may be zero (unlimited no data yet)
       * 
* * uint64 length = 2; * @return The length. */ @java.lang.Override public long getLength() { return length_; } /** *
       * optional when vlen, may be zero (unlimited no data yet)
       * 
* * uint64 length = 2; * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(long value) { length_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * optional when vlen, may be zero (unlimited no data yet)
       * 
* * uint64 length = 2; * @return This builder for chaining. */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000002); length_ = 0L; onChanged(); return this; } private boolean isUnlimited_ ; /** *
       * is this needed ??
       * 
* * bool isUnlimited = 3; * @return The isUnlimited. */ @java.lang.Override public boolean getIsUnlimited() { return isUnlimited_; } /** *
       * is this needed ??
       * 
* * bool isUnlimited = 3; * @param value The isUnlimited to set. * @return This builder for chaining. */ public Builder setIsUnlimited(boolean value) { isUnlimited_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * is this needed ??
       * 
* * bool isUnlimited = 3; * @return This builder for chaining. */ public Builder clearIsUnlimited() { bitField0_ = (bitField0_ & ~0x00000004); isUnlimited_ = false; onChanged(); return this; } private boolean isVlen_ ; /** * bool isVlen = 4; * @return The isVlen. */ @java.lang.Override public boolean getIsVlen() { return isVlen_; } /** * bool isVlen = 4; * @param value The isVlen to set. * @return This builder for chaining. */ public Builder setIsVlen(boolean value) { isVlen_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bool isVlen = 4; * @return This builder for chaining. */ public Builder clearIsVlen() { bitField0_ = (bitField0_ & ~0x00000008); isVlen_ = false; onChanged(); return this; } private boolean isPrivate_ ; /** * bool isPrivate = 5; * @return The isPrivate. */ @java.lang.Override public boolean getIsPrivate() { return isPrivate_; } /** * bool isPrivate = 5; * @param value The isPrivate to set. * @return This builder for chaining. */ public Builder setIsPrivate(boolean value) { isPrivate_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bool isPrivate = 5; * @return This builder for chaining. */ public Builder clearIsPrivate() { bitField0_ = (bitField0_ & ~0x00000010); isPrivate_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Dimension) } // @@protoc_insertion_point(class_scope:Dimension) private static final ucar.nc2.stream.NcStreamProto.Dimension DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Dimension(); } public static ucar.nc2.stream.NcStreamProto.Dimension getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Dimension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Dimension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VariableOrBuilder extends // @@protoc_insertion_point(interface_extends:Variable) com.google.protobuf.MessageOrBuilder { /** *
     * short name
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * short name
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** * .DataType dataType = 2; * @return The dataType. */ ucar.nc2.stream.NcStreamProto.DataType getDataType(); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ java.util.List getShapeList(); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ ucar.nc2.stream.NcStreamProto.Dimension getShape(int index); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ int getShapeCount(); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ java.util.List getShapeOrBuilderList(); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder( int index); /** * repeated .Attribute atts = 4; */ java.util.List getAttsList(); /** * repeated .Attribute atts = 4; */ ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index); /** * repeated .Attribute atts = 4; */ int getAttsCount(); /** * repeated .Attribute atts = 4; */ java.util.List getAttsOrBuilderList(); /** * repeated .Attribute atts = 4; */ ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder( int index); /** *
     * not used >= 5
     * 
* * bool unsigned = 5; * @return The unsigned. */ boolean getUnsigned(); /** *
     * "immediate" - store small data in header
     * 
* * bytes data = 6; * @return The data. */ com.google.protobuf.ByteString getData(); /** *
     * EnumTypedef name, only for enum types
     * 
* * string enumType = 7; * @return The enumType. */ java.lang.String getEnumType(); /** *
     * EnumTypedef name, only for enum types
     * 
* * string enumType = 7; * @return The bytes for enumType. */ com.google.protobuf.ByteString getEnumTypeBytes(); } /** * Protobuf type {@code Variable} */ public static final class Variable extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Variable) VariableOrBuilder { private static final long serialVersionUID = 0L; // Use Variable.newBuilder() to construct. private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Variable() { name_ = ""; dataType_ = 0; shape_ = java.util.Collections.emptyList(); atts_ = java.util.Collections.emptyList(); data_ = com.google.protobuf.ByteString.EMPTY; enumType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Variable(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Variable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Variable_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Variable.class, ucar.nc2.stream.NcStreamProto.Variable.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * short name
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * short name
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATATYPE_FIELD_NUMBER = 2; private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } public static final int SHAPE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List shape_; /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public java.util.List getShapeList() { return shape_; } /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public java.util.List getShapeOrBuilderList() { return shape_; } /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public int getShapeCount() { return shape_.size(); } /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Dimension getShape(int index) { return shape_.get(index); } /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder( int index) { return shape_.get(index); } public static final int ATTS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List atts_; /** * repeated .Attribute atts = 4; */ @java.lang.Override public java.util.List getAttsList() { return atts_; } /** * repeated .Attribute atts = 4; */ @java.lang.Override public java.util.List getAttsOrBuilderList() { return atts_; } /** * repeated .Attribute atts = 4; */ @java.lang.Override public int getAttsCount() { return atts_.size(); } /** * repeated .Attribute atts = 4; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) { return atts_.get(index); } /** * repeated .Attribute atts = 4; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder( int index) { return atts_.get(index); } public static final int UNSIGNED_FIELD_NUMBER = 5; private boolean unsigned_ = false; /** *
     * not used >= 5
     * 
* * bool unsigned = 5; * @return The unsigned. */ @java.lang.Override public boolean getUnsigned() { return unsigned_; } public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
     * "immediate" - store small data in header
     * 
* * bytes data = 6; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int ENUMTYPE_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object enumType_ = ""; /** *
     * EnumTypedef name, only for enum types
     * 
* * string enumType = 7; * @return The enumType. */ @java.lang.Override public java.lang.String getEnumType() { java.lang.Object ref = enumType_; 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(); enumType_ = s; return s; } } /** *
     * EnumTypedef name, only for enum types
     * 
* * string enumType = 7; * @return The bytes for enumType. */ @java.lang.Override public com.google.protobuf.ByteString getEnumTypeBytes() { java.lang.Object ref = enumType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); enumType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { output.writeEnum(2, dataType_); } for (int i = 0; i < shape_.size(); i++) { output.writeMessage(3, shape_.get(i)); } for (int i = 0; i < atts_.size(); i++) { output.writeMessage(4, atts_.get(i)); } if (unsigned_ != false) { output.writeBool(5, unsigned_); } if (!data_.isEmpty()) { output.writeBytes(6, data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enumType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, enumType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, dataType_); } for (int i = 0; i < shape_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, shape_.get(i)); } for (int i = 0; i < atts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, atts_.get(i)); } if (unsigned_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, unsigned_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enumType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, enumType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Variable)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Variable other = (ucar.nc2.stream.NcStreamProto.Variable) obj; if (!getName() .equals(other.getName())) return false; if (dataType_ != other.dataType_) return false; if (!getShapeList() .equals(other.getShapeList())) return false; if (!getAttsList() .equals(other.getAttsList())) return false; if (getUnsigned() != other.getUnsigned()) return false; if (!getData() .equals(other.getData())) return false; if (!getEnumType() .equals(other.getEnumType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; if (getShapeCount() > 0) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShapeList().hashCode(); } if (getAttsCount() > 0) { hash = (37 * hash) + ATTS_FIELD_NUMBER; hash = (53 * hash) + getAttsList().hashCode(); } hash = (37 * hash) + UNSIGNED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUnsigned()); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + ENUMTYPE_FIELD_NUMBER; hash = (53 * hash) + getEnumType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Variable parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Variable parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Variable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Variable parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Variable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Variable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Variable parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Variable 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 ucar.nc2.stream.NcStreamProto.Variable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Variable 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 ucar.nc2.stream.NcStreamProto.Variable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Variable 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(ucar.nc2.stream.NcStreamProto.Variable 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; } /** * Protobuf type {@code Variable} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Variable) ucar.nc2.stream.NcStreamProto.VariableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Variable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Variable_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Variable.class, ucar.nc2.stream.NcStreamProto.Variable.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Variable.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; dataType_ = 0; if (shapeBuilder_ == null) { shape_ = java.util.Collections.emptyList(); } else { shape_ = null; shapeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (attsBuilder_ == null) { atts_ = java.util.Collections.emptyList(); } else { atts_ = null; attsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); unsigned_ = false; data_ = com.google.protobuf.ByteString.EMPTY; enumType_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Variable_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Variable getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Variable.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Variable build() { ucar.nc2.stream.NcStreamProto.Variable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Variable buildPartial() { ucar.nc2.stream.NcStreamProto.Variable result = new ucar.nc2.stream.NcStreamProto.Variable(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.Variable result) { if (shapeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { shape_ = java.util.Collections.unmodifiableList(shape_); bitField0_ = (bitField0_ & ~0x00000004); } result.shape_ = shape_; } else { result.shape_ = shapeBuilder_.build(); } if (attsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { atts_ = java.util.Collections.unmodifiableList(atts_); bitField0_ = (bitField0_ & ~0x00000008); } result.atts_ = atts_; } else { result.atts_ = attsBuilder_.build(); } } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Variable result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dataType_ = dataType_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.unsigned_ = unsigned_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.data_ = data_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.enumType_ = enumType_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Variable) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Variable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Variable other) { if (other == ucar.nc2.stream.NcStreamProto.Variable.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (shapeBuilder_ == null) { if (!other.shape_.isEmpty()) { if (shape_.isEmpty()) { shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShapeIsMutable(); shape_.addAll(other.shape_); } onChanged(); } } else { if (!other.shape_.isEmpty()) { if (shapeBuilder_.isEmpty()) { shapeBuilder_.dispose(); shapeBuilder_ = null; shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000004); shapeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShapeFieldBuilder() : null; } else { shapeBuilder_.addAllMessages(other.shape_); } } } if (attsBuilder_ == null) { if (!other.atts_.isEmpty()) { if (atts_.isEmpty()) { atts_ = other.atts_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAttsIsMutable(); atts_.addAll(other.atts_); } onChanged(); } } else { if (!other.atts_.isEmpty()) { if (attsBuilder_.isEmpty()) { attsBuilder_.dispose(); attsBuilder_ = null; atts_ = other.atts_; bitField0_ = (bitField0_ & ~0x00000008); attsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttsFieldBuilder() : null; } else { attsBuilder_.addAllMessages(other.atts_); } } } if (other.getUnsigned() != false) { setUnsigned(other.getUnsigned()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (!other.getEnumType().isEmpty()) { enumType_ = other.enumType_; bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { dataType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { ucar.nc2.stream.NcStreamProto.Dimension m = input.readMessage( ucar.nc2.stream.NcStreamProto.Dimension.parser(), extensionRegistry); if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(m); } else { shapeBuilder_.addMessage(m); } break; } // case 26 case 34: { ucar.nc2.stream.NcStreamProto.Attribute m = input.readMessage( ucar.nc2.stream.NcStreamProto.Attribute.parser(), extensionRegistry); if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.add(m); } else { attsBuilder_.addMessage(m); } break; } // case 34 case 40: { unsigned_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { data_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { enumType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * short name
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * short name
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * short name
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * short name
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * short name
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } /** * .DataType dataType = 2; * @param value The dataType to set. * @return This builder for chaining. */ public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dataType_ = value.getNumber(); onChanged(); return this; } /** * .DataType dataType = 2; * @return This builder for chaining. */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000002); dataType_ = 0; onChanged(); return this; } private java.util.List shape_ = java.util.Collections.emptyList(); private void ensureShapeIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { shape_ = new java.util.ArrayList(shape_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder> shapeBuilder_; /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public java.util.List getShapeList() { if (shapeBuilder_ == null) { return java.util.Collections.unmodifiableList(shape_); } else { return shapeBuilder_.getMessageList(); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public int getShapeCount() { if (shapeBuilder_ == null) { return shape_.size(); } else { return shapeBuilder_.getCount(); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.Dimension getShape(int index) { if (shapeBuilder_ == null) { return shape_.get(index); } else { return shapeBuilder_.getMessage(index); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder setShape( int index, ucar.nc2.stream.NcStreamProto.Dimension value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.set(index, value); onChanged(); } else { shapeBuilder_.setMessage(index, value); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder setShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.set(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addShape(ucar.nc2.stream.NcStreamProto.Dimension value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(value); onChanged(); } else { shapeBuilder_.addMessage(value); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addShape( int index, ucar.nc2.stream.NcStreamProto.Dimension value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(index, value); onChanged(); } else { shapeBuilder_.addMessage(index, value); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addShape( ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addAllShape( java.lang.Iterable values) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shape_); onChanged(); } else { shapeBuilder_.addAllMessages(values); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder clearShape() { if (shapeBuilder_ == null) { shape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { shapeBuilder_.clear(); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder removeShape(int index) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.remove(index); onChanged(); } else { shapeBuilder_.remove(index); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.Dimension.Builder getShapeBuilder( int index) { return getShapeFieldBuilder().getBuilder(index); } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder( int index) { if (shapeBuilder_ == null) { return shape_.get(index); } else { return shapeBuilder_.getMessageOrBuilder(index); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public java.util.List getShapeOrBuilderList() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shape_); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.Dimension.Builder addShapeBuilder() { return getShapeFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance()); } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.Dimension.Builder addShapeBuilder( int index) { return getShapeFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance()); } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public java.util.List getShapeBuilderList() { return getShapeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>( shape_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); shape_ = null; } return shapeBuilder_; } private java.util.List atts_ = java.util.Collections.emptyList(); private void ensureAttsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { atts_ = new java.util.ArrayList(atts_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder> attsBuilder_; /** * repeated .Attribute atts = 4; */ public java.util.List getAttsList() { if (attsBuilder_ == null) { return java.util.Collections.unmodifiableList(atts_); } else { return attsBuilder_.getMessageList(); } } /** * repeated .Attribute atts = 4; */ public int getAttsCount() { if (attsBuilder_ == null) { return atts_.size(); } else { return attsBuilder_.getCount(); } } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) { if (attsBuilder_ == null) { return atts_.get(index); } else { return attsBuilder_.getMessage(index); } } /** * repeated .Attribute atts = 4; */ public Builder setAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute value) { if (attsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttsIsMutable(); atts_.set(index, value); onChanged(); } else { attsBuilder_.setMessage(index, value); } return this; } /** * repeated .Attribute atts = 4; */ public Builder setAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.set(index, builderForValue.build()); onChanged(); } else { attsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAtts(ucar.nc2.stream.NcStreamProto.Attribute value) { if (attsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttsIsMutable(); atts_.add(value); onChanged(); } else { attsBuilder_.addMessage(value); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute value) { if (attsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttsIsMutable(); atts_.add(index, value); onChanged(); } else { attsBuilder_.addMessage(index, value); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAtts( ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.add(builderForValue.build()); onChanged(); } else { attsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.add(index, builderForValue.build()); onChanged(); } else { attsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAllAtts( java.lang.Iterable values) { if (attsBuilder_ == null) { ensureAttsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, atts_); onChanged(); } else { attsBuilder_.addAllMessages(values); } return this; } /** * repeated .Attribute atts = 4; */ public Builder clearAtts() { if (attsBuilder_ == null) { atts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { attsBuilder_.clear(); } return this; } /** * repeated .Attribute atts = 4; */ public Builder removeAtts(int index) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.remove(index); onChanged(); } else { attsBuilder_.remove(index); } return this; } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.Attribute.Builder getAttsBuilder( int index) { return getAttsFieldBuilder().getBuilder(index); } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder( int index) { if (attsBuilder_ == null) { return atts_.get(index); } else { return attsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Attribute atts = 4; */ public java.util.List getAttsOrBuilderList() { if (attsBuilder_ != null) { return attsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(atts_); } } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder() { return getAttsFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance()); } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder( int index) { return getAttsFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance()); } /** * repeated .Attribute atts = 4; */ public java.util.List getAttsBuilderList() { return getAttsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder> getAttsFieldBuilder() { if (attsBuilder_ == null) { attsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>( atts_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); atts_ = null; } return attsBuilder_; } private boolean unsigned_ ; /** *
       * not used >= 5
       * 
* * bool unsigned = 5; * @return The unsigned. */ @java.lang.Override public boolean getUnsigned() { return unsigned_; } /** *
       * not used >= 5
       * 
* * bool unsigned = 5; * @param value The unsigned to set. * @return This builder for chaining. */ public Builder setUnsigned(boolean value) { unsigned_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * not used >= 5
       * 
* * bool unsigned = 5; * @return This builder for chaining. */ public Builder clearUnsigned() { bitField0_ = (bitField0_ & ~0x00000010); unsigned_ = false; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * "immediate" - store small data in header
       * 
* * bytes data = 6; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * "immediate" - store small data in header
       * 
* * bytes data = 6; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * "immediate" - store small data in header
       * 
* * bytes data = 6; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000020); data_ = getDefaultInstance().getData(); onChanged(); return this; } private java.lang.Object enumType_ = ""; /** *
       * EnumTypedef name, only for enum types
       * 
* * string enumType = 7; * @return The enumType. */ public java.lang.String getEnumType() { java.lang.Object ref = enumType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); enumType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * EnumTypedef name, only for enum types
       * 
* * string enumType = 7; * @return The bytes for enumType. */ public com.google.protobuf.ByteString getEnumTypeBytes() { java.lang.Object ref = enumType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); enumType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * EnumTypedef name, only for enum types
       * 
* * string enumType = 7; * @param value The enumType to set. * @return This builder for chaining. */ public Builder setEnumType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } enumType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * EnumTypedef name, only for enum types
       * 
* * string enumType = 7; * @return This builder for chaining. */ public Builder clearEnumType() { enumType_ = getDefaultInstance().getEnumType(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
       * EnumTypedef name, only for enum types
       * 
* * string enumType = 7; * @param value The bytes for enumType to set. * @return This builder for chaining. */ public Builder setEnumTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); enumType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Variable) } // @@protoc_insertion_point(class_scope:Variable) private static final ucar.nc2.stream.NcStreamProto.Variable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Variable(); } public static ucar.nc2.stream.NcStreamProto.Variable getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Variable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Variable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructureOrBuilder extends // @@protoc_insertion_point(interface_extends:Structure) com.google.protobuf.MessageOrBuilder { /** *
     * short name
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * short name
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * STRUCTURE or SEQUENCE
     * 
* * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** *
     * STRUCTURE or SEQUENCE
     * 
* * .DataType dataType = 2; * @return The dataType. */ ucar.nc2.stream.NcStreamProto.DataType getDataType(); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ java.util.List getShapeList(); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ ucar.nc2.stream.NcStreamProto.Dimension getShape(int index); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ int getShapeCount(); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ java.util.List getShapeOrBuilderList(); /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder( int index); /** * repeated .Attribute atts = 4; */ java.util.List getAttsList(); /** * repeated .Attribute atts = 4; */ ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index); /** * repeated .Attribute atts = 4; */ int getAttsCount(); /** * repeated .Attribute atts = 4; */ java.util.List getAttsOrBuilderList(); /** * repeated .Attribute atts = 4; */ ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder( int index); /** *
     * members
     * 
* * repeated .Variable vars = 5; */ java.util.List getVarsList(); /** *
     * members
     * 
* * repeated .Variable vars = 5; */ ucar.nc2.stream.NcStreamProto.Variable getVars(int index); /** *
     * members
     * 
* * repeated .Variable vars = 5; */ int getVarsCount(); /** *
     * members
     * 
* * repeated .Variable vars = 5; */ java.util.List getVarsOrBuilderList(); /** *
     * members
     * 
* * repeated .Variable vars = 5; */ ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder( int index); /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ java.util.List getStructsList(); /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ ucar.nc2.stream.NcStreamProto.Structure getStructs(int index); /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ int getStructsCount(); /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ java.util.List getStructsOrBuilderList(); /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder( int index); } /** * Protobuf type {@code Structure} */ public static final class Structure extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Structure) StructureOrBuilder { private static final long serialVersionUID = 0L; // Use Structure.newBuilder() to construct. private Structure(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Structure() { name_ = ""; dataType_ = 0; shape_ = java.util.Collections.emptyList(); atts_ = java.util.Collections.emptyList(); vars_ = java.util.Collections.emptyList(); structs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Structure(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Structure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Structure_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Structure.class, ucar.nc2.stream.NcStreamProto.Structure.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * short name
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * short name
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATATYPE_FIELD_NUMBER = 2; private int dataType_ = 0; /** *
     * STRUCTURE or SEQUENCE
     * 
* * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** *
     * STRUCTURE or SEQUENCE
     * 
* * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } public static final int SHAPE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List shape_; /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public java.util.List getShapeList() { return shape_; } /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public java.util.List getShapeOrBuilderList() { return shape_; } /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public int getShapeCount() { return shape_.size(); } /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Dimension getShape(int index) { return shape_.get(index); } /** *
     * actual dimension instead of reference
     * 
* * repeated .Dimension shape = 3; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder( int index) { return shape_.get(index); } public static final int ATTS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List atts_; /** * repeated .Attribute atts = 4; */ @java.lang.Override public java.util.List getAttsList() { return atts_; } /** * repeated .Attribute atts = 4; */ @java.lang.Override public java.util.List getAttsOrBuilderList() { return atts_; } /** * repeated .Attribute atts = 4; */ @java.lang.Override public int getAttsCount() { return atts_.size(); } /** * repeated .Attribute atts = 4; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) { return atts_.get(index); } /** * repeated .Attribute atts = 4; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder( int index) { return atts_.get(index); } public static final int VARS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List vars_; /** *
     * members
     * 
* * repeated .Variable vars = 5; */ @java.lang.Override public java.util.List getVarsList() { return vars_; } /** *
     * members
     * 
* * repeated .Variable vars = 5; */ @java.lang.Override public java.util.List getVarsOrBuilderList() { return vars_; } /** *
     * members
     * 
* * repeated .Variable vars = 5; */ @java.lang.Override public int getVarsCount() { return vars_.size(); } /** *
     * members
     * 
* * repeated .Variable vars = 5; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Variable getVars(int index) { return vars_.get(index); } /** *
     * members
     * 
* * repeated .Variable vars = 5; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder( int index) { return vars_.get(index); } public static final int STRUCTS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List structs_; /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ @java.lang.Override public java.util.List getStructsList() { return structs_; } /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ @java.lang.Override public java.util.List getStructsOrBuilderList() { return structs_; } /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ @java.lang.Override public int getStructsCount() { return structs_.size(); } /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Structure getStructs(int index) { return structs_.get(index); } /** *
     * struct members
     * 
* * repeated .Structure structs = 6; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder( int index) { return structs_.get(index); } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { output.writeEnum(2, dataType_); } for (int i = 0; i < shape_.size(); i++) { output.writeMessage(3, shape_.get(i)); } for (int i = 0; i < atts_.size(); i++) { output.writeMessage(4, atts_.get(i)); } for (int i = 0; i < vars_.size(); i++) { output.writeMessage(5, vars_.get(i)); } for (int i = 0; i < structs_.size(); i++) { output.writeMessage(6, structs_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, dataType_); } for (int i = 0; i < shape_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, shape_.get(i)); } for (int i = 0; i < atts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, atts_.get(i)); } for (int i = 0; i < vars_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, vars_.get(i)); } for (int i = 0; i < structs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, structs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Structure)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Structure other = (ucar.nc2.stream.NcStreamProto.Structure) obj; if (!getName() .equals(other.getName())) return false; if (dataType_ != other.dataType_) return false; if (!getShapeList() .equals(other.getShapeList())) return false; if (!getAttsList() .equals(other.getAttsList())) return false; if (!getVarsList() .equals(other.getVarsList())) return false; if (!getStructsList() .equals(other.getStructsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; if (getShapeCount() > 0) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShapeList().hashCode(); } if (getAttsCount() > 0) { hash = (37 * hash) + ATTS_FIELD_NUMBER; hash = (53 * hash) + getAttsList().hashCode(); } if (getVarsCount() > 0) { hash = (37 * hash) + VARS_FIELD_NUMBER; hash = (53 * hash) + getVarsList().hashCode(); } if (getStructsCount() > 0) { hash = (37 * hash) + STRUCTS_FIELD_NUMBER; hash = (53 * hash) + getStructsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Structure parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Structure parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Structure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Structure parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Structure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Structure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Structure parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Structure 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 ucar.nc2.stream.NcStreamProto.Structure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Structure 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 ucar.nc2.stream.NcStreamProto.Structure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Structure 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(ucar.nc2.stream.NcStreamProto.Structure 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; } /** * Protobuf type {@code Structure} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Structure) ucar.nc2.stream.NcStreamProto.StructureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Structure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Structure_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Structure.class, ucar.nc2.stream.NcStreamProto.Structure.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Structure.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; dataType_ = 0; if (shapeBuilder_ == null) { shape_ = java.util.Collections.emptyList(); } else { shape_ = null; shapeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (attsBuilder_ == null) { atts_ = java.util.Collections.emptyList(); } else { atts_ = null; attsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (varsBuilder_ == null) { vars_ = java.util.Collections.emptyList(); } else { vars_ = null; varsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (structsBuilder_ == null) { structs_ = java.util.Collections.emptyList(); } else { structs_ = null; structsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Structure_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Structure getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Structure.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Structure build() { ucar.nc2.stream.NcStreamProto.Structure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Structure buildPartial() { ucar.nc2.stream.NcStreamProto.Structure result = new ucar.nc2.stream.NcStreamProto.Structure(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.Structure result) { if (shapeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { shape_ = java.util.Collections.unmodifiableList(shape_); bitField0_ = (bitField0_ & ~0x00000004); } result.shape_ = shape_; } else { result.shape_ = shapeBuilder_.build(); } if (attsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { atts_ = java.util.Collections.unmodifiableList(atts_); bitField0_ = (bitField0_ & ~0x00000008); } result.atts_ = atts_; } else { result.atts_ = attsBuilder_.build(); } if (varsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { vars_ = java.util.Collections.unmodifiableList(vars_); bitField0_ = (bitField0_ & ~0x00000010); } result.vars_ = vars_; } else { result.vars_ = varsBuilder_.build(); } if (structsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { structs_ = java.util.Collections.unmodifiableList(structs_); bitField0_ = (bitField0_ & ~0x00000020); } result.structs_ = structs_; } else { result.structs_ = structsBuilder_.build(); } } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Structure result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dataType_ = dataType_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Structure) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Structure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Structure other) { if (other == ucar.nc2.stream.NcStreamProto.Structure.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (shapeBuilder_ == null) { if (!other.shape_.isEmpty()) { if (shape_.isEmpty()) { shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShapeIsMutable(); shape_.addAll(other.shape_); } onChanged(); } } else { if (!other.shape_.isEmpty()) { if (shapeBuilder_.isEmpty()) { shapeBuilder_.dispose(); shapeBuilder_ = null; shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000004); shapeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShapeFieldBuilder() : null; } else { shapeBuilder_.addAllMessages(other.shape_); } } } if (attsBuilder_ == null) { if (!other.atts_.isEmpty()) { if (atts_.isEmpty()) { atts_ = other.atts_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAttsIsMutable(); atts_.addAll(other.atts_); } onChanged(); } } else { if (!other.atts_.isEmpty()) { if (attsBuilder_.isEmpty()) { attsBuilder_.dispose(); attsBuilder_ = null; atts_ = other.atts_; bitField0_ = (bitField0_ & ~0x00000008); attsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttsFieldBuilder() : null; } else { attsBuilder_.addAllMessages(other.atts_); } } } if (varsBuilder_ == null) { if (!other.vars_.isEmpty()) { if (vars_.isEmpty()) { vars_ = other.vars_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureVarsIsMutable(); vars_.addAll(other.vars_); } onChanged(); } } else { if (!other.vars_.isEmpty()) { if (varsBuilder_.isEmpty()) { varsBuilder_.dispose(); varsBuilder_ = null; vars_ = other.vars_; bitField0_ = (bitField0_ & ~0x00000010); varsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVarsFieldBuilder() : null; } else { varsBuilder_.addAllMessages(other.vars_); } } } if (structsBuilder_ == null) { if (!other.structs_.isEmpty()) { if (structs_.isEmpty()) { structs_ = other.structs_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureStructsIsMutable(); structs_.addAll(other.structs_); } onChanged(); } } else { if (!other.structs_.isEmpty()) { if (structsBuilder_.isEmpty()) { structsBuilder_.dispose(); structsBuilder_ = null; structs_ = other.structs_; bitField0_ = (bitField0_ & ~0x00000020); structsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStructsFieldBuilder() : null; } else { structsBuilder_.addAllMessages(other.structs_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { dataType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { ucar.nc2.stream.NcStreamProto.Dimension m = input.readMessage( ucar.nc2.stream.NcStreamProto.Dimension.parser(), extensionRegistry); if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(m); } else { shapeBuilder_.addMessage(m); } break; } // case 26 case 34: { ucar.nc2.stream.NcStreamProto.Attribute m = input.readMessage( ucar.nc2.stream.NcStreamProto.Attribute.parser(), extensionRegistry); if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.add(m); } else { attsBuilder_.addMessage(m); } break; } // case 34 case 42: { ucar.nc2.stream.NcStreamProto.Variable m = input.readMessage( ucar.nc2.stream.NcStreamProto.Variable.parser(), extensionRegistry); if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.add(m); } else { varsBuilder_.addMessage(m); } break; } // case 42 case 50: { ucar.nc2.stream.NcStreamProto.Structure m = input.readMessage( ucar.nc2.stream.NcStreamProto.Structure.parser(), extensionRegistry); if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.add(m); } else { structsBuilder_.addMessage(m); } break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * short name
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * short name
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * short name
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * short name
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * short name
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int dataType_ = 0; /** *
       * STRUCTURE or SEQUENCE
       * 
* * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** *
       * STRUCTURE or SEQUENCE
       * 
* * .DataType dataType = 2; * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * STRUCTURE or SEQUENCE
       * 
* * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } /** *
       * STRUCTURE or SEQUENCE
       * 
* * .DataType dataType = 2; * @param value The dataType to set. * @return This builder for chaining. */ public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dataType_ = value.getNumber(); onChanged(); return this; } /** *
       * STRUCTURE or SEQUENCE
       * 
* * .DataType dataType = 2; * @return This builder for chaining. */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000002); dataType_ = 0; onChanged(); return this; } private java.util.List shape_ = java.util.Collections.emptyList(); private void ensureShapeIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { shape_ = new java.util.ArrayList(shape_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder> shapeBuilder_; /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public java.util.List getShapeList() { if (shapeBuilder_ == null) { return java.util.Collections.unmodifiableList(shape_); } else { return shapeBuilder_.getMessageList(); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public int getShapeCount() { if (shapeBuilder_ == null) { return shape_.size(); } else { return shapeBuilder_.getCount(); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.Dimension getShape(int index) { if (shapeBuilder_ == null) { return shape_.get(index); } else { return shapeBuilder_.getMessage(index); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder setShape( int index, ucar.nc2.stream.NcStreamProto.Dimension value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.set(index, value); onChanged(); } else { shapeBuilder_.setMessage(index, value); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder setShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.set(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addShape(ucar.nc2.stream.NcStreamProto.Dimension value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(value); onChanged(); } else { shapeBuilder_.addMessage(value); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addShape( int index, ucar.nc2.stream.NcStreamProto.Dimension value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(index, value); onChanged(); } else { shapeBuilder_.addMessage(index, value); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addShape( ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder addAllShape( java.lang.Iterable values) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shape_); onChanged(); } else { shapeBuilder_.addAllMessages(values); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder clearShape() { if (shapeBuilder_ == null) { shape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { shapeBuilder_.clear(); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public Builder removeShape(int index) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.remove(index); onChanged(); } else { shapeBuilder_.remove(index); } return this; } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.Dimension.Builder getShapeBuilder( int index) { return getShapeFieldBuilder().getBuilder(index); } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder( int index) { if (shapeBuilder_ == null) { return shape_.get(index); } else { return shapeBuilder_.getMessageOrBuilder(index); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public java.util.List getShapeOrBuilderList() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shape_); } } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.Dimension.Builder addShapeBuilder() { return getShapeFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance()); } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public ucar.nc2.stream.NcStreamProto.Dimension.Builder addShapeBuilder( int index) { return getShapeFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance()); } /** *
       * actual dimension instead of reference
       * 
* * repeated .Dimension shape = 3; */ public java.util.List getShapeBuilderList() { return getShapeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>( shape_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); shape_ = null; } return shapeBuilder_; } private java.util.List atts_ = java.util.Collections.emptyList(); private void ensureAttsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { atts_ = new java.util.ArrayList(atts_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder> attsBuilder_; /** * repeated .Attribute atts = 4; */ public java.util.List getAttsList() { if (attsBuilder_ == null) { return java.util.Collections.unmodifiableList(atts_); } else { return attsBuilder_.getMessageList(); } } /** * repeated .Attribute atts = 4; */ public int getAttsCount() { if (attsBuilder_ == null) { return atts_.size(); } else { return attsBuilder_.getCount(); } } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) { if (attsBuilder_ == null) { return atts_.get(index); } else { return attsBuilder_.getMessage(index); } } /** * repeated .Attribute atts = 4; */ public Builder setAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute value) { if (attsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttsIsMutable(); atts_.set(index, value); onChanged(); } else { attsBuilder_.setMessage(index, value); } return this; } /** * repeated .Attribute atts = 4; */ public Builder setAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.set(index, builderForValue.build()); onChanged(); } else { attsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAtts(ucar.nc2.stream.NcStreamProto.Attribute value) { if (attsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttsIsMutable(); atts_.add(value); onChanged(); } else { attsBuilder_.addMessage(value); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute value) { if (attsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttsIsMutable(); atts_.add(index, value); onChanged(); } else { attsBuilder_.addMessage(index, value); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAtts( ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.add(builderForValue.build()); onChanged(); } else { attsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.add(index, builderForValue.build()); onChanged(); } else { attsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Attribute atts = 4; */ public Builder addAllAtts( java.lang.Iterable values) { if (attsBuilder_ == null) { ensureAttsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, atts_); onChanged(); } else { attsBuilder_.addAllMessages(values); } return this; } /** * repeated .Attribute atts = 4; */ public Builder clearAtts() { if (attsBuilder_ == null) { atts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { attsBuilder_.clear(); } return this; } /** * repeated .Attribute atts = 4; */ public Builder removeAtts(int index) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.remove(index); onChanged(); } else { attsBuilder_.remove(index); } return this; } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.Attribute.Builder getAttsBuilder( int index) { return getAttsFieldBuilder().getBuilder(index); } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder( int index) { if (attsBuilder_ == null) { return atts_.get(index); } else { return attsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Attribute atts = 4; */ public java.util.List getAttsOrBuilderList() { if (attsBuilder_ != null) { return attsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(atts_); } } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder() { return getAttsFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance()); } /** * repeated .Attribute atts = 4; */ public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder( int index) { return getAttsFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance()); } /** * repeated .Attribute atts = 4; */ public java.util.List getAttsBuilderList() { return getAttsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder> getAttsFieldBuilder() { if (attsBuilder_ == null) { attsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>( atts_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); atts_ = null; } return attsBuilder_; } private java.util.List vars_ = java.util.Collections.emptyList(); private void ensureVarsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { vars_ = new java.util.ArrayList(vars_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Variable, ucar.nc2.stream.NcStreamProto.Variable.Builder, ucar.nc2.stream.NcStreamProto.VariableOrBuilder> varsBuilder_; /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public java.util.List getVarsList() { if (varsBuilder_ == null) { return java.util.Collections.unmodifiableList(vars_); } else { return varsBuilder_.getMessageList(); } } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public int getVarsCount() { if (varsBuilder_ == null) { return vars_.size(); } else { return varsBuilder_.getCount(); } } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public ucar.nc2.stream.NcStreamProto.Variable getVars(int index) { if (varsBuilder_ == null) { return vars_.get(index); } else { return varsBuilder_.getMessage(index); } } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public Builder setVars( int index, ucar.nc2.stream.NcStreamProto.Variable value) { if (varsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVarsIsMutable(); vars_.set(index, value); onChanged(); } else { varsBuilder_.setMessage(index, value); } return this; } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public Builder setVars( int index, ucar.nc2.stream.NcStreamProto.Variable.Builder builderForValue) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.set(index, builderForValue.build()); onChanged(); } else { varsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public Builder addVars(ucar.nc2.stream.NcStreamProto.Variable value) { if (varsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVarsIsMutable(); vars_.add(value); onChanged(); } else { varsBuilder_.addMessage(value); } return this; } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public Builder addVars( int index, ucar.nc2.stream.NcStreamProto.Variable value) { if (varsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVarsIsMutable(); vars_.add(index, value); onChanged(); } else { varsBuilder_.addMessage(index, value); } return this; } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public Builder addVars( ucar.nc2.stream.NcStreamProto.Variable.Builder builderForValue) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.add(builderForValue.build()); onChanged(); } else { varsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public Builder addVars( int index, ucar.nc2.stream.NcStreamProto.Variable.Builder builderForValue) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.add(index, builderForValue.build()); onChanged(); } else { varsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public Builder addAllVars( java.lang.Iterable values) { if (varsBuilder_ == null) { ensureVarsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, vars_); onChanged(); } else { varsBuilder_.addAllMessages(values); } return this; } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public Builder clearVars() { if (varsBuilder_ == null) { vars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { varsBuilder_.clear(); } return this; } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public Builder removeVars(int index) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.remove(index); onChanged(); } else { varsBuilder_.remove(index); } return this; } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public ucar.nc2.stream.NcStreamProto.Variable.Builder getVarsBuilder( int index) { return getVarsFieldBuilder().getBuilder(index); } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder( int index) { if (varsBuilder_ == null) { return vars_.get(index); } else { return varsBuilder_.getMessageOrBuilder(index); } } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public java.util.List getVarsOrBuilderList() { if (varsBuilder_ != null) { return varsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(vars_); } } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public ucar.nc2.stream.NcStreamProto.Variable.Builder addVarsBuilder() { return getVarsFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Variable.getDefaultInstance()); } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public ucar.nc2.stream.NcStreamProto.Variable.Builder addVarsBuilder( int index) { return getVarsFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Variable.getDefaultInstance()); } /** *
       * members
       * 
* * repeated .Variable vars = 5; */ public java.util.List getVarsBuilderList() { return getVarsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Variable, ucar.nc2.stream.NcStreamProto.Variable.Builder, ucar.nc2.stream.NcStreamProto.VariableOrBuilder> getVarsFieldBuilder() { if (varsBuilder_ == null) { varsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Variable, ucar.nc2.stream.NcStreamProto.Variable.Builder, ucar.nc2.stream.NcStreamProto.VariableOrBuilder>( vars_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); vars_ = null; } return varsBuilder_; } private java.util.List structs_ = java.util.Collections.emptyList(); private void ensureStructsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { structs_ = new java.util.ArrayList(structs_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Structure, ucar.nc2.stream.NcStreamProto.Structure.Builder, ucar.nc2.stream.NcStreamProto.StructureOrBuilder> structsBuilder_; /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public java.util.List getStructsList() { if (structsBuilder_ == null) { return java.util.Collections.unmodifiableList(structs_); } else { return structsBuilder_.getMessageList(); } } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public int getStructsCount() { if (structsBuilder_ == null) { return structs_.size(); } else { return structsBuilder_.getCount(); } } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public ucar.nc2.stream.NcStreamProto.Structure getStructs(int index) { if (structsBuilder_ == null) { return structs_.get(index); } else { return structsBuilder_.getMessage(index); } } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public Builder setStructs( int index, ucar.nc2.stream.NcStreamProto.Structure value) { if (structsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructsIsMutable(); structs_.set(index, value); onChanged(); } else { structsBuilder_.setMessage(index, value); } return this; } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public Builder setStructs( int index, ucar.nc2.stream.NcStreamProto.Structure.Builder builderForValue) { if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.set(index, builderForValue.build()); onChanged(); } else { structsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public Builder addStructs(ucar.nc2.stream.NcStreamProto.Structure value) { if (structsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructsIsMutable(); structs_.add(value); onChanged(); } else { structsBuilder_.addMessage(value); } return this; } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public Builder addStructs( int index, ucar.nc2.stream.NcStreamProto.Structure value) { if (structsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructsIsMutable(); structs_.add(index, value); onChanged(); } else { structsBuilder_.addMessage(index, value); } return this; } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public Builder addStructs( ucar.nc2.stream.NcStreamProto.Structure.Builder builderForValue) { if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.add(builderForValue.build()); onChanged(); } else { structsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public Builder addStructs( int index, ucar.nc2.stream.NcStreamProto.Structure.Builder builderForValue) { if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.add(index, builderForValue.build()); onChanged(); } else { structsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public Builder addAllStructs( java.lang.Iterable values) { if (structsBuilder_ == null) { ensureStructsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, structs_); onChanged(); } else { structsBuilder_.addAllMessages(values); } return this; } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public Builder clearStructs() { if (structsBuilder_ == null) { structs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { structsBuilder_.clear(); } return this; } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public Builder removeStructs(int index) { if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.remove(index); onChanged(); } else { structsBuilder_.remove(index); } return this; } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public ucar.nc2.stream.NcStreamProto.Structure.Builder getStructsBuilder( int index) { return getStructsFieldBuilder().getBuilder(index); } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder( int index) { if (structsBuilder_ == null) { return structs_.get(index); } else { return structsBuilder_.getMessageOrBuilder(index); } } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public java.util.List getStructsOrBuilderList() { if (structsBuilder_ != null) { return structsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(structs_); } } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public ucar.nc2.stream.NcStreamProto.Structure.Builder addStructsBuilder() { return getStructsFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Structure.getDefaultInstance()); } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public ucar.nc2.stream.NcStreamProto.Structure.Builder addStructsBuilder( int index) { return getStructsFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Structure.getDefaultInstance()); } /** *
       * struct members
       * 
* * repeated .Structure structs = 6; */ public java.util.List getStructsBuilderList() { return getStructsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Structure, ucar.nc2.stream.NcStreamProto.Structure.Builder, ucar.nc2.stream.NcStreamProto.StructureOrBuilder> getStructsFieldBuilder() { if (structsBuilder_ == null) { structsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Structure, ucar.nc2.stream.NcStreamProto.Structure.Builder, ucar.nc2.stream.NcStreamProto.StructureOrBuilder>( structs_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); structs_ = null; } return structsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Structure) } // @@protoc_insertion_point(class_scope:Structure) private static final ucar.nc2.stream.NcStreamProto.Structure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Structure(); } public static ucar.nc2.stream.NcStreamProto.Structure getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Structure parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Structure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumTypedefOrBuilder extends // @@protoc_insertion_point(interface_extends:EnumTypedef) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * repeated .EnumTypedef.EnumType map = 2; */ java.util.List getMapList(); /** * repeated .EnumTypedef.EnumType map = 2; */ ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType getMap(int index); /** * repeated .EnumTypedef.EnumType map = 2; */ int getMapCount(); /** * repeated .EnumTypedef.EnumType map = 2; */ java.util.List getMapOrBuilderList(); /** * repeated .EnumTypedef.EnumType map = 2; */ ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder getMapOrBuilder( int index); } /** * Protobuf type {@code EnumTypedef} */ public static final class EnumTypedef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:EnumTypedef) EnumTypedefOrBuilder { private static final long serialVersionUID = 0L; // Use EnumTypedef.newBuilder() to construct. private EnumTypedef(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnumTypedef() { name_ = ""; map_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumTypedef(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.EnumTypedef.class, ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder.class); } public interface EnumTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:EnumTypedef.EnumType) com.google.protobuf.MessageOrBuilder { /** * uint32 code = 1; * @return The code. */ int getCode(); /** * string value = 2; * @return The value. */ java.lang.String getValue(); /** * string value = 2; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code EnumTypedef.EnumType} */ public static final class EnumType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:EnumTypedef.EnumType) EnumTypeOrBuilder { private static final long serialVersionUID = 0L; // Use EnumType.newBuilder() to construct. private EnumType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnumType() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnumType(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_EnumType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_EnumType_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.class, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private int code_ = 0; /** * uint32 code = 1; * @return The code. */ @java.lang.Override public int getCode() { return code_; } public static final int VALUE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** * string value = 2; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** * string value = 2; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 { if (code_ != 0) { output.writeUInt32(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (code_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType other = (ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType) obj; if (getCode() != other.getCode()) return false; if (!getValue() .equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType 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 ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType 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 ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType 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(ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType 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; } /** * Protobuf type {@code EnumTypedef.EnumType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:EnumTypedef.EnumType) ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_EnumType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_EnumType_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.class, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; code_ = 0; value_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_EnumType_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType build() { ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType buildPartial() { ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType result = new ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = value_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType) { return mergeFrom((ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType other) { if (other == ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.getDefaultInstance()) return this; if (other.getCode() != 0) { setCode(other.getCode()); } if (!other.getValue().isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { code_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { value_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int code_ ; /** * uint32 code = 1; * @return The code. */ @java.lang.Override public int getCode() { return code_; } /** * uint32 code = 1; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(int value) { code_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * uint32 code = 1; * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000001); code_ = 0; onChanged(); return this; } private java.lang.Object value_ = ""; /** * string value = 2; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * string value = 2; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string value = 2; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:EnumTypedef.EnumType) } // @@protoc_insertion_point(class_scope:EnumTypedef.EnumType) private static final ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType(); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnumType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAP_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List map_; /** * repeated .EnumTypedef.EnumType map = 2; */ @java.lang.Override public java.util.List getMapList() { return map_; } /** * repeated .EnumTypedef.EnumType map = 2; */ @java.lang.Override public java.util.List getMapOrBuilderList() { return map_; } /** * repeated .EnumTypedef.EnumType map = 2; */ @java.lang.Override public int getMapCount() { return map_.size(); } /** * repeated .EnumTypedef.EnumType map = 2; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType getMap(int index) { return map_.get(index); } /** * repeated .EnumTypedef.EnumType map = 2; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder getMapOrBuilder( int index) { return map_.get(index); } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < map_.size(); i++) { output.writeMessage(2, map_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < map_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, map_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.EnumTypedef)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.EnumTypedef other = (ucar.nc2.stream.NcStreamProto.EnumTypedef) obj; if (!getName() .equals(other.getName())) return false; if (!getMapList() .equals(other.getMapList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getMapCount() > 0) { hash = (37 * hash) + MAP_FIELD_NUMBER; hash = (53 * hash) + getMapList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef 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 ucar.nc2.stream.NcStreamProto.EnumTypedef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef 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 ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef 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(ucar.nc2.stream.NcStreamProto.EnumTypedef 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; } /** * Protobuf type {@code EnumTypedef} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:EnumTypedef) ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.EnumTypedef.class, ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.EnumTypedef.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; if (mapBuilder_ == null) { map_ = java.util.Collections.emptyList(); } else { map_ = null; mapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.EnumTypedef.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef build() { ucar.nc2.stream.NcStreamProto.EnumTypedef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef buildPartial() { ucar.nc2.stream.NcStreamProto.EnumTypedef result = new ucar.nc2.stream.NcStreamProto.EnumTypedef(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.EnumTypedef result) { if (mapBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { map_ = java.util.Collections.unmodifiableList(map_); bitField0_ = (bitField0_ & ~0x00000002); } result.map_ = map_; } else { result.map_ = mapBuilder_.build(); } } private void buildPartial0(ucar.nc2.stream.NcStreamProto.EnumTypedef result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.EnumTypedef) { return mergeFrom((ucar.nc2.stream.NcStreamProto.EnumTypedef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.EnumTypedef other) { if (other == ucar.nc2.stream.NcStreamProto.EnumTypedef.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (mapBuilder_ == null) { if (!other.map_.isEmpty()) { if (map_.isEmpty()) { map_ = other.map_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMapIsMutable(); map_.addAll(other.map_); } onChanged(); } } else { if (!other.map_.isEmpty()) { if (mapBuilder_.isEmpty()) { mapBuilder_.dispose(); mapBuilder_ = null; map_ = other.map_; bitField0_ = (bitField0_ & ~0x00000002); mapBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMapFieldBuilder() : null; } else { mapBuilder_.addAllMessages(other.map_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType m = input.readMessage( ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.parser(), extensionRegistry); if (mapBuilder_ == null) { ensureMapIsMutable(); map_.add(m); } else { mapBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List map_ = java.util.Collections.emptyList(); private void ensureMapIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { map_ = new java.util.ArrayList(map_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder> mapBuilder_; /** * repeated .EnumTypedef.EnumType map = 2; */ public java.util.List getMapList() { if (mapBuilder_ == null) { return java.util.Collections.unmodifiableList(map_); } else { return mapBuilder_.getMessageList(); } } /** * repeated .EnumTypedef.EnumType map = 2; */ public int getMapCount() { if (mapBuilder_ == null) { return map_.size(); } else { return mapBuilder_.getCount(); } } /** * repeated .EnumTypedef.EnumType map = 2; */ public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType getMap(int index) { if (mapBuilder_ == null) { return map_.get(index); } else { return mapBuilder_.getMessage(index); } } /** * repeated .EnumTypedef.EnumType map = 2; */ public Builder setMap( int index, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType value) { if (mapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMapIsMutable(); map_.set(index, value); onChanged(); } else { mapBuilder_.setMessage(index, value); } return this; } /** * repeated .EnumTypedef.EnumType map = 2; */ public Builder setMap( int index, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder builderForValue) { if (mapBuilder_ == null) { ensureMapIsMutable(); map_.set(index, builderForValue.build()); onChanged(); } else { mapBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .EnumTypedef.EnumType map = 2; */ public Builder addMap(ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType value) { if (mapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMapIsMutable(); map_.add(value); onChanged(); } else { mapBuilder_.addMessage(value); } return this; } /** * repeated .EnumTypedef.EnumType map = 2; */ public Builder addMap( int index, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType value) { if (mapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMapIsMutable(); map_.add(index, value); onChanged(); } else { mapBuilder_.addMessage(index, value); } return this; } /** * repeated .EnumTypedef.EnumType map = 2; */ public Builder addMap( ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder builderForValue) { if (mapBuilder_ == null) { ensureMapIsMutable(); map_.add(builderForValue.build()); onChanged(); } else { mapBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .EnumTypedef.EnumType map = 2; */ public Builder addMap( int index, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder builderForValue) { if (mapBuilder_ == null) { ensureMapIsMutable(); map_.add(index, builderForValue.build()); onChanged(); } else { mapBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .EnumTypedef.EnumType map = 2; */ public Builder addAllMap( java.lang.Iterable values) { if (mapBuilder_ == null) { ensureMapIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, map_); onChanged(); } else { mapBuilder_.addAllMessages(values); } return this; } /** * repeated .EnumTypedef.EnumType map = 2; */ public Builder clearMap() { if (mapBuilder_ == null) { map_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { mapBuilder_.clear(); } return this; } /** * repeated .EnumTypedef.EnumType map = 2; */ public Builder removeMap(int index) { if (mapBuilder_ == null) { ensureMapIsMutable(); map_.remove(index); onChanged(); } else { mapBuilder_.remove(index); } return this; } /** * repeated .EnumTypedef.EnumType map = 2; */ public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder getMapBuilder( int index) { return getMapFieldBuilder().getBuilder(index); } /** * repeated .EnumTypedef.EnumType map = 2; */ public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder getMapOrBuilder( int index) { if (mapBuilder_ == null) { return map_.get(index); } else { return mapBuilder_.getMessageOrBuilder(index); } } /** * repeated .EnumTypedef.EnumType map = 2; */ public java.util.List getMapOrBuilderList() { if (mapBuilder_ != null) { return mapBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(map_); } } /** * repeated .EnumTypedef.EnumType map = 2; */ public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder addMapBuilder() { return getMapFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.getDefaultInstance()); } /** * repeated .EnumTypedef.EnumType map = 2; */ public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder addMapBuilder( int index) { return getMapFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.getDefaultInstance()); } /** * repeated .EnumTypedef.EnumType map = 2; */ public java.util.List getMapBuilderList() { return getMapFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder> getMapFieldBuilder() { if (mapBuilder_ == null) { mapBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder>( map_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); map_ = null; } return mapBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:EnumTypedef) } // @@protoc_insertion_point(class_scope:EnumTypedef) private static final ucar.nc2.stream.NcStreamProto.EnumTypedef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.EnumTypedef(); } public static ucar.nc2.stream.NcStreamProto.EnumTypedef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnumTypedef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GroupOrBuilder extends // @@protoc_insertion_point(interface_extends:Group) com.google.protobuf.MessageOrBuilder { /** *
     * short name
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * short name
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * repeated .Dimension dims = 2; */ java.util.List getDimsList(); /** * repeated .Dimension dims = 2; */ ucar.nc2.stream.NcStreamProto.Dimension getDims(int index); /** * repeated .Dimension dims = 2; */ int getDimsCount(); /** * repeated .Dimension dims = 2; */ java.util.List getDimsOrBuilderList(); /** * repeated .Dimension dims = 2; */ ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getDimsOrBuilder( int index); /** * repeated .Variable vars = 3; */ java.util.List getVarsList(); /** * repeated .Variable vars = 3; */ ucar.nc2.stream.NcStreamProto.Variable getVars(int index); /** * repeated .Variable vars = 3; */ int getVarsCount(); /** * repeated .Variable vars = 3; */ java.util.List getVarsOrBuilderList(); /** * repeated .Variable vars = 3; */ ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder( int index); /** * repeated .Structure structs = 4; */ java.util.List getStructsList(); /** * repeated .Structure structs = 4; */ ucar.nc2.stream.NcStreamProto.Structure getStructs(int index); /** * repeated .Structure structs = 4; */ int getStructsCount(); /** * repeated .Structure structs = 4; */ java.util.List getStructsOrBuilderList(); /** * repeated .Structure structs = 4; */ ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder( int index); /** * repeated .Attribute atts = 5; */ java.util.List getAttsList(); /** * repeated .Attribute atts = 5; */ ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index); /** * repeated .Attribute atts = 5; */ int getAttsCount(); /** * repeated .Attribute atts = 5; */ java.util.List getAttsOrBuilderList(); /** * repeated .Attribute atts = 5; */ ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder( int index); /** * repeated .Group groups = 6; */ java.util.List getGroupsList(); /** * repeated .Group groups = 6; */ ucar.nc2.stream.NcStreamProto.Group getGroups(int index); /** * repeated .Group groups = 6; */ int getGroupsCount(); /** * repeated .Group groups = 6; */ java.util.List getGroupsOrBuilderList(); /** * repeated .Group groups = 6; */ ucar.nc2.stream.NcStreamProto.GroupOrBuilder getGroupsOrBuilder( int index); /** * repeated .EnumTypedef enumTypes = 7; */ java.util.List getEnumTypesList(); /** * repeated .EnumTypedef enumTypes = 7; */ ucar.nc2.stream.NcStreamProto.EnumTypedef getEnumTypes(int index); /** * repeated .EnumTypedef enumTypes = 7; */ int getEnumTypesCount(); /** * repeated .EnumTypedef enumTypes = 7; */ java.util.List getEnumTypesOrBuilderList(); /** * repeated .EnumTypedef enumTypes = 7; */ ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder getEnumTypesOrBuilder( int index); } /** * Protobuf type {@code Group} */ public static final class Group extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Group) GroupOrBuilder { private static final long serialVersionUID = 0L; // Use Group.newBuilder() to construct. private Group(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Group() { name_ = ""; dims_ = java.util.Collections.emptyList(); vars_ = java.util.Collections.emptyList(); structs_ = java.util.Collections.emptyList(); atts_ = java.util.Collections.emptyList(); groups_ = java.util.Collections.emptyList(); enumTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Group(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Group_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Group_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Group.class, ucar.nc2.stream.NcStreamProto.Group.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * short name
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * short name
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIMS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List dims_; /** * repeated .Dimension dims = 2; */ @java.lang.Override public java.util.List getDimsList() { return dims_; } /** * repeated .Dimension dims = 2; */ @java.lang.Override public java.util.List getDimsOrBuilderList() { return dims_; } /** * repeated .Dimension dims = 2; */ @java.lang.Override public int getDimsCount() { return dims_.size(); } /** * repeated .Dimension dims = 2; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Dimension getDims(int index) { return dims_.get(index); } /** * repeated .Dimension dims = 2; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getDimsOrBuilder( int index) { return dims_.get(index); } public static final int VARS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List vars_; /** * repeated .Variable vars = 3; */ @java.lang.Override public java.util.List getVarsList() { return vars_; } /** * repeated .Variable vars = 3; */ @java.lang.Override public java.util.List getVarsOrBuilderList() { return vars_; } /** * repeated .Variable vars = 3; */ @java.lang.Override public int getVarsCount() { return vars_.size(); } /** * repeated .Variable vars = 3; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Variable getVars(int index) { return vars_.get(index); } /** * repeated .Variable vars = 3; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder( int index) { return vars_.get(index); } public static final int STRUCTS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List structs_; /** * repeated .Structure structs = 4; */ @java.lang.Override public java.util.List getStructsList() { return structs_; } /** * repeated .Structure structs = 4; */ @java.lang.Override public java.util.List getStructsOrBuilderList() { return structs_; } /** * repeated .Structure structs = 4; */ @java.lang.Override public int getStructsCount() { return structs_.size(); } /** * repeated .Structure structs = 4; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Structure getStructs(int index) { return structs_.get(index); } /** * repeated .Structure structs = 4; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder( int index) { return structs_.get(index); } public static final int ATTS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List atts_; /** * repeated .Attribute atts = 5; */ @java.lang.Override public java.util.List getAttsList() { return atts_; } /** * repeated .Attribute atts = 5; */ @java.lang.Override public java.util.List getAttsOrBuilderList() { return atts_; } /** * repeated .Attribute atts = 5; */ @java.lang.Override public int getAttsCount() { return atts_.size(); } /** * repeated .Attribute atts = 5; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) { return atts_.get(index); } /** * repeated .Attribute atts = 5; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder( int index) { return atts_.get(index); } public static final int GROUPS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List groups_; /** * repeated .Group groups = 6; */ @java.lang.Override public java.util.List getGroupsList() { return groups_; } /** * repeated .Group groups = 6; */ @java.lang.Override public java.util.List getGroupsOrBuilderList() { return groups_; } /** * repeated .Group groups = 6; */ @java.lang.Override public int getGroupsCount() { return groups_.size(); } /** * repeated .Group groups = 6; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Group getGroups(int index) { return groups_.get(index); } /** * repeated .Group groups = 6; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.GroupOrBuilder getGroupsOrBuilder( int index) { return groups_.get(index); } public static final int ENUMTYPES_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List enumTypes_; /** * repeated .EnumTypedef enumTypes = 7; */ @java.lang.Override public java.util.List getEnumTypesList() { return enumTypes_; } /** * repeated .EnumTypedef enumTypes = 7; */ @java.lang.Override public java.util.List getEnumTypesOrBuilderList() { return enumTypes_; } /** * repeated .EnumTypedef enumTypes = 7; */ @java.lang.Override public int getEnumTypesCount() { return enumTypes_.size(); } /** * repeated .EnumTypedef enumTypes = 7; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedef getEnumTypes(int index) { return enumTypes_.get(index); } /** * repeated .EnumTypedef enumTypes = 7; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder getEnumTypesOrBuilder( int index) { return enumTypes_.get(index); } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < dims_.size(); i++) { output.writeMessage(2, dims_.get(i)); } for (int i = 0; i < vars_.size(); i++) { output.writeMessage(3, vars_.get(i)); } for (int i = 0; i < structs_.size(); i++) { output.writeMessage(4, structs_.get(i)); } for (int i = 0; i < atts_.size(); i++) { output.writeMessage(5, atts_.get(i)); } for (int i = 0; i < groups_.size(); i++) { output.writeMessage(6, groups_.get(i)); } for (int i = 0; i < enumTypes_.size(); i++) { output.writeMessage(7, enumTypes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < dims_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, dims_.get(i)); } for (int i = 0; i < vars_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, vars_.get(i)); } for (int i = 0; i < structs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, structs_.get(i)); } for (int i = 0; i < atts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, atts_.get(i)); } for (int i = 0; i < groups_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, groups_.get(i)); } for (int i = 0; i < enumTypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, enumTypes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Group)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Group other = (ucar.nc2.stream.NcStreamProto.Group) obj; if (!getName() .equals(other.getName())) return false; if (!getDimsList() .equals(other.getDimsList())) return false; if (!getVarsList() .equals(other.getVarsList())) return false; if (!getStructsList() .equals(other.getStructsList())) return false; if (!getAttsList() .equals(other.getAttsList())) return false; if (!getGroupsList() .equals(other.getGroupsList())) return false; if (!getEnumTypesList() .equals(other.getEnumTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getDimsCount() > 0) { hash = (37 * hash) + DIMS_FIELD_NUMBER; hash = (53 * hash) + getDimsList().hashCode(); } if (getVarsCount() > 0) { hash = (37 * hash) + VARS_FIELD_NUMBER; hash = (53 * hash) + getVarsList().hashCode(); } if (getStructsCount() > 0) { hash = (37 * hash) + STRUCTS_FIELD_NUMBER; hash = (53 * hash) + getStructsList().hashCode(); } if (getAttsCount() > 0) { hash = (37 * hash) + ATTS_FIELD_NUMBER; hash = (53 * hash) + getAttsList().hashCode(); } if (getGroupsCount() > 0) { hash = (37 * hash) + GROUPS_FIELD_NUMBER; hash = (53 * hash) + getGroupsList().hashCode(); } if (getEnumTypesCount() > 0) { hash = (37 * hash) + ENUMTYPES_FIELD_NUMBER; hash = (53 * hash) + getEnumTypesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Group parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Group parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Group parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Group parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Group parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Group parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Group parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Group 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 ucar.nc2.stream.NcStreamProto.Group parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Group 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 ucar.nc2.stream.NcStreamProto.Group parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Group 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(ucar.nc2.stream.NcStreamProto.Group 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; } /** * Protobuf type {@code Group} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Group) ucar.nc2.stream.NcStreamProto.GroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Group_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Group_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Group.class, ucar.nc2.stream.NcStreamProto.Group.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Group.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; if (dimsBuilder_ == null) { dims_ = java.util.Collections.emptyList(); } else { dims_ = null; dimsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (varsBuilder_ == null) { vars_ = java.util.Collections.emptyList(); } else { vars_ = null; varsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (structsBuilder_ == null) { structs_ = java.util.Collections.emptyList(); } else { structs_ = null; structsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (attsBuilder_ == null) { atts_ = java.util.Collections.emptyList(); } else { atts_ = null; attsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (groupsBuilder_ == null) { groups_ = java.util.Collections.emptyList(); } else { groups_ = null; groupsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (enumTypesBuilder_ == null) { enumTypes_ = java.util.Collections.emptyList(); } else { enumTypes_ = null; enumTypesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Group_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Group getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Group build() { ucar.nc2.stream.NcStreamProto.Group result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Group buildPartial() { ucar.nc2.stream.NcStreamProto.Group result = new ucar.nc2.stream.NcStreamProto.Group(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.Group result) { if (dimsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { dims_ = java.util.Collections.unmodifiableList(dims_); bitField0_ = (bitField0_ & ~0x00000002); } result.dims_ = dims_; } else { result.dims_ = dimsBuilder_.build(); } if (varsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { vars_ = java.util.Collections.unmodifiableList(vars_); bitField0_ = (bitField0_ & ~0x00000004); } result.vars_ = vars_; } else { result.vars_ = varsBuilder_.build(); } if (structsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { structs_ = java.util.Collections.unmodifiableList(structs_); bitField0_ = (bitField0_ & ~0x00000008); } result.structs_ = structs_; } else { result.structs_ = structsBuilder_.build(); } if (attsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { atts_ = java.util.Collections.unmodifiableList(atts_); bitField0_ = (bitField0_ & ~0x00000010); } result.atts_ = atts_; } else { result.atts_ = attsBuilder_.build(); } if (groupsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { groups_ = java.util.Collections.unmodifiableList(groups_); bitField0_ = (bitField0_ & ~0x00000020); } result.groups_ = groups_; } else { result.groups_ = groupsBuilder_.build(); } if (enumTypesBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { enumTypes_ = java.util.Collections.unmodifiableList(enumTypes_); bitField0_ = (bitField0_ & ~0x00000040); } result.enumTypes_ = enumTypes_; } else { result.enumTypes_ = enumTypesBuilder_.build(); } } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Group result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Group) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Group)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Group other) { if (other == ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (dimsBuilder_ == null) { if (!other.dims_.isEmpty()) { if (dims_.isEmpty()) { dims_ = other.dims_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDimsIsMutable(); dims_.addAll(other.dims_); } onChanged(); } } else { if (!other.dims_.isEmpty()) { if (dimsBuilder_.isEmpty()) { dimsBuilder_.dispose(); dimsBuilder_ = null; dims_ = other.dims_; bitField0_ = (bitField0_ & ~0x00000002); dimsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDimsFieldBuilder() : null; } else { dimsBuilder_.addAllMessages(other.dims_); } } } if (varsBuilder_ == null) { if (!other.vars_.isEmpty()) { if (vars_.isEmpty()) { vars_ = other.vars_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureVarsIsMutable(); vars_.addAll(other.vars_); } onChanged(); } } else { if (!other.vars_.isEmpty()) { if (varsBuilder_.isEmpty()) { varsBuilder_.dispose(); varsBuilder_ = null; vars_ = other.vars_; bitField0_ = (bitField0_ & ~0x00000004); varsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVarsFieldBuilder() : null; } else { varsBuilder_.addAllMessages(other.vars_); } } } if (structsBuilder_ == null) { if (!other.structs_.isEmpty()) { if (structs_.isEmpty()) { structs_ = other.structs_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureStructsIsMutable(); structs_.addAll(other.structs_); } onChanged(); } } else { if (!other.structs_.isEmpty()) { if (structsBuilder_.isEmpty()) { structsBuilder_.dispose(); structsBuilder_ = null; structs_ = other.structs_; bitField0_ = (bitField0_ & ~0x00000008); structsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStructsFieldBuilder() : null; } else { structsBuilder_.addAllMessages(other.structs_); } } } if (attsBuilder_ == null) { if (!other.atts_.isEmpty()) { if (atts_.isEmpty()) { atts_ = other.atts_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAttsIsMutable(); atts_.addAll(other.atts_); } onChanged(); } } else { if (!other.atts_.isEmpty()) { if (attsBuilder_.isEmpty()) { attsBuilder_.dispose(); attsBuilder_ = null; atts_ = other.atts_; bitField0_ = (bitField0_ & ~0x00000010); attsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttsFieldBuilder() : null; } else { attsBuilder_.addAllMessages(other.atts_); } } } if (groupsBuilder_ == null) { if (!other.groups_.isEmpty()) { if (groups_.isEmpty()) { groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureGroupsIsMutable(); groups_.addAll(other.groups_); } onChanged(); } } else { if (!other.groups_.isEmpty()) { if (groupsBuilder_.isEmpty()) { groupsBuilder_.dispose(); groupsBuilder_ = null; groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000020); groupsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroupsFieldBuilder() : null; } else { groupsBuilder_.addAllMessages(other.groups_); } } } if (enumTypesBuilder_ == null) { if (!other.enumTypes_.isEmpty()) { if (enumTypes_.isEmpty()) { enumTypes_ = other.enumTypes_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureEnumTypesIsMutable(); enumTypes_.addAll(other.enumTypes_); } onChanged(); } } else { if (!other.enumTypes_.isEmpty()) { if (enumTypesBuilder_.isEmpty()) { enumTypesBuilder_.dispose(); enumTypesBuilder_ = null; enumTypes_ = other.enumTypes_; bitField0_ = (bitField0_ & ~0x00000040); enumTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnumTypesFieldBuilder() : null; } else { enumTypesBuilder_.addAllMessages(other.enumTypes_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ucar.nc2.stream.NcStreamProto.Dimension m = input.readMessage( ucar.nc2.stream.NcStreamProto.Dimension.parser(), extensionRegistry); if (dimsBuilder_ == null) { ensureDimsIsMutable(); dims_.add(m); } else { dimsBuilder_.addMessage(m); } break; } // case 18 case 26: { ucar.nc2.stream.NcStreamProto.Variable m = input.readMessage( ucar.nc2.stream.NcStreamProto.Variable.parser(), extensionRegistry); if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.add(m); } else { varsBuilder_.addMessage(m); } break; } // case 26 case 34: { ucar.nc2.stream.NcStreamProto.Structure m = input.readMessage( ucar.nc2.stream.NcStreamProto.Structure.parser(), extensionRegistry); if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.add(m); } else { structsBuilder_.addMessage(m); } break; } // case 34 case 42: { ucar.nc2.stream.NcStreamProto.Attribute m = input.readMessage( ucar.nc2.stream.NcStreamProto.Attribute.parser(), extensionRegistry); if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.add(m); } else { attsBuilder_.addMessage(m); } break; } // case 42 case 50: { ucar.nc2.stream.NcStreamProto.Group m = input.readMessage( ucar.nc2.stream.NcStreamProto.Group.parser(), extensionRegistry); if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.add(m); } else { groupsBuilder_.addMessage(m); } break; } // case 50 case 58: { ucar.nc2.stream.NcStreamProto.EnumTypedef m = input.readMessage( ucar.nc2.stream.NcStreamProto.EnumTypedef.parser(), extensionRegistry); if (enumTypesBuilder_ == null) { ensureEnumTypesIsMutable(); enumTypes_.add(m); } else { enumTypesBuilder_.addMessage(m); } break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * short name
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * short name
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * short name
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * short name
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * short name
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List dims_ = java.util.Collections.emptyList(); private void ensureDimsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { dims_ = new java.util.ArrayList(dims_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder> dimsBuilder_; /** * repeated .Dimension dims = 2; */ public java.util.List getDimsList() { if (dimsBuilder_ == null) { return java.util.Collections.unmodifiableList(dims_); } else { return dimsBuilder_.getMessageList(); } } /** * repeated .Dimension dims = 2; */ public int getDimsCount() { if (dimsBuilder_ == null) { return dims_.size(); } else { return dimsBuilder_.getCount(); } } /** * repeated .Dimension dims = 2; */ public ucar.nc2.stream.NcStreamProto.Dimension getDims(int index) { if (dimsBuilder_ == null) { return dims_.get(index); } else { return dimsBuilder_.getMessage(index); } } /** * repeated .Dimension dims = 2; */ public Builder setDims( int index, ucar.nc2.stream.NcStreamProto.Dimension value) { if (dimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDimsIsMutable(); dims_.set(index, value); onChanged(); } else { dimsBuilder_.setMessage(index, value); } return this; } /** * repeated .Dimension dims = 2; */ public Builder setDims( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (dimsBuilder_ == null) { ensureDimsIsMutable(); dims_.set(index, builderForValue.build()); onChanged(); } else { dimsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Dimension dims = 2; */ public Builder addDims(ucar.nc2.stream.NcStreamProto.Dimension value) { if (dimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDimsIsMutable(); dims_.add(value); onChanged(); } else { dimsBuilder_.addMessage(value); } return this; } /** * repeated .Dimension dims = 2; */ public Builder addDims( int index, ucar.nc2.stream.NcStreamProto.Dimension value) { if (dimsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDimsIsMutable(); dims_.add(index, value); onChanged(); } else { dimsBuilder_.addMessage(index, value); } return this; } /** * repeated .Dimension dims = 2; */ public Builder addDims( ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (dimsBuilder_ == null) { ensureDimsIsMutable(); dims_.add(builderForValue.build()); onChanged(); } else { dimsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Dimension dims = 2; */ public Builder addDims( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (dimsBuilder_ == null) { ensureDimsIsMutable(); dims_.add(index, builderForValue.build()); onChanged(); } else { dimsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Dimension dims = 2; */ public Builder addAllDims( java.lang.Iterable values) { if (dimsBuilder_ == null) { ensureDimsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dims_); onChanged(); } else { dimsBuilder_.addAllMessages(values); } return this; } /** * repeated .Dimension dims = 2; */ public Builder clearDims() { if (dimsBuilder_ == null) { dims_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dimsBuilder_.clear(); } return this; } /** * repeated .Dimension dims = 2; */ public Builder removeDims(int index) { if (dimsBuilder_ == null) { ensureDimsIsMutable(); dims_.remove(index); onChanged(); } else { dimsBuilder_.remove(index); } return this; } /** * repeated .Dimension dims = 2; */ public ucar.nc2.stream.NcStreamProto.Dimension.Builder getDimsBuilder( int index) { return getDimsFieldBuilder().getBuilder(index); } /** * repeated .Dimension dims = 2; */ public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getDimsOrBuilder( int index) { if (dimsBuilder_ == null) { return dims_.get(index); } else { return dimsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Dimension dims = 2; */ public java.util.List getDimsOrBuilderList() { if (dimsBuilder_ != null) { return dimsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dims_); } } /** * repeated .Dimension dims = 2; */ public ucar.nc2.stream.NcStreamProto.Dimension.Builder addDimsBuilder() { return getDimsFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance()); } /** * repeated .Dimension dims = 2; */ public ucar.nc2.stream.NcStreamProto.Dimension.Builder addDimsBuilder( int index) { return getDimsFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance()); } /** * repeated .Dimension dims = 2; */ public java.util.List getDimsBuilderList() { return getDimsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder> getDimsFieldBuilder() { if (dimsBuilder_ == null) { dimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>( dims_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); dims_ = null; } return dimsBuilder_; } private java.util.List vars_ = java.util.Collections.emptyList(); private void ensureVarsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { vars_ = new java.util.ArrayList(vars_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Variable, ucar.nc2.stream.NcStreamProto.Variable.Builder, ucar.nc2.stream.NcStreamProto.VariableOrBuilder> varsBuilder_; /** * repeated .Variable vars = 3; */ public java.util.List getVarsList() { if (varsBuilder_ == null) { return java.util.Collections.unmodifiableList(vars_); } else { return varsBuilder_.getMessageList(); } } /** * repeated .Variable vars = 3; */ public int getVarsCount() { if (varsBuilder_ == null) { return vars_.size(); } else { return varsBuilder_.getCount(); } } /** * repeated .Variable vars = 3; */ public ucar.nc2.stream.NcStreamProto.Variable getVars(int index) { if (varsBuilder_ == null) { return vars_.get(index); } else { return varsBuilder_.getMessage(index); } } /** * repeated .Variable vars = 3; */ public Builder setVars( int index, ucar.nc2.stream.NcStreamProto.Variable value) { if (varsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVarsIsMutable(); vars_.set(index, value); onChanged(); } else { varsBuilder_.setMessage(index, value); } return this; } /** * repeated .Variable vars = 3; */ public Builder setVars( int index, ucar.nc2.stream.NcStreamProto.Variable.Builder builderForValue) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.set(index, builderForValue.build()); onChanged(); } else { varsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Variable vars = 3; */ public Builder addVars(ucar.nc2.stream.NcStreamProto.Variable value) { if (varsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVarsIsMutable(); vars_.add(value); onChanged(); } else { varsBuilder_.addMessage(value); } return this; } /** * repeated .Variable vars = 3; */ public Builder addVars( int index, ucar.nc2.stream.NcStreamProto.Variable value) { if (varsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVarsIsMutable(); vars_.add(index, value); onChanged(); } else { varsBuilder_.addMessage(index, value); } return this; } /** * repeated .Variable vars = 3; */ public Builder addVars( ucar.nc2.stream.NcStreamProto.Variable.Builder builderForValue) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.add(builderForValue.build()); onChanged(); } else { varsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Variable vars = 3; */ public Builder addVars( int index, ucar.nc2.stream.NcStreamProto.Variable.Builder builderForValue) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.add(index, builderForValue.build()); onChanged(); } else { varsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Variable vars = 3; */ public Builder addAllVars( java.lang.Iterable values) { if (varsBuilder_ == null) { ensureVarsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, vars_); onChanged(); } else { varsBuilder_.addAllMessages(values); } return this; } /** * repeated .Variable vars = 3; */ public Builder clearVars() { if (varsBuilder_ == null) { vars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { varsBuilder_.clear(); } return this; } /** * repeated .Variable vars = 3; */ public Builder removeVars(int index) { if (varsBuilder_ == null) { ensureVarsIsMutable(); vars_.remove(index); onChanged(); } else { varsBuilder_.remove(index); } return this; } /** * repeated .Variable vars = 3; */ public ucar.nc2.stream.NcStreamProto.Variable.Builder getVarsBuilder( int index) { return getVarsFieldBuilder().getBuilder(index); } /** * repeated .Variable vars = 3; */ public ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder( int index) { if (varsBuilder_ == null) { return vars_.get(index); } else { return varsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Variable vars = 3; */ public java.util.List getVarsOrBuilderList() { if (varsBuilder_ != null) { return varsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(vars_); } } /** * repeated .Variable vars = 3; */ public ucar.nc2.stream.NcStreamProto.Variable.Builder addVarsBuilder() { return getVarsFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Variable.getDefaultInstance()); } /** * repeated .Variable vars = 3; */ public ucar.nc2.stream.NcStreamProto.Variable.Builder addVarsBuilder( int index) { return getVarsFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Variable.getDefaultInstance()); } /** * repeated .Variable vars = 3; */ public java.util.List getVarsBuilderList() { return getVarsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Variable, ucar.nc2.stream.NcStreamProto.Variable.Builder, ucar.nc2.stream.NcStreamProto.VariableOrBuilder> getVarsFieldBuilder() { if (varsBuilder_ == null) { varsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Variable, ucar.nc2.stream.NcStreamProto.Variable.Builder, ucar.nc2.stream.NcStreamProto.VariableOrBuilder>( vars_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); vars_ = null; } return varsBuilder_; } private java.util.List structs_ = java.util.Collections.emptyList(); private void ensureStructsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { structs_ = new java.util.ArrayList(structs_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Structure, ucar.nc2.stream.NcStreamProto.Structure.Builder, ucar.nc2.stream.NcStreamProto.StructureOrBuilder> structsBuilder_; /** * repeated .Structure structs = 4; */ public java.util.List getStructsList() { if (structsBuilder_ == null) { return java.util.Collections.unmodifiableList(structs_); } else { return structsBuilder_.getMessageList(); } } /** * repeated .Structure structs = 4; */ public int getStructsCount() { if (structsBuilder_ == null) { return structs_.size(); } else { return structsBuilder_.getCount(); } } /** * repeated .Structure structs = 4; */ public ucar.nc2.stream.NcStreamProto.Structure getStructs(int index) { if (structsBuilder_ == null) { return structs_.get(index); } else { return structsBuilder_.getMessage(index); } } /** * repeated .Structure structs = 4; */ public Builder setStructs( int index, ucar.nc2.stream.NcStreamProto.Structure value) { if (structsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructsIsMutable(); structs_.set(index, value); onChanged(); } else { structsBuilder_.setMessage(index, value); } return this; } /** * repeated .Structure structs = 4; */ public Builder setStructs( int index, ucar.nc2.stream.NcStreamProto.Structure.Builder builderForValue) { if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.set(index, builderForValue.build()); onChanged(); } else { structsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Structure structs = 4; */ public Builder addStructs(ucar.nc2.stream.NcStreamProto.Structure value) { if (structsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructsIsMutable(); structs_.add(value); onChanged(); } else { structsBuilder_.addMessage(value); } return this; } /** * repeated .Structure structs = 4; */ public Builder addStructs( int index, ucar.nc2.stream.NcStreamProto.Structure value) { if (structsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructsIsMutable(); structs_.add(index, value); onChanged(); } else { structsBuilder_.addMessage(index, value); } return this; } /** * repeated .Structure structs = 4; */ public Builder addStructs( ucar.nc2.stream.NcStreamProto.Structure.Builder builderForValue) { if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.add(builderForValue.build()); onChanged(); } else { structsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Structure structs = 4; */ public Builder addStructs( int index, ucar.nc2.stream.NcStreamProto.Structure.Builder builderForValue) { if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.add(index, builderForValue.build()); onChanged(); } else { structsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Structure structs = 4; */ public Builder addAllStructs( java.lang.Iterable values) { if (structsBuilder_ == null) { ensureStructsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, structs_); onChanged(); } else { structsBuilder_.addAllMessages(values); } return this; } /** * repeated .Structure structs = 4; */ public Builder clearStructs() { if (structsBuilder_ == null) { structs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { structsBuilder_.clear(); } return this; } /** * repeated .Structure structs = 4; */ public Builder removeStructs(int index) { if (structsBuilder_ == null) { ensureStructsIsMutable(); structs_.remove(index); onChanged(); } else { structsBuilder_.remove(index); } return this; } /** * repeated .Structure structs = 4; */ public ucar.nc2.stream.NcStreamProto.Structure.Builder getStructsBuilder( int index) { return getStructsFieldBuilder().getBuilder(index); } /** * repeated .Structure structs = 4; */ public ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder( int index) { if (structsBuilder_ == null) { return structs_.get(index); } else { return structsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Structure structs = 4; */ public java.util.List getStructsOrBuilderList() { if (structsBuilder_ != null) { return structsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(structs_); } } /** * repeated .Structure structs = 4; */ public ucar.nc2.stream.NcStreamProto.Structure.Builder addStructsBuilder() { return getStructsFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Structure.getDefaultInstance()); } /** * repeated .Structure structs = 4; */ public ucar.nc2.stream.NcStreamProto.Structure.Builder addStructsBuilder( int index) { return getStructsFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Structure.getDefaultInstance()); } /** * repeated .Structure structs = 4; */ public java.util.List getStructsBuilderList() { return getStructsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Structure, ucar.nc2.stream.NcStreamProto.Structure.Builder, ucar.nc2.stream.NcStreamProto.StructureOrBuilder> getStructsFieldBuilder() { if (structsBuilder_ == null) { structsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Structure, ucar.nc2.stream.NcStreamProto.Structure.Builder, ucar.nc2.stream.NcStreamProto.StructureOrBuilder>( structs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); structs_ = null; } return structsBuilder_; } private java.util.List atts_ = java.util.Collections.emptyList(); private void ensureAttsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { atts_ = new java.util.ArrayList(atts_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder> attsBuilder_; /** * repeated .Attribute atts = 5; */ public java.util.List getAttsList() { if (attsBuilder_ == null) { return java.util.Collections.unmodifiableList(atts_); } else { return attsBuilder_.getMessageList(); } } /** * repeated .Attribute atts = 5; */ public int getAttsCount() { if (attsBuilder_ == null) { return atts_.size(); } else { return attsBuilder_.getCount(); } } /** * repeated .Attribute atts = 5; */ public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) { if (attsBuilder_ == null) { return atts_.get(index); } else { return attsBuilder_.getMessage(index); } } /** * repeated .Attribute atts = 5; */ public Builder setAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute value) { if (attsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttsIsMutable(); atts_.set(index, value); onChanged(); } else { attsBuilder_.setMessage(index, value); } return this; } /** * repeated .Attribute atts = 5; */ public Builder setAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.set(index, builderForValue.build()); onChanged(); } else { attsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Attribute atts = 5; */ public Builder addAtts(ucar.nc2.stream.NcStreamProto.Attribute value) { if (attsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttsIsMutable(); atts_.add(value); onChanged(); } else { attsBuilder_.addMessage(value); } return this; } /** * repeated .Attribute atts = 5; */ public Builder addAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute value) { if (attsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttsIsMutable(); atts_.add(index, value); onChanged(); } else { attsBuilder_.addMessage(index, value); } return this; } /** * repeated .Attribute atts = 5; */ public Builder addAtts( ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.add(builderForValue.build()); onChanged(); } else { attsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Attribute atts = 5; */ public Builder addAtts( int index, ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.add(index, builderForValue.build()); onChanged(); } else { attsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Attribute atts = 5; */ public Builder addAllAtts( java.lang.Iterable values) { if (attsBuilder_ == null) { ensureAttsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, atts_); onChanged(); } else { attsBuilder_.addAllMessages(values); } return this; } /** * repeated .Attribute atts = 5; */ public Builder clearAtts() { if (attsBuilder_ == null) { atts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { attsBuilder_.clear(); } return this; } /** * repeated .Attribute atts = 5; */ public Builder removeAtts(int index) { if (attsBuilder_ == null) { ensureAttsIsMutable(); atts_.remove(index); onChanged(); } else { attsBuilder_.remove(index); } return this; } /** * repeated .Attribute atts = 5; */ public ucar.nc2.stream.NcStreamProto.Attribute.Builder getAttsBuilder( int index) { return getAttsFieldBuilder().getBuilder(index); } /** * repeated .Attribute atts = 5; */ public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder( int index) { if (attsBuilder_ == null) { return atts_.get(index); } else { return attsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Attribute atts = 5; */ public java.util.List getAttsOrBuilderList() { if (attsBuilder_ != null) { return attsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(atts_); } } /** * repeated .Attribute atts = 5; */ public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder() { return getAttsFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance()); } /** * repeated .Attribute atts = 5; */ public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder( int index) { return getAttsFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance()); } /** * repeated .Attribute atts = 5; */ public java.util.List getAttsBuilderList() { return getAttsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder> getAttsFieldBuilder() { if (attsBuilder_ == null) { attsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>( atts_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); atts_ = null; } return attsBuilder_; } private java.util.List groups_ = java.util.Collections.emptyList(); private void ensureGroupsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { groups_ = new java.util.ArrayList(groups_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Group, ucar.nc2.stream.NcStreamProto.Group.Builder, ucar.nc2.stream.NcStreamProto.GroupOrBuilder> groupsBuilder_; /** * repeated .Group groups = 6; */ public java.util.List getGroupsList() { if (groupsBuilder_ == null) { return java.util.Collections.unmodifiableList(groups_); } else { return groupsBuilder_.getMessageList(); } } /** * repeated .Group groups = 6; */ public int getGroupsCount() { if (groupsBuilder_ == null) { return groups_.size(); } else { return groupsBuilder_.getCount(); } } /** * repeated .Group groups = 6; */ public ucar.nc2.stream.NcStreamProto.Group getGroups(int index) { if (groupsBuilder_ == null) { return groups_.get(index); } else { return groupsBuilder_.getMessage(index); } } /** * repeated .Group groups = 6; */ public Builder setGroups( int index, ucar.nc2.stream.NcStreamProto.Group value) { if (groupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.set(index, value); onChanged(); } else { groupsBuilder_.setMessage(index, value); } return this; } /** * repeated .Group groups = 6; */ public Builder setGroups( int index, ucar.nc2.stream.NcStreamProto.Group.Builder builderForValue) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.set(index, builderForValue.build()); onChanged(); } else { groupsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Group groups = 6; */ public Builder addGroups(ucar.nc2.stream.NcStreamProto.Group value) { if (groupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(value); onChanged(); } else { groupsBuilder_.addMessage(value); } return this; } /** * repeated .Group groups = 6; */ public Builder addGroups( int index, ucar.nc2.stream.NcStreamProto.Group value) { if (groupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(index, value); onChanged(); } else { groupsBuilder_.addMessage(index, value); } return this; } /** * repeated .Group groups = 6; */ public Builder addGroups( ucar.nc2.stream.NcStreamProto.Group.Builder builderForValue) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.add(builderForValue.build()); onChanged(); } else { groupsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Group groups = 6; */ public Builder addGroups( int index, ucar.nc2.stream.NcStreamProto.Group.Builder builderForValue) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.add(index, builderForValue.build()); onChanged(); } else { groupsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Group groups = 6; */ public Builder addAllGroups( java.lang.Iterable values) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groups_); onChanged(); } else { groupsBuilder_.addAllMessages(values); } return this; } /** * repeated .Group groups = 6; */ public Builder clearGroups() { if (groupsBuilder_ == null) { groups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { groupsBuilder_.clear(); } return this; } /** * repeated .Group groups = 6; */ public Builder removeGroups(int index) { if (groupsBuilder_ == null) { ensureGroupsIsMutable(); groups_.remove(index); onChanged(); } else { groupsBuilder_.remove(index); } return this; } /** * repeated .Group groups = 6; */ public ucar.nc2.stream.NcStreamProto.Group.Builder getGroupsBuilder( int index) { return getGroupsFieldBuilder().getBuilder(index); } /** * repeated .Group groups = 6; */ public ucar.nc2.stream.NcStreamProto.GroupOrBuilder getGroupsOrBuilder( int index) { if (groupsBuilder_ == null) { return groups_.get(index); } else { return groupsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Group groups = 6; */ public java.util.List getGroupsOrBuilderList() { if (groupsBuilder_ != null) { return groupsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groups_); } } /** * repeated .Group groups = 6; */ public ucar.nc2.stream.NcStreamProto.Group.Builder addGroupsBuilder() { return getGroupsFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance()); } /** * repeated .Group groups = 6; */ public ucar.nc2.stream.NcStreamProto.Group.Builder addGroupsBuilder( int index) { return getGroupsFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance()); } /** * repeated .Group groups = 6; */ public java.util.List getGroupsBuilderList() { return getGroupsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Group, ucar.nc2.stream.NcStreamProto.Group.Builder, ucar.nc2.stream.NcStreamProto.GroupOrBuilder> getGroupsFieldBuilder() { if (groupsBuilder_ == null) { groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Group, ucar.nc2.stream.NcStreamProto.Group.Builder, ucar.nc2.stream.NcStreamProto.GroupOrBuilder>( groups_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); groups_ = null; } return groupsBuilder_; } private java.util.List enumTypes_ = java.util.Collections.emptyList(); private void ensureEnumTypesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { enumTypes_ = new java.util.ArrayList(enumTypes_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.EnumTypedef, ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder, ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder> enumTypesBuilder_; /** * repeated .EnumTypedef enumTypes = 7; */ public java.util.List getEnumTypesList() { if (enumTypesBuilder_ == null) { return java.util.Collections.unmodifiableList(enumTypes_); } else { return enumTypesBuilder_.getMessageList(); } } /** * repeated .EnumTypedef enumTypes = 7; */ public int getEnumTypesCount() { if (enumTypesBuilder_ == null) { return enumTypes_.size(); } else { return enumTypesBuilder_.getCount(); } } /** * repeated .EnumTypedef enumTypes = 7; */ public ucar.nc2.stream.NcStreamProto.EnumTypedef getEnumTypes(int index) { if (enumTypesBuilder_ == null) { return enumTypes_.get(index); } else { return enumTypesBuilder_.getMessage(index); } } /** * repeated .EnumTypedef enumTypes = 7; */ public Builder setEnumTypes( int index, ucar.nc2.stream.NcStreamProto.EnumTypedef value) { if (enumTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumTypesIsMutable(); enumTypes_.set(index, value); onChanged(); } else { enumTypesBuilder_.setMessage(index, value); } return this; } /** * repeated .EnumTypedef enumTypes = 7; */ public Builder setEnumTypes( int index, ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder builderForValue) { if (enumTypesBuilder_ == null) { ensureEnumTypesIsMutable(); enumTypes_.set(index, builderForValue.build()); onChanged(); } else { enumTypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .EnumTypedef enumTypes = 7; */ public Builder addEnumTypes(ucar.nc2.stream.NcStreamProto.EnumTypedef value) { if (enumTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumTypesIsMutable(); enumTypes_.add(value); onChanged(); } else { enumTypesBuilder_.addMessage(value); } return this; } /** * repeated .EnumTypedef enumTypes = 7; */ public Builder addEnumTypes( int index, ucar.nc2.stream.NcStreamProto.EnumTypedef value) { if (enumTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnumTypesIsMutable(); enumTypes_.add(index, value); onChanged(); } else { enumTypesBuilder_.addMessage(index, value); } return this; } /** * repeated .EnumTypedef enumTypes = 7; */ public Builder addEnumTypes( ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder builderForValue) { if (enumTypesBuilder_ == null) { ensureEnumTypesIsMutable(); enumTypes_.add(builderForValue.build()); onChanged(); } else { enumTypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .EnumTypedef enumTypes = 7; */ public Builder addEnumTypes( int index, ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder builderForValue) { if (enumTypesBuilder_ == null) { ensureEnumTypesIsMutable(); enumTypes_.add(index, builderForValue.build()); onChanged(); } else { enumTypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .EnumTypedef enumTypes = 7; */ public Builder addAllEnumTypes( java.lang.Iterable values) { if (enumTypesBuilder_ == null) { ensureEnumTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, enumTypes_); onChanged(); } else { enumTypesBuilder_.addAllMessages(values); } return this; } /** * repeated .EnumTypedef enumTypes = 7; */ public Builder clearEnumTypes() { if (enumTypesBuilder_ == null) { enumTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { enumTypesBuilder_.clear(); } return this; } /** * repeated .EnumTypedef enumTypes = 7; */ public Builder removeEnumTypes(int index) { if (enumTypesBuilder_ == null) { ensureEnumTypesIsMutable(); enumTypes_.remove(index); onChanged(); } else { enumTypesBuilder_.remove(index); } return this; } /** * repeated .EnumTypedef enumTypes = 7; */ public ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder getEnumTypesBuilder( int index) { return getEnumTypesFieldBuilder().getBuilder(index); } /** * repeated .EnumTypedef enumTypes = 7; */ public ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder getEnumTypesOrBuilder( int index) { if (enumTypesBuilder_ == null) { return enumTypes_.get(index); } else { return enumTypesBuilder_.getMessageOrBuilder(index); } } /** * repeated .EnumTypedef enumTypes = 7; */ public java.util.List getEnumTypesOrBuilderList() { if (enumTypesBuilder_ != null) { return enumTypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(enumTypes_); } } /** * repeated .EnumTypedef enumTypes = 7; */ public ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder addEnumTypesBuilder() { return getEnumTypesFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.EnumTypedef.getDefaultInstance()); } /** * repeated .EnumTypedef enumTypes = 7; */ public ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder addEnumTypesBuilder( int index) { return getEnumTypesFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.EnumTypedef.getDefaultInstance()); } /** * repeated .EnumTypedef enumTypes = 7; */ public java.util.List getEnumTypesBuilderList() { return getEnumTypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.EnumTypedef, ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder, ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder> getEnumTypesFieldBuilder() { if (enumTypesBuilder_ == null) { enumTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.EnumTypedef, ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder, ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder>( enumTypes_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); enumTypes_ = null; } return enumTypesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Group) } // @@protoc_insertion_point(class_scope:Group) private static final ucar.nc2.stream.NcStreamProto.Group DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Group(); } public static ucar.nc2.stream.NcStreamProto.Group getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Group parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Group getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:Header) com.google.protobuf.MessageOrBuilder { /** * string location = 1; * @return The location. */ java.lang.String getLocation(); /** * string location = 1; * @return The bytes for location. */ com.google.protobuf.ByteString getLocationBytes(); /** *
     * ??
     * 
* * string title = 2; * @return The title. */ java.lang.String getTitle(); /** *
     * ??
     * 
* * string title = 2; * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** *
     * ??
     * 
* * string id = 3; * @return The id. */ java.lang.String getId(); /** *
     * ??
     * 
* * string id = 3; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * .Group root = 4; * @return Whether the root field is set. */ boolean hasRoot(); /** * .Group root = 4; * @return The root. */ ucar.nc2.stream.NcStreamProto.Group getRoot(); /** * .Group root = 4; */ ucar.nc2.stream.NcStreamProto.GroupOrBuilder getRootOrBuilder(); /** * uint32 version = 5; * @return The version. */ int getVersion(); } /** * Protobuf type {@code Header} */ public static final class Header extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Header) HeaderOrBuilder { private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Header() { location_ = ""; title_ = ""; id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Header(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Header.class, ucar.nc2.stream.NcStreamProto.Header.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** * string location = 1; * @return The location. */ @java.lang.Override public java.lang.String getLocation() { java.lang.Object ref = location_; 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(); location_ = s; return s; } } /** * string location = 1; * @return The bytes for location. */ @java.lang.Override public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); location_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TITLE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** *
     * ??
     * 
* * string title = 2; * @return The title. */ @java.lang.Override public java.lang.String getTitle() { java.lang.Object ref = title_; 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(); title_ = s; return s; } } /** *
     * ??
     * 
* * string title = 2; * @return The bytes for title. */ @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** *
     * ??
     * 
* * string id = 3; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * ??
     * 
* * string id = 3; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROOT_FIELD_NUMBER = 4; private ucar.nc2.stream.NcStreamProto.Group root_; /** * .Group root = 4; * @return Whether the root field is set. */ @java.lang.Override public boolean hasRoot() { return root_ != null; } /** * .Group root = 4; * @return The root. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Group getRoot() { return root_ == null ? ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance() : root_; } /** * .Group root = 4; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.GroupOrBuilder getRootOrBuilder() { return root_ == null ? ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance() : root_; } public static final int VERSION_FIELD_NUMBER = 5; private int version_ = 0; /** * uint32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_); } if (root_ != null) { output.writeMessage(4, getRoot()); } if (version_ != 0) { output.writeUInt32(5, version_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_); } if (root_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRoot()); } if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, version_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Header)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Header other = (ucar.nc2.stream.NcStreamProto.Header) obj; if (!getLocation() .equals(other.getLocation())) return false; if (!getTitle() .equals(other.getTitle())) return false; if (!getId() .equals(other.getId())) return false; if (hasRoot() != other.hasRoot()) return false; if (hasRoot()) { if (!getRoot() .equals(other.getRoot())) return false; } if (getVersion() != other.getVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasRoot()) { hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Header parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Header parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Header parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Header parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Header parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Header 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 ucar.nc2.stream.NcStreamProto.Header parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Header 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 ucar.nc2.stream.NcStreamProto.Header parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Header 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(ucar.nc2.stream.NcStreamProto.Header 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; } /** * Protobuf type {@code Header} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Header) ucar.nc2.stream.NcStreamProto.HeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Header.class, ucar.nc2.stream.NcStreamProto.Header.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Header.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; location_ = ""; title_ = ""; id_ = ""; root_ = null; if (rootBuilder_ != null) { rootBuilder_.dispose(); rootBuilder_ = null; } version_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Header_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Header getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Header.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Header build() { ucar.nc2.stream.NcStreamProto.Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Header buildPartial() { ucar.nc2.stream.NcStreamProto.Header result = new ucar.nc2.stream.NcStreamProto.Header(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Header result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.location_ = location_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.title_ = title_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.root_ = rootBuilder_ == null ? root_ : rootBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.version_ = version_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Header) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Header)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Header other) { if (other == ucar.nc2.stream.NcStreamProto.Header.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getTitle().isEmpty()) { title_ = other.title_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasRoot()) { mergeRoot(other.getRoot()); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { location_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { title_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getRootFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { version_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object location_ = ""; /** * string location = 1; * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } else { return (java.lang.String) ref; } } /** * string location = 1; * @return The bytes for location. */ public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); location_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string location = 1; * @param value The location to set. * @return This builder for chaining. */ public Builder setLocation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string location = 1; * @return This builder for chaining. */ public Builder clearLocation() { location_ = getDefaultInstance().getLocation(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string location = 1; * @param value The bytes for location to set. * @return This builder for chaining. */ public Builder setLocationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object title_ = ""; /** *
       * ??
       * 
* * string title = 2; * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ??
       * 
* * string title = 2; * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ??
       * 
* * string title = 2; * @param value The title to set. * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * ??
       * 
* * string title = 2; * @return This builder for chaining. */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * ??
       * 
* * string title = 2; * @param value The bytes for title to set. * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
       * ??
       * 
* * string id = 3; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ??
       * 
* * string id = 3; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ??
       * 
* * string id = 3; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * ??
       * 
* * string id = 3; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * ??
       * 
* * string id = 3; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private ucar.nc2.stream.NcStreamProto.Group root_; private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Group, ucar.nc2.stream.NcStreamProto.Group.Builder, ucar.nc2.stream.NcStreamProto.GroupOrBuilder> rootBuilder_; /** * .Group root = 4; * @return Whether the root field is set. */ public boolean hasRoot() { return ((bitField0_ & 0x00000008) != 0); } /** * .Group root = 4; * @return The root. */ public ucar.nc2.stream.NcStreamProto.Group getRoot() { if (rootBuilder_ == null) { return root_ == null ? ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance() : root_; } else { return rootBuilder_.getMessage(); } } /** * .Group root = 4; */ public Builder setRoot(ucar.nc2.stream.NcStreamProto.Group value) { if (rootBuilder_ == null) { if (value == null) { throw new NullPointerException(); } root_ = value; } else { rootBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .Group root = 4; */ public Builder setRoot( ucar.nc2.stream.NcStreamProto.Group.Builder builderForValue) { if (rootBuilder_ == null) { root_ = builderForValue.build(); } else { rootBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .Group root = 4; */ public Builder mergeRoot(ucar.nc2.stream.NcStreamProto.Group value) { if (rootBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && root_ != null && root_ != ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance()) { getRootBuilder().mergeFrom(value); } else { root_ = value; } } else { rootBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .Group root = 4; */ public Builder clearRoot() { bitField0_ = (bitField0_ & ~0x00000008); root_ = null; if (rootBuilder_ != null) { rootBuilder_.dispose(); rootBuilder_ = null; } onChanged(); return this; } /** * .Group root = 4; */ public ucar.nc2.stream.NcStreamProto.Group.Builder getRootBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRootFieldBuilder().getBuilder(); } /** * .Group root = 4; */ public ucar.nc2.stream.NcStreamProto.GroupOrBuilder getRootOrBuilder() { if (rootBuilder_ != null) { return rootBuilder_.getMessageOrBuilder(); } else { return root_ == null ? ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance() : root_; } } /** * .Group root = 4; */ private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Group, ucar.nc2.stream.NcStreamProto.Group.Builder, ucar.nc2.stream.NcStreamProto.GroupOrBuilder> getRootFieldBuilder() { if (rootBuilder_ == null) { rootBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Group, ucar.nc2.stream.NcStreamProto.Group.Builder, ucar.nc2.stream.NcStreamProto.GroupOrBuilder>( getRoot(), getParentForChildren(), isClean()); root_ = null; } return rootBuilder_; } private int version_ ; /** * uint32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } /** * uint32 version = 5; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { version_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * uint32 version = 5; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000010); version_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Header) } // @@protoc_insertion_point(class_scope:Header) private static final ucar.nc2.stream.NcStreamProto.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Header(); } public static ucar.nc2.stream.NcStreamProto.Header getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { @java.lang.Override public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser
parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser
getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:Error) com.google.protobuf.MessageOrBuilder { /** * string message = 1; * @return The message. */ java.lang.String getMessage(); /** * string message = 1; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** * uint32 code = 2; * @return The code. */ int getCode(); } /** * Protobuf type {@code Error} */ public static final class Error extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Error) ErrorOrBuilder { private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Error(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Error.class, ucar.nc2.stream.NcStreamProto.Error.Builder.class); } public static final int MESSAGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** * string message = 1; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** * string message = 1; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CODE_FIELD_NUMBER = 2; private int code_ = 0; /** * uint32 code = 2; * @return The code. */ @java.lang.Override public int getCode() { return code_; } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } if (code_ != 0) { output.writeUInt32(2, code_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (code_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, code_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Error)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Error other = (ucar.nc2.stream.NcStreamProto.Error) obj; if (!getMessage() .equals(other.getMessage())) return false; if (getCode() != other.getCode()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Error parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Error parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Error 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 ucar.nc2.stream.NcStreamProto.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Error 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 ucar.nc2.stream.NcStreamProto.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Error 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(ucar.nc2.stream.NcStreamProto.Error 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; } /** * Protobuf type {@code Error} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Error) ucar.nc2.stream.NcStreamProto.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Error.class, ucar.nc2.stream.NcStreamProto.Error.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Error.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; message_ = ""; code_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Error_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Error getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Error.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Error build() { ucar.nc2.stream.NcStreamProto.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Error buildPartial() { ucar.nc2.stream.NcStreamProto.Error result = new ucar.nc2.stream.NcStreamProto.Error(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Error result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.code_ = code_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Error) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Error other) { if (other == ucar.nc2.stream.NcStreamProto.Error.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000001; onChanged(); } if (other.getCode() != 0) { setCode(other.getCode()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { code_ = input.readUInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object message_ = ""; /** * string message = 1; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 1; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 1; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string message = 1; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string message = 1; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int code_ ; /** * uint32 code = 2; * @return The code. */ @java.lang.Override public int getCode() { return code_; } /** * uint32 code = 2; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(int value) { code_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * uint32 code = 2; * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000002); code_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Error) } // @@protoc_insertion_point(class_scope:Error) private static final ucar.nc2.stream.NcStreamProto.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Error(); } public static ucar.nc2.stream.NcStreamProto.Error getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Error parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RangeOrBuilder extends // @@protoc_insertion_point(interface_extends:Range) com.google.protobuf.MessageOrBuilder { /** * uint64 start = 1; * @return The start. */ long getStart(); /** * uint64 size = 2; * @return The size. */ long getSize(); /** * uint64 stride = 3; * @return The stride. */ long getStride(); } /** * Protobuf type {@code Range} */ public static final class Range extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Range) RangeOrBuilder { private static final long serialVersionUID = 0L; // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Range() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Range(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Range.class, ucar.nc2.stream.NcStreamProto.Range.Builder.class); } public static final int START_FIELD_NUMBER = 1; private long start_ = 0L; /** * uint64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } public static final int SIZE_FIELD_NUMBER = 2; private long size_ = 0L; /** * uint64 size = 2; * @return The size. */ @java.lang.Override public long getSize() { return size_; } public static final int STRIDE_FIELD_NUMBER = 3; private long stride_ = 0L; /** * uint64 stride = 3; * @return The stride. */ @java.lang.Override public long getStride() { return stride_; } 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 { if (start_ != 0L) { output.writeUInt64(1, start_); } if (size_ != 0L) { output.writeUInt64(2, size_); } if (stride_ != 0L) { output.writeUInt64(3, stride_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (start_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, start_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, size_); } if (stride_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, stride_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Range)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Range other = (ucar.nc2.stream.NcStreamProto.Range) obj; if (getStart() != other.getStart()) return false; if (getSize() != other.getSize()) return false; if (getStride() != other.getStride()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStart()); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (37 * hash) + STRIDE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStride()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Range parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Range parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Range parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Range parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Range parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Range parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Range 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 ucar.nc2.stream.NcStreamProto.Range parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Range 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 ucar.nc2.stream.NcStreamProto.Range parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Range 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(ucar.nc2.stream.NcStreamProto.Range 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; } /** * Protobuf type {@code Range} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Range) ucar.nc2.stream.NcStreamProto.RangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Range.class, ucar.nc2.stream.NcStreamProto.Range.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Range.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; start_ = 0L; size_ = 0L; stride_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Range_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Range getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Range.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Range build() { ucar.nc2.stream.NcStreamProto.Range result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Range buildPartial() { ucar.nc2.stream.NcStreamProto.Range result = new ucar.nc2.stream.NcStreamProto.Range(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Range result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.size_ = size_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.stride_ = stride_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Range) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Range)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Range other) { if (other == ucar.nc2.stream.NcStreamProto.Range.getDefaultInstance()) return this; if (other.getStart() != 0L) { setStart(other.getStart()); } if (other.getSize() != 0L) { setSize(other.getSize()); } if (other.getStride() != 0L) { setStride(other.getStride()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { start_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { size_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { stride_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long start_ ; /** * uint64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } /** * uint64 start = 1; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(long value) { start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * uint64 start = 1; * @return This builder for chaining. */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0L; onChanged(); return this; } private long size_ ; /** * uint64 size = 2; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** * uint64 size = 2; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * uint64 size = 2; * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000002); size_ = 0L; onChanged(); return this; } private long stride_ ; /** * uint64 stride = 3; * @return The stride. */ @java.lang.Override public long getStride() { return stride_; } /** * uint64 stride = 3; * @param value The stride to set. * @return This builder for chaining. */ public Builder setStride(long value) { stride_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * uint64 stride = 3; * @return This builder for chaining. */ public Builder clearStride() { bitField0_ = (bitField0_ & ~0x00000004); stride_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Range) } // @@protoc_insertion_point(class_scope:Range) private static final ucar.nc2.stream.NcStreamProto.Range DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Range(); } public static ucar.nc2.stream.NcStreamProto.Range getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Range parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SectionOrBuilder extends // @@protoc_insertion_point(interface_extends:Section) com.google.protobuf.MessageOrBuilder { /** * repeated .Range range = 1; */ java.util.List getRangeList(); /** * repeated .Range range = 1; */ ucar.nc2.stream.NcStreamProto.Range getRange(int index); /** * repeated .Range range = 1; */ int getRangeCount(); /** * repeated .Range range = 1; */ java.util.List getRangeOrBuilderList(); /** * repeated .Range range = 1; */ ucar.nc2.stream.NcStreamProto.RangeOrBuilder getRangeOrBuilder( int index); } /** * Protobuf type {@code Section} */ public static final class Section extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Section) SectionOrBuilder { private static final long serialVersionUID = 0L; // Use Section.newBuilder() to construct. private Section(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Section() { range_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Section(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Section_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Section_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Section.class, ucar.nc2.stream.NcStreamProto.Section.Builder.class); } public static final int RANGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List range_; /** * repeated .Range range = 1; */ @java.lang.Override public java.util.List getRangeList() { return range_; } /** * repeated .Range range = 1; */ @java.lang.Override public java.util.List getRangeOrBuilderList() { return range_; } /** * repeated .Range range = 1; */ @java.lang.Override public int getRangeCount() { return range_.size(); } /** * repeated .Range range = 1; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Range getRange(int index) { return range_.get(index); } /** * repeated .Range range = 1; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.RangeOrBuilder getRangeOrBuilder( int index) { return range_.get(index); } 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 { for (int i = 0; i < range_.size(); i++) { output.writeMessage(1, range_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < range_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, range_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Section)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Section other = (ucar.nc2.stream.NcStreamProto.Section) obj; if (!getRangeList() .equals(other.getRangeList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRangeCount() > 0) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRangeList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Section parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Section parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Section parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Section parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Section parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Section parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Section parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Section 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 ucar.nc2.stream.NcStreamProto.Section parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Section 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 ucar.nc2.stream.NcStreamProto.Section parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Section 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(ucar.nc2.stream.NcStreamProto.Section 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; } /** * Protobuf type {@code Section} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Section) ucar.nc2.stream.NcStreamProto.SectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Section_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Section_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Section.class, ucar.nc2.stream.NcStreamProto.Section.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Section.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (rangeBuilder_ == null) { range_ = java.util.Collections.emptyList(); } else { range_ = null; rangeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Section_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Section getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Section build() { ucar.nc2.stream.NcStreamProto.Section result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Section buildPartial() { ucar.nc2.stream.NcStreamProto.Section result = new ucar.nc2.stream.NcStreamProto.Section(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.Section result) { if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { range_ = java.util.Collections.unmodifiableList(range_); bitField0_ = (bitField0_ & ~0x00000001); } result.range_ = range_; } else { result.range_ = rangeBuilder_.build(); } } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Section result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Section) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Section)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Section other) { if (other == ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance()) return this; if (rangeBuilder_ == null) { if (!other.range_.isEmpty()) { if (range_.isEmpty()) { range_ = other.range_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRangeIsMutable(); range_.addAll(other.range_); } onChanged(); } } else { if (!other.range_.isEmpty()) { if (rangeBuilder_.isEmpty()) { rangeBuilder_.dispose(); rangeBuilder_ = null; range_ = other.range_; bitField0_ = (bitField0_ & ~0x00000001); rangeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangeFieldBuilder() : null; } else { rangeBuilder_.addAllMessages(other.range_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ucar.nc2.stream.NcStreamProto.Range m = input.readMessage( ucar.nc2.stream.NcStreamProto.Range.parser(), extensionRegistry); if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.add(m); } else { rangeBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List range_ = java.util.Collections.emptyList(); private void ensureRangeIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { range_ = new java.util.ArrayList(range_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Range, ucar.nc2.stream.NcStreamProto.Range.Builder, ucar.nc2.stream.NcStreamProto.RangeOrBuilder> rangeBuilder_; /** * repeated .Range range = 1; */ public java.util.List getRangeList() { if (rangeBuilder_ == null) { return java.util.Collections.unmodifiableList(range_); } else { return rangeBuilder_.getMessageList(); } } /** * repeated .Range range = 1; */ public int getRangeCount() { if (rangeBuilder_ == null) { return range_.size(); } else { return rangeBuilder_.getCount(); } } /** * repeated .Range range = 1; */ public ucar.nc2.stream.NcStreamProto.Range getRange(int index) { if (rangeBuilder_ == null) { return range_.get(index); } else { return rangeBuilder_.getMessage(index); } } /** * repeated .Range range = 1; */ public Builder setRange( int index, ucar.nc2.stream.NcStreamProto.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangeIsMutable(); range_.set(index, value); onChanged(); } else { rangeBuilder_.setMessage(index, value); } return this; } /** * repeated .Range range = 1; */ public Builder setRange( int index, ucar.nc2.stream.NcStreamProto.Range.Builder builderForValue) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.set(index, builderForValue.build()); onChanged(); } else { rangeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Range range = 1; */ public Builder addRange(ucar.nc2.stream.NcStreamProto.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangeIsMutable(); range_.add(value); onChanged(); } else { rangeBuilder_.addMessage(value); } return this; } /** * repeated .Range range = 1; */ public Builder addRange( int index, ucar.nc2.stream.NcStreamProto.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangeIsMutable(); range_.add(index, value); onChanged(); } else { rangeBuilder_.addMessage(index, value); } return this; } /** * repeated .Range range = 1; */ public Builder addRange( ucar.nc2.stream.NcStreamProto.Range.Builder builderForValue) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.add(builderForValue.build()); onChanged(); } else { rangeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Range range = 1; */ public Builder addRange( int index, ucar.nc2.stream.NcStreamProto.Range.Builder builderForValue) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.add(index, builderForValue.build()); onChanged(); } else { rangeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Range range = 1; */ public Builder addAllRange( java.lang.Iterable values) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, range_); onChanged(); } else { rangeBuilder_.addAllMessages(values); } return this; } /** * repeated .Range range = 1; */ public Builder clearRange() { if (rangeBuilder_ == null) { range_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rangeBuilder_.clear(); } return this; } /** * repeated .Range range = 1; */ public Builder removeRange(int index) { if (rangeBuilder_ == null) { ensureRangeIsMutable(); range_.remove(index); onChanged(); } else { rangeBuilder_.remove(index); } return this; } /** * repeated .Range range = 1; */ public ucar.nc2.stream.NcStreamProto.Range.Builder getRangeBuilder( int index) { return getRangeFieldBuilder().getBuilder(index); } /** * repeated .Range range = 1; */ public ucar.nc2.stream.NcStreamProto.RangeOrBuilder getRangeOrBuilder( int index) { if (rangeBuilder_ == null) { return range_.get(index); } else { return rangeBuilder_.getMessageOrBuilder(index); } } /** * repeated .Range range = 1; */ public java.util.List getRangeOrBuilderList() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(range_); } } /** * repeated .Range range = 1; */ public ucar.nc2.stream.NcStreamProto.Range.Builder addRangeBuilder() { return getRangeFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Range.getDefaultInstance()); } /** * repeated .Range range = 1; */ public ucar.nc2.stream.NcStreamProto.Range.Builder addRangeBuilder( int index) { return getRangeFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Range.getDefaultInstance()); } /** * repeated .Range range = 1; */ public java.util.List getRangeBuilderList() { return getRangeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Range, ucar.nc2.stream.NcStreamProto.Range.Builder, ucar.nc2.stream.NcStreamProto.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Range, ucar.nc2.stream.NcStreamProto.Range.Builder, ucar.nc2.stream.NcStreamProto.RangeOrBuilder>( range_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); range_ = null; } return rangeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Section) } // @@protoc_insertion_point(class_scope:Section) private static final ucar.nc2.stream.NcStreamProto.Section DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Section(); } public static ucar.nc2.stream.NcStreamProto.Section getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { @java.lang.Override public Section parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser
parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser
getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Section getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataOrBuilder extends // @@protoc_insertion_point(interface_extends:Data) com.google.protobuf.MessageOrBuilder { /** *
     * full escaped name.
     * 
* * string varName = 1; * @return The varName. */ java.lang.String getVarName(); /** *
     * full escaped name.
     * 
* * string varName = 1; * @return The bytes for varName. */ com.google.protobuf.ByteString getVarNameBytes(); /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** * .DataType dataType = 2; * @return The dataType. */ ucar.nc2.stream.NcStreamProto.DataType getDataType(); /** *
     * not required for SEQUENCE
     * 
* * .Section section = 3; * @return Whether the section field is set. */ boolean hasSection(); /** *
     * not required for SEQUENCE
     * 
* * .Section section = 3; * @return The section. */ ucar.nc2.stream.NcStreamProto.Section getSection(); /** *
     * not required for SEQUENCE
     * 
* * .Section section = 3; */ ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder(); /** *
     * [default=true] in proto2
     * 
* * bool bigend = 4; * @return Whether the bigend field is set. */ boolean hasBigend(); /** *
     * [default=true] in proto2
     * 
* * bool bigend = 4; * @return The bigend. */ boolean getBigend(); /** *
     * version=2 for proto2, >=3 for proto3 (v5.0+)
     * 
* * uint32 version = 5; * @return The version. */ int getVersion(); /** * .Compress compress = 6; * @return The enum numeric value on the wire for compress. */ int getCompressValue(); /** * .Compress compress = 6; * @return The compress. */ ucar.nc2.stream.NcStreamProto.Compress getCompress(); /** * bool vdata = 7; * @return The vdata. */ boolean getVdata(); /** * uint32 uncompressedSize = 8; * @return The uncompressedSize. */ int getUncompressedSize(); ucar.nc2.stream.NcStreamProto.Data.BigendPresentCase getBigendPresentCase(); } /** * Protobuf type {@code Data} */ public static final class Data extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Data) DataOrBuilder { private static final long serialVersionUID = 0L; // Use Data.newBuilder() to construct. private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Data() { varName_ = ""; dataType_ = 0; compress_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Data(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Data_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Data.class, ucar.nc2.stream.NcStreamProto.Data.Builder.class); } private int bigendPresentCase_ = 0; @SuppressWarnings("serial") private java.lang.Object bigendPresent_; public enum BigendPresentCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BIGEND(4), BIGENDPRESENT_NOT_SET(0); private final int value; private BigendPresentCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static BigendPresentCase valueOf(int value) { return forNumber(value); } public static BigendPresentCase forNumber(int value) { switch (value) { case 4: return BIGEND; case 0: return BIGENDPRESENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public BigendPresentCase getBigendPresentCase() { return BigendPresentCase.forNumber( bigendPresentCase_); } public static final int VARNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object varName_ = ""; /** *
     * full escaped name.
     * 
* * string varName = 1; * @return The varName. */ @java.lang.Override public java.lang.String getVarName() { java.lang.Object ref = varName_; 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(); varName_ = s; return s; } } /** *
     * full escaped name.
     * 
* * string varName = 1; * @return The bytes for varName. */ @java.lang.Override public com.google.protobuf.ByteString getVarNameBytes() { java.lang.Object ref = varName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); varName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATATYPE_FIELD_NUMBER = 2; private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } public static final int SECTION_FIELD_NUMBER = 3; private ucar.nc2.stream.NcStreamProto.Section section_; /** *
     * not required for SEQUENCE
     * 
* * .Section section = 3; * @return Whether the section field is set. */ @java.lang.Override public boolean hasSection() { return section_ != null; } /** *
     * not required for SEQUENCE
     * 
* * .Section section = 3; * @return The section. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Section getSection() { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } /** *
     * not required for SEQUENCE
     * 
* * .Section section = 3; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } public static final int BIGEND_FIELD_NUMBER = 4; /** *
     * [default=true] in proto2
     * 
* * bool bigend = 4; * @return Whether the bigend field is set. */ @java.lang.Override public boolean hasBigend() { return bigendPresentCase_ == 4; } /** *
     * [default=true] in proto2
     * 
* * bool bigend = 4; * @return The bigend. */ @java.lang.Override public boolean getBigend() { if (bigendPresentCase_ == 4) { return (java.lang.Boolean) bigendPresent_; } return false; } public static final int VERSION_FIELD_NUMBER = 5; private int version_ = 0; /** *
     * version=2 for proto2, >=3 for proto3 (v5.0+)
     * 
* * uint32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } public static final int COMPRESS_FIELD_NUMBER = 6; private int compress_ = 0; /** * .Compress compress = 6; * @return The enum numeric value on the wire for compress. */ @java.lang.Override public int getCompressValue() { return compress_; } /** * .Compress compress = 6; * @return The compress. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Compress getCompress() { ucar.nc2.stream.NcStreamProto.Compress result = ucar.nc2.stream.NcStreamProto.Compress.forNumber(compress_); return result == null ? ucar.nc2.stream.NcStreamProto.Compress.UNRECOGNIZED : result; } public static final int VDATA_FIELD_NUMBER = 7; private boolean vdata_ = false; /** * bool vdata = 7; * @return The vdata. */ @java.lang.Override public boolean getVdata() { return vdata_; } public static final int UNCOMPRESSEDSIZE_FIELD_NUMBER = 8; private int uncompressedSize_ = 0; /** * uint32 uncompressedSize = 8; * @return The uncompressedSize. */ @java.lang.Override public int getUncompressedSize() { return uncompressedSize_; } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(varName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, varName_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { output.writeEnum(2, dataType_); } if (section_ != null) { output.writeMessage(3, getSection()); } if (bigendPresentCase_ == 4) { output.writeBool( 4, (boolean)((java.lang.Boolean) bigendPresent_)); } if (version_ != 0) { output.writeUInt32(5, version_); } if (compress_ != ucar.nc2.stream.NcStreamProto.Compress.NONE.getNumber()) { output.writeEnum(6, compress_); } if (vdata_ != false) { output.writeBool(7, vdata_); } if (uncompressedSize_ != 0) { output.writeUInt32(8, uncompressedSize_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(varName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, varName_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, dataType_); } if (section_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSection()); } if (bigendPresentCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 4, (boolean)((java.lang.Boolean) bigendPresent_)); } if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, version_); } if (compress_ != ucar.nc2.stream.NcStreamProto.Compress.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, compress_); } if (vdata_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, vdata_); } if (uncompressedSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, uncompressedSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Data)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Data other = (ucar.nc2.stream.NcStreamProto.Data) obj; if (!getVarName() .equals(other.getVarName())) return false; if (dataType_ != other.dataType_) return false; if (hasSection() != other.hasSection()) return false; if (hasSection()) { if (!getSection() .equals(other.getSection())) return false; } if (getVersion() != other.getVersion()) return false; if (compress_ != other.compress_) return false; if (getVdata() != other.getVdata()) return false; if (getUncompressedSize() != other.getUncompressedSize()) return false; if (!getBigendPresentCase().equals(other.getBigendPresentCase())) return false; switch (bigendPresentCase_) { case 4: if (getBigend() != other.getBigend()) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VARNAME_FIELD_NUMBER; hash = (53 * hash) + getVarName().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; if (hasSection()) { hash = (37 * hash) + SECTION_FIELD_NUMBER; hash = (53 * hash) + getSection().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (37 * hash) + COMPRESS_FIELD_NUMBER; hash = (53 * hash) + compress_; hash = (37 * hash) + VDATA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getVdata()); hash = (37 * hash) + UNCOMPRESSEDSIZE_FIELD_NUMBER; hash = (53 * hash) + getUncompressedSize(); switch (bigendPresentCase_) { case 4: hash = (37 * hash) + BIGEND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBigend()); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Data parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Data parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Data parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Data parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Data parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Data parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Data parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Data 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 ucar.nc2.stream.NcStreamProto.Data parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Data 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 ucar.nc2.stream.NcStreamProto.Data parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Data 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(ucar.nc2.stream.NcStreamProto.Data 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; } /** * Protobuf type {@code Data} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Data) ucar.nc2.stream.NcStreamProto.DataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Data_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Data.class, ucar.nc2.stream.NcStreamProto.Data.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Data.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; varName_ = ""; dataType_ = 0; section_ = null; if (sectionBuilder_ != null) { sectionBuilder_.dispose(); sectionBuilder_ = null; } version_ = 0; compress_ = 0; vdata_ = false; uncompressedSize_ = 0; bigendPresentCase_ = 0; bigendPresent_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Data_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Data getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Data.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Data build() { ucar.nc2.stream.NcStreamProto.Data result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Data buildPartial() { ucar.nc2.stream.NcStreamProto.Data result = new ucar.nc2.stream.NcStreamProto.Data(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Data result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.varName_ = varName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dataType_ = dataType_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.section_ = sectionBuilder_ == null ? section_ : sectionBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.compress_ = compress_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.vdata_ = vdata_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.uncompressedSize_ = uncompressedSize_; } } private void buildPartialOneofs(ucar.nc2.stream.NcStreamProto.Data result) { result.bigendPresentCase_ = bigendPresentCase_; result.bigendPresent_ = this.bigendPresent_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Data) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Data)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Data other) { if (other == ucar.nc2.stream.NcStreamProto.Data.getDefaultInstance()) return this; if (!other.getVarName().isEmpty()) { varName_ = other.varName_; bitField0_ |= 0x00000001; onChanged(); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (other.hasSection()) { mergeSection(other.getSection()); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (other.compress_ != 0) { setCompressValue(other.getCompressValue()); } if (other.getVdata() != false) { setVdata(other.getVdata()); } if (other.getUncompressedSize() != 0) { setUncompressedSize(other.getUncompressedSize()); } switch (other.getBigendPresentCase()) { case BIGEND: { setBigend(other.getBigend()); break; } case BIGENDPRESENT_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { varName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { dataType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getSectionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { bigendPresent_ = input.readBool(); bigendPresentCase_ = 4; break; } // case 32 case 40: { version_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { compress_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { vdata_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { uncompressedSize_ = input.readUInt32(); bitField0_ |= 0x00000080; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bigendPresentCase_ = 0; private java.lang.Object bigendPresent_; public BigendPresentCase getBigendPresentCase() { return BigendPresentCase.forNumber( bigendPresentCase_); } public Builder clearBigendPresent() { bigendPresentCase_ = 0; bigendPresent_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object varName_ = ""; /** *
       * full escaped name.
       * 
* * string varName = 1; * @return The varName. */ public java.lang.String getVarName() { java.lang.Object ref = varName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); varName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * full escaped name.
       * 
* * string varName = 1; * @return The bytes for varName. */ public com.google.protobuf.ByteString getVarNameBytes() { java.lang.Object ref = varName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); varName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * full escaped name.
       * 
* * string varName = 1; * @param value The varName to set. * @return This builder for chaining. */ public Builder setVarName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } varName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * full escaped name.
       * 
* * string varName = 1; * @return This builder for chaining. */ public Builder clearVarName() { varName_ = getDefaultInstance().getVarName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * full escaped name.
       * 
* * string varName = 1; * @param value The bytes for varName to set. * @return This builder for chaining. */ public Builder setVarNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); varName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } /** * .DataType dataType = 2; * @param value The dataType to set. * @return This builder for chaining. */ public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dataType_ = value.getNumber(); onChanged(); return this; } /** * .DataType dataType = 2; * @return This builder for chaining. */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000002); dataType_ = 0; onChanged(); return this; } private ucar.nc2.stream.NcStreamProto.Section section_; private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> sectionBuilder_; /** *
       * not required for SEQUENCE
       * 
* * .Section section = 3; * @return Whether the section field is set. */ public boolean hasSection() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * not required for SEQUENCE
       * 
* * .Section section = 3; * @return The section. */ public ucar.nc2.stream.NcStreamProto.Section getSection() { if (sectionBuilder_ == null) { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } else { return sectionBuilder_.getMessage(); } } /** *
       * not required for SEQUENCE
       * 
* * .Section section = 3; */ public Builder setSection(ucar.nc2.stream.NcStreamProto.Section value) { if (sectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } section_ = value; } else { sectionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * not required for SEQUENCE
       * 
* * .Section section = 3; */ public Builder setSection( ucar.nc2.stream.NcStreamProto.Section.Builder builderForValue) { if (sectionBuilder_ == null) { section_ = builderForValue.build(); } else { sectionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * not required for SEQUENCE
       * 
* * .Section section = 3; */ public Builder mergeSection(ucar.nc2.stream.NcStreamProto.Section value) { if (sectionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && section_ != null && section_ != ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance()) { getSectionBuilder().mergeFrom(value); } else { section_ = value; } } else { sectionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * not required for SEQUENCE
       * 
* * .Section section = 3; */ public Builder clearSection() { bitField0_ = (bitField0_ & ~0x00000004); section_ = null; if (sectionBuilder_ != null) { sectionBuilder_.dispose(); sectionBuilder_ = null; } onChanged(); return this; } /** *
       * not required for SEQUENCE
       * 
* * .Section section = 3; */ public ucar.nc2.stream.NcStreamProto.Section.Builder getSectionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSectionFieldBuilder().getBuilder(); } /** *
       * not required for SEQUENCE
       * 
* * .Section section = 3; */ public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() { if (sectionBuilder_ != null) { return sectionBuilder_.getMessageOrBuilder(); } else { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } } /** *
       * not required for SEQUENCE
       * 
* * .Section section = 3; */ private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> getSectionFieldBuilder() { if (sectionBuilder_ == null) { sectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder>( getSection(), getParentForChildren(), isClean()); section_ = null; } return sectionBuilder_; } /** *
       * [default=true] in proto2
       * 
* * bool bigend = 4; * @return Whether the bigend field is set. */ public boolean hasBigend() { return bigendPresentCase_ == 4; } /** *
       * [default=true] in proto2
       * 
* * bool bigend = 4; * @return The bigend. */ public boolean getBigend() { if (bigendPresentCase_ == 4) { return (java.lang.Boolean) bigendPresent_; } return false; } /** *
       * [default=true] in proto2
       * 
* * bool bigend = 4; * @param value The bigend to set. * @return This builder for chaining. */ public Builder setBigend(boolean value) { bigendPresentCase_ = 4; bigendPresent_ = value; onChanged(); return this; } /** *
       * [default=true] in proto2
       * 
* * bool bigend = 4; * @return This builder for chaining. */ public Builder clearBigend() { if (bigendPresentCase_ == 4) { bigendPresentCase_ = 0; bigendPresent_ = null; onChanged(); } return this; } private int version_ ; /** *
       * version=2 for proto2, >=3 for proto3 (v5.0+)
       * 
* * uint32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } /** *
       * version=2 for proto2, >=3 for proto3 (v5.0+)
       * 
* * uint32 version = 5; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { version_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * version=2 for proto2, >=3 for proto3 (v5.0+)
       * 
* * uint32 version = 5; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000010); version_ = 0; onChanged(); return this; } private int compress_ = 0; /** * .Compress compress = 6; * @return The enum numeric value on the wire for compress. */ @java.lang.Override public int getCompressValue() { return compress_; } /** * .Compress compress = 6; * @param value The enum numeric value on the wire for compress to set. * @return This builder for chaining. */ public Builder setCompressValue(int value) { compress_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * .Compress compress = 6; * @return The compress. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Compress getCompress() { ucar.nc2.stream.NcStreamProto.Compress result = ucar.nc2.stream.NcStreamProto.Compress.forNumber(compress_); return result == null ? ucar.nc2.stream.NcStreamProto.Compress.UNRECOGNIZED : result; } /** * .Compress compress = 6; * @param value The compress to set. * @return This builder for chaining. */ public Builder setCompress(ucar.nc2.stream.NcStreamProto.Compress value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; compress_ = value.getNumber(); onChanged(); return this; } /** * .Compress compress = 6; * @return This builder for chaining. */ public Builder clearCompress() { bitField0_ = (bitField0_ & ~0x00000020); compress_ = 0; onChanged(); return this; } private boolean vdata_ ; /** * bool vdata = 7; * @return The vdata. */ @java.lang.Override public boolean getVdata() { return vdata_; } /** * bool vdata = 7; * @param value The vdata to set. * @return This builder for chaining. */ public Builder setVdata(boolean value) { vdata_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * bool vdata = 7; * @return This builder for chaining. */ public Builder clearVdata() { bitField0_ = (bitField0_ & ~0x00000040); vdata_ = false; onChanged(); return this; } private int uncompressedSize_ ; /** * uint32 uncompressedSize = 8; * @return The uncompressedSize. */ @java.lang.Override public int getUncompressedSize() { return uncompressedSize_; } /** * uint32 uncompressedSize = 8; * @param value The uncompressedSize to set. * @return This builder for chaining. */ public Builder setUncompressedSize(int value) { uncompressedSize_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * uint32 uncompressedSize = 8; * @return This builder for chaining. */ public Builder clearUncompressedSize() { bitField0_ = (bitField0_ & ~0x00000080); uncompressedSize_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Data) } // @@protoc_insertion_point(class_scope:Data) private static final ucar.nc2.stream.NcStreamProto.Data DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Data(); } public static ucar.nc2.stream.NcStreamProto.Data getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Data parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Data getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StructureDataOrBuilder extends // @@protoc_insertion_point(interface_extends:StructureData) com.google.protobuf.MessageOrBuilder { /** *
     * list of members present, if none then all, these are the index in Structure
     * 
* * repeated uint32 member = 1; * @return A list containing the member. */ java.util.List getMemberList(); /** *
     * list of members present, if none then all, these are the index in Structure
     * 
* * repeated uint32 member = 1; * @return The count of member. */ int getMemberCount(); /** *
     * list of members present, if none then all, these are the index in Structure
     * 
* * repeated uint32 member = 1; * @param index The index of the element to return. * @return The member at the given index. */ int getMember(int index); /** *
     * fixed length data
     * 
* * bytes data = 2; * @return The data. */ com.google.protobuf.ByteString getData(); /** *
     * heap String count
     * 
* * repeated uint32 heapCount = 3; * @return A list containing the heapCount. */ java.util.List getHeapCountList(); /** *
     * heap String count
     * 
* * repeated uint32 heapCount = 3; * @return The count of heapCount. */ int getHeapCountCount(); /** *
     * heap String count
     * 
* * repeated uint32 heapCount = 3; * @param index The index of the element to return. * @return The heapCount at the given index. */ int getHeapCount(int index); /** *
     * Strings
     * 
* * repeated string sdata = 4; * @return A list containing the sdata. */ java.util.List getSdataList(); /** *
     * Strings
     * 
* * repeated string sdata = 4; * @return The count of sdata. */ int getSdataCount(); /** *
     * Strings
     * 
* * repeated string sdata = 4; * @param index The index of the element to return. * @return The sdata at the given index. */ java.lang.String getSdata(int index); /** *
     * Strings
     * 
* * repeated string sdata = 4; * @param index The index of the value to return. * @return The bytes of the sdata at the given index. */ com.google.protobuf.ByteString getSdataBytes(int index); /** *
     * [default = 1] number of rows in this message
     * 
* * uint64 nrows = 5; * @return The nrows. */ long getNrows(); /** *
     * length in bytes of each row
     * 
* * uint32 rowLength = 6; * @return The rowLength. */ int getRowLength(); } /** * Protobuf type {@code StructureData} */ public static final class StructureData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:StructureData) StructureDataOrBuilder { private static final long serialVersionUID = 0L; // Use StructureData.newBuilder() to construct. private StructureData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StructureData() { member_ = emptyIntList(); data_ = com.google.protobuf.ByteString.EMPTY; heapCount_ = emptyIntList(); sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StructureData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_StructureData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_StructureData_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.StructureData.class, ucar.nc2.stream.NcStreamProto.StructureData.Builder.class); } public static final int MEMBER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList member_; /** *
     * list of members present, if none then all, these are the index in Structure
     * 
* * repeated uint32 member = 1; * @return A list containing the member. */ @java.lang.Override public java.util.List getMemberList() { return member_; } /** *
     * list of members present, if none then all, these are the index in Structure
     * 
* * repeated uint32 member = 1; * @return The count of member. */ public int getMemberCount() { return member_.size(); } /** *
     * list of members present, if none then all, these are the index in Structure
     * 
* * repeated uint32 member = 1; * @param index The index of the element to return. * @return The member at the given index. */ public int getMember(int index) { return member_.getInt(index); } private int memberMemoizedSerializedSize = -1; public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
     * fixed length data
     * 
* * bytes data = 2; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int HEAPCOUNT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList heapCount_; /** *
     * heap String count
     * 
* * repeated uint32 heapCount = 3; * @return A list containing the heapCount. */ @java.lang.Override public java.util.List getHeapCountList() { return heapCount_; } /** *
     * heap String count
     * 
* * repeated uint32 heapCount = 3; * @return The count of heapCount. */ public int getHeapCountCount() { return heapCount_.size(); } /** *
     * heap String count
     * 
* * repeated uint32 heapCount = 3; * @param index The index of the element to return. * @return The heapCount at the given index. */ public int getHeapCount(int index) { return heapCount_.getInt(index); } private int heapCountMemoizedSerializedSize = -1; public static final int SDATA_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * Strings
     * 
* * repeated string sdata = 4; * @return A list containing the sdata. */ public com.google.protobuf.ProtocolStringList getSdataList() { return sdata_; } /** *
     * Strings
     * 
* * repeated string sdata = 4; * @return The count of sdata. */ public int getSdataCount() { return sdata_.size(); } /** *
     * Strings
     * 
* * repeated string sdata = 4; * @param index The index of the element to return. * @return The sdata at the given index. */ public java.lang.String getSdata(int index) { return sdata_.get(index); } /** *
     * Strings
     * 
* * repeated string sdata = 4; * @param index The index of the value to return. * @return The bytes of the sdata at the given index. */ public com.google.protobuf.ByteString getSdataBytes(int index) { return sdata_.getByteString(index); } public static final int NROWS_FIELD_NUMBER = 5; private long nrows_ = 0L; /** *
     * [default = 1] number of rows in this message
     * 
* * uint64 nrows = 5; * @return The nrows. */ @java.lang.Override public long getNrows() { return nrows_; } public static final int ROWLENGTH_FIELD_NUMBER = 6; private int rowLength_ = 0; /** *
     * length in bytes of each row
     * 
* * uint32 rowLength = 6; * @return The rowLength. */ @java.lang.Override public int getRowLength() { return rowLength_; } 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 (getMemberList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(memberMemoizedSerializedSize); } for (int i = 0; i < member_.size(); i++) { output.writeUInt32NoTag(member_.getInt(i)); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } if (getHeapCountList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(heapCountMemoizedSerializedSize); } for (int i = 0; i < heapCount_.size(); i++) { output.writeUInt32NoTag(heapCount_.getInt(i)); } for (int i = 0; i < sdata_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sdata_.getRaw(i)); } if (nrows_ != 0L) { output.writeUInt64(5, nrows_); } if (rowLength_ != 0) { output.writeUInt32(6, rowLength_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < member_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(member_.getInt(i)); } size += dataSize; if (!getMemberList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } memberMemoizedSerializedSize = dataSize; } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } { int dataSize = 0; for (int i = 0; i < heapCount_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(heapCount_.getInt(i)); } size += dataSize; if (!getHeapCountList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } heapCountMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < sdata_.size(); i++) { dataSize += computeStringSizeNoTag(sdata_.getRaw(i)); } size += dataSize; size += 1 * getSdataList().size(); } if (nrows_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, nrows_); } if (rowLength_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, rowLength_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.StructureData)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.StructureData other = (ucar.nc2.stream.NcStreamProto.StructureData) obj; if (!getMemberList() .equals(other.getMemberList())) return false; if (!getData() .equals(other.getData())) return false; if (!getHeapCountList() .equals(other.getHeapCountList())) return false; if (!getSdataList() .equals(other.getSdataList())) return false; if (getNrows() != other.getNrows()) return false; if (getRowLength() != other.getRowLength()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getMemberCount() > 0) { hash = (37 * hash) + MEMBER_FIELD_NUMBER; hash = (53 * hash) + getMemberList().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); if (getHeapCountCount() > 0) { hash = (37 * hash) + HEAPCOUNT_FIELD_NUMBER; hash = (53 * hash) + getHeapCountList().hashCode(); } if (getSdataCount() > 0) { hash = (37 * hash) + SDATA_FIELD_NUMBER; hash = (53 * hash) + getSdataList().hashCode(); } hash = (37 * hash) + NROWS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNrows()); hash = (37 * hash) + ROWLENGTH_FIELD_NUMBER; hash = (53 * hash) + getRowLength(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.StructureData 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 ucar.nc2.stream.NcStreamProto.StructureData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.StructureData 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 ucar.nc2.stream.NcStreamProto.StructureData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.StructureData 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(ucar.nc2.stream.NcStreamProto.StructureData 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; } /** * Protobuf type {@code StructureData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:StructureData) ucar.nc2.stream.NcStreamProto.StructureDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_StructureData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_StructureData_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.StructureData.class, ucar.nc2.stream.NcStreamProto.StructureData.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.StructureData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; member_ = emptyIntList(); data_ = com.google.protobuf.ByteString.EMPTY; heapCount_ = emptyIntList(); sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); nrows_ = 0L; rowLength_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_StructureData_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.StructureData getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.StructureData.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.StructureData build() { ucar.nc2.stream.NcStreamProto.StructureData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.StructureData buildPartial() { ucar.nc2.stream.NcStreamProto.StructureData result = new ucar.nc2.stream.NcStreamProto.StructureData(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.StructureData result) { if (((bitField0_ & 0x00000001) != 0)) { member_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.member_ = member_; if (((bitField0_ & 0x00000004) != 0)) { heapCount_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.heapCount_ = heapCount_; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.StructureData result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.data_ = data_; } if (((from_bitField0_ & 0x00000008) != 0)) { sdata_.makeImmutable(); result.sdata_ = sdata_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.nrows_ = nrows_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.rowLength_ = rowLength_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.StructureData) { return mergeFrom((ucar.nc2.stream.NcStreamProto.StructureData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.StructureData other) { if (other == ucar.nc2.stream.NcStreamProto.StructureData.getDefaultInstance()) return this; if (!other.member_.isEmpty()) { if (member_.isEmpty()) { member_ = other.member_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMemberIsMutable(); member_.addAll(other.member_); } onChanged(); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (!other.heapCount_.isEmpty()) { if (heapCount_.isEmpty()) { heapCount_ = other.heapCount_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureHeapCountIsMutable(); heapCount_.addAll(other.heapCount_); } onChanged(); } if (!other.sdata_.isEmpty()) { if (sdata_.isEmpty()) { sdata_ = other.sdata_; bitField0_ |= 0x00000008; } else { ensureSdataIsMutable(); sdata_.addAll(other.sdata_); } onChanged(); } if (other.getNrows() != 0L) { setNrows(other.getNrows()); } if (other.getRowLength() != 0) { setRowLength(other.getRowLength()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int v = input.readUInt32(); ensureMemberIsMutable(); member_.addInt(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureMemberIsMutable(); while (input.getBytesUntilLimit() > 0) { member_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 10 case 18: { data_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { int v = input.readUInt32(); ensureHeapCountIsMutable(); heapCount_.addInt(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureHeapCountIsMutable(); while (input.getBytesUntilLimit() > 0) { heapCount_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureSdataIsMutable(); sdata_.add(s); break; } // case 34 case 40: { nrows_ = input.readUInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { rowLength_ = input.readUInt32(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.IntList member_ = emptyIntList(); private void ensureMemberIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { member_ = mutableCopy(member_); bitField0_ |= 0x00000001; } } /** *
       * list of members present, if none then all, these are the index in Structure
       * 
* * repeated uint32 member = 1; * @return A list containing the member. */ public java.util.List getMemberList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(member_) : member_; } /** *
       * list of members present, if none then all, these are the index in Structure
       * 
* * repeated uint32 member = 1; * @return The count of member. */ public int getMemberCount() { return member_.size(); } /** *
       * list of members present, if none then all, these are the index in Structure
       * 
* * repeated uint32 member = 1; * @param index The index of the element to return. * @return The member at the given index. */ public int getMember(int index) { return member_.getInt(index); } /** *
       * list of members present, if none then all, these are the index in Structure
       * 
* * repeated uint32 member = 1; * @param index The index to set the value at. * @param value The member to set. * @return This builder for chaining. */ public Builder setMember( int index, int value) { ensureMemberIsMutable(); member_.setInt(index, value); onChanged(); return this; } /** *
       * list of members present, if none then all, these are the index in Structure
       * 
* * repeated uint32 member = 1; * @param value The member to add. * @return This builder for chaining. */ public Builder addMember(int value) { ensureMemberIsMutable(); member_.addInt(value); onChanged(); return this; } /** *
       * list of members present, if none then all, these are the index in Structure
       * 
* * repeated uint32 member = 1; * @param values The member to add. * @return This builder for chaining. */ public Builder addAllMember( java.lang.Iterable values) { ensureMemberIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, member_); onChanged(); return this; } /** *
       * list of members present, if none then all, these are the index in Structure
       * 
* * repeated uint32 member = 1; * @return This builder for chaining. */ public Builder clearMember() { member_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * fixed length data
       * 
* * bytes data = 2; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * fixed length data
       * 
* * bytes data = 2; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * fixed length data
       * 
* * bytes data = 2; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; } private com.google.protobuf.Internal.IntList heapCount_ = emptyIntList(); private void ensureHeapCountIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { heapCount_ = mutableCopy(heapCount_); bitField0_ |= 0x00000004; } } /** *
       * heap String count
       * 
* * repeated uint32 heapCount = 3; * @return A list containing the heapCount. */ public java.util.List getHeapCountList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(heapCount_) : heapCount_; } /** *
       * heap String count
       * 
* * repeated uint32 heapCount = 3; * @return The count of heapCount. */ public int getHeapCountCount() { return heapCount_.size(); } /** *
       * heap String count
       * 
* * repeated uint32 heapCount = 3; * @param index The index of the element to return. * @return The heapCount at the given index. */ public int getHeapCount(int index) { return heapCount_.getInt(index); } /** *
       * heap String count
       * 
* * repeated uint32 heapCount = 3; * @param index The index to set the value at. * @param value The heapCount to set. * @return This builder for chaining. */ public Builder setHeapCount( int index, int value) { ensureHeapCountIsMutable(); heapCount_.setInt(index, value); onChanged(); return this; } /** *
       * heap String count
       * 
* * repeated uint32 heapCount = 3; * @param value The heapCount to add. * @return This builder for chaining. */ public Builder addHeapCount(int value) { ensureHeapCountIsMutable(); heapCount_.addInt(value); onChanged(); return this; } /** *
       * heap String count
       * 
* * repeated uint32 heapCount = 3; * @param values The heapCount to add. * @return This builder for chaining. */ public Builder addAllHeapCount( java.lang.Iterable values) { ensureHeapCountIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, heapCount_); onChanged(); return this; } /** *
       * heap String count
       * 
* * repeated uint32 heapCount = 3; * @return This builder for chaining. */ public Builder clearHeapCount() { heapCount_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSdataIsMutable() { if (!sdata_.isModifiable()) { sdata_ = new com.google.protobuf.LazyStringArrayList(sdata_); } bitField0_ |= 0x00000008; } /** *
       * Strings
       * 
* * repeated string sdata = 4; * @return A list containing the sdata. */ public com.google.protobuf.ProtocolStringList getSdataList() { sdata_.makeImmutable(); return sdata_; } /** *
       * Strings
       * 
* * repeated string sdata = 4; * @return The count of sdata. */ public int getSdataCount() { return sdata_.size(); } /** *
       * Strings
       * 
* * repeated string sdata = 4; * @param index The index of the element to return. * @return The sdata at the given index. */ public java.lang.String getSdata(int index) { return sdata_.get(index); } /** *
       * Strings
       * 
* * repeated string sdata = 4; * @param index The index of the value to return. * @return The bytes of the sdata at the given index. */ public com.google.protobuf.ByteString getSdataBytes(int index) { return sdata_.getByteString(index); } /** *
       * Strings
       * 
* * repeated string sdata = 4; * @param index The index to set the value at. * @param value The sdata to set. * @return This builder for chaining. */ public Builder setSdata( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSdataIsMutable(); sdata_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Strings
       * 
* * repeated string sdata = 4; * @param value The sdata to add. * @return This builder for chaining. */ public Builder addSdata( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSdataIsMutable(); sdata_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Strings
       * 
* * repeated string sdata = 4; * @param values The sdata to add. * @return This builder for chaining. */ public Builder addAllSdata( java.lang.Iterable values) { ensureSdataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sdata_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Strings
       * 
* * repeated string sdata = 4; * @return This builder for chaining. */ public Builder clearSdata() { sdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
       * Strings
       * 
* * repeated string sdata = 4; * @param value The bytes of the sdata to add. * @return This builder for chaining. */ public Builder addSdataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSdataIsMutable(); sdata_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private long nrows_ ; /** *
       * [default = 1] number of rows in this message
       * 
* * uint64 nrows = 5; * @return The nrows. */ @java.lang.Override public long getNrows() { return nrows_; } /** *
       * [default = 1] number of rows in this message
       * 
* * uint64 nrows = 5; * @param value The nrows to set. * @return This builder for chaining. */ public Builder setNrows(long value) { nrows_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * [default = 1] number of rows in this message
       * 
* * uint64 nrows = 5; * @return This builder for chaining. */ public Builder clearNrows() { bitField0_ = (bitField0_ & ~0x00000010); nrows_ = 0L; onChanged(); return this; } private int rowLength_ ; /** *
       * length in bytes of each row
       * 
* * uint32 rowLength = 6; * @return The rowLength. */ @java.lang.Override public int getRowLength() { return rowLength_; } /** *
       * length in bytes of each row
       * 
* * uint32 rowLength = 6; * @param value The rowLength to set. * @return This builder for chaining. */ public Builder setRowLength(int value) { rowLength_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * length in bytes of each row
       * 
* * uint32 rowLength = 6; * @return This builder for chaining. */ public Builder clearRowLength() { bitField0_ = (bitField0_ & ~0x00000020); rowLength_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:StructureData) } // @@protoc_insertion_point(class_scope:StructureData) private static final ucar.nc2.stream.NcStreamProto.StructureData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.StructureData(); } public static ucar.nc2.stream.NcStreamProto.StructureData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StructureData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.StructureData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataColOrBuilder extends // @@protoc_insertion_point(interface_extends:DataCol) com.google.protobuf.MessageOrBuilder { /** *
     * fullname for top, shortname for member
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * fullname for top, shortname for member
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** * .DataType dataType = 2; * @return The dataType. */ ucar.nc2.stream.NcStreamProto.DataType getDataType(); /** * .Section section = 3; * @return Whether the section field is set. */ boolean hasSection(); /** * .Section section = 3; * @return The section. */ ucar.nc2.stream.NcStreamProto.Section getSection(); /** * .Section section = 3; */ ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder(); /** * bool bigend = 4; * @return The bigend. */ boolean getBigend(); /** * uint32 version = 5; * @return The version. */ int getVersion(); /** * bool isVlen = 7; * @return The isVlen. */ boolean getIsVlen(); /** * uint32 nelems = 9; * @return The nelems. */ int getNelems(); /** *
     * oneof
     * 
* * bytes primdata = 10; * @return The primdata. */ com.google.protobuf.ByteString getPrimdata(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return A list containing the stringdata. */ java.util.List getStringdataList(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return The count of stringdata. */ int getStringdataCount(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the element to return. * @return The stringdata at the given index. */ java.lang.String getStringdata(int index); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the value to return. * @return The bytes of the stringdata at the given index. */ com.google.protobuf.ByteString getStringdataBytes(int index); /** *
     * isVlen true
     * 
* * repeated uint32 vlens = 12; * @return A list containing the vlens. */ java.util.List getVlensList(); /** *
     * isVlen true
     * 
* * repeated uint32 vlens = 12; * @return The count of vlens. */ int getVlensCount(); /** *
     * isVlen true
     * 
* * repeated uint32 vlens = 12; * @param index The index of the element to return. * @return The vlens at the given index. */ int getVlens(int index); /** *
     * opaque dataType
     * 
* * repeated bytes opaquedata = 13; * @return A list containing the opaquedata. */ java.util.List getOpaquedataList(); /** *
     * opaque dataType
     * 
* * repeated bytes opaquedata = 13; * @return The count of opaquedata. */ int getOpaquedataCount(); /** *
     * opaque dataType
     * 
* * repeated bytes opaquedata = 13; * @param index The index of the element to return. * @return The opaquedata at the given index. */ com.google.protobuf.ByteString getOpaquedata(int index); /** *
     * structures
     * 
* * .ArrayStructureCol structdata = 14; * @return Whether the structdata field is set. */ boolean hasStructdata(); /** *
     * structures
     * 
* * .ArrayStructureCol structdata = 14; * @return The structdata. */ ucar.nc2.stream.NcStreamProto.ArrayStructureCol getStructdata(); /** *
     * structures
     * 
* * .ArrayStructureCol structdata = 14; */ ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder getStructdataOrBuilder(); } /** * Protobuf type {@code DataCol} */ public static final class DataCol extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:DataCol) DataColOrBuilder { private static final long serialVersionUID = 0L; // Use DataCol.newBuilder() to construct. private DataCol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataCol() { name_ = ""; dataType_ = 0; primdata_ = com.google.protobuf.ByteString.EMPTY; stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); vlens_ = emptyIntList(); opaquedata_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DataCol(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_DataCol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_DataCol_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.DataCol.class, ucar.nc2.stream.NcStreamProto.DataCol.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * fullname for top, shortname for member
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * fullname for top, shortname for member
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATATYPE_FIELD_NUMBER = 2; private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } public static final int SECTION_FIELD_NUMBER = 3; private ucar.nc2.stream.NcStreamProto.Section section_; /** * .Section section = 3; * @return Whether the section field is set. */ @java.lang.Override public boolean hasSection() { return section_ != null; } /** * .Section section = 3; * @return The section. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Section getSection() { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } /** * .Section section = 3; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } public static final int BIGEND_FIELD_NUMBER = 4; private boolean bigend_ = false; /** * bool bigend = 4; * @return The bigend. */ @java.lang.Override public boolean getBigend() { return bigend_; } public static final int VERSION_FIELD_NUMBER = 5; private int version_ = 0; /** * uint32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } public static final int ISVLEN_FIELD_NUMBER = 7; private boolean isVlen_ = false; /** * bool isVlen = 7; * @return The isVlen. */ @java.lang.Override public boolean getIsVlen() { return isVlen_; } public static final int NELEMS_FIELD_NUMBER = 9; private int nelems_ = 0; /** * uint32 nelems = 9; * @return The nelems. */ @java.lang.Override public int getNelems() { return nelems_; } public static final int PRIMDATA_FIELD_NUMBER = 10; private com.google.protobuf.ByteString primdata_ = com.google.protobuf.ByteString.EMPTY; /** *
     * oneof
     * 
* * bytes primdata = 10; * @return The primdata. */ @java.lang.Override public com.google.protobuf.ByteString getPrimdata() { return primdata_; } public static final int STRINGDATA_FIELD_NUMBER = 11; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return A list containing the stringdata. */ public com.google.protobuf.ProtocolStringList getStringdataList() { return stringdata_; } /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return The count of stringdata. */ public int getStringdataCount() { return stringdata_.size(); } /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the element to return. * @return The stringdata at the given index. */ public java.lang.String getStringdata(int index) { return stringdata_.get(index); } /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the value to return. * @return The bytes of the stringdata at the given index. */ public com.google.protobuf.ByteString getStringdataBytes(int index) { return stringdata_.getByteString(index); } public static final int VLENS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList vlens_; /** *
     * isVlen true
     * 
* * repeated uint32 vlens = 12; * @return A list containing the vlens. */ @java.lang.Override public java.util.List getVlensList() { return vlens_; } /** *
     * isVlen true
     * 
* * repeated uint32 vlens = 12; * @return The count of vlens. */ public int getVlensCount() { return vlens_.size(); } /** *
     * isVlen true
     * 
* * repeated uint32 vlens = 12; * @param index The index of the element to return. * @return The vlens at the given index. */ public int getVlens(int index) { return vlens_.getInt(index); } private int vlensMemoizedSerializedSize = -1; public static final int OPAQUEDATA_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List opaquedata_; /** *
     * opaque dataType
     * 
* * repeated bytes opaquedata = 13; * @return A list containing the opaquedata. */ @java.lang.Override public java.util.List getOpaquedataList() { return opaquedata_; } /** *
     * opaque dataType
     * 
* * repeated bytes opaquedata = 13; * @return The count of opaquedata. */ public int getOpaquedataCount() { return opaquedata_.size(); } /** *
     * opaque dataType
     * 
* * repeated bytes opaquedata = 13; * @param index The index of the element to return. * @return The opaquedata at the given index. */ public com.google.protobuf.ByteString getOpaquedata(int index) { return opaquedata_.get(index); } public static final int STRUCTDATA_FIELD_NUMBER = 14; private ucar.nc2.stream.NcStreamProto.ArrayStructureCol structdata_; /** *
     * structures
     * 
* * .ArrayStructureCol structdata = 14; * @return Whether the structdata field is set. */ @java.lang.Override public boolean hasStructdata() { return structdata_ != null; } /** *
     * structures
     * 
* * .ArrayStructureCol structdata = 14; * @return The structdata. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureCol getStructdata() { return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance() : structdata_; } /** *
     * structures
     * 
* * .ArrayStructureCol structdata = 14; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder getStructdataOrBuilder() { return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance() : structdata_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { output.writeEnum(2, dataType_); } if (section_ != null) { output.writeMessage(3, getSection()); } if (bigend_ != false) { output.writeBool(4, bigend_); } if (version_ != 0) { output.writeUInt32(5, version_); } if (isVlen_ != false) { output.writeBool(7, isVlen_); } if (nelems_ != 0) { output.writeUInt32(9, nelems_); } if (!primdata_.isEmpty()) { output.writeBytes(10, primdata_); } for (int i = 0; i < stringdata_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, stringdata_.getRaw(i)); } if (getVlensList().size() > 0) { output.writeUInt32NoTag(98); output.writeUInt32NoTag(vlensMemoizedSerializedSize); } for (int i = 0; i < vlens_.size(); i++) { output.writeUInt32NoTag(vlens_.getInt(i)); } for (int i = 0; i < opaquedata_.size(); i++) { output.writeBytes(13, opaquedata_.get(i)); } if (structdata_ != null) { output.writeMessage(14, getStructdata()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, dataType_); } if (section_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSection()); } if (bigend_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, bigend_); } if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, version_); } if (isVlen_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isVlen_); } if (nelems_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, nelems_); } if (!primdata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, primdata_); } { int dataSize = 0; for (int i = 0; i < stringdata_.size(); i++) { dataSize += computeStringSizeNoTag(stringdata_.getRaw(i)); } size += dataSize; size += 1 * getStringdataList().size(); } { int dataSize = 0; for (int i = 0; i < vlens_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(vlens_.getInt(i)); } size += dataSize; if (!getVlensList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } vlensMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < opaquedata_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(opaquedata_.get(i)); } size += dataSize; size += 1 * getOpaquedataList().size(); } if (structdata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getStructdata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.DataCol)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.DataCol other = (ucar.nc2.stream.NcStreamProto.DataCol) obj; if (!getName() .equals(other.getName())) return false; if (dataType_ != other.dataType_) return false; if (hasSection() != other.hasSection()) return false; if (hasSection()) { if (!getSection() .equals(other.getSection())) return false; } if (getBigend() != other.getBigend()) return false; if (getVersion() != other.getVersion()) return false; if (getIsVlen() != other.getIsVlen()) return false; if (getNelems() != other.getNelems()) return false; if (!getPrimdata() .equals(other.getPrimdata())) return false; if (!getStringdataList() .equals(other.getStringdataList())) return false; if (!getVlensList() .equals(other.getVlensList())) return false; if (!getOpaquedataList() .equals(other.getOpaquedataList())) return false; if (hasStructdata() != other.hasStructdata()) return false; if (hasStructdata()) { if (!getStructdata() .equals(other.getStructdata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; if (hasSection()) { hash = (37 * hash) + SECTION_FIELD_NUMBER; hash = (53 * hash) + getSection().hashCode(); } hash = (37 * hash) + BIGEND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBigend()); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (37 * hash) + ISVLEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsVlen()); hash = (37 * hash) + NELEMS_FIELD_NUMBER; hash = (53 * hash) + getNelems(); hash = (37 * hash) + PRIMDATA_FIELD_NUMBER; hash = (53 * hash) + getPrimdata().hashCode(); if (getStringdataCount() > 0) { hash = (37 * hash) + STRINGDATA_FIELD_NUMBER; hash = (53 * hash) + getStringdataList().hashCode(); } if (getVlensCount() > 0) { hash = (37 * hash) + VLENS_FIELD_NUMBER; hash = (53 * hash) + getVlensList().hashCode(); } if (getOpaquedataCount() > 0) { hash = (37 * hash) + OPAQUEDATA_FIELD_NUMBER; hash = (53 * hash) + getOpaquedataList().hashCode(); } if (hasStructdata()) { hash = (37 * hash) + STRUCTDATA_FIELD_NUMBER; hash = (53 * hash) + getStructdata().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.DataCol 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 ucar.nc2.stream.NcStreamProto.DataCol parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.DataCol 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 ucar.nc2.stream.NcStreamProto.DataCol parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.DataCol 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(ucar.nc2.stream.NcStreamProto.DataCol 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; } /** * Protobuf type {@code DataCol} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:DataCol) ucar.nc2.stream.NcStreamProto.DataColOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_DataCol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_DataCol_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.DataCol.class, ucar.nc2.stream.NcStreamProto.DataCol.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.DataCol.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; dataType_ = 0; section_ = null; if (sectionBuilder_ != null) { sectionBuilder_.dispose(); sectionBuilder_ = null; } bigend_ = false; version_ = 0; isVlen_ = false; nelems_ = 0; primdata_ = com.google.protobuf.ByteString.EMPTY; stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); vlens_ = emptyIntList(); opaquedata_ = java.util.Collections.emptyList(); structdata_ = null; if (structdataBuilder_ != null) { structdataBuilder_.dispose(); structdataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_DataCol_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataCol getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.DataCol.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataCol build() { ucar.nc2.stream.NcStreamProto.DataCol result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataCol buildPartial() { ucar.nc2.stream.NcStreamProto.DataCol result = new ucar.nc2.stream.NcStreamProto.DataCol(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.DataCol result) { if (((bitField0_ & 0x00000200) != 0)) { vlens_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000200); } result.vlens_ = vlens_; if (((bitField0_ & 0x00000400) != 0)) { opaquedata_ = java.util.Collections.unmodifiableList(opaquedata_); bitField0_ = (bitField0_ & ~0x00000400); } result.opaquedata_ = opaquedata_; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.DataCol result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dataType_ = dataType_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.section_ = sectionBuilder_ == null ? section_ : sectionBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.bigend_ = bigend_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.isVlen_ = isVlen_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.nelems_ = nelems_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.primdata_ = primdata_; } if (((from_bitField0_ & 0x00000100) != 0)) { stringdata_.makeImmutable(); result.stringdata_ = stringdata_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.structdata_ = structdataBuilder_ == null ? structdata_ : structdataBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.DataCol) { return mergeFrom((ucar.nc2.stream.NcStreamProto.DataCol)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.DataCol other) { if (other == ucar.nc2.stream.NcStreamProto.DataCol.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (other.hasSection()) { mergeSection(other.getSection()); } if (other.getBigend() != false) { setBigend(other.getBigend()); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (other.getIsVlen() != false) { setIsVlen(other.getIsVlen()); } if (other.getNelems() != 0) { setNelems(other.getNelems()); } if (other.getPrimdata() != com.google.protobuf.ByteString.EMPTY) { setPrimdata(other.getPrimdata()); } if (!other.stringdata_.isEmpty()) { if (stringdata_.isEmpty()) { stringdata_ = other.stringdata_; bitField0_ |= 0x00000100; } else { ensureStringdataIsMutable(); stringdata_.addAll(other.stringdata_); } onChanged(); } if (!other.vlens_.isEmpty()) { if (vlens_.isEmpty()) { vlens_ = other.vlens_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureVlensIsMutable(); vlens_.addAll(other.vlens_); } onChanged(); } if (!other.opaquedata_.isEmpty()) { if (opaquedata_.isEmpty()) { opaquedata_ = other.opaquedata_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureOpaquedataIsMutable(); opaquedata_.addAll(other.opaquedata_); } onChanged(); } if (other.hasStructdata()) { mergeStructdata(other.getStructdata()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { dataType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getSectionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { bigend_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { version_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 56: { isVlen_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 56 case 72: { nelems_ = input.readUInt32(); bitField0_ |= 0x00000040; break; } // case 72 case 82: { primdata_ = input.readBytes(); bitField0_ |= 0x00000080; break; } // case 82 case 90: { java.lang.String s = input.readStringRequireUtf8(); ensureStringdataIsMutable(); stringdata_.add(s); break; } // case 90 case 96: { int v = input.readUInt32(); ensureVlensIsMutable(); vlens_.addInt(v); break; } // case 96 case 98: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureVlensIsMutable(); while (input.getBytesUntilLimit() > 0) { vlens_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 98 case 106: { com.google.protobuf.ByteString v = input.readBytes(); ensureOpaquedataIsMutable(); opaquedata_.add(v); break; } // case 106 case 114: { input.readMessage( getStructdataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * fullname for top, shortname for member
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * fullname for top, shortname for member
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * fullname for top, shortname for member
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * fullname for top, shortname for member
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * fullname for top, shortname for member
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } /** * .DataType dataType = 2; * @param value The dataType to set. * @return This builder for chaining. */ public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dataType_ = value.getNumber(); onChanged(); return this; } /** * .DataType dataType = 2; * @return This builder for chaining. */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000002); dataType_ = 0; onChanged(); return this; } private ucar.nc2.stream.NcStreamProto.Section section_; private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> sectionBuilder_; /** * .Section section = 3; * @return Whether the section field is set. */ public boolean hasSection() { return ((bitField0_ & 0x00000004) != 0); } /** * .Section section = 3; * @return The section. */ public ucar.nc2.stream.NcStreamProto.Section getSection() { if (sectionBuilder_ == null) { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } else { return sectionBuilder_.getMessage(); } } /** * .Section section = 3; */ public Builder setSection(ucar.nc2.stream.NcStreamProto.Section value) { if (sectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } section_ = value; } else { sectionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Section section = 3; */ public Builder setSection( ucar.nc2.stream.NcStreamProto.Section.Builder builderForValue) { if (sectionBuilder_ == null) { section_ = builderForValue.build(); } else { sectionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Section section = 3; */ public Builder mergeSection(ucar.nc2.stream.NcStreamProto.Section value) { if (sectionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && section_ != null && section_ != ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance()) { getSectionBuilder().mergeFrom(value); } else { section_ = value; } } else { sectionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Section section = 3; */ public Builder clearSection() { bitField0_ = (bitField0_ & ~0x00000004); section_ = null; if (sectionBuilder_ != null) { sectionBuilder_.dispose(); sectionBuilder_ = null; } onChanged(); return this; } /** * .Section section = 3; */ public ucar.nc2.stream.NcStreamProto.Section.Builder getSectionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSectionFieldBuilder().getBuilder(); } /** * .Section section = 3; */ public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() { if (sectionBuilder_ != null) { return sectionBuilder_.getMessageOrBuilder(); } else { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } } /** * .Section section = 3; */ private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> getSectionFieldBuilder() { if (sectionBuilder_ == null) { sectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder>( getSection(), getParentForChildren(), isClean()); section_ = null; } return sectionBuilder_; } private boolean bigend_ ; /** * bool bigend = 4; * @return The bigend. */ @java.lang.Override public boolean getBigend() { return bigend_; } /** * bool bigend = 4; * @param value The bigend to set. * @return This builder for chaining. */ public Builder setBigend(boolean value) { bigend_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bool bigend = 4; * @return This builder for chaining. */ public Builder clearBigend() { bitField0_ = (bitField0_ & ~0x00000008); bigend_ = false; onChanged(); return this; } private int version_ ; /** * uint32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } /** * uint32 version = 5; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { version_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * uint32 version = 5; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000010); version_ = 0; onChanged(); return this; } private boolean isVlen_ ; /** * bool isVlen = 7; * @return The isVlen. */ @java.lang.Override public boolean getIsVlen() { return isVlen_; } /** * bool isVlen = 7; * @param value The isVlen to set. * @return This builder for chaining. */ public Builder setIsVlen(boolean value) { isVlen_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bool isVlen = 7; * @return This builder for chaining. */ public Builder clearIsVlen() { bitField0_ = (bitField0_ & ~0x00000020); isVlen_ = false; onChanged(); return this; } private int nelems_ ; /** * uint32 nelems = 9; * @return The nelems. */ @java.lang.Override public int getNelems() { return nelems_; } /** * uint32 nelems = 9; * @param value The nelems to set. * @return This builder for chaining. */ public Builder setNelems(int value) { nelems_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * uint32 nelems = 9; * @return This builder for chaining. */ public Builder clearNelems() { bitField0_ = (bitField0_ & ~0x00000040); nelems_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString primdata_ = com.google.protobuf.ByteString.EMPTY; /** *
       * oneof
       * 
* * bytes primdata = 10; * @return The primdata. */ @java.lang.Override public com.google.protobuf.ByteString getPrimdata() { return primdata_; } /** *
       * oneof
       * 
* * bytes primdata = 10; * @param value The primdata to set. * @return This builder for chaining. */ public Builder setPrimdata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primdata_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * oneof
       * 
* * bytes primdata = 10; * @return This builder for chaining. */ public Builder clearPrimdata() { bitField0_ = (bitField0_ & ~0x00000080); primdata_ = getDefaultInstance().getPrimdata(); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStringdataIsMutable() { if (!stringdata_.isModifiable()) { stringdata_ = new com.google.protobuf.LazyStringArrayList(stringdata_); } bitField0_ |= 0x00000100; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @return A list containing the stringdata. */ public com.google.protobuf.ProtocolStringList getStringdataList() { stringdata_.makeImmutable(); return stringdata_; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @return The count of stringdata. */ public int getStringdataCount() { return stringdata_.size(); } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param index The index of the element to return. * @return The stringdata at the given index. */ public java.lang.String getStringdata(int index) { return stringdata_.get(index); } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param index The index of the value to return. * @return The bytes of the stringdata at the given index. */ public com.google.protobuf.ByteString getStringdataBytes(int index) { return stringdata_.getByteString(index); } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param index The index to set the value at. * @param value The stringdata to set. * @return This builder for chaining. */ public Builder setStringdata( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringdataIsMutable(); stringdata_.set(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param value The stringdata to add. * @return This builder for chaining. */ public Builder addStringdata( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringdataIsMutable(); stringdata_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param values The stringdata to add. * @return This builder for chaining. */ public Builder addAllStringdata( java.lang.Iterable values) { ensureStringdataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stringdata_); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @return This builder for chaining. */ public Builder clearStringdata() { stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param value The bytes of the stringdata to add. * @return This builder for chaining. */ public Builder addStringdataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStringdataIsMutable(); stringdata_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.Internal.IntList vlens_ = emptyIntList(); private void ensureVlensIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { vlens_ = mutableCopy(vlens_); bitField0_ |= 0x00000200; } } /** *
       * isVlen true
       * 
* * repeated uint32 vlens = 12; * @return A list containing the vlens. */ public java.util.List getVlensList() { return ((bitField0_ & 0x00000200) != 0) ? java.util.Collections.unmodifiableList(vlens_) : vlens_; } /** *
       * isVlen true
       * 
* * repeated uint32 vlens = 12; * @return The count of vlens. */ public int getVlensCount() { return vlens_.size(); } /** *
       * isVlen true
       * 
* * repeated uint32 vlens = 12; * @param index The index of the element to return. * @return The vlens at the given index. */ public int getVlens(int index) { return vlens_.getInt(index); } /** *
       * isVlen true
       * 
* * repeated uint32 vlens = 12; * @param index The index to set the value at. * @param value The vlens to set. * @return This builder for chaining. */ public Builder setVlens( int index, int value) { ensureVlensIsMutable(); vlens_.setInt(index, value); onChanged(); return this; } /** *
       * isVlen true
       * 
* * repeated uint32 vlens = 12; * @param value The vlens to add. * @return This builder for chaining. */ public Builder addVlens(int value) { ensureVlensIsMutable(); vlens_.addInt(value); onChanged(); return this; } /** *
       * isVlen true
       * 
* * repeated uint32 vlens = 12; * @param values The vlens to add. * @return This builder for chaining. */ public Builder addAllVlens( java.lang.Iterable values) { ensureVlensIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, vlens_); onChanged(); return this; } /** *
       * isVlen true
       * 
* * repeated uint32 vlens = 12; * @return This builder for chaining. */ public Builder clearVlens() { vlens_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } private java.util.List opaquedata_ = java.util.Collections.emptyList(); private void ensureOpaquedataIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { opaquedata_ = new java.util.ArrayList(opaquedata_); bitField0_ |= 0x00000400; } } /** *
       * opaque dataType
       * 
* * repeated bytes opaquedata = 13; * @return A list containing the opaquedata. */ public java.util.List getOpaquedataList() { return ((bitField0_ & 0x00000400) != 0) ? java.util.Collections.unmodifiableList(opaquedata_) : opaquedata_; } /** *
       * opaque dataType
       * 
* * repeated bytes opaquedata = 13; * @return The count of opaquedata. */ public int getOpaquedataCount() { return opaquedata_.size(); } /** *
       * opaque dataType
       * 
* * repeated bytes opaquedata = 13; * @param index The index of the element to return. * @return The opaquedata at the given index. */ public com.google.protobuf.ByteString getOpaquedata(int index) { return opaquedata_.get(index); } /** *
       * opaque dataType
       * 
* * repeated bytes opaquedata = 13; * @param index The index to set the value at. * @param value The opaquedata to set. * @return This builder for chaining. */ public Builder setOpaquedata( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOpaquedataIsMutable(); opaquedata_.set(index, value); onChanged(); return this; } /** *
       * opaque dataType
       * 
* * repeated bytes opaquedata = 13; * @param value The opaquedata to add. * @return This builder for chaining. */ public Builder addOpaquedata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOpaquedataIsMutable(); opaquedata_.add(value); onChanged(); return this; } /** *
       * opaque dataType
       * 
* * repeated bytes opaquedata = 13; * @param values The opaquedata to add. * @return This builder for chaining. */ public Builder addAllOpaquedata( java.lang.Iterable values) { ensureOpaquedataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, opaquedata_); onChanged(); return this; } /** *
       * opaque dataType
       * 
* * repeated bytes opaquedata = 13; * @return This builder for chaining. */ public Builder clearOpaquedata() { opaquedata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } private ucar.nc2.stream.NcStreamProto.ArrayStructureCol structdata_; private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.ArrayStructureCol, ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder> structdataBuilder_; /** *
       * structures
       * 
* * .ArrayStructureCol structdata = 14; * @return Whether the structdata field is set. */ public boolean hasStructdata() { return ((bitField0_ & 0x00000800) != 0); } /** *
       * structures
       * 
* * .ArrayStructureCol structdata = 14; * @return The structdata. */ public ucar.nc2.stream.NcStreamProto.ArrayStructureCol getStructdata() { if (structdataBuilder_ == null) { return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance() : structdata_; } else { return structdataBuilder_.getMessage(); } } /** *
       * structures
       * 
* * .ArrayStructureCol structdata = 14; */ public Builder setStructdata(ucar.nc2.stream.NcStreamProto.ArrayStructureCol value) { if (structdataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } structdata_ = value; } else { structdataBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * structures
       * 
* * .ArrayStructureCol structdata = 14; */ public Builder setStructdata( ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder builderForValue) { if (structdataBuilder_ == null) { structdata_ = builderForValue.build(); } else { structdataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * structures
       * 
* * .ArrayStructureCol structdata = 14; */ public Builder mergeStructdata(ucar.nc2.stream.NcStreamProto.ArrayStructureCol value) { if (structdataBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && structdata_ != null && structdata_ != ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance()) { getStructdataBuilder().mergeFrom(value); } else { structdata_ = value; } } else { structdataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * structures
       * 
* * .ArrayStructureCol structdata = 14; */ public Builder clearStructdata() { bitField0_ = (bitField0_ & ~0x00000800); structdata_ = null; if (structdataBuilder_ != null) { structdataBuilder_.dispose(); structdataBuilder_ = null; } onChanged(); return this; } /** *
       * structures
       * 
* * .ArrayStructureCol structdata = 14; */ public ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder getStructdataBuilder() { bitField0_ |= 0x00000800; onChanged(); return getStructdataFieldBuilder().getBuilder(); } /** *
       * structures
       * 
* * .ArrayStructureCol structdata = 14; */ public ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder getStructdataOrBuilder() { if (structdataBuilder_ != null) { return structdataBuilder_.getMessageOrBuilder(); } else { return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance() : structdata_; } } /** *
       * structures
       * 
* * .ArrayStructureCol structdata = 14; */ private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.ArrayStructureCol, ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder> getStructdataFieldBuilder() { if (structdataBuilder_ == null) { structdataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.ArrayStructureCol, ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder>( getStructdata(), getParentForChildren(), isClean()); structdata_ = null; } return structdataBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:DataCol) } // @@protoc_insertion_point(class_scope:DataCol) private static final ucar.nc2.stream.NcStreamProto.DataCol DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.DataCol(); } public static ucar.nc2.stream.NcStreamProto.DataCol getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataCol parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataCol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ArrayStructureColOrBuilder extends // @@protoc_insertion_point(interface_extends:ArrayStructureCol) com.google.protobuf.MessageOrBuilder { /** * repeated .DataCol memberData = 1; */ java.util.List getMemberDataList(); /** * repeated .DataCol memberData = 1; */ ucar.nc2.stream.NcStreamProto.DataCol getMemberData(int index); /** * repeated .DataCol memberData = 1; */ int getMemberDataCount(); /** * repeated .DataCol memberData = 1; */ java.util.List getMemberDataOrBuilderList(); /** * repeated .DataCol memberData = 1; */ ucar.nc2.stream.NcStreamProto.DataColOrBuilder getMemberDataOrBuilder( int index); } /** * Protobuf type {@code ArrayStructureCol} */ public static final class ArrayStructureCol extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ArrayStructureCol) ArrayStructureColOrBuilder { private static final long serialVersionUID = 0L; // Use ArrayStructureCol.newBuilder() to construct. private ArrayStructureCol(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ArrayStructureCol() { memberData_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ArrayStructureCol(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureCol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureCol_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.ArrayStructureCol.class, ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder.class); } public static final int MEMBERDATA_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List memberData_; /** * repeated .DataCol memberData = 1; */ @java.lang.Override public java.util.List getMemberDataList() { return memberData_; } /** * repeated .DataCol memberData = 1; */ @java.lang.Override public java.util.List getMemberDataOrBuilderList() { return memberData_; } /** * repeated .DataCol memberData = 1; */ @java.lang.Override public int getMemberDataCount() { return memberData_.size(); } /** * repeated .DataCol memberData = 1; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataCol getMemberData(int index) { return memberData_.get(index); } /** * repeated .DataCol memberData = 1; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataColOrBuilder getMemberDataOrBuilder( int index) { return memberData_.get(index); } 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 { for (int i = 0; i < memberData_.size(); i++) { output.writeMessage(1, memberData_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < memberData_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, memberData_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.ArrayStructureCol)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.ArrayStructureCol other = (ucar.nc2.stream.NcStreamProto.ArrayStructureCol) obj; if (!getMemberDataList() .equals(other.getMemberDataList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getMemberDataCount() > 0) { hash = (37 * hash) + MEMBERDATA_FIELD_NUMBER; hash = (53 * hash) + getMemberDataList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol 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 ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol 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 ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol 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(ucar.nc2.stream.NcStreamProto.ArrayStructureCol 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; } /** * Protobuf type {@code ArrayStructureCol} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ArrayStructureCol) ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureCol_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureCol_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.ArrayStructureCol.class, ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.ArrayStructureCol.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (memberDataBuilder_ == null) { memberData_ = java.util.Collections.emptyList(); } else { memberData_ = null; memberDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureCol_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureCol getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureCol build() { ucar.nc2.stream.NcStreamProto.ArrayStructureCol result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureCol buildPartial() { ucar.nc2.stream.NcStreamProto.ArrayStructureCol result = new ucar.nc2.stream.NcStreamProto.ArrayStructureCol(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.ArrayStructureCol result) { if (memberDataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { memberData_ = java.util.Collections.unmodifiableList(memberData_); bitField0_ = (bitField0_ & ~0x00000001); } result.memberData_ = memberData_; } else { result.memberData_ = memberDataBuilder_.build(); } } private void buildPartial0(ucar.nc2.stream.NcStreamProto.ArrayStructureCol result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.ArrayStructureCol) { return mergeFrom((ucar.nc2.stream.NcStreamProto.ArrayStructureCol)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.ArrayStructureCol other) { if (other == ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance()) return this; if (memberDataBuilder_ == null) { if (!other.memberData_.isEmpty()) { if (memberData_.isEmpty()) { memberData_ = other.memberData_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMemberDataIsMutable(); memberData_.addAll(other.memberData_); } onChanged(); } } else { if (!other.memberData_.isEmpty()) { if (memberDataBuilder_.isEmpty()) { memberDataBuilder_.dispose(); memberDataBuilder_ = null; memberData_ = other.memberData_; bitField0_ = (bitField0_ & ~0x00000001); memberDataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMemberDataFieldBuilder() : null; } else { memberDataBuilder_.addAllMessages(other.memberData_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ucar.nc2.stream.NcStreamProto.DataCol m = input.readMessage( ucar.nc2.stream.NcStreamProto.DataCol.parser(), extensionRegistry); if (memberDataBuilder_ == null) { ensureMemberDataIsMutable(); memberData_.add(m); } else { memberDataBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List memberData_ = java.util.Collections.emptyList(); private void ensureMemberDataIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { memberData_ = new java.util.ArrayList(memberData_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.DataCol, ucar.nc2.stream.NcStreamProto.DataCol.Builder, ucar.nc2.stream.NcStreamProto.DataColOrBuilder> memberDataBuilder_; /** * repeated .DataCol memberData = 1; */ public java.util.List getMemberDataList() { if (memberDataBuilder_ == null) { return java.util.Collections.unmodifiableList(memberData_); } else { return memberDataBuilder_.getMessageList(); } } /** * repeated .DataCol memberData = 1; */ public int getMemberDataCount() { if (memberDataBuilder_ == null) { return memberData_.size(); } else { return memberDataBuilder_.getCount(); } } /** * repeated .DataCol memberData = 1; */ public ucar.nc2.stream.NcStreamProto.DataCol getMemberData(int index) { if (memberDataBuilder_ == null) { return memberData_.get(index); } else { return memberDataBuilder_.getMessage(index); } } /** * repeated .DataCol memberData = 1; */ public Builder setMemberData( int index, ucar.nc2.stream.NcStreamProto.DataCol value) { if (memberDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMemberDataIsMutable(); memberData_.set(index, value); onChanged(); } else { memberDataBuilder_.setMessage(index, value); } return this; } /** * repeated .DataCol memberData = 1; */ public Builder setMemberData( int index, ucar.nc2.stream.NcStreamProto.DataCol.Builder builderForValue) { if (memberDataBuilder_ == null) { ensureMemberDataIsMutable(); memberData_.set(index, builderForValue.build()); onChanged(); } else { memberDataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .DataCol memberData = 1; */ public Builder addMemberData(ucar.nc2.stream.NcStreamProto.DataCol value) { if (memberDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMemberDataIsMutable(); memberData_.add(value); onChanged(); } else { memberDataBuilder_.addMessage(value); } return this; } /** * repeated .DataCol memberData = 1; */ public Builder addMemberData( int index, ucar.nc2.stream.NcStreamProto.DataCol value) { if (memberDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMemberDataIsMutable(); memberData_.add(index, value); onChanged(); } else { memberDataBuilder_.addMessage(index, value); } return this; } /** * repeated .DataCol memberData = 1; */ public Builder addMemberData( ucar.nc2.stream.NcStreamProto.DataCol.Builder builderForValue) { if (memberDataBuilder_ == null) { ensureMemberDataIsMutable(); memberData_.add(builderForValue.build()); onChanged(); } else { memberDataBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .DataCol memberData = 1; */ public Builder addMemberData( int index, ucar.nc2.stream.NcStreamProto.DataCol.Builder builderForValue) { if (memberDataBuilder_ == null) { ensureMemberDataIsMutable(); memberData_.add(index, builderForValue.build()); onChanged(); } else { memberDataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .DataCol memberData = 1; */ public Builder addAllMemberData( java.lang.Iterable values) { if (memberDataBuilder_ == null) { ensureMemberDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, memberData_); onChanged(); } else { memberDataBuilder_.addAllMessages(values); } return this; } /** * repeated .DataCol memberData = 1; */ public Builder clearMemberData() { if (memberDataBuilder_ == null) { memberData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { memberDataBuilder_.clear(); } return this; } /** * repeated .DataCol memberData = 1; */ public Builder removeMemberData(int index) { if (memberDataBuilder_ == null) { ensureMemberDataIsMutable(); memberData_.remove(index); onChanged(); } else { memberDataBuilder_.remove(index); } return this; } /** * repeated .DataCol memberData = 1; */ public ucar.nc2.stream.NcStreamProto.DataCol.Builder getMemberDataBuilder( int index) { return getMemberDataFieldBuilder().getBuilder(index); } /** * repeated .DataCol memberData = 1; */ public ucar.nc2.stream.NcStreamProto.DataColOrBuilder getMemberDataOrBuilder( int index) { if (memberDataBuilder_ == null) { return memberData_.get(index); } else { return memberDataBuilder_.getMessageOrBuilder(index); } } /** * repeated .DataCol memberData = 1; */ public java.util.List getMemberDataOrBuilderList() { if (memberDataBuilder_ != null) { return memberDataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(memberData_); } } /** * repeated .DataCol memberData = 1; */ public ucar.nc2.stream.NcStreamProto.DataCol.Builder addMemberDataBuilder() { return getMemberDataFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.DataCol.getDefaultInstance()); } /** * repeated .DataCol memberData = 1; */ public ucar.nc2.stream.NcStreamProto.DataCol.Builder addMemberDataBuilder( int index) { return getMemberDataFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.DataCol.getDefaultInstance()); } /** * repeated .DataCol memberData = 1; */ public java.util.List getMemberDataBuilderList() { return getMemberDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.DataCol, ucar.nc2.stream.NcStreamProto.DataCol.Builder, ucar.nc2.stream.NcStreamProto.DataColOrBuilder> getMemberDataFieldBuilder() { if (memberDataBuilder_ == null) { memberDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.DataCol, ucar.nc2.stream.NcStreamProto.DataCol.Builder, ucar.nc2.stream.NcStreamProto.DataColOrBuilder>( memberData_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); memberData_ = null; } return memberDataBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ArrayStructureCol) } // @@protoc_insertion_point(class_scope:ArrayStructureCol) private static final ucar.nc2.stream.NcStreamProto.ArrayStructureCol DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.ArrayStructureCol(); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ArrayStructureCol parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureCol getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataRowOrBuilder extends // @@protoc_insertion_point(interface_extends:DataRow) com.google.protobuf.MessageOrBuilder { /** * string fullName = 1; * @return The fullName. */ java.lang.String getFullName(); /** * string fullName = 1; * @return The bytes for fullName. */ com.google.protobuf.ByteString getFullNameBytes(); /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** * .DataType dataType = 2; * @return The dataType. */ ucar.nc2.stream.NcStreamProto.DataType getDataType(); /** * .Section section = 3; * @return Whether the section field is set. */ boolean hasSection(); /** * .Section section = 3; * @return The section. */ ucar.nc2.stream.NcStreamProto.Section getSection(); /** * .Section section = 3; */ ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder(); /** * bool bigend = 4; * @return The bigend. */ boolean getBigend(); /** * uint32 version = 5; * @return The version. */ int getVersion(); /** * bool isVlen = 7; * @return The isVlen. */ boolean getIsVlen(); /** * uint32 nelems = 9; * @return The nelems. */ int getNelems(); /** *
     * rectangular, primitive array
     * 
* * bytes primdata = 10; * @return The primdata. */ com.google.protobuf.ByteString getPrimdata(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return A list containing the stringdata. */ java.util.List getStringdataList(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return The count of stringdata. */ int getStringdataCount(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the element to return. * @return The stringdata at the given index. */ java.lang.String getStringdata(int index); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the value to return. * @return The bytes of the stringdata at the given index. */ com.google.protobuf.ByteString getStringdataBytes(int index); /** *
     * vlen lengths
     * 
* * repeated uint32 vlens = 12; * @return A list containing the vlens. */ java.util.List getVlensList(); /** *
     * vlen lengths
     * 
* * repeated uint32 vlens = 12; * @return The count of vlens. */ int getVlensCount(); /** *
     * vlen lengths
     * 
* * repeated uint32 vlens = 12; * @param index The index of the element to return. * @return The vlens at the given index. */ int getVlens(int index); /** *
     * opaque dataTypes
     * 
* * repeated bytes opaquedata = 13; * @return A list containing the opaquedata. */ java.util.List getOpaquedataList(); /** *
     * opaque dataTypes
     * 
* * repeated bytes opaquedata = 13; * @return The count of opaquedata. */ int getOpaquedataCount(); /** *
     * opaque dataTypes
     * 
* * repeated bytes opaquedata = 13; * @param index The index of the element to return. * @return The opaquedata at the given index. */ com.google.protobuf.ByteString getOpaquedata(int index); /** *
     * structure/seq dataType
     * 
* * .ArrayStructureRow structdata = 14; * @return Whether the structdata field is set. */ boolean hasStructdata(); /** *
     * structure/seq dataType
     * 
* * .ArrayStructureRow structdata = 14; * @return The structdata. */ ucar.nc2.stream.NcStreamProto.ArrayStructureRow getStructdata(); /** *
     * structure/seq dataType
     * 
* * .ArrayStructureRow structdata = 14; */ ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder getStructdataOrBuilder(); } /** * Protobuf type {@code DataRow} */ public static final class DataRow extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:DataRow) DataRowOrBuilder { private static final long serialVersionUID = 0L; // Use DataRow.newBuilder() to construct. private DataRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataRow() { fullName_ = ""; dataType_ = 0; primdata_ = com.google.protobuf.ByteString.EMPTY; stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); vlens_ = emptyIntList(); opaquedata_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DataRow(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_DataRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_DataRow_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.DataRow.class, ucar.nc2.stream.NcStreamProto.DataRow.Builder.class); } public static final int FULLNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object fullName_ = ""; /** * string fullName = 1; * @return The fullName. */ @java.lang.Override 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; } } /** * string fullName = 1; * @return The bytes for fullName. */ @java.lang.Override 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 DATATYPE_FIELD_NUMBER = 2; private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } public static final int SECTION_FIELD_NUMBER = 3; private ucar.nc2.stream.NcStreamProto.Section section_; /** * .Section section = 3; * @return Whether the section field is set. */ @java.lang.Override public boolean hasSection() { return section_ != null; } /** * .Section section = 3; * @return The section. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Section getSection() { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } /** * .Section section = 3; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } public static final int BIGEND_FIELD_NUMBER = 4; private boolean bigend_ = false; /** * bool bigend = 4; * @return The bigend. */ @java.lang.Override public boolean getBigend() { return bigend_; } public static final int VERSION_FIELD_NUMBER = 5; private int version_ = 0; /** * uint32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } public static final int ISVLEN_FIELD_NUMBER = 7; private boolean isVlen_ = false; /** * bool isVlen = 7; * @return The isVlen. */ @java.lang.Override public boolean getIsVlen() { return isVlen_; } public static final int NELEMS_FIELD_NUMBER = 9; private int nelems_ = 0; /** * uint32 nelems = 9; * @return The nelems. */ @java.lang.Override public int getNelems() { return nelems_; } public static final int PRIMDATA_FIELD_NUMBER = 10; private com.google.protobuf.ByteString primdata_ = com.google.protobuf.ByteString.EMPTY; /** *
     * rectangular, primitive array
     * 
* * bytes primdata = 10; * @return The primdata. */ @java.lang.Override public com.google.protobuf.ByteString getPrimdata() { return primdata_; } public static final int STRINGDATA_FIELD_NUMBER = 11; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return A list containing the stringdata. */ public com.google.protobuf.ProtocolStringList getStringdataList() { return stringdata_; } /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return The count of stringdata. */ public int getStringdataCount() { return stringdata_.size(); } /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the element to return. * @return The stringdata at the given index. */ public java.lang.String getStringdata(int index) { return stringdata_.get(index); } /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the value to return. * @return The bytes of the stringdata at the given index. */ public com.google.protobuf.ByteString getStringdataBytes(int index) { return stringdata_.getByteString(index); } public static final int VLENS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList vlens_; /** *
     * vlen lengths
     * 
* * repeated uint32 vlens = 12; * @return A list containing the vlens. */ @java.lang.Override public java.util.List getVlensList() { return vlens_; } /** *
     * vlen lengths
     * 
* * repeated uint32 vlens = 12; * @return The count of vlens. */ public int getVlensCount() { return vlens_.size(); } /** *
     * vlen lengths
     * 
* * repeated uint32 vlens = 12; * @param index The index of the element to return. * @return The vlens at the given index. */ public int getVlens(int index) { return vlens_.getInt(index); } private int vlensMemoizedSerializedSize = -1; public static final int OPAQUEDATA_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List opaquedata_; /** *
     * opaque dataTypes
     * 
* * repeated bytes opaquedata = 13; * @return A list containing the opaquedata. */ @java.lang.Override public java.util.List getOpaquedataList() { return opaquedata_; } /** *
     * opaque dataTypes
     * 
* * repeated bytes opaquedata = 13; * @return The count of opaquedata. */ public int getOpaquedataCount() { return opaquedata_.size(); } /** *
     * opaque dataTypes
     * 
* * repeated bytes opaquedata = 13; * @param index The index of the element to return. * @return The opaquedata at the given index. */ public com.google.protobuf.ByteString getOpaquedata(int index) { return opaquedata_.get(index); } public static final int STRUCTDATA_FIELD_NUMBER = 14; private ucar.nc2.stream.NcStreamProto.ArrayStructureRow structdata_; /** *
     * structure/seq dataType
     * 
* * .ArrayStructureRow structdata = 14; * @return Whether the structdata field is set. */ @java.lang.Override public boolean hasStructdata() { return structdata_ != null; } /** *
     * structure/seq dataType
     * 
* * .ArrayStructureRow structdata = 14; * @return The structdata. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureRow getStructdata() { return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance() : structdata_; } /** *
     * structure/seq dataType
     * 
* * .ArrayStructureRow structdata = 14; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder getStructdataOrBuilder() { return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance() : structdata_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullName_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { output.writeEnum(2, dataType_); } if (section_ != null) { output.writeMessage(3, getSection()); } if (bigend_ != false) { output.writeBool(4, bigend_); } if (version_ != 0) { output.writeUInt32(5, version_); } if (isVlen_ != false) { output.writeBool(7, isVlen_); } if (nelems_ != 0) { output.writeUInt32(9, nelems_); } if (!primdata_.isEmpty()) { output.writeBytes(10, primdata_); } for (int i = 0; i < stringdata_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, stringdata_.getRaw(i)); } if (getVlensList().size() > 0) { output.writeUInt32NoTag(98); output.writeUInt32NoTag(vlensMemoizedSerializedSize); } for (int i = 0; i < vlens_.size(); i++) { output.writeUInt32NoTag(vlens_.getInt(i)); } for (int i = 0; i < opaquedata_.size(); i++) { output.writeBytes(13, opaquedata_.get(i)); } if (structdata_ != null) { output.writeMessage(14, getStructdata()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullName_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, dataType_); } if (section_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSection()); } if (bigend_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, bigend_); } if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, version_); } if (isVlen_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isVlen_); } if (nelems_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, nelems_); } if (!primdata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, primdata_); } { int dataSize = 0; for (int i = 0; i < stringdata_.size(); i++) { dataSize += computeStringSizeNoTag(stringdata_.getRaw(i)); } size += dataSize; size += 1 * getStringdataList().size(); } { int dataSize = 0; for (int i = 0; i < vlens_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(vlens_.getInt(i)); } size += dataSize; if (!getVlensList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } vlensMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < opaquedata_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(opaquedata_.get(i)); } size += dataSize; size += 1 * getOpaquedataList().size(); } if (structdata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getStructdata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.DataRow)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.DataRow other = (ucar.nc2.stream.NcStreamProto.DataRow) obj; if (!getFullName() .equals(other.getFullName())) return false; if (dataType_ != other.dataType_) return false; if (hasSection() != other.hasSection()) return false; if (hasSection()) { if (!getSection() .equals(other.getSection())) return false; } if (getBigend() != other.getBigend()) return false; if (getVersion() != other.getVersion()) return false; if (getIsVlen() != other.getIsVlen()) return false; if (getNelems() != other.getNelems()) return false; if (!getPrimdata() .equals(other.getPrimdata())) return false; if (!getStringdataList() .equals(other.getStringdataList())) return false; if (!getVlensList() .equals(other.getVlensList())) return false; if (!getOpaquedataList() .equals(other.getOpaquedataList())) return false; if (hasStructdata() != other.hasStructdata()) return false; if (hasStructdata()) { if (!getStructdata() .equals(other.getStructdata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FULLNAME_FIELD_NUMBER; hash = (53 * hash) + getFullName().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; if (hasSection()) { hash = (37 * hash) + SECTION_FIELD_NUMBER; hash = (53 * hash) + getSection().hashCode(); } hash = (37 * hash) + BIGEND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBigend()); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (37 * hash) + ISVLEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsVlen()); hash = (37 * hash) + NELEMS_FIELD_NUMBER; hash = (53 * hash) + getNelems(); hash = (37 * hash) + PRIMDATA_FIELD_NUMBER; hash = (53 * hash) + getPrimdata().hashCode(); if (getStringdataCount() > 0) { hash = (37 * hash) + STRINGDATA_FIELD_NUMBER; hash = (53 * hash) + getStringdataList().hashCode(); } if (getVlensCount() > 0) { hash = (37 * hash) + VLENS_FIELD_NUMBER; hash = (53 * hash) + getVlensList().hashCode(); } if (getOpaquedataCount() > 0) { hash = (37 * hash) + OPAQUEDATA_FIELD_NUMBER; hash = (53 * hash) + getOpaquedataList().hashCode(); } if (hasStructdata()) { hash = (37 * hash) + STRUCTDATA_FIELD_NUMBER; hash = (53 * hash) + getStructdata().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.DataRow 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 ucar.nc2.stream.NcStreamProto.DataRow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.DataRow 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 ucar.nc2.stream.NcStreamProto.DataRow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.DataRow 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(ucar.nc2.stream.NcStreamProto.DataRow 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; } /** * Protobuf type {@code DataRow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:DataRow) ucar.nc2.stream.NcStreamProto.DataRowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_DataRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_DataRow_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.DataRow.class, ucar.nc2.stream.NcStreamProto.DataRow.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.DataRow.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fullName_ = ""; dataType_ = 0; section_ = null; if (sectionBuilder_ != null) { sectionBuilder_.dispose(); sectionBuilder_ = null; } bigend_ = false; version_ = 0; isVlen_ = false; nelems_ = 0; primdata_ = com.google.protobuf.ByteString.EMPTY; stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); vlens_ = emptyIntList(); opaquedata_ = java.util.Collections.emptyList(); structdata_ = null; if (structdataBuilder_ != null) { structdataBuilder_.dispose(); structdataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_DataRow_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataRow getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.DataRow.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataRow build() { ucar.nc2.stream.NcStreamProto.DataRow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataRow buildPartial() { ucar.nc2.stream.NcStreamProto.DataRow result = new ucar.nc2.stream.NcStreamProto.DataRow(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.DataRow result) { if (((bitField0_ & 0x00000200) != 0)) { vlens_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000200); } result.vlens_ = vlens_; if (((bitField0_ & 0x00000400) != 0)) { opaquedata_ = java.util.Collections.unmodifiableList(opaquedata_); bitField0_ = (bitField0_ & ~0x00000400); } result.opaquedata_ = opaquedata_; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.DataRow result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fullName_ = fullName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dataType_ = dataType_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.section_ = sectionBuilder_ == null ? section_ : sectionBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.bigend_ = bigend_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.isVlen_ = isVlen_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.nelems_ = nelems_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.primdata_ = primdata_; } if (((from_bitField0_ & 0x00000100) != 0)) { stringdata_.makeImmutable(); result.stringdata_ = stringdata_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.structdata_ = structdataBuilder_ == null ? structdata_ : structdataBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.DataRow) { return mergeFrom((ucar.nc2.stream.NcStreamProto.DataRow)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.DataRow other) { if (other == ucar.nc2.stream.NcStreamProto.DataRow.getDefaultInstance()) return this; if (!other.getFullName().isEmpty()) { fullName_ = other.fullName_; bitField0_ |= 0x00000001; onChanged(); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (other.hasSection()) { mergeSection(other.getSection()); } if (other.getBigend() != false) { setBigend(other.getBigend()); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (other.getIsVlen() != false) { setIsVlen(other.getIsVlen()); } if (other.getNelems() != 0) { setNelems(other.getNelems()); } if (other.getPrimdata() != com.google.protobuf.ByteString.EMPTY) { setPrimdata(other.getPrimdata()); } if (!other.stringdata_.isEmpty()) { if (stringdata_.isEmpty()) { stringdata_ = other.stringdata_; bitField0_ |= 0x00000100; } else { ensureStringdataIsMutable(); stringdata_.addAll(other.stringdata_); } onChanged(); } if (!other.vlens_.isEmpty()) { if (vlens_.isEmpty()) { vlens_ = other.vlens_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureVlensIsMutable(); vlens_.addAll(other.vlens_); } onChanged(); } if (!other.opaquedata_.isEmpty()) { if (opaquedata_.isEmpty()) { opaquedata_ = other.opaquedata_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureOpaquedataIsMutable(); opaquedata_.addAll(other.opaquedata_); } onChanged(); } if (other.hasStructdata()) { mergeStructdata(other.getStructdata()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { fullName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { dataType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getSectionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { bigend_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { version_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 56: { isVlen_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 56 case 72: { nelems_ = input.readUInt32(); bitField0_ |= 0x00000040; break; } // case 72 case 82: { primdata_ = input.readBytes(); bitField0_ |= 0x00000080; break; } // case 82 case 90: { java.lang.String s = input.readStringRequireUtf8(); ensureStringdataIsMutable(); stringdata_.add(s); break; } // case 90 case 96: { int v = input.readUInt32(); ensureVlensIsMutable(); vlens_.addInt(v); break; } // case 96 case 98: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureVlensIsMutable(); while (input.getBytesUntilLimit() > 0) { vlens_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 98 case 106: { com.google.protobuf.ByteString v = input.readBytes(); ensureOpaquedataIsMutable(); opaquedata_.add(v); break; } // case 106 case 114: { input.readMessage( getStructdataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object fullName_ = ""; /** * string fullName = 1; * @return The fullName. */ 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; } } /** * string fullName = 1; * @return The bytes for fullName. */ 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; } } /** * string fullName = 1; * @param value The fullName to set. * @return This builder for chaining. */ public Builder setFullName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fullName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string fullName = 1; * @return This builder for chaining. */ public Builder clearFullName() { fullName_ = getDefaultInstance().getFullName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string fullName = 1; * @param value The bytes for fullName to set. * @return This builder for chaining. */ public Builder setFullNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fullName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } /** * .DataType dataType = 2; * @param value The dataType to set. * @return This builder for chaining. */ public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dataType_ = value.getNumber(); onChanged(); return this; } /** * .DataType dataType = 2; * @return This builder for chaining. */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000002); dataType_ = 0; onChanged(); return this; } private ucar.nc2.stream.NcStreamProto.Section section_; private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> sectionBuilder_; /** * .Section section = 3; * @return Whether the section field is set. */ public boolean hasSection() { return ((bitField0_ & 0x00000004) != 0); } /** * .Section section = 3; * @return The section. */ public ucar.nc2.stream.NcStreamProto.Section getSection() { if (sectionBuilder_ == null) { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } else { return sectionBuilder_.getMessage(); } } /** * .Section section = 3; */ public Builder setSection(ucar.nc2.stream.NcStreamProto.Section value) { if (sectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } section_ = value; } else { sectionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Section section = 3; */ public Builder setSection( ucar.nc2.stream.NcStreamProto.Section.Builder builderForValue) { if (sectionBuilder_ == null) { section_ = builderForValue.build(); } else { sectionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Section section = 3; */ public Builder mergeSection(ucar.nc2.stream.NcStreamProto.Section value) { if (sectionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && section_ != null && section_ != ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance()) { getSectionBuilder().mergeFrom(value); } else { section_ = value; } } else { sectionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Section section = 3; */ public Builder clearSection() { bitField0_ = (bitField0_ & ~0x00000004); section_ = null; if (sectionBuilder_ != null) { sectionBuilder_.dispose(); sectionBuilder_ = null; } onChanged(); return this; } /** * .Section section = 3; */ public ucar.nc2.stream.NcStreamProto.Section.Builder getSectionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSectionFieldBuilder().getBuilder(); } /** * .Section section = 3; */ public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() { if (sectionBuilder_ != null) { return sectionBuilder_.getMessageOrBuilder(); } else { return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_; } } /** * .Section section = 3; */ private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> getSectionFieldBuilder() { if (sectionBuilder_ == null) { sectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder>( getSection(), getParentForChildren(), isClean()); section_ = null; } return sectionBuilder_; } private boolean bigend_ ; /** * bool bigend = 4; * @return The bigend. */ @java.lang.Override public boolean getBigend() { return bigend_; } /** * bool bigend = 4; * @param value The bigend to set. * @return This builder for chaining. */ public Builder setBigend(boolean value) { bigend_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bool bigend = 4; * @return This builder for chaining. */ public Builder clearBigend() { bitField0_ = (bitField0_ & ~0x00000008); bigend_ = false; onChanged(); return this; } private int version_ ; /** * uint32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } /** * uint32 version = 5; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { version_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * uint32 version = 5; * @return This builder for chaining. */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000010); version_ = 0; onChanged(); return this; } private boolean isVlen_ ; /** * bool isVlen = 7; * @return The isVlen. */ @java.lang.Override public boolean getIsVlen() { return isVlen_; } /** * bool isVlen = 7; * @param value The isVlen to set. * @return This builder for chaining. */ public Builder setIsVlen(boolean value) { isVlen_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bool isVlen = 7; * @return This builder for chaining. */ public Builder clearIsVlen() { bitField0_ = (bitField0_ & ~0x00000020); isVlen_ = false; onChanged(); return this; } private int nelems_ ; /** * uint32 nelems = 9; * @return The nelems. */ @java.lang.Override public int getNelems() { return nelems_; } /** * uint32 nelems = 9; * @param value The nelems to set. * @return This builder for chaining. */ public Builder setNelems(int value) { nelems_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * uint32 nelems = 9; * @return This builder for chaining. */ public Builder clearNelems() { bitField0_ = (bitField0_ & ~0x00000040); nelems_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString primdata_ = com.google.protobuf.ByteString.EMPTY; /** *
       * rectangular, primitive array
       * 
* * bytes primdata = 10; * @return The primdata. */ @java.lang.Override public com.google.protobuf.ByteString getPrimdata() { return primdata_; } /** *
       * rectangular, primitive array
       * 
* * bytes primdata = 10; * @param value The primdata to set. * @return This builder for chaining. */ public Builder setPrimdata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primdata_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * rectangular, primitive array
       * 
* * bytes primdata = 10; * @return This builder for chaining. */ public Builder clearPrimdata() { bitField0_ = (bitField0_ & ~0x00000080); primdata_ = getDefaultInstance().getPrimdata(); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStringdataIsMutable() { if (!stringdata_.isModifiable()) { stringdata_ = new com.google.protobuf.LazyStringArrayList(stringdata_); } bitField0_ |= 0x00000100; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @return A list containing the stringdata. */ public com.google.protobuf.ProtocolStringList getStringdataList() { stringdata_.makeImmutable(); return stringdata_; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @return The count of stringdata. */ public int getStringdataCount() { return stringdata_.size(); } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param index The index of the element to return. * @return The stringdata at the given index. */ public java.lang.String getStringdata(int index) { return stringdata_.get(index); } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param index The index of the value to return. * @return The bytes of the stringdata at the given index. */ public com.google.protobuf.ByteString getStringdataBytes(int index) { return stringdata_.getByteString(index); } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param index The index to set the value at. * @param value The stringdata to set. * @return This builder for chaining. */ public Builder setStringdata( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringdataIsMutable(); stringdata_.set(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param value The stringdata to add. * @return This builder for chaining. */ public Builder addStringdata( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringdataIsMutable(); stringdata_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param values The stringdata to add. * @return This builder for chaining. */ public Builder addAllStringdata( java.lang.Iterable values) { ensureStringdataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stringdata_); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @return This builder for chaining. */ public Builder clearStringdata() { stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param value The bytes of the stringdata to add. * @return This builder for chaining. */ public Builder addStringdataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStringdataIsMutable(); stringdata_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.Internal.IntList vlens_ = emptyIntList(); private void ensureVlensIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { vlens_ = mutableCopy(vlens_); bitField0_ |= 0x00000200; } } /** *
       * vlen lengths
       * 
* * repeated uint32 vlens = 12; * @return A list containing the vlens. */ public java.util.List getVlensList() { return ((bitField0_ & 0x00000200) != 0) ? java.util.Collections.unmodifiableList(vlens_) : vlens_; } /** *
       * vlen lengths
       * 
* * repeated uint32 vlens = 12; * @return The count of vlens. */ public int getVlensCount() { return vlens_.size(); } /** *
       * vlen lengths
       * 
* * repeated uint32 vlens = 12; * @param index The index of the element to return. * @return The vlens at the given index. */ public int getVlens(int index) { return vlens_.getInt(index); } /** *
       * vlen lengths
       * 
* * repeated uint32 vlens = 12; * @param index The index to set the value at. * @param value The vlens to set. * @return This builder for chaining. */ public Builder setVlens( int index, int value) { ensureVlensIsMutable(); vlens_.setInt(index, value); onChanged(); return this; } /** *
       * vlen lengths
       * 
* * repeated uint32 vlens = 12; * @param value The vlens to add. * @return This builder for chaining. */ public Builder addVlens(int value) { ensureVlensIsMutable(); vlens_.addInt(value); onChanged(); return this; } /** *
       * vlen lengths
       * 
* * repeated uint32 vlens = 12; * @param values The vlens to add. * @return This builder for chaining. */ public Builder addAllVlens( java.lang.Iterable values) { ensureVlensIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, vlens_); onChanged(); return this; } /** *
       * vlen lengths
       * 
* * repeated uint32 vlens = 12; * @return This builder for chaining. */ public Builder clearVlens() { vlens_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } private java.util.List opaquedata_ = java.util.Collections.emptyList(); private void ensureOpaquedataIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { opaquedata_ = new java.util.ArrayList(opaquedata_); bitField0_ |= 0x00000400; } } /** *
       * opaque dataTypes
       * 
* * repeated bytes opaquedata = 13; * @return A list containing the opaquedata. */ public java.util.List getOpaquedataList() { return ((bitField0_ & 0x00000400) != 0) ? java.util.Collections.unmodifiableList(opaquedata_) : opaquedata_; } /** *
       * opaque dataTypes
       * 
* * repeated bytes opaquedata = 13; * @return The count of opaquedata. */ public int getOpaquedataCount() { return opaquedata_.size(); } /** *
       * opaque dataTypes
       * 
* * repeated bytes opaquedata = 13; * @param index The index of the element to return. * @return The opaquedata at the given index. */ public com.google.protobuf.ByteString getOpaquedata(int index) { return opaquedata_.get(index); } /** *
       * opaque dataTypes
       * 
* * repeated bytes opaquedata = 13; * @param index The index to set the value at. * @param value The opaquedata to set. * @return This builder for chaining. */ public Builder setOpaquedata( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOpaquedataIsMutable(); opaquedata_.set(index, value); onChanged(); return this; } /** *
       * opaque dataTypes
       * 
* * repeated bytes opaquedata = 13; * @param value The opaquedata to add. * @return This builder for chaining. */ public Builder addOpaquedata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOpaquedataIsMutable(); opaquedata_.add(value); onChanged(); return this; } /** *
       * opaque dataTypes
       * 
* * repeated bytes opaquedata = 13; * @param values The opaquedata to add. * @return This builder for chaining. */ public Builder addAllOpaquedata( java.lang.Iterable values) { ensureOpaquedataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, opaquedata_); onChanged(); return this; } /** *
       * opaque dataTypes
       * 
* * repeated bytes opaquedata = 13; * @return This builder for chaining. */ public Builder clearOpaquedata() { opaquedata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } private ucar.nc2.stream.NcStreamProto.ArrayStructureRow structdata_; private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.ArrayStructureRow, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder> structdataBuilder_; /** *
       * structure/seq dataType
       * 
* * .ArrayStructureRow structdata = 14; * @return Whether the structdata field is set. */ public boolean hasStructdata() { return ((bitField0_ & 0x00000800) != 0); } /** *
       * structure/seq dataType
       * 
* * .ArrayStructureRow structdata = 14; * @return The structdata. */ public ucar.nc2.stream.NcStreamProto.ArrayStructureRow getStructdata() { if (structdataBuilder_ == null) { return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance() : structdata_; } else { return structdataBuilder_.getMessage(); } } /** *
       * structure/seq dataType
       * 
* * .ArrayStructureRow structdata = 14; */ public Builder setStructdata(ucar.nc2.stream.NcStreamProto.ArrayStructureRow value) { if (structdataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } structdata_ = value; } else { structdataBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * structure/seq dataType
       * 
* * .ArrayStructureRow structdata = 14; */ public Builder setStructdata( ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder builderForValue) { if (structdataBuilder_ == null) { structdata_ = builderForValue.build(); } else { structdataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * structure/seq dataType
       * 
* * .ArrayStructureRow structdata = 14; */ public Builder mergeStructdata(ucar.nc2.stream.NcStreamProto.ArrayStructureRow value) { if (structdataBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && structdata_ != null && structdata_ != ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance()) { getStructdataBuilder().mergeFrom(value); } else { structdata_ = value; } } else { structdataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * structure/seq dataType
       * 
* * .ArrayStructureRow structdata = 14; */ public Builder clearStructdata() { bitField0_ = (bitField0_ & ~0x00000800); structdata_ = null; if (structdataBuilder_ != null) { structdataBuilder_.dispose(); structdataBuilder_ = null; } onChanged(); return this; } /** *
       * structure/seq dataType
       * 
* * .ArrayStructureRow structdata = 14; */ public ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder getStructdataBuilder() { bitField0_ |= 0x00000800; onChanged(); return getStructdataFieldBuilder().getBuilder(); } /** *
       * structure/seq dataType
       * 
* * .ArrayStructureRow structdata = 14; */ public ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder getStructdataOrBuilder() { if (structdataBuilder_ != null) { return structdataBuilder_.getMessageOrBuilder(); } else { return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance() : structdata_; } } /** *
       * structure/seq dataType
       * 
* * .ArrayStructureRow structdata = 14; */ private com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.ArrayStructureRow, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder> getStructdataFieldBuilder() { if (structdataBuilder_ == null) { structdataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ucar.nc2.stream.NcStreamProto.ArrayStructureRow, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder>( getStructdata(), getParentForChildren(), isClean()); structdata_ = null; } return structdataBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:DataRow) } // @@protoc_insertion_point(class_scope:DataRow) private static final ucar.nc2.stream.NcStreamProto.DataRow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.DataRow(); } public static ucar.nc2.stream.NcStreamProto.DataRow getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataRow parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataRow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberOrBuilder extends // @@protoc_insertion_point(interface_extends:Member) com.google.protobuf.MessageOrBuilder { /** * string shortName = 1; * @return The shortName. */ java.lang.String getShortName(); /** * string shortName = 1; * @return The bytes for shortName. */ com.google.protobuf.ByteString getShortNameBytes(); /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** * .DataType dataType = 2; * @return The dataType. */ ucar.nc2.stream.NcStreamProto.DataType getDataType(); /** *
     * or section?
     * 
* * repeated uint32 shape = 3; * @return A list containing the shape. */ java.util.List getShapeList(); /** *
     * or section?
     * 
* * repeated uint32 shape = 3; * @return The count of shape. */ int getShapeCount(); /** *
     * or section?
     * 
* * repeated uint32 shape = 3; * @param index The index of the element to return. * @return The shape at the given index. */ int getShape(int index); /** * bool isVlen = 4; * @return The isVlen. */ boolean getIsVlen(); } /** * Protobuf type {@code Member} */ public static final class Member extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Member) MemberOrBuilder { private static final long serialVersionUID = 0L; // Use Member.newBuilder() to construct. private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Member() { shortName_ = ""; dataType_ = 0; shape_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Member(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Member_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Member_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Member.class, ucar.nc2.stream.NcStreamProto.Member.Builder.class); } public static final int SHORTNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object shortName_ = ""; /** * string shortName = 1; * @return The shortName. */ @java.lang.Override public java.lang.String getShortName() { java.lang.Object ref = shortName_; 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(); shortName_ = s; return s; } } /** * string shortName = 1; * @return The bytes for shortName. */ @java.lang.Override public com.google.protobuf.ByteString getShortNameBytes() { java.lang.Object ref = shortName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shortName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATATYPE_FIELD_NUMBER = 2; private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } public static final int SHAPE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList shape_; /** *
     * or section?
     * 
* * repeated uint32 shape = 3; * @return A list containing the shape. */ @java.lang.Override public java.util.List getShapeList() { return shape_; } /** *
     * or section?
     * 
* * repeated uint32 shape = 3; * @return The count of shape. */ public int getShapeCount() { return shape_.size(); } /** *
     * or section?
     * 
* * repeated uint32 shape = 3; * @param index The index of the element to return. * @return The shape at the given index. */ public int getShape(int index) { return shape_.getInt(index); } private int shapeMemoizedSerializedSize = -1; public static final int ISVLEN_FIELD_NUMBER = 4; private boolean isVlen_ = false; /** * bool isVlen = 4; * @return The isVlen. */ @java.lang.Override public boolean getIsVlen() { return isVlen_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shortName_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { output.writeEnum(2, dataType_); } if (getShapeList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(shapeMemoizedSerializedSize); } for (int i = 0; i < shape_.size(); i++) { output.writeUInt32NoTag(shape_.getInt(i)); } if (isVlen_ != false) { output.writeBool(4, isVlen_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, shortName_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, dataType_); } { int dataSize = 0; for (int i = 0; i < shape_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(shape_.getInt(i)); } size += dataSize; if (!getShapeList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } shapeMemoizedSerializedSize = dataSize; } if (isVlen_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, isVlen_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.Member)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.Member other = (ucar.nc2.stream.NcStreamProto.Member) obj; if (!getShortName() .equals(other.getShortName())) return false; if (dataType_ != other.dataType_) return false; if (!getShapeList() .equals(other.getShapeList())) return false; if (getIsVlen() != other.getIsVlen()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SHORTNAME_FIELD_NUMBER; hash = (53 * hash) + getShortName().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; if (getShapeCount() > 0) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShapeList().hashCode(); } hash = (37 * hash) + ISVLEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsVlen()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.Member parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Member parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Member parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Member parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Member parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.Member parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.Member parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Member 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 ucar.nc2.stream.NcStreamProto.Member parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Member 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 ucar.nc2.stream.NcStreamProto.Member parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.Member 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(ucar.nc2.stream.NcStreamProto.Member 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; } /** * Protobuf type {@code Member} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Member) ucar.nc2.stream.NcStreamProto.MemberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_Member_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_Member_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.Member.class, ucar.nc2.stream.NcStreamProto.Member.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.Member.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; shortName_ = ""; dataType_ = 0; shape_ = emptyIntList(); isVlen_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_Member_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Member getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.Member.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Member build() { ucar.nc2.stream.NcStreamProto.Member result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Member buildPartial() { ucar.nc2.stream.NcStreamProto.Member result = new ucar.nc2.stream.NcStreamProto.Member(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.Member result) { if (((bitField0_ & 0x00000004) != 0)) { shape_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.shape_ = shape_; } private void buildPartial0(ucar.nc2.stream.NcStreamProto.Member result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.shortName_ = shortName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dataType_ = dataType_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.isVlen_ = isVlen_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.Member) { return mergeFrom((ucar.nc2.stream.NcStreamProto.Member)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Member other) { if (other == ucar.nc2.stream.NcStreamProto.Member.getDefaultInstance()) return this; if (!other.getShortName().isEmpty()) { shortName_ = other.shortName_; bitField0_ |= 0x00000001; onChanged(); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (!other.shape_.isEmpty()) { if (shape_.isEmpty()) { shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShapeIsMutable(); shape_.addAll(other.shape_); } onChanged(); } if (other.getIsVlen() != false) { setIsVlen(other.getIsVlen()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { shortName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { dataType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { int v = input.readUInt32(); ensureShapeIsMutable(); shape_.addInt(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureShapeIsMutable(); while (input.getBytesUntilLimit() > 0) { shape_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 26 case 32: { isVlen_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object shortName_ = ""; /** * string shortName = 1; * @return The shortName. */ public java.lang.String getShortName() { java.lang.Object ref = shortName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shortName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string shortName = 1; * @return The bytes for shortName. */ public com.google.protobuf.ByteString getShortNameBytes() { java.lang.Object ref = shortName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shortName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string shortName = 1; * @param value The shortName to set. * @return This builder for chaining. */ public Builder setShortName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shortName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string shortName = 1; * @return This builder for chaining. */ public Builder clearShortName() { shortName_ = getDefaultInstance().getShortName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string shortName = 1; * @param value The bytes for shortName to set. * @return This builder for chaining. */ public Builder setShortNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shortName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int dataType_ = 0; /** * .DataType dataType = 2; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** * .DataType dataType = 2; * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .DataType dataType = 2; * @return The dataType. */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.DataType getDataType() { ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.forNumber(dataType_); return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result; } /** * .DataType dataType = 2; * @param value The dataType to set. * @return This builder for chaining. */ public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dataType_ = value.getNumber(); onChanged(); return this; } /** * .DataType dataType = 2; * @return This builder for chaining. */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000002); dataType_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.IntList shape_ = emptyIntList(); private void ensureShapeIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { shape_ = mutableCopy(shape_); bitField0_ |= 0x00000004; } } /** *
       * or section?
       * 
* * repeated uint32 shape = 3; * @return A list containing the shape. */ public java.util.List getShapeList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(shape_) : shape_; } /** *
       * or section?
       * 
* * repeated uint32 shape = 3; * @return The count of shape. */ public int getShapeCount() { return shape_.size(); } /** *
       * or section?
       * 
* * repeated uint32 shape = 3; * @param index The index of the element to return. * @return The shape at the given index. */ public int getShape(int index) { return shape_.getInt(index); } /** *
       * or section?
       * 
* * repeated uint32 shape = 3; * @param index The index to set the value at. * @param value The shape to set. * @return This builder for chaining. */ public Builder setShape( int index, int value) { ensureShapeIsMutable(); shape_.setInt(index, value); onChanged(); return this; } /** *
       * or section?
       * 
* * repeated uint32 shape = 3; * @param value The shape to add. * @return This builder for chaining. */ public Builder addShape(int value) { ensureShapeIsMutable(); shape_.addInt(value); onChanged(); return this; } /** *
       * or section?
       * 
* * repeated uint32 shape = 3; * @param values The shape to add. * @return This builder for chaining. */ public Builder addAllShape( java.lang.Iterable values) { ensureShapeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shape_); onChanged(); return this; } /** *
       * or section?
       * 
* * repeated uint32 shape = 3; * @return This builder for chaining. */ public Builder clearShape() { shape_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private boolean isVlen_ ; /** * bool isVlen = 4; * @return The isVlen. */ @java.lang.Override public boolean getIsVlen() { return isVlen_; } /** * bool isVlen = 4; * @param value The isVlen to set. * @return This builder for chaining. */ public Builder setIsVlen(boolean value) { isVlen_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * bool isVlen = 4; * @return This builder for chaining. */ public Builder clearIsVlen() { bitField0_ = (bitField0_ & ~0x00000008); isVlen_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Member) } // @@protoc_insertion_point(class_scope:Member) private static final ucar.nc2.stream.NcStreamProto.Member DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.Member(); } public static ucar.nc2.stream.NcStreamProto.Member getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Member parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.Member getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ArrayStructureRowOrBuilder extends // @@protoc_insertion_point(interface_extends:ArrayStructureRow) com.google.protobuf.MessageOrBuilder { /** * repeated .Member members = 1; */ java.util.List getMembersList(); /** * repeated .Member members = 1; */ ucar.nc2.stream.NcStreamProto.Member getMembers(int index); /** * repeated .Member members = 1; */ int getMembersCount(); /** * repeated .Member members = 1; */ java.util.List getMembersOrBuilderList(); /** * repeated .Member members = 1; */ ucar.nc2.stream.NcStreamProto.MemberOrBuilder getMembersOrBuilder( int index); /** *
     * number of rows in this message
     * 
* * uint64 nrows = 5; * @return The nrows. */ long getNrows(); /** *
     * length in bytes of each row
     * 
* * uint32 rowLength = 6; * @return The rowLength. */ int getRowLength(); /** *
     * fixed data
     * 
* * bytes fixdata = 10; * @return The fixdata. */ com.google.protobuf.ByteString getFixdata(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return A list containing the stringdata. */ java.util.List getStringdataList(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return The count of stringdata. */ int getStringdataCount(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the element to return. * @return The stringdata at the given index. */ java.lang.String getStringdata(int index); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the value to return. * @return The bytes of the stringdata at the given index. */ com.google.protobuf.ByteString getStringdataBytes(int index); /** *
     * opaque dataType and vlens
     * 
* * repeated bytes bytedata = 13; * @return A list containing the bytedata. */ java.util.List getBytedataList(); /** *
     * opaque dataType and vlens
     * 
* * repeated bytes bytedata = 13; * @return The count of bytedata. */ int getBytedataCount(); /** *
     * opaque dataType and vlens
     * 
* * repeated bytes bytedata = 13; * @param index The index of the element to return. * @return The bytedata at the given index. */ com.google.protobuf.ByteString getBytedata(int index); /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ java.util.List getStructdataList(); /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ ucar.nc2.stream.NcStreamProto.ArrayStructureRow getStructdata(int index); /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ int getStructdataCount(); /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ java.util.List getStructdataOrBuilderList(); /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder getStructdataOrBuilder( int index); } /** * Protobuf type {@code ArrayStructureRow} */ public static final class ArrayStructureRow extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ArrayStructureRow) ArrayStructureRowOrBuilder { private static final long serialVersionUID = 0L; // Use ArrayStructureRow.newBuilder() to construct. private ArrayStructureRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ArrayStructureRow() { members_ = java.util.Collections.emptyList(); fixdata_ = com.google.protobuf.ByteString.EMPTY; stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); bytedata_ = java.util.Collections.emptyList(); structdata_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ArrayStructureRow(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureRow_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.ArrayStructureRow.class, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder.class); } public static final int MEMBERS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List members_; /** * repeated .Member members = 1; */ @java.lang.Override public java.util.List getMembersList() { return members_; } /** * repeated .Member members = 1; */ @java.lang.Override public java.util.List getMembersOrBuilderList() { return members_; } /** * repeated .Member members = 1; */ @java.lang.Override public int getMembersCount() { return members_.size(); } /** * repeated .Member members = 1; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.Member getMembers(int index) { return members_.get(index); } /** * repeated .Member members = 1; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.MemberOrBuilder getMembersOrBuilder( int index) { return members_.get(index); } public static final int NROWS_FIELD_NUMBER = 5; private long nrows_ = 0L; /** *
     * number of rows in this message
     * 
* * uint64 nrows = 5; * @return The nrows. */ @java.lang.Override public long getNrows() { return nrows_; } public static final int ROWLENGTH_FIELD_NUMBER = 6; private int rowLength_ = 0; /** *
     * length in bytes of each row
     * 
* * uint32 rowLength = 6; * @return The rowLength. */ @java.lang.Override public int getRowLength() { return rowLength_; } public static final int FIXDATA_FIELD_NUMBER = 10; private com.google.protobuf.ByteString fixdata_ = com.google.protobuf.ByteString.EMPTY; /** *
     * fixed data
     * 
* * bytes fixdata = 10; * @return The fixdata. */ @java.lang.Override public com.google.protobuf.ByteString getFixdata() { return fixdata_; } public static final int STRINGDATA_FIELD_NUMBER = 11; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return A list containing the stringdata. */ public com.google.protobuf.ProtocolStringList getStringdataList() { return stringdata_; } /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @return The count of stringdata. */ public int getStringdataCount() { return stringdata_.size(); } /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the element to return. * @return The stringdata at the given index. */ public java.lang.String getStringdata(int index) { return stringdata_.get(index); } /** *
     * string dataType
     * 
* * repeated string stringdata = 11; * @param index The index of the value to return. * @return The bytes of the stringdata at the given index. */ public com.google.protobuf.ByteString getStringdataBytes(int index) { return stringdata_.getByteString(index); } public static final int BYTEDATA_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List bytedata_; /** *
     * opaque dataType and vlens
     * 
* * repeated bytes bytedata = 13; * @return A list containing the bytedata. */ @java.lang.Override public java.util.List getBytedataList() { return bytedata_; } /** *
     * opaque dataType and vlens
     * 
* * repeated bytes bytedata = 13; * @return The count of bytedata. */ public int getBytedataCount() { return bytedata_.size(); } /** *
     * opaque dataType and vlens
     * 
* * repeated bytes bytedata = 13; * @param index The index of the element to return. * @return The bytedata at the given index. */ public com.google.protobuf.ByteString getBytedata(int index) { return bytedata_.get(index); } public static final int STRUCTDATA_FIELD_NUMBER = 14; @SuppressWarnings("serial") private java.util.List structdata_; /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ @java.lang.Override public java.util.List getStructdataList() { return structdata_; } /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ @java.lang.Override public java.util.List getStructdataOrBuilderList() { return structdata_; } /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ @java.lang.Override public int getStructdataCount() { return structdata_.size(); } /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureRow getStructdata(int index) { return structdata_.get(index); } /** *
     * structure/seq dataType
     * 
* * repeated .ArrayStructureRow structdata = 14; */ @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder getStructdataOrBuilder( int index) { return structdata_.get(index); } 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 { for (int i = 0; i < members_.size(); i++) { output.writeMessage(1, members_.get(i)); } if (nrows_ != 0L) { output.writeUInt64(5, nrows_); } if (rowLength_ != 0) { output.writeUInt32(6, rowLength_); } if (!fixdata_.isEmpty()) { output.writeBytes(10, fixdata_); } for (int i = 0; i < stringdata_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, stringdata_.getRaw(i)); } for (int i = 0; i < bytedata_.size(); i++) { output.writeBytes(13, bytedata_.get(i)); } for (int i = 0; i < structdata_.size(); i++) { output.writeMessage(14, structdata_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < members_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, members_.get(i)); } if (nrows_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, nrows_); } if (rowLength_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, rowLength_); } if (!fixdata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, fixdata_); } { int dataSize = 0; for (int i = 0; i < stringdata_.size(); i++) { dataSize += computeStringSizeNoTag(stringdata_.getRaw(i)); } size += dataSize; size += 1 * getStringdataList().size(); } { int dataSize = 0; for (int i = 0; i < bytedata_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(bytedata_.get(i)); } size += dataSize; size += 1 * getBytedataList().size(); } for (int i = 0; i < structdata_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, structdata_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ucar.nc2.stream.NcStreamProto.ArrayStructureRow)) { return super.equals(obj); } ucar.nc2.stream.NcStreamProto.ArrayStructureRow other = (ucar.nc2.stream.NcStreamProto.ArrayStructureRow) obj; if (!getMembersList() .equals(other.getMembersList())) return false; if (getNrows() != other.getNrows()) return false; if (getRowLength() != other.getRowLength()) return false; if (!getFixdata() .equals(other.getFixdata())) return false; if (!getStringdataList() .equals(other.getStringdataList())) return false; if (!getBytedataList() .equals(other.getBytedataList())) return false; if (!getStructdataList() .equals(other.getStructdataList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getMembersCount() > 0) { hash = (37 * hash) + MEMBERS_FIELD_NUMBER; hash = (53 * hash) + getMembersList().hashCode(); } hash = (37 * hash) + NROWS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNrows()); hash = (37 * hash) + ROWLENGTH_FIELD_NUMBER; hash = (53 * hash) + getRowLength(); hash = (37 * hash) + FIXDATA_FIELD_NUMBER; hash = (53 * hash) + getFixdata().hashCode(); if (getStringdataCount() > 0) { hash = (37 * hash) + STRINGDATA_FIELD_NUMBER; hash = (53 * hash) + getStringdataList().hashCode(); } if (getBytedataCount() > 0) { hash = (37 * hash) + BYTEDATA_FIELD_NUMBER; hash = (53 * hash) + getBytedataList().hashCode(); } if (getStructdataCount() > 0) { hash = (37 * hash) + STRUCTDATA_FIELD_NUMBER; hash = (53 * hash) + getStructdataList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow 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 ucar.nc2.stream.NcStreamProto.ArrayStructureRow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow 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 ucar.nc2.stream.NcStreamProto.ArrayStructureRow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow 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(ucar.nc2.stream.NcStreamProto.ArrayStructureRow 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; } /** * Protobuf type {@code ArrayStructureRow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ArrayStructureRow) ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureRow_fieldAccessorTable .ensureFieldAccessorsInitialized( ucar.nc2.stream.NcStreamProto.ArrayStructureRow.class, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder.class); } // Construct using ucar.nc2.stream.NcStreamProto.ArrayStructureRow.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); } else { members_ = null; membersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); nrows_ = 0L; rowLength_ = 0; fixdata_ = com.google.protobuf.ByteString.EMPTY; stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); bytedata_ = java.util.Collections.emptyList(); if (structdataBuilder_ == null) { structdata_ = java.util.Collections.emptyList(); } else { structdata_ = null; structdataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureRow_descriptor; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureRow getDefaultInstanceForType() { return ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance(); } @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureRow build() { ucar.nc2.stream.NcStreamProto.ArrayStructureRow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureRow buildPartial() { ucar.nc2.stream.NcStreamProto.ArrayStructureRow result = new ucar.nc2.stream.NcStreamProto.ArrayStructureRow(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ucar.nc2.stream.NcStreamProto.ArrayStructureRow result) { if (membersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { members_ = java.util.Collections.unmodifiableList(members_); bitField0_ = (bitField0_ & ~0x00000001); } result.members_ = members_; } else { result.members_ = membersBuilder_.build(); } if (((bitField0_ & 0x00000020) != 0)) { bytedata_ = java.util.Collections.unmodifiableList(bytedata_); bitField0_ = (bitField0_ & ~0x00000020); } result.bytedata_ = bytedata_; if (structdataBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { structdata_ = java.util.Collections.unmodifiableList(structdata_); bitField0_ = (bitField0_ & ~0x00000040); } result.structdata_ = structdata_; } else { result.structdata_ = structdataBuilder_.build(); } } private void buildPartial0(ucar.nc2.stream.NcStreamProto.ArrayStructureRow result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nrows_ = nrows_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.rowLength_ = rowLength_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.fixdata_ = fixdata_; } if (((from_bitField0_ & 0x00000010) != 0)) { stringdata_.makeImmutable(); result.stringdata_ = stringdata_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ucar.nc2.stream.NcStreamProto.ArrayStructureRow) { return mergeFrom((ucar.nc2.stream.NcStreamProto.ArrayStructureRow)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.ArrayStructureRow other) { if (other == ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance()) return this; if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMembersIsMutable(); members_.addAll(other.members_); } onChanged(); } } else { if (!other.members_.isEmpty()) { if (membersBuilder_.isEmpty()) { membersBuilder_.dispose(); membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000001); membersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMembersFieldBuilder() : null; } else { membersBuilder_.addAllMessages(other.members_); } } } if (other.getNrows() != 0L) { setNrows(other.getNrows()); } if (other.getRowLength() != 0) { setRowLength(other.getRowLength()); } if (other.getFixdata() != com.google.protobuf.ByteString.EMPTY) { setFixdata(other.getFixdata()); } if (!other.stringdata_.isEmpty()) { if (stringdata_.isEmpty()) { stringdata_ = other.stringdata_; bitField0_ |= 0x00000010; } else { ensureStringdataIsMutable(); stringdata_.addAll(other.stringdata_); } onChanged(); } if (!other.bytedata_.isEmpty()) { if (bytedata_.isEmpty()) { bytedata_ = other.bytedata_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureBytedataIsMutable(); bytedata_.addAll(other.bytedata_); } onChanged(); } if (structdataBuilder_ == null) { if (!other.structdata_.isEmpty()) { if (structdata_.isEmpty()) { structdata_ = other.structdata_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureStructdataIsMutable(); structdata_.addAll(other.structdata_); } onChanged(); } } else { if (!other.structdata_.isEmpty()) { if (structdataBuilder_.isEmpty()) { structdataBuilder_.dispose(); structdataBuilder_ = null; structdata_ = other.structdata_; bitField0_ = (bitField0_ & ~0x00000040); structdataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStructdataFieldBuilder() : null; } else { structdataBuilder_.addAllMessages(other.structdata_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { ucar.nc2.stream.NcStreamProto.Member m = input.readMessage( ucar.nc2.stream.NcStreamProto.Member.parser(), extensionRegistry); if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(m); } else { membersBuilder_.addMessage(m); } break; } // case 10 case 40: { nrows_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 40 case 48: { rowLength_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 48 case 82: { fixdata_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 82 case 90: { java.lang.String s = input.readStringRequireUtf8(); ensureStringdataIsMutable(); stringdata_.add(s); break; } // case 90 case 106: { com.google.protobuf.ByteString v = input.readBytes(); ensureBytedataIsMutable(); bytedata_.add(v); break; } // case 106 case 114: { ucar.nc2.stream.NcStreamProto.ArrayStructureRow m = input.readMessage( ucar.nc2.stream.NcStreamProto.ArrayStructureRow.parser(), extensionRegistry); if (structdataBuilder_ == null) { ensureStructdataIsMutable(); structdata_.add(m); } else { structdataBuilder_.addMessage(m); } break; } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List members_ = java.util.Collections.emptyList(); private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Member, ucar.nc2.stream.NcStreamProto.Member.Builder, ucar.nc2.stream.NcStreamProto.MemberOrBuilder> membersBuilder_; /** * repeated .Member members = 1; */ public java.util.List getMembersList() { if (membersBuilder_ == null) { return java.util.Collections.unmodifiableList(members_); } else { return membersBuilder_.getMessageList(); } } /** * repeated .Member members = 1; */ public int getMembersCount() { if (membersBuilder_ == null) { return members_.size(); } else { return membersBuilder_.getCount(); } } /** * repeated .Member members = 1; */ public ucar.nc2.stream.NcStreamProto.Member getMembers(int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessage(index); } } /** * repeated .Member members = 1; */ public Builder setMembers( int index, ucar.nc2.stream.NcStreamProto.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); } else { membersBuilder_.setMessage(index, value); } return this; } /** * repeated .Member members = 1; */ public Builder setMembers( int index, ucar.nc2.stream.NcStreamProto.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); onChanged(); } else { membersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Member members = 1; */ public Builder addMembers(ucar.nc2.stream.NcStreamProto.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); } else { membersBuilder_.addMessage(value); } return this; } /** * repeated .Member members = 1; */ public Builder addMembers( int index, ucar.nc2.stream.NcStreamProto.Member value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(index, value); onChanged(); } else { membersBuilder_.addMessage(index, value); } return this; } /** * repeated .Member members = 1; */ public Builder addMembers( ucar.nc2.stream.NcStreamProto.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Member members = 1; */ public Builder addMembers( int index, ucar.nc2.stream.NcStreamProto.Member.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Member members = 1; */ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); } return this; } /** * repeated .Member members = 1; */ public Builder clearMembers() { if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { membersBuilder_.clear(); } return this; } /** * repeated .Member members = 1; */ public Builder removeMembers(int index) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.remove(index); onChanged(); } else { membersBuilder_.remove(index); } return this; } /** * repeated .Member members = 1; */ public ucar.nc2.stream.NcStreamProto.Member.Builder getMembersBuilder( int index) { return getMembersFieldBuilder().getBuilder(index); } /** * repeated .Member members = 1; */ public ucar.nc2.stream.NcStreamProto.MemberOrBuilder getMembersOrBuilder( int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessageOrBuilder(index); } } /** * repeated .Member members = 1; */ public java.util.List getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(members_); } } /** * repeated .Member members = 1; */ public ucar.nc2.stream.NcStreamProto.Member.Builder addMembersBuilder() { return getMembersFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.Member.getDefaultInstance()); } /** * repeated .Member members = 1; */ public ucar.nc2.stream.NcStreamProto.Member.Builder addMembersBuilder( int index) { return getMembersFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.Member.getDefaultInstance()); } /** * repeated .Member members = 1; */ public java.util.List getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Member, ucar.nc2.stream.NcStreamProto.Member.Builder, ucar.nc2.stream.NcStreamProto.MemberOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.Member, ucar.nc2.stream.NcStreamProto.Member.Builder, ucar.nc2.stream.NcStreamProto.MemberOrBuilder>( members_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); members_ = null; } return membersBuilder_; } private long nrows_ ; /** *
       * number of rows in this message
       * 
* * uint64 nrows = 5; * @return The nrows. */ @java.lang.Override public long getNrows() { return nrows_; } /** *
       * number of rows in this message
       * 
* * uint64 nrows = 5; * @param value The nrows to set. * @return This builder for chaining. */ public Builder setNrows(long value) { nrows_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * number of rows in this message
       * 
* * uint64 nrows = 5; * @return This builder for chaining. */ public Builder clearNrows() { bitField0_ = (bitField0_ & ~0x00000002); nrows_ = 0L; onChanged(); return this; } private int rowLength_ ; /** *
       * length in bytes of each row
       * 
* * uint32 rowLength = 6; * @return The rowLength. */ @java.lang.Override public int getRowLength() { return rowLength_; } /** *
       * length in bytes of each row
       * 
* * uint32 rowLength = 6; * @param value The rowLength to set. * @return This builder for chaining. */ public Builder setRowLength(int value) { rowLength_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * length in bytes of each row
       * 
* * uint32 rowLength = 6; * @return This builder for chaining. */ public Builder clearRowLength() { bitField0_ = (bitField0_ & ~0x00000004); rowLength_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString fixdata_ = com.google.protobuf.ByteString.EMPTY; /** *
       * fixed data
       * 
* * bytes fixdata = 10; * @return The fixdata. */ @java.lang.Override public com.google.protobuf.ByteString getFixdata() { return fixdata_; } /** *
       * fixed data
       * 
* * bytes fixdata = 10; * @param value The fixdata to set. * @return This builder for chaining. */ public Builder setFixdata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } fixdata_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * fixed data
       * 
* * bytes fixdata = 10; * @return This builder for chaining. */ public Builder clearFixdata() { bitField0_ = (bitField0_ & ~0x00000008); fixdata_ = getDefaultInstance().getFixdata(); onChanged(); return this; } private com.google.protobuf.LazyStringArrayList stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStringdataIsMutable() { if (!stringdata_.isModifiable()) { stringdata_ = new com.google.protobuf.LazyStringArrayList(stringdata_); } bitField0_ |= 0x00000010; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @return A list containing the stringdata. */ public com.google.protobuf.ProtocolStringList getStringdataList() { stringdata_.makeImmutable(); return stringdata_; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @return The count of stringdata. */ public int getStringdataCount() { return stringdata_.size(); } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param index The index of the element to return. * @return The stringdata at the given index. */ public java.lang.String getStringdata(int index) { return stringdata_.get(index); } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param index The index of the value to return. * @return The bytes of the stringdata at the given index. */ public com.google.protobuf.ByteString getStringdataBytes(int index) { return stringdata_.getByteString(index); } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param index The index to set the value at. * @param value The stringdata to set. * @return This builder for chaining. */ public Builder setStringdata( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringdataIsMutable(); stringdata_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param value The stringdata to add. * @return This builder for chaining. */ public Builder addStringdata( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringdataIsMutable(); stringdata_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param values The stringdata to add. * @return This builder for chaining. */ public Builder addAllStringdata( java.lang.Iterable values) { ensureStringdataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stringdata_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @return This builder for chaining. */ public Builder clearStringdata() { stringdata_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** *
       * string dataType
       * 
* * repeated string stringdata = 11; * @param value The bytes of the stringdata to add. * @return This builder for chaining. */ public Builder addStringdataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStringdataIsMutable(); stringdata_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private java.util.List bytedata_ = java.util.Collections.emptyList(); private void ensureBytedataIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { bytedata_ = new java.util.ArrayList(bytedata_); bitField0_ |= 0x00000020; } } /** *
       * opaque dataType and vlens
       * 
* * repeated bytes bytedata = 13; * @return A list containing the bytedata. */ public java.util.List getBytedataList() { return ((bitField0_ & 0x00000020) != 0) ? java.util.Collections.unmodifiableList(bytedata_) : bytedata_; } /** *
       * opaque dataType and vlens
       * 
* * repeated bytes bytedata = 13; * @return The count of bytedata. */ public int getBytedataCount() { return bytedata_.size(); } /** *
       * opaque dataType and vlens
       * 
* * repeated bytes bytedata = 13; * @param index The index of the element to return. * @return The bytedata at the given index. */ public com.google.protobuf.ByteString getBytedata(int index) { return bytedata_.get(index); } /** *
       * opaque dataType and vlens
       * 
* * repeated bytes bytedata = 13; * @param index The index to set the value at. * @param value The bytedata to set. * @return This builder for chaining. */ public Builder setBytedata( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBytedataIsMutable(); bytedata_.set(index, value); onChanged(); return this; } /** *
       * opaque dataType and vlens
       * 
* * repeated bytes bytedata = 13; * @param value The bytedata to add. * @return This builder for chaining. */ public Builder addBytedata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBytedataIsMutable(); bytedata_.add(value); onChanged(); return this; } /** *
       * opaque dataType and vlens
       * 
* * repeated bytes bytedata = 13; * @param values The bytedata to add. * @return This builder for chaining. */ public Builder addAllBytedata( java.lang.Iterable values) { ensureBytedataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bytedata_); onChanged(); return this; } /** *
       * opaque dataType and vlens
       * 
* * repeated bytes bytedata = 13; * @return This builder for chaining. */ public Builder clearBytedata() { bytedata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private java.util.List structdata_ = java.util.Collections.emptyList(); private void ensureStructdataIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { structdata_ = new java.util.ArrayList(structdata_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.ArrayStructureRow, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder> structdataBuilder_; /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public java.util.List getStructdataList() { if (structdataBuilder_ == null) { return java.util.Collections.unmodifiableList(structdata_); } else { return structdataBuilder_.getMessageList(); } } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public int getStructdataCount() { if (structdataBuilder_ == null) { return structdata_.size(); } else { return structdataBuilder_.getCount(); } } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public ucar.nc2.stream.NcStreamProto.ArrayStructureRow getStructdata(int index) { if (structdataBuilder_ == null) { return structdata_.get(index); } else { return structdataBuilder_.getMessage(index); } } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public Builder setStructdata( int index, ucar.nc2.stream.NcStreamProto.ArrayStructureRow value) { if (structdataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructdataIsMutable(); structdata_.set(index, value); onChanged(); } else { structdataBuilder_.setMessage(index, value); } return this; } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public Builder setStructdata( int index, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder builderForValue) { if (structdataBuilder_ == null) { ensureStructdataIsMutable(); structdata_.set(index, builderForValue.build()); onChanged(); } else { structdataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public Builder addStructdata(ucar.nc2.stream.NcStreamProto.ArrayStructureRow value) { if (structdataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructdataIsMutable(); structdata_.add(value); onChanged(); } else { structdataBuilder_.addMessage(value); } return this; } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public Builder addStructdata( int index, ucar.nc2.stream.NcStreamProto.ArrayStructureRow value) { if (structdataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStructdataIsMutable(); structdata_.add(index, value); onChanged(); } else { structdataBuilder_.addMessage(index, value); } return this; } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public Builder addStructdata( ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder builderForValue) { if (structdataBuilder_ == null) { ensureStructdataIsMutable(); structdata_.add(builderForValue.build()); onChanged(); } else { structdataBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public Builder addStructdata( int index, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder builderForValue) { if (structdataBuilder_ == null) { ensureStructdataIsMutable(); structdata_.add(index, builderForValue.build()); onChanged(); } else { structdataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public Builder addAllStructdata( java.lang.Iterable values) { if (structdataBuilder_ == null) { ensureStructdataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, structdata_); onChanged(); } else { structdataBuilder_.addAllMessages(values); } return this; } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public Builder clearStructdata() { if (structdataBuilder_ == null) { structdata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { structdataBuilder_.clear(); } return this; } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public Builder removeStructdata(int index) { if (structdataBuilder_ == null) { ensureStructdataIsMutable(); structdata_.remove(index); onChanged(); } else { structdataBuilder_.remove(index); } return this; } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder getStructdataBuilder( int index) { return getStructdataFieldBuilder().getBuilder(index); } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder getStructdataOrBuilder( int index) { if (structdataBuilder_ == null) { return structdata_.get(index); } else { return structdataBuilder_.getMessageOrBuilder(index); } } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public java.util.List getStructdataOrBuilderList() { if (structdataBuilder_ != null) { return structdataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(structdata_); } } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder addStructdataBuilder() { return getStructdataFieldBuilder().addBuilder( ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance()); } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder addStructdataBuilder( int index) { return getStructdataFieldBuilder().addBuilder( index, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance()); } /** *
       * structure/seq dataType
       * 
* * repeated .ArrayStructureRow structdata = 14; */ public java.util.List getStructdataBuilderList() { return getStructdataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.ArrayStructureRow, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder> getStructdataFieldBuilder() { if (structdataBuilder_ == null) { structdataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ucar.nc2.stream.NcStreamProto.ArrayStructureRow, ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder>( structdata_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); structdata_ = null; } return structdataBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ArrayStructureRow) } // @@protoc_insertion_point(class_scope:ArrayStructureRow) private static final ucar.nc2.stream.NcStreamProto.ArrayStructureRow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ucar.nc2.stream.NcStreamProto.ArrayStructureRow(); } public static ucar.nc2.stream.NcStreamProto.ArrayStructureRow getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ArrayStructureRow parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ucar.nc2.stream.NcStreamProto.ArrayStructureRow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Attribute_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Attribute_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Dimension_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Dimension_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Variable_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Variable_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Structure_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Structure_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_EnumTypedef_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EnumTypedef_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_EnumTypedef_EnumType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_EnumTypedef_EnumType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Group_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Group_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Header_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Header_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Error_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Error_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Range_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Range_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Section_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Section_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Data_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Data_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_StructureData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_StructureData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_DataCol_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_DataCol_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ArrayStructureCol_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ArrayStructureCol_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_DataRow_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_DataRow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Member_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Member_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ArrayStructureRow_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ArrayStructureRow_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\016ncStream.proto\"\344\001\n\tAttribute\022\014\n\004name\030\001" + " \001(\t\022\035\n\004type\030\002 \001(\0162\017.Attribute.Type\022\013\n\003l" + "en\030\003 \001(\r\022\014\n\004data\030\004 \001(\014\022\r\n\005sdata\030\005 \003(\t\022\020\n" + "\010unsigned\030\006 \001(\010\022\033\n\010dataType\030\007 \001(\0162\t.Data" + "Type\"Q\n\004Type\022\n\n\006STRING\020\000\022\010\n\004BYTE\020\001\022\t\n\005SH" + "ORT\020\002\022\007\n\003INT\020\003\022\010\n\004LONG\020\004\022\t\n\005FLOAT\020\005\022\n\n\006D" + "OUBLE\020\006\"a\n\tDimension\022\014\n\004name\030\001 \001(\t\022\016\n\006le" + "ngth\030\002 \001(\004\022\023\n\013isUnlimited\030\003 \001(\010\022\016\n\006isVle" + "n\030\004 \001(\010\022\021\n\tisPrivate\030\005 \001(\010\"\234\001\n\010Variable\022" + "\014\n\004name\030\001 \001(\t\022\033\n\010dataType\030\002 \001(\0162\t.DataTy" + "pe\022\031\n\005shape\030\003 \003(\0132\n.Dimension\022\030\n\004atts\030\004 " + "\003(\0132\n.Attribute\022\020\n\010unsigned\030\005 \001(\010\022\014\n\004dat" + "a\030\006 \001(\014\022\020\n\010enumType\030\007 \001(\t\"\241\001\n\tStructure\022" + "\014\n\004name\030\001 \001(\t\022\033\n\010dataType\030\002 \001(\0162\t.DataTy" + "pe\022\031\n\005shape\030\003 \003(\0132\n.Dimension\022\030\n\004atts\030\004 " + "\003(\0132\n.Attribute\022\027\n\004vars\030\005 \003(\0132\t.Variable" + "\022\033\n\007structs\030\006 \003(\0132\n.Structure\"h\n\013EnumTyp" + "edef\022\014\n\004name\030\001 \001(\t\022\"\n\003map\030\002 \003(\0132\025.EnumTy" + "pedef.EnumType\032\'\n\010EnumType\022\014\n\004code\030\001 \001(\r" + "\022\r\n\005value\030\002 \001(\t\"\270\001\n\005Group\022\014\n\004name\030\001 \001(\t\022" + "\030\n\004dims\030\002 \003(\0132\n.Dimension\022\027\n\004vars\030\003 \003(\0132" + "\t.Variable\022\033\n\007structs\030\004 \003(\0132\n.Structure\022" + "\030\n\004atts\030\005 \003(\0132\n.Attribute\022\026\n\006groups\030\006 \003(" + "\0132\006.Group\022\037\n\tenumTypes\030\007 \003(\0132\014.EnumTyped" + "ef\"\\\n\006Header\022\020\n\010location\030\001 \001(\t\022\r\n\005title\030" + "\002 \001(\t\022\n\n\002id\030\003 \001(\t\022\024\n\004root\030\004 \001(\0132\006.Group\022" + "\017\n\007version\030\005 \001(\r\"&\n\005Error\022\017\n\007message\030\001 \001" + "(\t\022\014\n\004code\030\002 \001(\r\"4\n\005Range\022\r\n\005start\030\001 \001(\004" + "\022\014\n\004size\030\002 \001(\004\022\016\n\006stride\030\003 \001(\004\" \n\007Sectio" + "n\022\025\n\005range\030\001 \003(\0132\006.Range\"\312\001\n\004Data\022\017\n\007var" + "Name\030\001 \001(\t\022\033\n\010dataType\030\002 \001(\0162\t.DataType\022" + "\031\n\007section\030\003 \001(\0132\010.Section\022\020\n\006bigend\030\004 \001" + "(\010H\000\022\017\n\007version\030\005 \001(\r\022\033\n\010compress\030\006 \001(\0162" + "\t.Compress\022\r\n\005vdata\030\007 \001(\010\022\030\n\020uncompresse" + "dSize\030\010 \001(\rB\020\n\016bigend_present\"q\n\rStructu" + "reData\022\016\n\006member\030\001 \003(\r\022\014\n\004data\030\002 \001(\014\022\021\n\t" + "heapCount\030\003 \003(\r\022\r\n\005sdata\030\004 \003(\t\022\r\n\005nrows\030" + "\005 \001(\004\022\021\n\trowLength\030\006 \001(\r\"\201\002\n\007DataCol\022\014\n\004" + "name\030\001 \001(\t\022\033\n\010dataType\030\002 \001(\0162\t.DataType\022" + "\031\n\007section\030\003 \001(\0132\010.Section\022\016\n\006bigend\030\004 \001" + "(\010\022\017\n\007version\030\005 \001(\r\022\016\n\006isVlen\030\007 \001(\010\022\016\n\006n" + "elems\030\t \001(\r\022\020\n\010primdata\030\n \001(\014\022\022\n\nstringd" + "ata\030\013 \003(\t\022\r\n\005vlens\030\014 \003(\r\022\022\n\nopaquedata\030\r" + " \003(\014\022&\n\nstructdata\030\016 \001(\0132\022.ArrayStructur" + "eCol\"1\n\021ArrayStructureCol\022\034\n\nmemberData\030" + "\001 \003(\0132\010.DataCol\"\205\002\n\007DataRow\022\020\n\010fullName\030" + "\001 \001(\t\022\033\n\010dataType\030\002 \001(\0162\t.DataType\022\031\n\007se" + "ction\030\003 \001(\0132\010.Section\022\016\n\006bigend\030\004 \001(\010\022\017\n" + "\007version\030\005 \001(\r\022\016\n\006isVlen\030\007 \001(\010\022\016\n\006nelems" + "\030\t \001(\r\022\020\n\010primdata\030\n \001(\014\022\022\n\nstringdata\030\013" + " \003(\t\022\r\n\005vlens\030\014 \003(\r\022\022\n\nopaquedata\030\r \003(\014\022" + "&\n\nstructdata\030\016 \001(\0132\022.ArrayStructureRow\"" + "W\n\006Member\022\021\n\tshortName\030\001 \001(\t\022\033\n\010dataType" + "\030\002 \001(\0162\t.DataType\022\r\n\005shape\030\003 \003(\r\022\016\n\006isVl" + "en\030\004 \001(\010\"\256\001\n\021ArrayStructureRow\022\030\n\007member" + "s\030\001 \003(\0132\007.Member\022\r\n\005nrows\030\005 \001(\004\022\021\n\trowLe" + "ngth\030\006 \001(\r\022\017\n\007fixdata\030\n \001(\014\022\022\n\nstringdat" + "a\030\013 \003(\t\022\020\n\010bytedata\030\r \003(\014\022&\n\nstructdata\030" + "\016 \003(\0132\022.ArrayStructureRow*\325\001\n\010DataType\022\010" + "\n\004CHAR\020\000\022\010\n\004BYTE\020\001\022\t\n\005SHORT\020\002\022\007\n\003INT\020\003\022\010" + "\n\004LONG\020\004\022\t\n\005FLOAT\020\005\022\n\n\006DOUBLE\020\006\022\n\n\006STRIN" + "G\020\007\022\r\n\tSTRUCTURE\020\010\022\014\n\010SEQUENCE\020\t\022\t\n\005ENUM" + "1\020\n\022\t\n\005ENUM2\020\013\022\t\n\005ENUM4\020\014\022\n\n\006OPAQUE\020\r\022\t\n" + "\005UBYTE\020\016\022\n\n\006USHORT\020\017\022\010\n\004UINT\020\020\022\t\n\005ULONG\020" + "\021*!\n\010Compress\022\010\n\004NONE\020\000\022\013\n\007DEFLATE\020\001B \n\017" + "ucar.nc2.streamB\rNcStreamProtob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_Attribute_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Attribute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Attribute_descriptor, new java.lang.String[] { "Name", "Type", "Len", "Data", "Sdata", "Unsigned", "DataType", }); internal_static_Dimension_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Dimension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Dimension_descriptor, new java.lang.String[] { "Name", "Length", "IsUnlimited", "IsVlen", "IsPrivate", }); internal_static_Variable_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Variable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Variable_descriptor, new java.lang.String[] { "Name", "DataType", "Shape", "Atts", "Unsigned", "Data", "EnumType", }); internal_static_Structure_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_Structure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Structure_descriptor, new java.lang.String[] { "Name", "DataType", "Shape", "Atts", "Vars", "Structs", }); internal_static_EnumTypedef_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_EnumTypedef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_EnumTypedef_descriptor, new java.lang.String[] { "Name", "Map", }); internal_static_EnumTypedef_EnumType_descriptor = internal_static_EnumTypedef_descriptor.getNestedTypes().get(0); internal_static_EnumTypedef_EnumType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_EnumTypedef_EnumType_descriptor, new java.lang.String[] { "Code", "Value", }); internal_static_Group_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_Group_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Group_descriptor, new java.lang.String[] { "Name", "Dims", "Vars", "Structs", "Atts", "Groups", "EnumTypes", }); internal_static_Header_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Header_descriptor, new java.lang.String[] { "Location", "Title", "Id", "Root", "Version", }); internal_static_Error_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Error_descriptor, new java.lang.String[] { "Message", "Code", }); internal_static_Range_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_Range_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Range_descriptor, new java.lang.String[] { "Start", "Size", "Stride", }); internal_static_Section_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_Section_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Section_descriptor, new java.lang.String[] { "Range", }); internal_static_Data_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Data_descriptor, new java.lang.String[] { "VarName", "DataType", "Section", "Bigend", "Version", "Compress", "Vdata", "UncompressedSize", "BigendPresent", }); internal_static_StructureData_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_StructureData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_StructureData_descriptor, new java.lang.String[] { "Member", "Data", "HeapCount", "Sdata", "Nrows", "RowLength", }); internal_static_DataCol_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_DataCol_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_DataCol_descriptor, new java.lang.String[] { "Name", "DataType", "Section", "Bigend", "Version", "IsVlen", "Nelems", "Primdata", "Stringdata", "Vlens", "Opaquedata", "Structdata", }); internal_static_ArrayStructureCol_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_ArrayStructureCol_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ArrayStructureCol_descriptor, new java.lang.String[] { "MemberData", }); internal_static_DataRow_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_DataRow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_DataRow_descriptor, new java.lang.String[] { "FullName", "DataType", "Section", "Bigend", "Version", "IsVlen", "Nelems", "Primdata", "Stringdata", "Vlens", "Opaquedata", "Structdata", }); internal_static_Member_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_Member_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Member_descriptor, new java.lang.String[] { "ShortName", "DataType", "Shape", "IsVlen", }); internal_static_ArrayStructureRow_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_ArrayStructureRow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ArrayStructureRow_descriptor, new java.lang.String[] { "Members", "Nrows", "RowLength", "Fixdata", "Stringdata", "Bytedata", "Structdata", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy