ucar.nc2.stream.NcStreamProto Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ucar/nc2/stream/ncStream.proto
package ucar.nc2.stream;
public final class NcStreamProto {
private NcStreamProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code DataType}
*/
public enum DataType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CHAR = 0;
*/
CHAR(0, 0),
/**
* BYTE = 1;
*/
BYTE(1, 1),
/**
* SHORT = 2;
*/
SHORT(2, 2),
/**
* INT = 3;
*/
INT(3, 3),
/**
* LONG = 4;
*/
LONG(4, 4),
/**
* FLOAT = 5;
*/
FLOAT(5, 5),
/**
* DOUBLE = 6;
*/
DOUBLE(6, 6),
/**
* STRING = 7;
*/
STRING(7, 7),
/**
* STRUCTURE = 8;
*/
STRUCTURE(8, 8),
/**
* SEQUENCE = 9;
*/
SEQUENCE(9, 9),
/**
* ENUM1 = 10;
*/
ENUM1(10, 10),
/**
* ENUM2 = 11;
*/
ENUM2(11, 11),
/**
* ENUM4 = 12;
*/
ENUM4(12, 12),
/**
* OPAQUE = 13;
*/
OPAQUE(13, 13),
/**
* UBYTE = 14;
*/
UBYTE(14, 14),
/**
* USHORT = 15;
*/
USHORT(15, 15),
/**
* UINT = 16;
*/
UINT(16, 16),
/**
* ULONG = 17;
*/
ULONG(17, 17),
UNRECOGNIZED(-1, -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 (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
public static DataType valueOf(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.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
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 index;
private final int value;
private DataType(int index, int value) {
this.index = index;
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, 0),
/**
* DEFLATE = 1;
*/
DEFLATE(1, 1),
UNRECOGNIZED(-1, -1),
;
/**
* NONE = 0;
*/
public static final int NONE_VALUE = 0;
/**
* DEFLATE = 1;
*/
public static final int DEFLATE_VALUE = 1;
public final int getNumber() {
if (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
public static Compress valueOf(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.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
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 index;
private final int value;
private Compress(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Compress)
}
public interface AttributeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Attribute)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional .Attribute.Type type = 2;
*
*
* < 5.0
*
*/
int getTypeValue();
/**
* optional .Attribute.Type type = 2;
*
*
* < 5.0
*
*/
ucar.nc2.stream.NcStreamProto.Attribute.Type getType();
/**
* optional uint32 len = 3;
*/
int getLen();
/**
* optional bytes data = 4;
*
*
* not needed if len == 0, Attribute with name but no value
*
*/
com.google.protobuf.ByteString getData();
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
com.google.protobuf.ProtocolStringList
getSdataList();
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
int getSdataCount();
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
java.lang.String getSdata(int index);
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
com.google.protobuf.ByteString
getSdataBytes(int index);
/**
* optional bool unsigned = 6;
*
*
* not used
*
*/
boolean getUnsigned();
/**
* optional .DataType dataType = 7;
*
*
* 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
*
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 7;
*
*
* 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
*
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
}
/**
* Protobuf type {@code Attribute}
*/
public static final class Attribute extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Attribute)
AttributeOrBuilder {
// Use Attribute.newBuilder() to construct.
private Attribute(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Attribute() {
name_ = "";
type_ = 0;
len_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
unsigned_ = false;
dataType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Attribute(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 24: {
len_ = input.readUInt32();
break;
}
case 34: {
data_ = input.readBytes();
break;
}
case 42: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
sdata_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
sdata_.add(s);
break;
}
case 48: {
unsigned_ = input.readBool();
break;
}
case 56: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
sdata_ = sdata_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Attribute_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
/**
* Protobuf enum {@code Attribute.Type}
*
*
* < 5.0
*
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STRING = 0;
*/
STRING(0, 0),
/**
* BYTE = 1;
*/
BYTE(1, 1),
/**
* SHORT = 2;
*/
SHORT(2, 2),
/**
* INT = 3;
*/
INT(3, 3),
/**
* LONG = 4;
*/
LONG(4, 4),
/**
* FLOAT = 5;
*/
FLOAT(5, 5),
/**
* DOUBLE = 6;
*/
DOUBLE(6, 6),
UNRECOGNIZED(-1, -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 (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
public static Type valueOf(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.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
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 index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Attribute.Type)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*/
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;
}
}
/**
* optional string name = 1;
*/
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_;
/**
* optional .Attribute.Type type = 2;
*
*
* < 5.0
*
*/
public int getTypeValue() {
return type_;
}
/**
* optional .Attribute.Type type = 2;
*
*
* < 5.0
*
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Type getType() {
ucar.nc2.stream.NcStreamProto.Attribute.Type result = ucar.nc2.stream.NcStreamProto.Attribute.Type.valueOf(type_);
return result == null ? ucar.nc2.stream.NcStreamProto.Attribute.Type.UNRECOGNIZED : result;
}
public static final int LEN_FIELD_NUMBER = 3;
private int len_;
/**
* optional uint32 len = 3;
*/
public int getLen() {
return len_;
}
public static final int DATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString data_;
/**
* optional bytes data = 4;
*
*
* not needed if len == 0, Attribute with name but no value
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int SDATA_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList sdata_;
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public com.google.protobuf.ProtocolStringList
getSdataList() {
return sdata_;
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public int getSdataCount() {
return sdata_.size();
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public java.lang.String getSdata(int index) {
return sdata_.get(index);
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public com.google.protobuf.ByteString
getSdataBytes(int index) {
return sdata_.getByteString(index);
}
public static final int UNSIGNED_FIELD_NUMBER = 6;
private boolean unsigned_;
/**
* optional bool unsigned = 6;
*
*
* not used
*
*/
public boolean getUnsigned() {
return unsigned_;
}
public static final int DATATYPE_FIELD_NUMBER = 7;
private int dataType_;
/**
* optional .DataType dataType = 7;
*
*
* 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
*
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 7;
*
*
* 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
*
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.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_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Attribute parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Attribute parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Attribute parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Attribute}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
type_ = 0;
len_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
unsigned_ = false;
dataType_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Attribute_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Attribute getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Attribute build() {
ucar.nc2.stream.NcStreamProto.Attribute result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Attribute buildPartial() {
ucar.nc2.stream.NcStreamProto.Attribute result = new ucar.nc2.stream.NcStreamProto.Attribute(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.type_ = type_;
result.len_ = len_;
result.data_ = data_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
sdata_ = sdata_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.sdata_ = sdata_;
result.unsigned_ = unsigned_;
result.dataType_ = dataType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
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_;
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_ = (bitField0_ & ~0x00000010);
} else {
ensureSdataIsMutable();
sdata_.addAll(other.sdata_);
}
onChanged();
}
if (other.getUnsigned() != false) {
setUnsigned(other.getUnsigned());
}
if (other.dataType_ != 0) {
setDataTypeValue(other.getDataTypeValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Attribute parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Attribute) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
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;
}
}
/**
* optional string name = 1;
*/
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;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
* optional .Attribute.Type type = 2;
*
*
* < 5.0
*
*/
public int getTypeValue() {
return type_;
}
/**
* optional .Attribute.Type type = 2;
*
*
* < 5.0
*
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* optional .Attribute.Type type = 2;
*
*
* < 5.0
*
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Type getType() {
ucar.nc2.stream.NcStreamProto.Attribute.Type result = ucar.nc2.stream.NcStreamProto.Attribute.Type.valueOf(type_);
return result == null ? ucar.nc2.stream.NcStreamProto.Attribute.Type.UNRECOGNIZED : result;
}
/**
* optional .Attribute.Type type = 2;
*
*
* < 5.0
*
*/
public Builder setType(ucar.nc2.stream.NcStreamProto.Attribute.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Attribute.Type type = 2;
*
*
* < 5.0
*
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private int len_ ;
/**
* optional uint32 len = 3;
*/
public int getLen() {
return len_;
}
/**
* optional uint32 len = 3;
*/
public Builder setLen(int value) {
len_ = value;
onChanged();
return this;
}
/**
* optional uint32 len = 3;
*/
public Builder clearLen() {
len_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes data = 4;
*
*
* not needed if len == 0, Attribute with name but no value
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* optional bytes data = 4;
*
*
* not needed if len == 0, Attribute with name but no value
*
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* optional bytes data = 4;
*
*
* not needed if len == 0, Attribute with name but no value
*
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private com.google.protobuf.LazyStringList sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSdataIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
sdata_ = new com.google.protobuf.LazyStringArrayList(sdata_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public com.google.protobuf.ProtocolStringList
getSdataList() {
return sdata_.getUnmodifiableView();
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public int getSdataCount() {
return sdata_.size();
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public java.lang.String getSdata(int index) {
return sdata_.get(index);
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public com.google.protobuf.ByteString
getSdataBytes(int index) {
return sdata_.getByteString(index);
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public Builder setSdata(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSdataIsMutable();
sdata_.set(index, value);
onChanged();
return this;
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public Builder addSdata(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSdataIsMutable();
sdata_.add(value);
onChanged();
return this;
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public Builder addAllSdata(
java.lang.Iterable values) {
ensureSdataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sdata_);
onChanged();
return this;
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public Builder clearSdata() {
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* repeated string sdata = 5;
*
*
* used for string data
*
*/
public Builder addSdataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSdataIsMutable();
sdata_.add(value);
onChanged();
return this;
}
private boolean unsigned_ ;
/**
* optional bool unsigned = 6;
*
*
* not used
*
*/
public boolean getUnsigned() {
return unsigned_;
}
/**
* optional bool unsigned = 6;
*
*
* not used
*
*/
public Builder setUnsigned(boolean value) {
unsigned_ = value;
onChanged();
return this;
}
/**
* optional bool unsigned = 6;
*
*
* not used
*
*/
public Builder clearUnsigned() {
unsigned_ = false;
onChanged();
return this;
}
private int dataType_ = 0;
/**
* optional .DataType dataType = 7;
*
*
* 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
*
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 7;
*
*
* 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
*
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
onChanged();
return this;
}
/**
* optional .DataType dataType = 7;
*
*
* 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
*
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
/**
* optional .DataType dataType = 7;
*
*
* 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
*
*/
public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .DataType dataType = 7;
*
*
* 5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
*
*/
public Builder clearDataType() {
dataType_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Attribute parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Attribute(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.Attribute getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DimensionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Dimension)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*
*
* short name - optional when private
*
*/
java.lang.String getName();
/**
* optional string name = 1;
*
*
* short name - optional when private
*
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional uint64 length = 2;
*
*
* optional when vlen, may be zero (unlimited no data yet)
*
*/
long getLength();
/**
* optional bool isUnlimited = 3;
*
*
* is this needed ??
*
*/
boolean getIsUnlimited();
/**
* optional bool isVlen = 4;
*/
boolean getIsVlen();
/**
* optional bool isPrivate = 5;
*/
boolean getIsPrivate();
}
/**
* Protobuf type {@code Dimension}
*/
public static final class Dimension extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Dimension)
DimensionOrBuilder {
// Use Dimension.newBuilder() to construct.
private Dimension(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Dimension() {
name_ = "";
length_ = 0L;
isUnlimited_ = false;
isVlen_ = false;
isPrivate_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Dimension(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
length_ = input.readUInt64();
break;
}
case 24: {
isUnlimited_ = input.readBool();
break;
}
case 32: {
isVlen_ = input.readBool();
break;
}
case 40: {
isPrivate_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Dimension_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*
*
* short name - optional when private
*
*/
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;
}
}
/**
* optional string name = 1;
*
*
* short name - optional when private
*
*/
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_;
/**
* optional uint64 length = 2;
*
*
* optional when vlen, may be zero (unlimited no data yet)
*
*/
public long getLength() {
return length_;
}
public static final int ISUNLIMITED_FIELD_NUMBER = 3;
private boolean isUnlimited_;
/**
* optional bool isUnlimited = 3;
*
*
* is this needed ??
*
*/
public boolean getIsUnlimited() {
return isUnlimited_;
}
public static final int ISVLEN_FIELD_NUMBER = 4;
private boolean isVlen_;
/**
* optional bool isVlen = 4;
*/
public boolean getIsVlen() {
return isVlen_;
}
public static final int ISPRIVATE_FIELD_NUMBER = 5;
private boolean isPrivate_;
/**
* optional bool isPrivate = 5;
*/
public boolean getIsPrivate() {
return isPrivate_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.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_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.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_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Dimension parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Dimension parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Dimension parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Dimension}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
length_ = 0L;
isUnlimited_ = false;
isVlen_ = false;
isPrivate_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Dimension_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Dimension getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Dimension build() {
ucar.nc2.stream.NcStreamProto.Dimension result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Dimension buildPartial() {
ucar.nc2.stream.NcStreamProto.Dimension result = new ucar.nc2.stream.NcStreamProto.Dimension(this);
result.name_ = name_;
result.length_ = length_;
result.isUnlimited_ = isUnlimited_;
result.isVlen_ = isVlen_;
result.isPrivate_ = isPrivate_;
onBuilt();
return result;
}
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_;
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());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Dimension parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Dimension) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*
*
* short name - optional when private
*
*/
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;
}
}
/**
* optional string name = 1;
*
*
* short name - optional when private
*
*/
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;
}
}
/**
* optional string name = 1;
*
*
* short name - optional when private
*
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name - optional when private
*
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name - optional when private
*
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private long length_ ;
/**
* optional uint64 length = 2;
*
*
* optional when vlen, may be zero (unlimited no data yet)
*
*/
public long getLength() {
return length_;
}
/**
* optional uint64 length = 2;
*
*
* optional when vlen, may be zero (unlimited no data yet)
*
*/
public Builder setLength(long value) {
length_ = value;
onChanged();
return this;
}
/**
* optional uint64 length = 2;
*
*
* optional when vlen, may be zero (unlimited no data yet)
*
*/
public Builder clearLength() {
length_ = 0L;
onChanged();
return this;
}
private boolean isUnlimited_ ;
/**
* optional bool isUnlimited = 3;
*
*
* is this needed ??
*
*/
public boolean getIsUnlimited() {
return isUnlimited_;
}
/**
* optional bool isUnlimited = 3;
*
*
* is this needed ??
*
*/
public Builder setIsUnlimited(boolean value) {
isUnlimited_ = value;
onChanged();
return this;
}
/**
* optional bool isUnlimited = 3;
*
*
* is this needed ??
*
*/
public Builder clearIsUnlimited() {
isUnlimited_ = false;
onChanged();
return this;
}
private boolean isVlen_ ;
/**
* optional bool isVlen = 4;
*/
public boolean getIsVlen() {
return isVlen_;
}
/**
* optional bool isVlen = 4;
*/
public Builder setIsVlen(boolean value) {
isVlen_ = value;
onChanged();
return this;
}
/**
* optional bool isVlen = 4;
*/
public Builder clearIsVlen() {
isVlen_ = false;
onChanged();
return this;
}
private boolean isPrivate_ ;
/**
* optional bool isPrivate = 5;
*/
public boolean getIsPrivate() {
return isPrivate_;
}
/**
* optional bool isPrivate = 5;
*/
public Builder setIsPrivate(boolean value) {
isPrivate_ = value;
onChanged();
return this;
}
/**
* optional bool isPrivate = 5;
*/
public Builder clearIsPrivate() {
isPrivate_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Dimension parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Dimension(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.Dimension getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VariableOrBuilder extends
// @@protoc_insertion_point(interface_extends:Variable)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*
*
* short name
*
*/
java.lang.String getName();
/**
* optional string name = 1;
*
*
* short name
*
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional .DataType dataType = 2;
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 2;
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
java.util.List
getShapeList();
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
ucar.nc2.stream.NcStreamProto.Dimension getShape(int index);
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
int getShapeCount();
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
java.util.List extends ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>
getShapeOrBuilderList();
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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 extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getAttsOrBuilderList();
/**
* repeated .Attribute atts = 4;
*/
ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index);
/**
* optional bool unsigned = 5;
*
*
* not used >= 5
*
*/
boolean getUnsigned();
/**
* optional bytes data = 6;
*
*
* "immediate" - store small data in header
*
*/
com.google.protobuf.ByteString getData();
/**
* optional string enumType = 7;
*
*
* EnumTypedef name, only for enum types
*
*/
java.lang.String getEnumType();
/**
* optional string enumType = 7;
*
*
* EnumTypedef name, only for enum types
*
*/
com.google.protobuf.ByteString
getEnumTypeBytes();
}
/**
* Protobuf type {@code Variable}
*/
public static final class Variable extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Variable)
VariableOrBuilder {
// Use Variable.newBuilder() to construct.
private Variable(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Variable() {
name_ = "";
dataType_ = 0;
shape_ = java.util.Collections.emptyList();
atts_ = java.util.Collections.emptyList();
unsigned_ = false;
data_ = com.google.protobuf.ByteString.EMPTY;
enumType_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Variable(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
shape_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Dimension.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
atts_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Attribute.parser(), extensionRegistry));
break;
}
case 40: {
unsigned_ = input.readBool();
break;
}
case 50: {
data_ = input.readBytes();
break;
}
case 58: {
String s = input.readStringRequireUtf8();
enumType_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Variable_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*
*
* short name
*
*/
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;
}
}
/**
* optional string name = 1;
*
*
* short name
*
*/
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_;
/**
* optional .DataType dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
public static final int SHAPE_FIELD_NUMBER = 3;
private java.util.List shape_;
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List getShapeList() {
return shape_;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>
getShapeOrBuilderList() {
return shape_;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension getShape(int index) {
return shape_.get(index);
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder(
int index) {
return shape_.get(index);
}
public static final int ATTS_FIELD_NUMBER = 4;
private java.util.List atts_;
/**
* repeated .Attribute atts = 4;
*/
public java.util.List getAttsList() {
return atts_;
}
/**
* repeated .Attribute atts = 4;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getAttsOrBuilderList() {
return atts_;
}
/**
* repeated .Attribute atts = 4;
*/
public int getAttsCount() {
return atts_.size();
}
/**
* repeated .Attribute atts = 4;
*/
public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) {
return atts_.get(index);
}
/**
* repeated .Attribute atts = 4;
*/
public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
return atts_.get(index);
}
public static final int UNSIGNED_FIELD_NUMBER = 5;
private boolean unsigned_;
/**
* optional bool unsigned = 5;
*
*
* not used >= 5
*
*/
public boolean getUnsigned() {
return unsigned_;
}
public static final int DATA_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString data_;
/**
* optional bytes data = 6;
*
*
* "immediate" - store small data in header
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int ENUMTYPE_FIELD_NUMBER = 7;
private volatile java.lang.Object enumType_;
/**
* optional string enumType = 7;
*
*
* EnumTypedef name, only for enum types
*
*/
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;
}
}
/**
* optional string enumType = 7;
*
*
* EnumTypedef name, only for enum types
*
*/
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.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 (!getEnumTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, enumType_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.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 (!getEnumTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, enumType_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Variable parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Variable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Variable parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Variable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Variable parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Variable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getShapeFieldBuilder();
getAttsFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
dataType_ = 0;
if (shapeBuilder_ == null) {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
shapeBuilder_.clear();
}
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
attsBuilder_.clear();
}
unsigned_ = false;
data_ = com.google.protobuf.ByteString.EMPTY;
enumType_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Variable_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Variable getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Variable.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Variable build() {
ucar.nc2.stream.NcStreamProto.Variable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Variable buildPartial() {
ucar.nc2.stream.NcStreamProto.Variable result = new ucar.nc2.stream.NcStreamProto.Variable(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.dataType_ = dataType_;
if (shapeBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.shape_ = shape_;
} else {
result.shape_ = shapeBuilder_.build();
}
if (attsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.atts_ = atts_;
} else {
result.atts_ = attsBuilder_.build();
}
result.unsigned_ = unsigned_;
result.data_ = data_;
result.enumType_ = enumType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
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_;
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.GeneratedMessage.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.GeneratedMessage.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_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Variable parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Variable) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*
*
* short 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;
}
}
/**
* optional string name = 1;
*
*
* short 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;
}
}
/**
* optional string name = 1;
*
*
* short name
*
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name
*
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name
*
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int dataType_ = 0;
/**
* optional .DataType dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
/**
* optional .DataType dataType = 2;
*/
public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*/
public Builder clearDataType() {
dataType_ = 0;
onChanged();
return this;
}
private java.util.List shape_ =
java.util.Collections.emptyList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = new java.util.ArrayList(shape_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder> shapeBuilder_;
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List getShapeList() {
if (shapeBuilder_ == null) {
return java.util.Collections.unmodifiableList(shape_);
} else {
return shapeBuilder_.getMessageList();
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public int getShapeCount() {
if (shapeBuilder_ == null) {
return shape_.size();
} else {
return shapeBuilder_.getCount();
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension getShape(int index) {
if (shapeBuilder_ == null) {
return shape_.get(index);
} else {
return shapeBuilder_.getMessage(index);
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public Builder addAllShape(
java.lang.Iterable extends ucar.nc2.stream.NcStreamProto.Dimension> values) {
if (shapeBuilder_ == null) {
ensureShapeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shape_);
onChanged();
} else {
shapeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public Builder clearShape() {
if (shapeBuilder_ == null) {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
shapeBuilder_.clear();
}
return this;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public Builder removeShape(int index) {
if (shapeBuilder_ == null) {
ensureShapeIsMutable();
shape_.remove(index);
onChanged();
} else {
shapeBuilder_.remove(index);
}
return this;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension.Builder getShapeBuilder(
int index) {
return getShapeFieldBuilder().getBuilder(index);
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder(
int index) {
if (shapeBuilder_ == null) {
return shape_.get(index); } else {
return shapeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>
getShapeOrBuilderList() {
if (shapeBuilder_ != null) {
return shapeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(shape_);
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension.Builder addShapeBuilder() {
return getShapeFieldBuilder().addBuilder(
ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance());
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension.Builder addShapeBuilder(
int index) {
return getShapeFieldBuilder().addBuilder(
index, ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance());
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List
getShapeBuilderList() {
return getShapeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>(
shape_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
shape_ = null;
}
return shapeBuilder_;
}
private java.util.List atts_ =
java.util.Collections.emptyList();
private void ensureAttsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = new java.util.ArrayList(atts_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.Attribute> 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 extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>(
atts_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
atts_ = null;
}
return attsBuilder_;
}
private boolean unsigned_ ;
/**
* optional bool unsigned = 5;
*
*
* not used >= 5
*
*/
public boolean getUnsigned() {
return unsigned_;
}
/**
* optional bool unsigned = 5;
*
*
* not used >= 5
*
*/
public Builder setUnsigned(boolean value) {
unsigned_ = value;
onChanged();
return this;
}
/**
* optional bool unsigned = 5;
*
*
* not used >= 5
*
*/
public Builder clearUnsigned() {
unsigned_ = false;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes data = 6;
*
*
* "immediate" - store small data in header
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* optional bytes data = 6;
*
*
* "immediate" - store small data in header
*
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* optional bytes data = 6;
*
*
* "immediate" - store small data in header
*
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object enumType_ = "";
/**
* optional string enumType = 7;
*
*
* EnumTypedef name, only for enum types
*
*/
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;
}
}
/**
* optional string enumType = 7;
*
*
* EnumTypedef name, only for enum types
*
*/
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;
}
}
/**
* optional string enumType = 7;
*
*
* EnumTypedef name, only for enum types
*
*/
public Builder setEnumType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
enumType_ = value;
onChanged();
return this;
}
/**
* optional string enumType = 7;
*
*
* EnumTypedef name, only for enum types
*
*/
public Builder clearEnumType() {
enumType_ = getDefaultInstance().getEnumType();
onChanged();
return this;
}
/**
* optional string enumType = 7;
*
*
* EnumTypedef name, only for enum types
*
*/
public Builder setEnumTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
enumType_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Variable parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Variable(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.Variable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructureOrBuilder extends
// @@protoc_insertion_point(interface_extends:Structure)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*
*
* short name
*
*/
java.lang.String getName();
/**
* optional string name = 1;
*
*
* short name
*
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional .DataType dataType = 2;
*
*
* STRUCTURE or SEQUENCE
*
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 2;
*
*
* STRUCTURE or SEQUENCE
*
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
java.util.List
getShapeList();
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
ucar.nc2.stream.NcStreamProto.Dimension getShape(int index);
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
int getShapeCount();
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
java.util.List extends ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>
getShapeOrBuilderList();
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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 extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getAttsOrBuilderList();
/**
* repeated .Attribute atts = 4;
*/
ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index);
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
java.util.List
getVarsList();
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
ucar.nc2.stream.NcStreamProto.Variable getVars(int index);
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
int getVarsCount();
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
java.util.List extends ucar.nc2.stream.NcStreamProto.VariableOrBuilder>
getVarsOrBuilderList();
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder(
int index);
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
java.util.List
getStructsList();
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
ucar.nc2.stream.NcStreamProto.Structure getStructs(int index);
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
int getStructsCount();
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
java.util.List extends ucar.nc2.stream.NcStreamProto.StructureOrBuilder>
getStructsOrBuilderList();
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder(
int index);
}
/**
* Protobuf type {@code Structure}
*/
public static final class Structure extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Structure)
StructureOrBuilder {
// Use Structure.newBuilder() to construct.
private Structure(com.google.protobuf.GeneratedMessage.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
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Structure(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
shape_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Dimension.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
atts_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Attribute.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
vars_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
vars_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Variable.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
structs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
structs_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Structure.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
vars_ = java.util.Collections.unmodifiableList(vars_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
structs_ = java.util.Collections.unmodifiableList(structs_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Structure_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*
*
* short name
*
*/
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;
}
}
/**
* optional string name = 1;
*
*
* short name
*
*/
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_;
/**
* optional .DataType dataType = 2;
*
*
* STRUCTURE or SEQUENCE
*
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*
*
* STRUCTURE or SEQUENCE
*
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
public static final int SHAPE_FIELD_NUMBER = 3;
private java.util.List shape_;
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List getShapeList() {
return shape_;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>
getShapeOrBuilderList() {
return shape_;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension getShape(int index) {
return shape_.get(index);
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder(
int index) {
return shape_.get(index);
}
public static final int ATTS_FIELD_NUMBER = 4;
private java.util.List atts_;
/**
* repeated .Attribute atts = 4;
*/
public java.util.List getAttsList() {
return atts_;
}
/**
* repeated .Attribute atts = 4;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getAttsOrBuilderList() {
return atts_;
}
/**
* repeated .Attribute atts = 4;
*/
public int getAttsCount() {
return atts_.size();
}
/**
* repeated .Attribute atts = 4;
*/
public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) {
return atts_.get(index);
}
/**
* repeated .Attribute atts = 4;
*/
public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
return atts_.get(index);
}
public static final int VARS_FIELD_NUMBER = 5;
private java.util.List vars_;
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public java.util.List getVarsList() {
return vars_;
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.VariableOrBuilder>
getVarsOrBuilderList() {
return vars_;
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public int getVarsCount() {
return vars_.size();
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public ucar.nc2.stream.NcStreamProto.Variable getVars(int index) {
return vars_.get(index);
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder(
int index) {
return vars_.get(index);
}
public static final int STRUCTS_FIELD_NUMBER = 6;
private java.util.List structs_;
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public java.util.List getStructsList() {
return structs_;
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.StructureOrBuilder>
getStructsOrBuilderList() {
return structs_;
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public int getStructsCount() {
return structs_.size();
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public ucar.nc2.stream.NcStreamProto.Structure getStructs(int index) {
return structs_.get(index);
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder(
int index) {
return structs_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.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));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.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));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Structure parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Structure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Structure parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Structure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Structure parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Structure}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getShapeFieldBuilder();
getAttsFieldBuilder();
getVarsFieldBuilder();
getStructsFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
dataType_ = 0;
if (shapeBuilder_ == null) {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
shapeBuilder_.clear();
}
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
attsBuilder_.clear();
}
if (varsBuilder_ == null) {
vars_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
varsBuilder_.clear();
}
if (structsBuilder_ == null) {
structs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
structsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Structure_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Structure getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Structure.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Structure build() {
ucar.nc2.stream.NcStreamProto.Structure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Structure buildPartial() {
ucar.nc2.stream.NcStreamProto.Structure result = new ucar.nc2.stream.NcStreamProto.Structure(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.dataType_ = dataType_;
if (shapeBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.shape_ = shape_;
} else {
result.shape_ = shapeBuilder_.build();
}
if (attsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.atts_ = atts_;
} else {
result.atts_ = attsBuilder_.build();
}
if (varsBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
vars_ = java.util.Collections.unmodifiableList(vars_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.vars_ = vars_;
} else {
result.vars_ = varsBuilder_.build();
}
if (structsBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
structs_ = java.util.Collections.unmodifiableList(structs_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.structs_ = structs_;
} else {
result.structs_ = structsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
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_;
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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.alwaysUseFieldBuilders ?
getStructsFieldBuilder() : null;
} else {
structsBuilder_.addAllMessages(other.structs_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Structure parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Structure) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*
*
* short 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;
}
}
/**
* optional string name = 1;
*
*
* short 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;
}
}
/**
* optional string name = 1;
*
*
* short name
*
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name
*
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name
*
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int dataType_ = 0;
/**
* optional .DataType dataType = 2;
*
*
* STRUCTURE or SEQUENCE
*
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*
*
* STRUCTURE or SEQUENCE
*
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*
*
* STRUCTURE or SEQUENCE
*
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
/**
* optional .DataType dataType = 2;
*
*
* STRUCTURE or SEQUENCE
*
*/
public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*
*
* STRUCTURE or SEQUENCE
*
*/
public Builder clearDataType() {
dataType_ = 0;
onChanged();
return this;
}
private java.util.List shape_ =
java.util.Collections.emptyList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
shape_ = new java.util.ArrayList(shape_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder> shapeBuilder_;
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List getShapeList() {
if (shapeBuilder_ == null) {
return java.util.Collections.unmodifiableList(shape_);
} else {
return shapeBuilder_.getMessageList();
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public int getShapeCount() {
if (shapeBuilder_ == null) {
return shape_.size();
} else {
return shapeBuilder_.getCount();
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension getShape(int index) {
if (shapeBuilder_ == null) {
return shape_.get(index);
} else {
return shapeBuilder_.getMessage(index);
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
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;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public Builder addAllShape(
java.lang.Iterable extends ucar.nc2.stream.NcStreamProto.Dimension> values) {
if (shapeBuilder_ == null) {
ensureShapeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shape_);
onChanged();
} else {
shapeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public Builder clearShape() {
if (shapeBuilder_ == null) {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
shapeBuilder_.clear();
}
return this;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public Builder removeShape(int index) {
if (shapeBuilder_ == null) {
ensureShapeIsMutable();
shape_.remove(index);
onChanged();
} else {
shapeBuilder_.remove(index);
}
return this;
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension.Builder getShapeBuilder(
int index) {
return getShapeFieldBuilder().getBuilder(index);
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getShapeOrBuilder(
int index) {
if (shapeBuilder_ == null) {
return shape_.get(index); } else {
return shapeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>
getShapeOrBuilderList() {
if (shapeBuilder_ != null) {
return shapeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(shape_);
}
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension.Builder addShapeBuilder() {
return getShapeFieldBuilder().addBuilder(
ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance());
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public ucar.nc2.stream.NcStreamProto.Dimension.Builder addShapeBuilder(
int index) {
return getShapeFieldBuilder().addBuilder(
index, ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance());
}
/**
* repeated .Dimension shape = 3;
*
*
* actual dimension instead of reference
*
*/
public java.util.List
getShapeBuilderList() {
return getShapeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>(
shape_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
shape_ = null;
}
return shapeBuilder_;
}
private java.util.List atts_ =
java.util.Collections.emptyList();
private void ensureAttsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
atts_ = new java.util.ArrayList(atts_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.Attribute> 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 extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>(
atts_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
atts_ = null;
}
return attsBuilder_;
}
private java.util.List vars_ =
java.util.Collections.emptyList();
private void ensureVarsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
vars_ = new java.util.ArrayList(vars_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Variable, ucar.nc2.stream.NcStreamProto.Variable.Builder, ucar.nc2.stream.NcStreamProto.VariableOrBuilder> varsBuilder_;
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public java.util.List getVarsList() {
if (varsBuilder_ == null) {
return java.util.Collections.unmodifiableList(vars_);
} else {
return varsBuilder_.getMessageList();
}
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public int getVarsCount() {
if (varsBuilder_ == null) {
return vars_.size();
} else {
return varsBuilder_.getCount();
}
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public ucar.nc2.stream.NcStreamProto.Variable getVars(int index) {
if (varsBuilder_ == null) {
return vars_.get(index);
} else {
return varsBuilder_.getMessage(index);
}
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
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 = 5;
*
*
* members
*
*/
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 = 5;
*
*
* members
*
*/
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 = 5;
*
*
* members
*
*/
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 = 5;
*
*
* members
*
*/
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 = 5;
*
*
* members
*
*/
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 = 5;
*
*
* members
*
*/
public Builder addAllVars(
java.lang.Iterable extends ucar.nc2.stream.NcStreamProto.Variable> values) {
if (varsBuilder_ == null) {
ensureVarsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, vars_);
onChanged();
} else {
varsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public Builder clearVars() {
if (varsBuilder_ == null) {
vars_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
varsBuilder_.clear();
}
return this;
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public Builder removeVars(int index) {
if (varsBuilder_ == null) {
ensureVarsIsMutable();
vars_.remove(index);
onChanged();
} else {
varsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public ucar.nc2.stream.NcStreamProto.Variable.Builder getVarsBuilder(
int index) {
return getVarsFieldBuilder().getBuilder(index);
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder(
int index) {
if (varsBuilder_ == null) {
return vars_.get(index); } else {
return varsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.VariableOrBuilder>
getVarsOrBuilderList() {
if (varsBuilder_ != null) {
return varsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(vars_);
}
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public ucar.nc2.stream.NcStreamProto.Variable.Builder addVarsBuilder() {
return getVarsFieldBuilder().addBuilder(
ucar.nc2.stream.NcStreamProto.Variable.getDefaultInstance());
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public ucar.nc2.stream.NcStreamProto.Variable.Builder addVarsBuilder(
int index) {
return getVarsFieldBuilder().addBuilder(
index, ucar.nc2.stream.NcStreamProto.Variable.getDefaultInstance());
}
/**
* repeated .Variable vars = 5;
*
*
* members
*
*/
public java.util.List
getVarsBuilderList() {
return getVarsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Variable, ucar.nc2.stream.NcStreamProto.Variable.Builder, ucar.nc2.stream.NcStreamProto.VariableOrBuilder>(
vars_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
vars_ = null;
}
return varsBuilder_;
}
private java.util.List structs_ =
java.util.Collections.emptyList();
private void ensureStructsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
structs_ = new java.util.ArrayList(structs_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Structure, ucar.nc2.stream.NcStreamProto.Structure.Builder, ucar.nc2.stream.NcStreamProto.StructureOrBuilder> structsBuilder_;
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public java.util.List getStructsList() {
if (structsBuilder_ == null) {
return java.util.Collections.unmodifiableList(structs_);
} else {
return structsBuilder_.getMessageList();
}
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public int getStructsCount() {
if (structsBuilder_ == null) {
return structs_.size();
} else {
return structsBuilder_.getCount();
}
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public ucar.nc2.stream.NcStreamProto.Structure getStructs(int index) {
if (structsBuilder_ == null) {
return structs_.get(index);
} else {
return structsBuilder_.getMessage(index);
}
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
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 = 6;
*
*
* struct members
*
*/
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 = 6;
*
*
* struct members
*
*/
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 = 6;
*
*
* struct members
*
*/
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 = 6;
*
*
* struct members
*
*/
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 = 6;
*
*
* struct members
*
*/
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 = 6;
*
*
* struct members
*
*/
public Builder addAllStructs(
java.lang.Iterable extends ucar.nc2.stream.NcStreamProto.Structure> values) {
if (structsBuilder_ == null) {
ensureStructsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, structs_);
onChanged();
} else {
structsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public Builder clearStructs() {
if (structsBuilder_ == null) {
structs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
structsBuilder_.clear();
}
return this;
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public Builder removeStructs(int index) {
if (structsBuilder_ == null) {
ensureStructsIsMutable();
structs_.remove(index);
onChanged();
} else {
structsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public ucar.nc2.stream.NcStreamProto.Structure.Builder getStructsBuilder(
int index) {
return getStructsFieldBuilder().getBuilder(index);
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder(
int index) {
if (structsBuilder_ == null) {
return structs_.get(index); } else {
return structsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.StructureOrBuilder>
getStructsOrBuilderList() {
if (structsBuilder_ != null) {
return structsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(structs_);
}
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public ucar.nc2.stream.NcStreamProto.Structure.Builder addStructsBuilder() {
return getStructsFieldBuilder().addBuilder(
ucar.nc2.stream.NcStreamProto.Structure.getDefaultInstance());
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public ucar.nc2.stream.NcStreamProto.Structure.Builder addStructsBuilder(
int index) {
return getStructsFieldBuilder().addBuilder(
index, ucar.nc2.stream.NcStreamProto.Structure.getDefaultInstance());
}
/**
* repeated .Structure structs = 6;
*
*
* struct members
*
*/
public java.util.List
getStructsBuilderList() {
return getStructsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Structure, ucar.nc2.stream.NcStreamProto.Structure.Builder, ucar.nc2.stream.NcStreamProto.StructureOrBuilder>(
structs_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
structs_ = null;
}
return structsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Structure parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Structure(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.Structure getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EnumTypedefOrBuilder extends
// @@protoc_insertion_point(interface_extends:EnumTypedef)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
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 extends ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder>
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:EnumTypedef)
EnumTypedefOrBuilder {
// Use EnumTypedef.newBuilder() to construct.
private EnumTypedef(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private EnumTypedef() {
name_ = "";
map_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private EnumTypedef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
map_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
map_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
map_ = java.util.Collections.unmodifiableList(map_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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 {
/**
* optional uint32 code = 1;
*/
int getCode();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code EnumTypedef.EnumType}
*/
public static final class EnumType extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:EnumTypedef.EnumType)
EnumTypeOrBuilder {
// Use EnumType.newBuilder() to construct.
private EnumType(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private EnumType() {
code_ = 0;
value_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private EnumType(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
code_ = input.readUInt32();
break;
}
case 18: {
String s = input.readStringRequireUtf8();
value_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_EnumType_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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_;
/**
* optional uint32 code = 1;
*/
public int getCode() {
return code_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* optional string value = 2;
*/
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;
}
}
/**
* optional string value = 2;
*/
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (code_ != 0) {
output.writeUInt32(1, code_);
}
if (!getValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, value_);
}
}
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 (!getValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code EnumTypedef.EnumType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
code_ = 0;
value_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_EnumType_descriptor;
}
public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType build() {
ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType buildPartial() {
ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType result = new ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType(this);
result.code_ = code_;
result.value_ = value_;
onBuilt();
return result;
}
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_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int code_ ;
/**
* optional uint32 code = 1;
*/
public int getCode() {
return code_;
}
/**
* optional uint32 code = 1;
*/
public Builder setCode(int value) {
code_ = value;
onChanged();
return this;
}
/**
* optional uint32 code = 1;
*/
public Builder clearCode() {
code_ = 0;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* optional string value = 2;
*/
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;
}
}
/**
* optional string value = 2;
*/
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;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public EnumType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new EnumType(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*/
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;
}
}
/**
* optional string name = 1;
*/
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;
private java.util.List map_;
/**
* repeated .EnumTypedef.EnumType map = 2;
*/
public java.util.List getMapList() {
return map_;
}
/**
* repeated .EnumTypedef.EnumType map = 2;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder>
getMapOrBuilderList() {
return map_;
}
/**
* repeated .EnumTypedef.EnumType map = 2;
*/
public int getMapCount() {
return map_.size();
}
/**
* repeated .EnumTypedef.EnumType map = 2;
*/
public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType getMap(int index) {
return map_.get(index);
}
/**
* repeated .EnumTypedef.EnumType map = 2;
*/
public ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder getMapOrBuilder(
int index) {
return map_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
}
for (int i = 0; i < map_.size(); i++) {
output.writeMessage(2, map_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
}
for (int i = 0; i < map_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, map_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.EnumTypedef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code EnumTypedef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMapFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
if (mapBuilder_ == null) {
map_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
mapBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_EnumTypedef_descriptor;
}
public ucar.nc2.stream.NcStreamProto.EnumTypedef getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.EnumTypedef.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.EnumTypedef build() {
ucar.nc2.stream.NcStreamProto.EnumTypedef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.EnumTypedef buildPartial() {
ucar.nc2.stream.NcStreamProto.EnumTypedef result = new ucar.nc2.stream.NcStreamProto.EnumTypedef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (mapBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
map_ = java.util.Collections.unmodifiableList(map_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.map_ = map_;
} else {
result.map_ = mapBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
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_;
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.GeneratedMessage.alwaysUseFieldBuilders ?
getMapFieldBuilder() : null;
} else {
mapBuilder_.addAllMessages(other.map_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.EnumTypedef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.EnumTypedef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
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;
}
}
/**
* optional string name = 1;
*/
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;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List map_ =
java.util.Collections.emptyList();
private void ensureMapIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
map_ = new java.util.ArrayList(map_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType> 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 extends ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumType.Builder, ucar.nc2.stream.NcStreamProto.EnumTypedef.EnumTypeOrBuilder>(
map_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
map_ = null;
}
return mapBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public EnumTypedef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new EnumTypedef(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.EnumTypedef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:Group)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*
*
* short name
*
*/
java.lang.String getName();
/**
* optional string name = 1;
*
*
* short 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 extends ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>
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 extends ucar.nc2.stream.NcStreamProto.VariableOrBuilder>
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 extends ucar.nc2.stream.NcStreamProto.StructureOrBuilder>
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 extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
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 extends ucar.nc2.stream.NcStreamProto.GroupOrBuilder>
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 extends ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder>
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Group)
GroupOrBuilder {
// Use Group.newBuilder() to construct.
private Group(com.google.protobuf.GeneratedMessage.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
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Group(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
dims_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
dims_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Dimension.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
vars_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
vars_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Variable.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
structs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
structs_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Structure.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
atts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
atts_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Attribute.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
groups_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
groups_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Group.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
enumTypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
enumTypes_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.EnumTypedef.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
dims_ = java.util.Collections.unmodifiableList(dims_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
vars_ = java.util.Collections.unmodifiableList(vars_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
structs_ = java.util.Collections.unmodifiableList(structs_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
groups_ = java.util.Collections.unmodifiableList(groups_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
enumTypes_ = java.util.Collections.unmodifiableList(enumTypes_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Group_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*
*
* short name
*
*/
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;
}
}
/**
* optional string name = 1;
*
*
* short name
*
*/
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;
private java.util.List dims_;
/**
* repeated .Dimension dims = 2;
*/
public java.util.List getDimsList() {
return dims_;
}
/**
* repeated .Dimension dims = 2;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>
getDimsOrBuilderList() {
return dims_;
}
/**
* repeated .Dimension dims = 2;
*/
public int getDimsCount() {
return dims_.size();
}
/**
* repeated .Dimension dims = 2;
*/
public ucar.nc2.stream.NcStreamProto.Dimension getDims(int index) {
return dims_.get(index);
}
/**
* repeated .Dimension dims = 2;
*/
public ucar.nc2.stream.NcStreamProto.DimensionOrBuilder getDimsOrBuilder(
int index) {
return dims_.get(index);
}
public static final int VARS_FIELD_NUMBER = 3;
private java.util.List vars_;
/**
* repeated .Variable vars = 3;
*/
public java.util.List getVarsList() {
return vars_;
}
/**
* repeated .Variable vars = 3;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.VariableOrBuilder>
getVarsOrBuilderList() {
return vars_;
}
/**
* repeated .Variable vars = 3;
*/
public int getVarsCount() {
return vars_.size();
}
/**
* repeated .Variable vars = 3;
*/
public ucar.nc2.stream.NcStreamProto.Variable getVars(int index) {
return vars_.get(index);
}
/**
* repeated .Variable vars = 3;
*/
public ucar.nc2.stream.NcStreamProto.VariableOrBuilder getVarsOrBuilder(
int index) {
return vars_.get(index);
}
public static final int STRUCTS_FIELD_NUMBER = 4;
private java.util.List structs_;
/**
* repeated .Structure structs = 4;
*/
public java.util.List getStructsList() {
return structs_;
}
/**
* repeated .Structure structs = 4;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.StructureOrBuilder>
getStructsOrBuilderList() {
return structs_;
}
/**
* repeated .Structure structs = 4;
*/
public int getStructsCount() {
return structs_.size();
}
/**
* repeated .Structure structs = 4;
*/
public ucar.nc2.stream.NcStreamProto.Structure getStructs(int index) {
return structs_.get(index);
}
/**
* repeated .Structure structs = 4;
*/
public ucar.nc2.stream.NcStreamProto.StructureOrBuilder getStructsOrBuilder(
int index) {
return structs_.get(index);
}
public static final int ATTS_FIELD_NUMBER = 5;
private java.util.List atts_;
/**
* repeated .Attribute atts = 5;
*/
public java.util.List getAttsList() {
return atts_;
}
/**
* repeated .Attribute atts = 5;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getAttsOrBuilderList() {
return atts_;
}
/**
* repeated .Attribute atts = 5;
*/
public int getAttsCount() {
return atts_.size();
}
/**
* repeated .Attribute atts = 5;
*/
public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) {
return atts_.get(index);
}
/**
* repeated .Attribute atts = 5;
*/
public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
return atts_.get(index);
}
public static final int GROUPS_FIELD_NUMBER = 6;
private java.util.List groups_;
/**
* repeated .Group groups = 6;
*/
public java.util.List getGroupsList() {
return groups_;
}
/**
* repeated .Group groups = 6;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.GroupOrBuilder>
getGroupsOrBuilderList() {
return groups_;
}
/**
* repeated .Group groups = 6;
*/
public int getGroupsCount() {
return groups_.size();
}
/**
* repeated .Group groups = 6;
*/
public ucar.nc2.stream.NcStreamProto.Group getGroups(int index) {
return groups_.get(index);
}
/**
* repeated .Group groups = 6;
*/
public ucar.nc2.stream.NcStreamProto.GroupOrBuilder getGroupsOrBuilder(
int index) {
return groups_.get(index);
}
public static final int ENUMTYPES_FIELD_NUMBER = 7;
private java.util.List enumTypes_;
/**
* repeated .EnumTypedef enumTypes = 7;
*/
public java.util.List getEnumTypesList() {
return enumTypes_;
}
/**
* repeated .EnumTypedef enumTypes = 7;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder>
getEnumTypesOrBuilderList() {
return enumTypes_;
}
/**
* repeated .EnumTypedef enumTypes = 7;
*/
public int getEnumTypesCount() {
return enumTypes_.size();
}
/**
* repeated .EnumTypedef enumTypes = 7;
*/
public ucar.nc2.stream.NcStreamProto.EnumTypedef getEnumTypes(int index) {
return enumTypes_.get(index);
}
/**
* repeated .EnumTypedef enumTypes = 7;
*/
public ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder getEnumTypesOrBuilder(
int index) {
return enumTypes_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.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));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.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));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Group parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Group parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Group parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Group parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Group parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Group}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getDimsFieldBuilder();
getVarsFieldBuilder();
getStructsFieldBuilder();
getAttsFieldBuilder();
getGroupsFieldBuilder();
getEnumTypesFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
if (dimsBuilder_ == null) {
dims_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
dimsBuilder_.clear();
}
if (varsBuilder_ == null) {
vars_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
varsBuilder_.clear();
}
if (structsBuilder_ == null) {
structs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
structsBuilder_.clear();
}
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
attsBuilder_.clear();
}
if (groupsBuilder_ == null) {
groups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
groupsBuilder_.clear();
}
if (enumTypesBuilder_ == null) {
enumTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
enumTypesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Group_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Group getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Group build() {
ucar.nc2.stream.NcStreamProto.Group result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Group buildPartial() {
ucar.nc2.stream.NcStreamProto.Group result = new ucar.nc2.stream.NcStreamProto.Group(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (dimsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
dims_ = java.util.Collections.unmodifiableList(dims_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.dims_ = dims_;
} else {
result.dims_ = dimsBuilder_.build();
}
if (varsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
vars_ = java.util.Collections.unmodifiableList(vars_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.vars_ = vars_;
} else {
result.vars_ = varsBuilder_.build();
}
if (structsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
structs_ = java.util.Collections.unmodifiableList(structs_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.structs_ = structs_;
} else {
result.structs_ = structsBuilder_.build();
}
if (attsBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.atts_ = atts_;
} else {
result.atts_ = attsBuilder_.build();
}
if (groupsBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
groups_ = java.util.Collections.unmodifiableList(groups_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.groups_ = groups_;
} else {
result.groups_ = groupsBuilder_.build();
}
if (enumTypesBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
enumTypes_ = java.util.Collections.unmodifiableList(enumTypes_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.enumTypes_ = enumTypes_;
} else {
result.enumTypes_ = enumTypesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
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_;
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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.alwaysUseFieldBuilders ?
getEnumTypesFieldBuilder() : null;
} else {
enumTypesBuilder_.addAllMessages(other.enumTypes_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Group parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Group) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*
*
* short 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;
}
}
/**
* optional string name = 1;
*
*
* short 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;
}
}
/**
* optional string name = 1;
*
*
* short name
*
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name
*
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name
*
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List dims_ =
java.util.Collections.emptyList();
private void ensureDimsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
dims_ = new java.util.ArrayList(dims_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.Dimension> 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 extends ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Dimension, ucar.nc2.stream.NcStreamProto.Dimension.Builder, ucar.nc2.stream.NcStreamProto.DimensionOrBuilder>(
dims_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
dims_ = null;
}
return dimsBuilder_;
}
private java.util.List vars_ =
java.util.Collections.emptyList();
private void ensureVarsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
vars_ = new java.util.ArrayList(vars_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.Variable> 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 extends ucar.nc2.stream.NcStreamProto.VariableOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Variable, ucar.nc2.stream.NcStreamProto.Variable.Builder, ucar.nc2.stream.NcStreamProto.VariableOrBuilder>(
vars_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
vars_ = null;
}
return varsBuilder_;
}
private java.util.List structs_ =
java.util.Collections.emptyList();
private void ensureStructsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
structs_ = new java.util.ArrayList(structs_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.Structure> 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 extends ucar.nc2.stream.NcStreamProto.StructureOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Structure, ucar.nc2.stream.NcStreamProto.Structure.Builder, ucar.nc2.stream.NcStreamProto.StructureOrBuilder>(
structs_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
structs_ = null;
}
return structsBuilder_;
}
private java.util.List atts_ =
java.util.Collections.emptyList();
private void ensureAttsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
atts_ = new java.util.ArrayList(atts_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.Attribute> 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 extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>(
atts_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
atts_ = null;
}
return attsBuilder_;
}
private java.util.List groups_ =
java.util.Collections.emptyList();
private void ensureGroupsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
groups_ = new java.util.ArrayList(groups_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.Group> 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 extends ucar.nc2.stream.NcStreamProto.GroupOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Group, ucar.nc2.stream.NcStreamProto.Group.Builder, ucar.nc2.stream.NcStreamProto.GroupOrBuilder>(
groups_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
groups_ = null;
}
return groupsBuilder_;
}
private java.util.List enumTypes_ =
java.util.Collections.emptyList();
private void ensureEnumTypesIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
enumTypes_ = new java.util.ArrayList(enumTypes_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.EnumTypedef> 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 extends ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.EnumTypedef, ucar.nc2.stream.NcStreamProto.EnumTypedef.Builder, ucar.nc2.stream.NcStreamProto.EnumTypedefOrBuilder>(
enumTypes_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
isClean());
enumTypes_ = null;
}
return enumTypesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Group parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Group(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.Group getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:Header)
com.google.protobuf.MessageOrBuilder {
/**
* optional string location = 1;
*/
java.lang.String getLocation();
/**
* optional string location = 1;
*/
com.google.protobuf.ByteString
getLocationBytes();
/**
* optional string title = 2;
*
*
* ??
*
*/
java.lang.String getTitle();
/**
* optional string title = 2;
*
*
* ??
*
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
* optional string id = 3;
*
*
* ??
*
*/
java.lang.String getId();
/**
* optional string id = 3;
*
*
* ??
*
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* optional .Group root = 4;
*/
boolean hasRoot();
/**
* optional .Group root = 4;
*/
ucar.nc2.stream.NcStreamProto.Group getRoot();
/**
* optional .Group root = 4;
*/
ucar.nc2.stream.NcStreamProto.GroupOrBuilder getRootOrBuilder();
/**
* optional uint32 version = 5;
*/
int getVersion();
}
/**
* Protobuf type {@code Header}
*/
public static final class Header extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Header)
HeaderOrBuilder {
// Use Header.newBuilder() to construct.
private Header(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Header() {
location_ = "";
title_ = "";
id_ = "";
version_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Header(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
location_ = s;
break;
}
case 18: {
String s = input.readStringRequireUtf8();
title_ = s;
break;
}
case 26: {
String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 34: {
ucar.nc2.stream.NcStreamProto.Group.Builder subBuilder = null;
if (root_ != null) {
subBuilder = root_.toBuilder();
}
root_ = input.readMessage(ucar.nc2.stream.NcStreamProto.Group.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(root_);
root_ = subBuilder.buildPartial();
}
break;
}
case 40: {
version_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Header_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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;
private volatile java.lang.Object location_;
/**
* optional string location = 1;
*/
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;
}
}
/**
* optional string location = 1;
*/
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;
private volatile java.lang.Object title_;
/**
* optional string title = 2;
*
*
* ??
*
*/
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;
}
}
/**
* optional string title = 2;
*
*
* ??
*
*/
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;
private volatile java.lang.Object id_;
/**
* optional string id = 3;
*
*
* ??
*
*/
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;
}
}
/**
* optional string id = 3;
*
*
* ??
*
*/
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_;
/**
* optional .Group root = 4;
*/
public boolean hasRoot() {
return root_ != null;
}
/**
* optional .Group root = 4;
*/
public ucar.nc2.stream.NcStreamProto.Group getRoot() {
return root_ == null ? ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance() : root_;
}
/**
* optional .Group root = 4;
*/
public ucar.nc2.stream.NcStreamProto.GroupOrBuilder getRootOrBuilder() {
return getRoot();
}
public static final int VERSION_FIELD_NUMBER = 5;
private int version_;
/**
* optional uint32 version = 5;
*/
public int getVersion() {
return version_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLocationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, location_);
}
if (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, title_);
}
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, id_);
}
if (root_ != null) {
output.writeMessage(4, getRoot());
}
if (version_ != 0) {
output.writeUInt32(5, version_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLocationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_);
}
if (!getTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_);
}
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.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_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Header parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Header parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Header parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Header parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Header parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Header}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
location_ = "";
title_ = "";
id_ = "";
if (rootBuilder_ == null) {
root_ = null;
} else {
root_ = null;
rootBuilder_ = null;
}
version_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Header_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Header getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Header.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Header build() {
ucar.nc2.stream.NcStreamProto.Header result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Header buildPartial() {
ucar.nc2.stream.NcStreamProto.Header result = new ucar.nc2.stream.NcStreamProto.Header(this);
result.location_ = location_;
result.title_ = title_;
result.id_ = id_;
if (rootBuilder_ == null) {
result.root_ = root_;
} else {
result.root_ = rootBuilder_.build();
}
result.version_ = version_;
onBuilt();
return result;
}
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_;
onChanged();
}
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasRoot()) {
mergeRoot(other.getRoot());
}
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Header parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Header) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object location_ = "";
/**
* optional string location = 1;
*/
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;
}
}
/**
* optional string location = 1;
*/
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;
}
}
/**
* optional string location = 1;
*/
public Builder setLocation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
location_ = value;
onChanged();
return this;
}
/**
* optional string location = 1;
*/
public Builder clearLocation() {
location_ = getDefaultInstance().getLocation();
onChanged();
return this;
}
/**
* optional string location = 1;
*/
public Builder setLocationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
location_ = value;
onChanged();
return this;
}
private java.lang.Object title_ = "";
/**
* optional string title = 2;
*
*
* ??
*
*/
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;
}
}
/**
* optional string title = 2;
*
*
* ??
*
*/
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;
}
}
/**
* optional string title = 2;
*
*
* ??
*
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
onChanged();
return this;
}
/**
* optional string title = 2;
*
*
* ??
*
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
* optional string title = 2;
*
*
* ??
*
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
* optional string id = 3;
*
*
* ??
*
*/
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;
}
}
/**
* optional string id = 3;
*
*
* ??
*
*/
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;
}
}
/**
* optional string id = 3;
*
*
* ??
*
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* optional string id = 3;
*
*
* ??
*
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* optional string id = 3;
*
*
* ??
*
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private ucar.nc2.stream.NcStreamProto.Group root_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.Group, ucar.nc2.stream.NcStreamProto.Group.Builder, ucar.nc2.stream.NcStreamProto.GroupOrBuilder> rootBuilder_;
/**
* optional .Group root = 4;
*/
public boolean hasRoot() {
return rootBuilder_ != null || root_ != null;
}
/**
* optional .Group root = 4;
*/
public ucar.nc2.stream.NcStreamProto.Group getRoot() {
if (rootBuilder_ == null) {
return root_ == null ? ucar.nc2.stream.NcStreamProto.Group.getDefaultInstance() : root_;
} else {
return rootBuilder_.getMessage();
}
}
/**
* optional .Group root = 4;
*/
public Builder setRoot(ucar.nc2.stream.NcStreamProto.Group value) {
if (rootBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
root_ = value;
onChanged();
} else {
rootBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Group root = 4;
*/
public Builder setRoot(
ucar.nc2.stream.NcStreamProto.Group.Builder builderForValue) {
if (rootBuilder_ == null) {
root_ = builderForValue.build();
onChanged();
} else {
rootBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Group root = 4;
*/
public Builder mergeRoot(ucar.nc2.stream.NcStreamProto.Group value) {
if (rootBuilder_ == null) {
if (root_ != null) {
root_ =
ucar.nc2.stream.NcStreamProto.Group.newBuilder(root_).mergeFrom(value).buildPartial();
} else {
root_ = value;
}
onChanged();
} else {
rootBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Group root = 4;
*/
public Builder clearRoot() {
if (rootBuilder_ == null) {
root_ = null;
onChanged();
} else {
root_ = null;
rootBuilder_ = null;
}
return this;
}
/**
* optional .Group root = 4;
*/
public ucar.nc2.stream.NcStreamProto.Group.Builder getRootBuilder() {
onChanged();
return getRootFieldBuilder().getBuilder();
}
/**
* optional .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_;
}
}
/**
* optional .Group root = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
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.SingleFieldBuilder<
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_ ;
/**
* optional uint32 version = 5;
*/
public int getVersion() {
return version_;
}
/**
* optional uint32 version = 5;
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* optional uint32 version = 5;
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Header parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Header(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.Header getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:Error)
com.google.protobuf.MessageOrBuilder {
/**
* optional string message = 1;
*/
java.lang.String getMessage();
/**
* optional string message = 1;
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* optional uint32 code = 2;
*/
int getCode();
}
/**
* Protobuf type {@code Error}
*/
public static final class Error extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Error)
ErrorOrBuilder {
// Use Error.newBuilder() to construct.
private Error(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Error() {
message_ = "";
code_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Error(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 16: {
code_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Error_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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;
private volatile java.lang.Object message_;
/**
* optional string message = 1;
*/
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;
}
}
/**
* optional string message = 1;
*/
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_;
/**
* optional uint32 code = 2;
*/
public int getCode() {
return code_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, message_);
}
if (code_ != 0) {
output.writeUInt32(2, code_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, message_);
}
if (code_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, code_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Error parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Error parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Error parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Error parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Error parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Error}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
message_ = "";
code_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Error_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Error getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Error.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Error build() {
ucar.nc2.stream.NcStreamProto.Error result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Error buildPartial() {
ucar.nc2.stream.NcStreamProto.Error result = new ucar.nc2.stream.NcStreamProto.Error(this);
result.message_ = message_;
result.code_ = code_;
onBuilt();
return result;
}
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_;
onChanged();
}
if (other.getCode() != 0) {
setCode(other.getCode());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Error parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Error) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
* optional string message = 1;
*/
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;
}
}
/**
* optional string message = 1;
*/
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;
}
}
/**
* optional string message = 1;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* optional string message = 1;
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* optional string message = 1;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private int code_ ;
/**
* optional uint32 code = 2;
*/
public int getCode() {
return code_;
}
/**
* optional uint32 code = 2;
*/
public Builder setCode(int value) {
code_ = value;
onChanged();
return this;
}
/**
* optional uint32 code = 2;
*/
public Builder clearCode() {
code_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Error parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Error(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.Error getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Range)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint64 start = 1;
*/
long getStart();
/**
* optional uint64 size = 2;
*/
long getSize();
/**
* optional uint64 stride = 3;
*/
long getStride();
}
/**
* Protobuf type {@code Range}
*/
public static final class Range extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Range)
RangeOrBuilder {
// Use Range.newBuilder() to construct.
private Range(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Range() {
start_ = 0L;
size_ = 0L;
stride_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Range(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
start_ = input.readUInt64();
break;
}
case 16: {
size_ = input.readUInt64();
break;
}
case 24: {
stride_ = input.readUInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Range_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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_;
/**
* optional uint64 start = 1;
*/
public long getStart() {
return start_;
}
public static final int SIZE_FIELD_NUMBER = 2;
private long size_;
/**
* optional uint64 size = 2;
*/
public long getSize() {
return size_;
}
public static final int STRIDE_FIELD_NUMBER = 3;
private long stride_;
/**
* optional uint64 stride = 3;
*/
public long getStride() {
return stride_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (start_ != 0L) {
output.writeUInt64(1, start_);
}
if (size_ != 0L) {
output.writeUInt64(2, size_);
}
if (stride_ != 0L) {
output.writeUInt64(3, stride_);
}
}
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_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Range parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Range parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Range parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Range parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Range parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Range}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
start_ = 0L;
size_ = 0L;
stride_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Range_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Range getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Range.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Range build() {
ucar.nc2.stream.NcStreamProto.Range result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Range buildPartial() {
ucar.nc2.stream.NcStreamProto.Range result = new ucar.nc2.stream.NcStreamProto.Range(this);
result.start_ = start_;
result.size_ = size_;
result.stride_ = stride_;
onBuilt();
return result;
}
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());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Range parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Range) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long start_ ;
/**
* optional uint64 start = 1;
*/
public long getStart() {
return start_;
}
/**
* optional uint64 start = 1;
*/
public Builder setStart(long value) {
start_ = value;
onChanged();
return this;
}
/**
* optional uint64 start = 1;
*/
public Builder clearStart() {
start_ = 0L;
onChanged();
return this;
}
private long size_ ;
/**
* optional uint64 size = 2;
*/
public long getSize() {
return size_;
}
/**
* optional uint64 size = 2;
*/
public Builder setSize(long value) {
size_ = value;
onChanged();
return this;
}
/**
* optional uint64 size = 2;
*/
public Builder clearSize() {
size_ = 0L;
onChanged();
return this;
}
private long stride_ ;
/**
* optional uint64 stride = 3;
*/
public long getStride() {
return stride_;
}
/**
* optional uint64 stride = 3;
*/
public Builder setStride(long value) {
stride_ = value;
onChanged();
return this;
}
/**
* optional uint64 stride = 3;
*/
public Builder clearStride() {
stride_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Range parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Range(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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 extends ucar.nc2.stream.NcStreamProto.RangeOrBuilder>
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Section)
SectionOrBuilder {
// Use Section.newBuilder() to construct.
private Section(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Section() {
range_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Section(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
range_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
range_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Range.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
range_ = java.util.Collections.unmodifiableList(range_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Section_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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;
private java.util.List range_;
/**
* repeated .Range range = 1;
*/
public java.util.List getRangeList() {
return range_;
}
/**
* repeated .Range range = 1;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.RangeOrBuilder>
getRangeOrBuilderList() {
return range_;
}
/**
* repeated .Range range = 1;
*/
public int getRangeCount() {
return range_.size();
}
/**
* repeated .Range range = 1;
*/
public ucar.nc2.stream.NcStreamProto.Range getRange(int index) {
return range_.get(index);
}
/**
* repeated .Range range = 1;
*/
public ucar.nc2.stream.NcStreamProto.RangeOrBuilder getRangeOrBuilder(
int index) {
return range_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < range_.size(); i++) {
output.writeMessage(1, range_.get(i));
}
}
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));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Section parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Section parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Section parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Section parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Section parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Section}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRangeFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (rangeBuilder_ == null) {
range_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
rangeBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Section_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Section getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Section build() {
ucar.nc2.stream.NcStreamProto.Section result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Section buildPartial() {
ucar.nc2.stream.NcStreamProto.Section result = new ucar.nc2.stream.NcStreamProto.Section(this);
int from_bitField0_ = bitField0_;
if (rangeBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
range_ = java.util.Collections.unmodifiableList(range_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.range_ = range_;
} else {
result.range_ = rangeBuilder_.build();
}
onBuilt();
return result;
}
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.GeneratedMessage.alwaysUseFieldBuilders ?
getRangeFieldBuilder() : null;
} else {
rangeBuilder_.addAllMessages(other.range_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Section parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Section) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List range_ =
java.util.Collections.emptyList();
private void ensureRangeIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
range_ = new java.util.ArrayList(range_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.Range> 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 extends ucar.nc2.stream.NcStreamProto.RangeOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Range, ucar.nc2.stream.NcStreamProto.Range.Builder, ucar.nc2.stream.NcStreamProto.RangeOrBuilder>(
range_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
range_ = null;
}
return rangeBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Section parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Section(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.Section getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataOrBuilder extends
// @@protoc_insertion_point(interface_extends:Data)
com.google.protobuf.MessageOrBuilder {
/**
* optional string varName = 1;
*
*
* full escaped name.
*
*/
java.lang.String getVarName();
/**
* optional string varName = 1;
*
*
* full escaped name.
*
*/
com.google.protobuf.ByteString
getVarNameBytes();
/**
* optional .DataType dataType = 2;
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 2;
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
boolean hasSection();
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
ucar.nc2.stream.NcStreamProto.Section getSection();
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder();
/**
* optional bool bigend = 4;
*
*
* [default=true] in proto2
*
*/
boolean getBigend();
/**
* optional uint32 version = 5;
*
*
* version=2 for proto2, >=3 for proto3 (v5.0+)
*
*/
int getVersion();
/**
* optional .Compress compress = 6;
*/
int getCompressValue();
/**
* optional .Compress compress = 6;
*/
ucar.nc2.stream.NcStreamProto.Compress getCompress();
/**
* optional bool vdata = 7;
*/
boolean getVdata();
/**
* optional uint32 uncompressedSize = 8;
*/
int getUncompressedSize();
public ucar.nc2.stream.NcStreamProto.Data.BigendPresentCase getBigendPresentCase();
}
/**
* Protobuf type {@code Data}
*/
public static final class Data extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Data)
DataOrBuilder {
// Use Data.newBuilder() to construct.
private Data(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Data() {
varName_ = "";
dataType_ = 0;
version_ = 0;
compress_ = 0;
vdata_ = false;
uncompressedSize_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Data(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
varName_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 26: {
ucar.nc2.stream.NcStreamProto.Section.Builder subBuilder = null;
if (section_ != null) {
subBuilder = section_.toBuilder();
}
section_ = input.readMessage(ucar.nc2.stream.NcStreamProto.Section.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(section_);
section_ = subBuilder.buildPartial();
}
break;
}
case 32: {
bigendPresentCase_ = 4;
bigendPresent_ = input.readBool();
break;
}
case 40: {
version_ = input.readUInt32();
break;
}
case 48: {
int rawValue = input.readEnum();
compress_ = rawValue;
break;
}
case 56: {
vdata_ = input.readBool();
break;
}
case 64: {
uncompressedSize_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_Data_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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;
private java.lang.Object bigendPresent_;
public enum BigendPresentCase
implements com.google.protobuf.Internal.EnumLite {
BIGEND(4),
BIGENDPRESENT_NOT_SET(0);
private int value = 0;
private BigendPresentCase(int value) {
this.value = value;
}
public static BigendPresentCase valueOf(int value) {
switch (value) {
case 4: return BIGEND;
case 0: return BIGENDPRESENT_NOT_SET;
default: throw new java.lang.IllegalArgumentException(
"Value is undefined for this oneof enum.");
}
}
public int getNumber() {
return this.value;
}
};
public BigendPresentCase
getBigendPresentCase() {
return BigendPresentCase.valueOf(
bigendPresentCase_);
}
public static final int VARNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object varName_;
/**
* optional string varName = 1;
*
*
* full escaped name.
*
*/
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;
}
}
/**
* optional string varName = 1;
*
*
* full escaped name.
*
*/
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_;
/**
* optional .DataType dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(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_;
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public boolean hasSection() {
return section_ != null;
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() {
return getSection();
}
public static final int BIGEND_FIELD_NUMBER = 4;
/**
* optional bool bigend = 4;
*
*
* [default=true] in proto2
*
*/
public boolean getBigend() {
if (bigendPresentCase_ == 4) {
return (java.lang.Boolean) bigendPresent_;
}
return false;
}
public static final int VERSION_FIELD_NUMBER = 5;
private int version_;
/**
* optional uint32 version = 5;
*
*
* version=2 for proto2, >=3 for proto3 (v5.0+)
*
*/
public int getVersion() {
return version_;
}
public static final int COMPRESS_FIELD_NUMBER = 6;
private int compress_;
/**
* optional .Compress compress = 6;
*/
public int getCompressValue() {
return compress_;
}
/**
* optional .Compress compress = 6;
*/
public ucar.nc2.stream.NcStreamProto.Compress getCompress() {
ucar.nc2.stream.NcStreamProto.Compress result = ucar.nc2.stream.NcStreamProto.Compress.valueOf(compress_);
return result == null ? ucar.nc2.stream.NcStreamProto.Compress.UNRECOGNIZED : result;
}
public static final int VDATA_FIELD_NUMBER = 7;
private boolean vdata_;
/**
* optional bool vdata = 7;
*/
public boolean getVdata() {
return vdata_;
}
public static final int UNCOMPRESSEDSIZE_FIELD_NUMBER = 8;
private int uncompressedSize_;
/**
* optional uint32 uncompressedSize = 8;
*/
public int getUncompressedSize() {
return uncompressedSize_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getVarNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.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_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getVarNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.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_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Data parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Data parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Data parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.Data parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.Data parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Data}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
varName_ = "";
dataType_ = 0;
if (sectionBuilder_ == null) {
section_ = null;
} else {
section_ = null;
sectionBuilder_ = null;
}
version_ = 0;
compress_ = 0;
vdata_ = false;
uncompressedSize_ = 0;
bigendPresentCase_ = 0;
bigendPresent_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_Data_descriptor;
}
public ucar.nc2.stream.NcStreamProto.Data getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.Data.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.Data build() {
ucar.nc2.stream.NcStreamProto.Data result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.Data buildPartial() {
ucar.nc2.stream.NcStreamProto.Data result = new ucar.nc2.stream.NcStreamProto.Data(this);
result.varName_ = varName_;
result.dataType_ = dataType_;
if (sectionBuilder_ == null) {
result.section_ = section_;
} else {
result.section_ = sectionBuilder_.build();
}
if (bigendPresentCase_ == 4) {
result.bigendPresent_ = bigendPresent_;
}
result.version_ = version_;
result.compress_ = compress_;
result.vdata_ = vdata_;
result.uncompressedSize_ = uncompressedSize_;
result.bigendPresentCase_ = bigendPresentCase_;
onBuilt();
return result;
}
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_;
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;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.Data parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.Data) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bigendPresentCase_ = 0;
private java.lang.Object bigendPresent_;
public BigendPresentCase
getBigendPresentCase() {
return BigendPresentCase.valueOf(
bigendPresentCase_);
}
public Builder clearBigendPresent() {
bigendPresentCase_ = 0;
bigendPresent_ = null;
onChanged();
return this;
}
private java.lang.Object varName_ = "";
/**
* optional string varName = 1;
*
*
* full escaped name.
*
*/
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;
}
}
/**
* optional string varName = 1;
*
*
* full escaped name.
*
*/
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;
}
}
/**
* optional string varName = 1;
*
*
* full escaped name.
*
*/
public Builder setVarName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
varName_ = value;
onChanged();
return this;
}
/**
* optional string varName = 1;
*
*
* full escaped name.
*
*/
public Builder clearVarName() {
varName_ = getDefaultInstance().getVarName();
onChanged();
return this;
}
/**
* optional string varName = 1;
*
*
* full escaped name.
*
*/
public Builder setVarNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
varName_ = value;
onChanged();
return this;
}
private int dataType_ = 0;
/**
* optional .DataType dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
/**
* optional .DataType dataType = 2;
*/
public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*/
public Builder clearDataType() {
dataType_ = 0;
onChanged();
return this;
}
private ucar.nc2.stream.NcStreamProto.Section section_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> sectionBuilder_;
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public boolean hasSection() {
return sectionBuilder_ != null || section_ != null;
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
if (sectionBuilder_ == null) {
return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
} else {
return sectionBuilder_.getMessage();
}
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public Builder setSection(ucar.nc2.stream.NcStreamProto.Section value) {
if (sectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
section_ = value;
onChanged();
} else {
sectionBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public Builder setSection(
ucar.nc2.stream.NcStreamProto.Section.Builder builderForValue) {
if (sectionBuilder_ == null) {
section_ = builderForValue.build();
onChanged();
} else {
sectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public Builder mergeSection(ucar.nc2.stream.NcStreamProto.Section value) {
if (sectionBuilder_ == null) {
if (section_ != null) {
section_ =
ucar.nc2.stream.NcStreamProto.Section.newBuilder(section_).mergeFrom(value).buildPartial();
} else {
section_ = value;
}
onChanged();
} else {
sectionBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public Builder clearSection() {
if (sectionBuilder_ == null) {
section_ = null;
onChanged();
} else {
section_ = null;
sectionBuilder_ = null;
}
return this;
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public ucar.nc2.stream.NcStreamProto.Section.Builder getSectionBuilder() {
onChanged();
return getSectionFieldBuilder().getBuilder();
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() {
if (sectionBuilder_ != null) {
return sectionBuilder_.getMessageOrBuilder();
} else {
return section_ == null ?
ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
}
}
/**
* optional .Section section = 3;
*
*
* not required for SEQUENCE
*
*/
private com.google.protobuf.SingleFieldBuilder<
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.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder>(
getSection(),
getParentForChildren(),
isClean());
section_ = null;
}
return sectionBuilder_;
}
/**
* optional bool bigend = 4;
*
*
* [default=true] in proto2
*
*/
public boolean getBigend() {
if (bigendPresentCase_ == 4) {
return (java.lang.Boolean) bigendPresent_;
}
return false;
}
/**
* optional bool bigend = 4;
*
*
* [default=true] in proto2
*
*/
public Builder setBigend(boolean value) {
bigendPresentCase_ = 4;
bigendPresent_ = value;
onChanged();
return this;
}
/**
* optional bool bigend = 4;
*
*
* [default=true] in proto2
*
*/
public Builder clearBigend() {
if (bigendPresentCase_ == 4) {
bigendPresentCase_ = 0;
bigendPresent_ = null;
onChanged();
}
return this;
}
private int version_ ;
/**
* optional uint32 version = 5;
*
*
* version=2 for proto2, >=3 for proto3 (v5.0+)
*
*/
public int getVersion() {
return version_;
}
/**
* optional uint32 version = 5;
*
*
* version=2 for proto2, >=3 for proto3 (v5.0+)
*
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* optional uint32 version = 5;
*
*
* version=2 for proto2, >=3 for proto3 (v5.0+)
*
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private int compress_ = 0;
/**
* optional .Compress compress = 6;
*/
public int getCompressValue() {
return compress_;
}
/**
* optional .Compress compress = 6;
*/
public Builder setCompressValue(int value) {
compress_ = value;
onChanged();
return this;
}
/**
* optional .Compress compress = 6;
*/
public ucar.nc2.stream.NcStreamProto.Compress getCompress() {
ucar.nc2.stream.NcStreamProto.Compress result = ucar.nc2.stream.NcStreamProto.Compress.valueOf(compress_);
return result == null ? ucar.nc2.stream.NcStreamProto.Compress.UNRECOGNIZED : result;
}
/**
* optional .Compress compress = 6;
*/
public Builder setCompress(ucar.nc2.stream.NcStreamProto.Compress value) {
if (value == null) {
throw new NullPointerException();
}
compress_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Compress compress = 6;
*/
public Builder clearCompress() {
compress_ = 0;
onChanged();
return this;
}
private boolean vdata_ ;
/**
* optional bool vdata = 7;
*/
public boolean getVdata() {
return vdata_;
}
/**
* optional bool vdata = 7;
*/
public Builder setVdata(boolean value) {
vdata_ = value;
onChanged();
return this;
}
/**
* optional bool vdata = 7;
*/
public Builder clearVdata() {
vdata_ = false;
onChanged();
return this;
}
private int uncompressedSize_ ;
/**
* optional uint32 uncompressedSize = 8;
*/
public int getUncompressedSize() {
return uncompressedSize_;
}
/**
* optional uint32 uncompressedSize = 8;
*/
public Builder setUncompressedSize(int value) {
uncompressedSize_ = value;
onChanged();
return this;
}
/**
* optional uint32 uncompressedSize = 8;
*/
public Builder clearUncompressedSize() {
uncompressedSize_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public Data parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Data(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.Data getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructureDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:StructureData)
com.google.protobuf.MessageOrBuilder {
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
java.util.List getMemberList();
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
int getMemberCount();
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
int getMember(int index);
/**
* optional bytes data = 2;
*
*
* fixed length data
*
*/
com.google.protobuf.ByteString getData();
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
java.util.List getHeapCountList();
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
int getHeapCountCount();
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
int getHeapCount(int index);
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
com.google.protobuf.ProtocolStringList
getSdataList();
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
int getSdataCount();
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
java.lang.String getSdata(int index);
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
com.google.protobuf.ByteString
getSdataBytes(int index);
/**
* optional uint64 nrows = 5;
*
*
* [default = 1] number of rows in this message
*
*/
long getNrows();
/**
* optional uint32 rowLength = 6;
*
*
* length in bytes of each row
*
*/
int getRowLength();
}
/**
* Protobuf type {@code StructureData}
*/
public static final class StructureData extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:StructureData)
StructureDataOrBuilder {
// Use StructureData.newBuilder() to construct.
private StructureData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private StructureData() {
member_ = java.util.Collections.emptyList();
data_ = com.google.protobuf.ByteString.EMPTY;
heapCount_ = java.util.Collections.emptyList();
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
nrows_ = 0L;
rowLength_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StructureData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
member_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
member_.add(input.readUInt32());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
member_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
member_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 18: {
data_ = input.readBytes();
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
heapCount_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
heapCount_.add(input.readUInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
heapCount_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
heapCount_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 34: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
sdata_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
sdata_.add(s);
break;
}
case 40: {
nrows_ = input.readUInt64();
break;
}
case 48: {
rowLength_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
member_ = java.util.Collections.unmodifiableList(member_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
heapCount_ = java.util.Collections.unmodifiableList(heapCount_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
sdata_ = sdata_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_StructureData_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
private int bitField0_;
public static final int MEMBER_FIELD_NUMBER = 1;
private java.util.List member_;
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public java.util.List
getMemberList() {
return member_;
}
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public int getMemberCount() {
return member_.size();
}
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public int getMember(int index) {
return member_.get(index);
}
private int memberMemoizedSerializedSize = -1;
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
* optional bytes data = 2;
*
*
* fixed length data
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int HEAPCOUNT_FIELD_NUMBER = 3;
private java.util.List heapCount_;
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public java.util.List
getHeapCountList() {
return heapCount_;
}
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public int getHeapCountCount() {
return heapCount_.size();
}
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public int getHeapCount(int index) {
return heapCount_.get(index);
}
private int heapCountMemoizedSerializedSize = -1;
public static final int SDATA_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList sdata_;
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public com.google.protobuf.ProtocolStringList
getSdataList() {
return sdata_;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public int getSdataCount() {
return sdata_.size();
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public java.lang.String getSdata(int index) {
return sdata_.get(index);
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public com.google.protobuf.ByteString
getSdataBytes(int index) {
return sdata_.getByteString(index);
}
public static final int NROWS_FIELD_NUMBER = 5;
private long nrows_;
/**
* optional uint64 nrows = 5;
*
*
* [default = 1] number of rows in this message
*
*/
public long getNrows() {
return nrows_;
}
public static final int ROWLENGTH_FIELD_NUMBER = 6;
private int rowLength_;
/**
* optional uint32 rowLength = 6;
*
*
* length in bytes of each row
*
*/
public int getRowLength() {
return rowLength_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getMemberList().size() > 0) {
output.writeRawVarint32(10);
output.writeRawVarint32(memberMemoizedSerializedSize);
}
for (int i = 0; i < member_.size(); i++) {
output.writeUInt32NoTag(member_.get(i));
}
if (!data_.isEmpty()) {
output.writeBytes(2, data_);
}
if (getHeapCountList().size() > 0) {
output.writeRawVarint32(26);
output.writeRawVarint32(heapCountMemoizedSerializedSize);
}
for (int i = 0; i < heapCount_.size(); i++) {
output.writeUInt32NoTag(heapCount_.get(i));
}
for (int i = 0; i < sdata_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, sdata_.getRaw(i));
}
if (nrows_ != 0L) {
output.writeUInt64(5, nrows_);
}
if (rowLength_ != 0) {
output.writeUInt32(6, rowLength_);
}
}
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_.get(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_.get(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_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.StructureData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.StructureData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.StructureData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code StructureData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
data_ = com.google.protobuf.ByteString.EMPTY;
heapCount_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
nrows_ = 0L;
rowLength_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_StructureData_descriptor;
}
public ucar.nc2.stream.NcStreamProto.StructureData getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.StructureData.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.StructureData build() {
ucar.nc2.stream.NcStreamProto.StructureData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.StructureData buildPartial() {
ucar.nc2.stream.NcStreamProto.StructureData result = new ucar.nc2.stream.NcStreamProto.StructureData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
member_ = java.util.Collections.unmodifiableList(member_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.member_ = member_;
result.data_ = data_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
heapCount_ = java.util.Collections.unmodifiableList(heapCount_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.heapCount_ = heapCount_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
sdata_ = sdata_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.sdata_ = sdata_;
result.nrows_ = nrows_;
result.rowLength_ = rowLength_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
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_ = (bitField0_ & ~0x00000008);
} else {
ensureSdataIsMutable();
sdata_.addAll(other.sdata_);
}
onChanged();
}
if (other.getNrows() != 0L) {
setNrows(other.getNrows());
}
if (other.getRowLength() != 0) {
setRowLength(other.getRowLength());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.StructureData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.StructureData) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List member_ = java.util.Collections.emptyList();
private void ensureMemberIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
member_ = new java.util.ArrayList(member_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public java.util.List
getMemberList() {
return java.util.Collections.unmodifiableList(member_);
}
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public int getMemberCount() {
return member_.size();
}
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public int getMember(int index) {
return member_.get(index);
}
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public Builder setMember(
int index, int value) {
ensureMemberIsMutable();
member_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public Builder addMember(int value) {
ensureMemberIsMutable();
member_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public Builder addAllMember(
java.lang.Iterable extends java.lang.Integer> values) {
ensureMemberIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, member_);
onChanged();
return this;
}
/**
* repeated uint32 member = 1;
*
*
* list of members present, if none then all, these are the index in Structure
*
*/
public Builder clearMember() {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes data = 2;
*
*
* fixed length data
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* optional bytes data = 2;
*
*
* fixed length data
*
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* optional bytes data = 2;
*
*
* fixed length data
*
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.util.List heapCount_ = java.util.Collections.emptyList();
private void ensureHeapCountIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
heapCount_ = new java.util.ArrayList(heapCount_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public java.util.List
getHeapCountList() {
return java.util.Collections.unmodifiableList(heapCount_);
}
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public int getHeapCountCount() {
return heapCount_.size();
}
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public int getHeapCount(int index) {
return heapCount_.get(index);
}
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public Builder setHeapCount(
int index, int value) {
ensureHeapCountIsMutable();
heapCount_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public Builder addHeapCount(int value) {
ensureHeapCountIsMutable();
heapCount_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public Builder addAllHeapCount(
java.lang.Iterable extends java.lang.Integer> values) {
ensureHeapCountIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, heapCount_);
onChanged();
return this;
}
/**
* repeated uint32 heapCount = 3;
*
*
* heap String count
*
*/
public Builder clearHeapCount() {
heapCount_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSdataIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
sdata_ = new com.google.protobuf.LazyStringArrayList(sdata_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public com.google.protobuf.ProtocolStringList
getSdataList() {
return sdata_.getUnmodifiableView();
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public int getSdataCount() {
return sdata_.size();
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public java.lang.String getSdata(int index) {
return sdata_.get(index);
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public com.google.protobuf.ByteString
getSdataBytes(int index) {
return sdata_.getByteString(index);
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder setSdata(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSdataIsMutable();
sdata_.set(index, value);
onChanged();
return this;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder addSdata(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSdataIsMutable();
sdata_.add(value);
onChanged();
return this;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder addAllSdata(
java.lang.Iterable values) {
ensureSdataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sdata_);
onChanged();
return this;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder clearSdata() {
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder addSdataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSdataIsMutable();
sdata_.add(value);
onChanged();
return this;
}
private long nrows_ ;
/**
* optional uint64 nrows = 5;
*
*
* [default = 1] number of rows in this message
*
*/
public long getNrows() {
return nrows_;
}
/**
* optional uint64 nrows = 5;
*
*
* [default = 1] number of rows in this message
*
*/
public Builder setNrows(long value) {
nrows_ = value;
onChanged();
return this;
}
/**
* optional uint64 nrows = 5;
*
*
* [default = 1] number of rows in this message
*
*/
public Builder clearNrows() {
nrows_ = 0L;
onChanged();
return this;
}
private int rowLength_ ;
/**
* optional uint32 rowLength = 6;
*
*
* length in bytes of each row
*
*/
public int getRowLength() {
return rowLength_;
}
/**
* optional uint32 rowLength = 6;
*
*
* length in bytes of each row
*
*/
public Builder setRowLength(int value) {
rowLength_ = value;
onChanged();
return this;
}
/**
* optional uint32 rowLength = 6;
*
*
* length in bytes of each row
*
*/
public Builder clearRowLength() {
rowLength_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public StructureData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new StructureData(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.StructureData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataColOrBuilder extends
// @@protoc_insertion_point(interface_extends:DataCol)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*
*
* fullname for top, shortname for member
*
*/
java.lang.String getName();
/**
* optional string name = 1;
*
*
* fullname for top, shortname for member
*
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional .DataType dataType = 2;
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 2;
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
/**
* optional .Section section = 3;
*/
boolean hasSection();
/**
* optional .Section section = 3;
*/
ucar.nc2.stream.NcStreamProto.Section getSection();
/**
* optional .Section section = 3;
*/
ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder();
/**
* optional bool bigend = 4;
*/
boolean getBigend();
/**
* optional uint32 version = 5;
*/
int getVersion();
/**
* optional bool isVlen = 7;
*/
boolean getIsVlen();
/**
* optional uint32 nelems = 9;
*/
int getNelems();
/**
* optional bytes primdata = 10;
*
*
* oneof
*
*/
com.google.protobuf.ByteString getPrimdata();
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
com.google.protobuf.ProtocolStringList
getStringdataList();
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
int getStringdataCount();
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
java.lang.String getStringdata(int index);
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
com.google.protobuf.ByteString
getStringdataBytes(int index);
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
java.util.List getVlensList();
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
int getVlensCount();
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
int getVlens(int index);
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
java.util.List getOpaquedataList();
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
int getOpaquedataCount();
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
com.google.protobuf.ByteString getOpaquedata(int index);
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
boolean hasStructdata();
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
ucar.nc2.stream.NcStreamProto.ArrayStructureCol getStructdata();
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder getStructdataOrBuilder();
}
/**
* Protobuf type {@code DataCol}
*/
public static final class DataCol extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:DataCol)
DataColOrBuilder {
// Use DataCol.newBuilder() to construct.
private DataCol(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private DataCol() {
name_ = "";
dataType_ = 0;
bigend_ = false;
version_ = 0;
isVlen_ = false;
nelems_ = 0;
primdata_ = com.google.protobuf.ByteString.EMPTY;
stringdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
vlens_ = java.util.Collections.emptyList();
opaquedata_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private DataCol(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 26: {
ucar.nc2.stream.NcStreamProto.Section.Builder subBuilder = null;
if (section_ != null) {
subBuilder = section_.toBuilder();
}
section_ = input.readMessage(ucar.nc2.stream.NcStreamProto.Section.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(section_);
section_ = subBuilder.buildPartial();
}
break;
}
case 32: {
bigend_ = input.readBool();
break;
}
case 40: {
version_ = input.readUInt32();
break;
}
case 56: {
isVlen_ = input.readBool();
break;
}
case 72: {
nelems_ = input.readUInt32();
break;
}
case 82: {
primdata_ = input.readBytes();
break;
}
case 90: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
stringdata_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000100;
}
stringdata_.add(s);
break;
}
case 96: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
vlens_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
vlens_.add(input.readUInt32());
break;
}
case 98: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) {
vlens_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
while (input.getBytesUntilLimit() > 0) {
vlens_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
opaquedata_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
opaquedata_.add(input.readBytes());
break;
}
case 114: {
ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder subBuilder = null;
if (structdata_ != null) {
subBuilder = structdata_.toBuilder();
}
structdata_ = input.readMessage(ucar.nc2.stream.NcStreamProto.ArrayStructureCol.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(structdata_);
structdata_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
stringdata_ = stringdata_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
vlens_ = java.util.Collections.unmodifiableList(vlens_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
opaquedata_ = java.util.Collections.unmodifiableList(opaquedata_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_DataCol_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*
*
* fullname for top, shortname for member
*
*/
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;
}
}
/**
* optional string name = 1;
*
*
* fullname for top, shortname for member
*
*/
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_;
/**
* optional .DataType dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(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_;
/**
* optional .Section section = 3;
*/
public boolean hasSection() {
return section_ != null;
}
/**
* optional .Section section = 3;
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
}
/**
* optional .Section section = 3;
*/
public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() {
return getSection();
}
public static final int BIGEND_FIELD_NUMBER = 4;
private boolean bigend_;
/**
* optional bool bigend = 4;
*/
public boolean getBigend() {
return bigend_;
}
public static final int VERSION_FIELD_NUMBER = 5;
private int version_;
/**
* optional uint32 version = 5;
*/
public int getVersion() {
return version_;
}
public static final int ISVLEN_FIELD_NUMBER = 7;
private boolean isVlen_;
/**
* optional bool isVlen = 7;
*/
public boolean getIsVlen() {
return isVlen_;
}
public static final int NELEMS_FIELD_NUMBER = 9;
private int nelems_;
/**
* optional uint32 nelems = 9;
*/
public int getNelems() {
return nelems_;
}
public static final int PRIMDATA_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString primdata_;
/**
* optional bytes primdata = 10;
*
*
* oneof
*
*/
public com.google.protobuf.ByteString getPrimdata() {
return primdata_;
}
public static final int STRINGDATA_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList stringdata_;
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public com.google.protobuf.ProtocolStringList
getStringdataList() {
return stringdata_;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public int getStringdataCount() {
return stringdata_.size();
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public java.lang.String getStringdata(int index) {
return stringdata_.get(index);
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public com.google.protobuf.ByteString
getStringdataBytes(int index) {
return stringdata_.getByteString(index);
}
public static final int VLENS_FIELD_NUMBER = 12;
private java.util.List vlens_;
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public java.util.List
getVlensList() {
return vlens_;
}
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public int getVlensCount() {
return vlens_.size();
}
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public int getVlens(int index) {
return vlens_.get(index);
}
private int vlensMemoizedSerializedSize = -1;
public static final int OPAQUEDATA_FIELD_NUMBER = 13;
private java.util.List opaquedata_;
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
public java.util.List
getOpaquedataList() {
return opaquedata_;
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
public int getOpaquedataCount() {
return opaquedata_.size();
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
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_;
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public boolean hasStructdata() {
return structdata_ != null;
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public ucar.nc2.stream.NcStreamProto.ArrayStructureCol getStructdata() {
return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance() : structdata_;
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder getStructdataOrBuilder() {
return getStructdata();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.writeString(output, 11, stringdata_.getRaw(i));
}
if (getVlensList().size() > 0) {
output.writeRawVarint32(98);
output.writeRawVarint32(vlensMemoizedSerializedSize);
}
for (int i = 0; i < vlens_.size(); i++) {
output.writeUInt32NoTag(vlens_.get(i));
}
for (int i = 0; i < opaquedata_.size(); i++) {
output.writeBytes(13, opaquedata_.get(i));
}
if (structdata_ != null) {
output.writeMessage(14, getStructdata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.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_.get(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());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.DataCol parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.DataCol parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.DataCol parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DataCol}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
dataType_ = 0;
if (sectionBuilder_ == null) {
section_ = null;
} else {
section_ = null;
sectionBuilder_ = null;
}
bigend_ = false;
version_ = 0;
isVlen_ = false;
nelems_ = 0;
primdata_ = com.google.protobuf.ByteString.EMPTY;
stringdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
vlens_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
opaquedata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
if (structdataBuilder_ == null) {
structdata_ = null;
} else {
structdata_ = null;
structdataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_DataCol_descriptor;
}
public ucar.nc2.stream.NcStreamProto.DataCol getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.DataCol.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.DataCol build() {
ucar.nc2.stream.NcStreamProto.DataCol result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.DataCol buildPartial() {
ucar.nc2.stream.NcStreamProto.DataCol result = new ucar.nc2.stream.NcStreamProto.DataCol(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.dataType_ = dataType_;
if (sectionBuilder_ == null) {
result.section_ = section_;
} else {
result.section_ = sectionBuilder_.build();
}
result.bigend_ = bigend_;
result.version_ = version_;
result.isVlen_ = isVlen_;
result.nelems_ = nelems_;
result.primdata_ = primdata_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
stringdata_ = stringdata_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000100);
}
result.stringdata_ = stringdata_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
vlens_ = java.util.Collections.unmodifiableList(vlens_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.vlens_ = vlens_;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
opaquedata_ = java.util.Collections.unmodifiableList(opaquedata_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.opaquedata_ = opaquedata_;
if (structdataBuilder_ == null) {
result.structdata_ = structdata_;
} else {
result.structdata_ = structdataBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
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_;
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_ = (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());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.DataCol parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.DataCol) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*
*
* fullname for top, shortname for member
*
*/
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;
}
}
/**
* optional string name = 1;
*
*
* fullname for top, shortname for member
*
*/
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;
}
}
/**
* optional string name = 1;
*
*
* fullname for top, shortname for member
*
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* fullname for top, shortname for member
*
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* fullname for top, shortname for member
*
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int dataType_ = 0;
/**
* optional .DataType dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
/**
* optional .DataType dataType = 2;
*/
public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*/
public Builder clearDataType() {
dataType_ = 0;
onChanged();
return this;
}
private ucar.nc2.stream.NcStreamProto.Section section_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> sectionBuilder_;
/**
* optional .Section section = 3;
*/
public boolean hasSection() {
return sectionBuilder_ != null || section_ != null;
}
/**
* optional .Section section = 3;
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
if (sectionBuilder_ == null) {
return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
} else {
return sectionBuilder_.getMessage();
}
}
/**
* optional .Section section = 3;
*/
public Builder setSection(ucar.nc2.stream.NcStreamProto.Section value) {
if (sectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
section_ = value;
onChanged();
} else {
sectionBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Section section = 3;
*/
public Builder setSection(
ucar.nc2.stream.NcStreamProto.Section.Builder builderForValue) {
if (sectionBuilder_ == null) {
section_ = builderForValue.build();
onChanged();
} else {
sectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Section section = 3;
*/
public Builder mergeSection(ucar.nc2.stream.NcStreamProto.Section value) {
if (sectionBuilder_ == null) {
if (section_ != null) {
section_ =
ucar.nc2.stream.NcStreamProto.Section.newBuilder(section_).mergeFrom(value).buildPartial();
} else {
section_ = value;
}
onChanged();
} else {
sectionBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Section section = 3;
*/
public Builder clearSection() {
if (sectionBuilder_ == null) {
section_ = null;
onChanged();
} else {
section_ = null;
sectionBuilder_ = null;
}
return this;
}
/**
* optional .Section section = 3;
*/
public ucar.nc2.stream.NcStreamProto.Section.Builder getSectionBuilder() {
onChanged();
return getSectionFieldBuilder().getBuilder();
}
/**
* optional .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_;
}
}
/**
* optional .Section section = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
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.SingleFieldBuilder<
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_ ;
/**
* optional bool bigend = 4;
*/
public boolean getBigend() {
return bigend_;
}
/**
* optional bool bigend = 4;
*/
public Builder setBigend(boolean value) {
bigend_ = value;
onChanged();
return this;
}
/**
* optional bool bigend = 4;
*/
public Builder clearBigend() {
bigend_ = false;
onChanged();
return this;
}
private int version_ ;
/**
* optional uint32 version = 5;
*/
public int getVersion() {
return version_;
}
/**
* optional uint32 version = 5;
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* optional uint32 version = 5;
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private boolean isVlen_ ;
/**
* optional bool isVlen = 7;
*/
public boolean getIsVlen() {
return isVlen_;
}
/**
* optional bool isVlen = 7;
*/
public Builder setIsVlen(boolean value) {
isVlen_ = value;
onChanged();
return this;
}
/**
* optional bool isVlen = 7;
*/
public Builder clearIsVlen() {
isVlen_ = false;
onChanged();
return this;
}
private int nelems_ ;
/**
* optional uint32 nelems = 9;
*/
public int getNelems() {
return nelems_;
}
/**
* optional uint32 nelems = 9;
*/
public Builder setNelems(int value) {
nelems_ = value;
onChanged();
return this;
}
/**
* optional uint32 nelems = 9;
*/
public Builder clearNelems() {
nelems_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString primdata_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes primdata = 10;
*
*
* oneof
*
*/
public com.google.protobuf.ByteString getPrimdata() {
return primdata_;
}
/**
* optional bytes primdata = 10;
*
*
* oneof
*
*/
public Builder setPrimdata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
primdata_ = value;
onChanged();
return this;
}
/**
* optional bytes primdata = 10;
*
*
* oneof
*
*/
public Builder clearPrimdata() {
primdata_ = getDefaultInstance().getPrimdata();
onChanged();
return this;
}
private com.google.protobuf.LazyStringList stringdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStringdataIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
stringdata_ = new com.google.protobuf.LazyStringArrayList(stringdata_);
bitField0_ |= 0x00000100;
}
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public com.google.protobuf.ProtocolStringList
getStringdataList() {
return stringdata_.getUnmodifiableView();
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public int getStringdataCount() {
return stringdata_.size();
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public java.lang.String getStringdata(int index) {
return stringdata_.get(index);
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public com.google.protobuf.ByteString
getStringdataBytes(int index) {
return stringdata_.getByteString(index);
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder setStringdata(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringdataIsMutable();
stringdata_.set(index, value);
onChanged();
return this;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder addStringdata(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringdataIsMutable();
stringdata_.add(value);
onChanged();
return this;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder addAllStringdata(
java.lang.Iterable values) {
ensureStringdataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stringdata_);
onChanged();
return this;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder clearStringdata() {
stringdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder addStringdataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureStringdataIsMutable();
stringdata_.add(value);
onChanged();
return this;
}
private java.util.List vlens_ = java.util.Collections.emptyList();
private void ensureVlensIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
vlens_ = new java.util.ArrayList(vlens_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public java.util.List
getVlensList() {
return java.util.Collections.unmodifiableList(vlens_);
}
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public int getVlensCount() {
return vlens_.size();
}
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public int getVlens(int index) {
return vlens_.get(index);
}
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public Builder setVlens(
int index, int value) {
ensureVlensIsMutable();
vlens_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public Builder addVlens(int value) {
ensureVlensIsMutable();
vlens_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public Builder addAllVlens(
java.lang.Iterable extends java.lang.Integer> values) {
ensureVlensIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, vlens_);
onChanged();
return this;
}
/**
* repeated uint32 vlens = 12;
*
*
* isVlen true
*
*/
public Builder clearVlens() {
vlens_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private java.util.List opaquedata_ = java.util.Collections.emptyList();
private void ensureOpaquedataIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
opaquedata_ = new java.util.ArrayList(opaquedata_);
bitField0_ |= 0x00000400;
}
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
public java.util.List
getOpaquedataList() {
return java.util.Collections.unmodifiableList(opaquedata_);
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
public int getOpaquedataCount() {
return opaquedata_.size();
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
public com.google.protobuf.ByteString getOpaquedata(int index) {
return opaquedata_.get(index);
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
public Builder setOpaquedata(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureOpaquedataIsMutable();
opaquedata_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
public Builder addOpaquedata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureOpaquedataIsMutable();
opaquedata_.add(value);
onChanged();
return this;
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
public Builder addAllOpaquedata(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureOpaquedataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, opaquedata_);
onChanged();
return this;
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataType
*
*/
public Builder clearOpaquedata() {
opaquedata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
private ucar.nc2.stream.NcStreamProto.ArrayStructureCol structdata_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.ArrayStructureCol, ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder> structdataBuilder_;
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public boolean hasStructdata() {
return structdataBuilder_ != null || structdata_ != null;
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public ucar.nc2.stream.NcStreamProto.ArrayStructureCol getStructdata() {
if (structdataBuilder_ == null) {
return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance() : structdata_;
} else {
return structdataBuilder_.getMessage();
}
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public Builder setStructdata(ucar.nc2.stream.NcStreamProto.ArrayStructureCol value) {
if (structdataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
structdata_ = value;
onChanged();
} else {
structdataBuilder_.setMessage(value);
}
return this;
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public Builder setStructdata(
ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder builderForValue) {
if (structdataBuilder_ == null) {
structdata_ = builderForValue.build();
onChanged();
} else {
structdataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public Builder mergeStructdata(ucar.nc2.stream.NcStreamProto.ArrayStructureCol value) {
if (structdataBuilder_ == null) {
if (structdata_ != null) {
structdata_ =
ucar.nc2.stream.NcStreamProto.ArrayStructureCol.newBuilder(structdata_).mergeFrom(value).buildPartial();
} else {
structdata_ = value;
}
onChanged();
} else {
structdataBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public Builder clearStructdata() {
if (structdataBuilder_ == null) {
structdata_ = null;
onChanged();
} else {
structdata_ = null;
structdataBuilder_ = null;
}
return this;
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder getStructdataBuilder() {
onChanged();
return getStructdataFieldBuilder().getBuilder();
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
public ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder getStructdataOrBuilder() {
if (structdataBuilder_ != null) {
return structdataBuilder_.getMessageOrBuilder();
} else {
return structdata_ == null ?
ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance() : structdata_;
}
}
/**
* optional .ArrayStructureCol structdata = 14;
*
*
* structures
*
*/
private com.google.protobuf.SingleFieldBuilder<
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.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.ArrayStructureCol, ucar.nc2.stream.NcStreamProto.ArrayStructureCol.Builder, ucar.nc2.stream.NcStreamProto.ArrayStructureColOrBuilder>(
getStructdata(),
getParentForChildren(),
isClean());
structdata_ = null;
}
return structdataBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public DataCol parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new DataCol(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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 extends ucar.nc2.stream.NcStreamProto.DataColOrBuilder>
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.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ArrayStructureCol)
ArrayStructureColOrBuilder {
// Use ArrayStructureCol.newBuilder() to construct.
private ArrayStructureCol(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ArrayStructureCol() {
memberData_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ArrayStructureCol(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
memberData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
memberData_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.DataCol.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
memberData_ = java.util.Collections.unmodifiableList(memberData_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureCol_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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;
private java.util.List memberData_;
/**
* repeated .DataCol memberData = 1;
*/
public java.util.List getMemberDataList() {
return memberData_;
}
/**
* repeated .DataCol memberData = 1;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.DataColOrBuilder>
getMemberDataOrBuilderList() {
return memberData_;
}
/**
* repeated .DataCol memberData = 1;
*/
public int getMemberDataCount() {
return memberData_.size();
}
/**
* repeated .DataCol memberData = 1;
*/
public ucar.nc2.stream.NcStreamProto.DataCol getMemberData(int index) {
return memberData_.get(index);
}
/**
* repeated .DataCol memberData = 1;
*/
public ucar.nc2.stream.NcStreamProto.DataColOrBuilder getMemberDataOrBuilder(
int index) {
return memberData_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < memberData_.size(); i++) {
output.writeMessage(1, memberData_.get(i));
}
}
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));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.ArrayStructureCol parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ArrayStructureCol}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMemberDataFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (memberDataBuilder_ == null) {
memberData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
memberDataBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_ArrayStructureCol_descriptor;
}
public ucar.nc2.stream.NcStreamProto.ArrayStructureCol getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.ArrayStructureCol.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.ArrayStructureCol build() {
ucar.nc2.stream.NcStreamProto.ArrayStructureCol result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.ArrayStructureCol buildPartial() {
ucar.nc2.stream.NcStreamProto.ArrayStructureCol result = new ucar.nc2.stream.NcStreamProto.ArrayStructureCol(this);
int from_bitField0_ = bitField0_;
if (memberDataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
memberData_ = java.util.Collections.unmodifiableList(memberData_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.memberData_ = memberData_;
} else {
result.memberData_ = memberDataBuilder_.build();
}
onBuilt();
return result;
}
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.GeneratedMessage.alwaysUseFieldBuilders ?
getMemberDataFieldBuilder() : null;
} else {
memberDataBuilder_.addAllMessages(other.memberData_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.ArrayStructureCol parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.ArrayStructureCol) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List memberData_ =
java.util.Collections.emptyList();
private void ensureMemberDataIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
memberData_ = new java.util.ArrayList(memberData_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends ucar.nc2.stream.NcStreamProto.DataCol> 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 extends ucar.nc2.stream.NcStreamProto.DataColOrBuilder>
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.RepeatedFieldBuilder<
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.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.DataCol, ucar.nc2.stream.NcStreamProto.DataCol.Builder, ucar.nc2.stream.NcStreamProto.DataColOrBuilder>(
memberData_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
memberData_ = null;
}
return memberDataBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@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() {
public ArrayStructureCol parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new ArrayStructureCol(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ucar.nc2.stream.NcStreamProto.ArrayStructureCol getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataRowOrBuilder extends
// @@protoc_insertion_point(interface_extends:DataRow)
com.google.protobuf.MessageOrBuilder {
/**
* optional string fullName = 1;
*/
java.lang.String getFullName();
/**
* optional string fullName = 1;
*/
com.google.protobuf.ByteString
getFullNameBytes();
/**
* optional .DataType dataType = 2;
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 2;
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
/**
* optional .Section section = 3;
*/
boolean hasSection();
/**
* optional .Section section = 3;
*/
ucar.nc2.stream.NcStreamProto.Section getSection();
/**
* optional .Section section = 3;
*/
ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder();
/**
* optional bool bigend = 4;
*/
boolean getBigend();
/**
* optional uint32 version = 5;
*/
int getVersion();
/**
* optional bool isVlen = 7;
*/
boolean getIsVlen();
/**
* optional uint32 nelems = 9;
*/
int getNelems();
/**
* optional bytes primdata = 10;
*
*
* rectangular, primitive array
*
*/
com.google.protobuf.ByteString getPrimdata();
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
com.google.protobuf.ProtocolStringList
getStringdataList();
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
int getStringdataCount();
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
java.lang.String getStringdata(int index);
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
com.google.protobuf.ByteString
getStringdataBytes(int index);
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
java.util.List getVlensList();
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
int getVlensCount();
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
int getVlens(int index);
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataTypes
*
*/
java.util.List getOpaquedataList();
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataTypes
*
*/
int getOpaquedataCount();
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataTypes
*
*/
com.google.protobuf.ByteString getOpaquedata(int index);
/**
* optional .ArrayStructureRow structdata = 14;
*
*
* structure/seq dataType
*
*/
boolean hasStructdata();
/**
* optional .ArrayStructureRow structdata = 14;
*
*
* structure/seq dataType
*
*/
ucar.nc2.stream.NcStreamProto.ArrayStructureRow getStructdata();
/**
* optional .ArrayStructureRow structdata = 14;
*
*
* structure/seq dataType
*
*/
ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder getStructdataOrBuilder();
}
/**
* Protobuf type {@code DataRow}
*/
public static final class DataRow extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:DataRow)
DataRowOrBuilder {
// Use DataRow.newBuilder() to construct.
private DataRow(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private DataRow() {
fullName_ = "";
dataType_ = 0;
bigend_ = false;
version_ = 0;
isVlen_ = false;
nelems_ = 0;
primdata_ = com.google.protobuf.ByteString.EMPTY;
stringdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
vlens_ = java.util.Collections.emptyList();
opaquedata_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private DataRow(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
fullName_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 26: {
ucar.nc2.stream.NcStreamProto.Section.Builder subBuilder = null;
if (section_ != null) {
subBuilder = section_.toBuilder();
}
section_ = input.readMessage(ucar.nc2.stream.NcStreamProto.Section.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(section_);
section_ = subBuilder.buildPartial();
}
break;
}
case 32: {
bigend_ = input.readBool();
break;
}
case 40: {
version_ = input.readUInt32();
break;
}
case 56: {
isVlen_ = input.readBool();
break;
}
case 72: {
nelems_ = input.readUInt32();
break;
}
case 82: {
primdata_ = input.readBytes();
break;
}
case 90: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
stringdata_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000100;
}
stringdata_.add(s);
break;
}
case 96: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
vlens_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
vlens_.add(input.readUInt32());
break;
}
case 98: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) {
vlens_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
while (input.getBytesUntilLimit() > 0) {
vlens_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
opaquedata_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
opaquedata_.add(input.readBytes());
break;
}
case 114: {
ucar.nc2.stream.NcStreamProto.ArrayStructureRow.Builder subBuilder = null;
if (structdata_ != null) {
subBuilder = structdata_.toBuilder();
}
structdata_ = input.readMessage(ucar.nc2.stream.NcStreamProto.ArrayStructureRow.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(structdata_);
structdata_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
stringdata_ = stringdata_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
vlens_ = java.util.Collections.unmodifiableList(vlens_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
opaquedata_ = java.util.Collections.unmodifiableList(opaquedata_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.stream.NcStreamProto.internal_static_DataRow_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
private int bitField0_;
public static final int FULLNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object fullName_;
/**
* optional string fullName = 1;
*/
public java.lang.String getFullName() {
java.lang.Object ref = fullName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fullName_ = s;
return s;
}
}
/**
* optional string fullName = 1;
*/
public com.google.protobuf.ByteString
getFullNameBytes() {
java.lang.Object ref = fullName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fullName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATATYPE_FIELD_NUMBER = 2;
private int dataType_;
/**
* optional .DataType dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(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_;
/**
* optional .Section section = 3;
*/
public boolean hasSection() {
return section_ != null;
}
/**
* optional .Section section = 3;
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
}
/**
* optional .Section section = 3;
*/
public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() {
return getSection();
}
public static final int BIGEND_FIELD_NUMBER = 4;
private boolean bigend_;
/**
* optional bool bigend = 4;
*/
public boolean getBigend() {
return bigend_;
}
public static final int VERSION_FIELD_NUMBER = 5;
private int version_;
/**
* optional uint32 version = 5;
*/
public int getVersion() {
return version_;
}
public static final int ISVLEN_FIELD_NUMBER = 7;
private boolean isVlen_;
/**
* optional bool isVlen = 7;
*/
public boolean getIsVlen() {
return isVlen_;
}
public static final int NELEMS_FIELD_NUMBER = 9;
private int nelems_;
/**
* optional uint32 nelems = 9;
*/
public int getNelems() {
return nelems_;
}
public static final int PRIMDATA_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString primdata_;
/**
* optional bytes primdata = 10;
*
*
* rectangular, primitive array
*
*/
public com.google.protobuf.ByteString getPrimdata() {
return primdata_;
}
public static final int STRINGDATA_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList stringdata_;
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public com.google.protobuf.ProtocolStringList
getStringdataList() {
return stringdata_;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public int getStringdataCount() {
return stringdata_.size();
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public java.lang.String getStringdata(int index) {
return stringdata_.get(index);
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public com.google.protobuf.ByteString
getStringdataBytes(int index) {
return stringdata_.getByteString(index);
}
public static final int VLENS_FIELD_NUMBER = 12;
private java.util.List vlens_;
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public java.util.List
getVlensList() {
return vlens_;
}
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public int getVlensCount() {
return vlens_.size();
}
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public int getVlens(int index) {
return vlens_.get(index);
}
private int vlensMemoizedSerializedSize = -1;
public static final int OPAQUEDATA_FIELD_NUMBER = 13;
private java.util.List opaquedata_;
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataTypes
*
*/
public java.util.List
getOpaquedataList() {
return opaquedata_;
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataTypes
*
*/
public int getOpaquedataCount() {
return opaquedata_.size();
}
/**
* repeated bytes opaquedata = 13;
*
*
* opaque dataTypes
*
*/
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_;
/**
* optional .ArrayStructureRow structdata = 14;
*
*
* structure/seq dataType
*
*/
public boolean hasStructdata() {
return structdata_ != null;
}
/**
* optional .ArrayStructureRow structdata = 14;
*
*
* structure/seq dataType
*
*/
public ucar.nc2.stream.NcStreamProto.ArrayStructureRow getStructdata() {
return structdata_ == null ? ucar.nc2.stream.NcStreamProto.ArrayStructureRow.getDefaultInstance() : structdata_;
}
/**
* optional .ArrayStructureRow structdata = 14;
*
*
* structure/seq dataType
*
*/
public ucar.nc2.stream.NcStreamProto.ArrayStructureRowOrBuilder getStructdataOrBuilder() {
return getStructdata();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (!getFullNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.writeString(output, 11, stringdata_.getRaw(i));
}
if (getVlensList().size() > 0) {
output.writeRawVarint32(98);
output.writeRawVarint32(vlensMemoizedSerializedSize);
}
for (int i = 0; i < vlens_.size(); i++) {
output.writeUInt32NoTag(vlens_.get(i));
}
for (int i = 0; i < opaquedata_.size(); i++) {
output.writeBytes(13, opaquedata_.get(i));
}
if (structdata_ != null) {
output.writeMessage(14, getStructdata());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getFullNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.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_.get(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());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
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 PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.DataRow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.DataRow parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.stream.NcStreamProto.DataRow parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DataRow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.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;
}
protected com.google.protobuf.GeneratedMessage.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
fullName_ = "";
dataType_ = 0;
if (sectionBuilder_ == null) {
section_ = null;
} else {
section_ = null;
sectionBuilder_ = null;
}
bigend_ = false;
version_ = 0;
isVlen_ = false;
nelems_ = 0;
primdata_ = com.google.protobuf.ByteString.EMPTY;
stringdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
vlens_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
opaquedata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
if (structdataBuilder_ == null) {
structdata_ = null;
} else {
structdata_ = null;
structdataBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.stream.NcStreamProto.internal_static_DataRow_descriptor;
}
public ucar.nc2.stream.NcStreamProto.DataRow getDefaultInstanceForType() {
return ucar.nc2.stream.NcStreamProto.DataRow.getDefaultInstance();
}
public ucar.nc2.stream.NcStreamProto.DataRow build() {
ucar.nc2.stream.NcStreamProto.DataRow result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.stream.NcStreamProto.DataRow buildPartial() {
ucar.nc2.stream.NcStreamProto.DataRow result = new ucar.nc2.stream.NcStreamProto.DataRow(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.fullName_ = fullName_;
result.dataType_ = dataType_;
if (sectionBuilder_ == null) {
result.section_ = section_;
} else {
result.section_ = sectionBuilder_.build();
}
result.bigend_ = bigend_;
result.version_ = version_;
result.isVlen_ = isVlen_;
result.nelems_ = nelems_;
result.primdata_ = primdata_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
stringdata_ = stringdata_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000100);
}
result.stringdata_ = stringdata_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
vlens_ = java.util.Collections.unmodifiableList(vlens_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.vlens_ = vlens_;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
opaquedata_ = java.util.Collections.unmodifiableList(opaquedata_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.opaquedata_ = opaquedata_;
if (structdataBuilder_ == null) {
result.structdata_ = structdata_;
} else {
result.structdata_ = structdataBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
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_;
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_ = (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());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.stream.NcStreamProto.DataRow parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.stream.NcStreamProto.DataRow) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object fullName_ = "";
/**
* optional string fullName = 1;
*/
public java.lang.String getFullName() {
java.lang.Object ref = fullName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fullName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string fullName = 1;
*/
public com.google.protobuf.ByteString
getFullNameBytes() {
java.lang.Object ref = fullName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fullName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string fullName = 1;
*/
public Builder setFullName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fullName_ = value;
onChanged();
return this;
}
/**
* optional string fullName = 1;
*/
public Builder clearFullName() {
fullName_ = getDefaultInstance().getFullName();
onChanged();
return this;
}
/**
* optional string fullName = 1;
*/
public Builder setFullNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fullName_ = value;
onChanged();
return this;
}
private int dataType_ = 0;
/**
* optional .DataType dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 2;
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
/**
* optional .DataType dataType = 2;
*/
public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .DataType dataType = 2;
*/
public Builder clearDataType() {
dataType_ = 0;
onChanged();
return this;
}
private ucar.nc2.stream.NcStreamProto.Section section_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> sectionBuilder_;
/**
* optional .Section section = 3;
*/
public boolean hasSection() {
return sectionBuilder_ != null || section_ != null;
}
/**
* optional .Section section = 3;
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
if (sectionBuilder_ == null) {
return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
} else {
return sectionBuilder_.getMessage();
}
}
/**
* optional .Section section = 3;
*/
public Builder setSection(ucar.nc2.stream.NcStreamProto.Section value) {
if (sectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
section_ = value;
onChanged();
} else {
sectionBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Section section = 3;
*/
public Builder setSection(
ucar.nc2.stream.NcStreamProto.Section.Builder builderForValue) {
if (sectionBuilder_ == null) {
section_ = builderForValue.build();
onChanged();
} else {
sectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Section section = 3;
*/
public Builder mergeSection(ucar.nc2.stream.NcStreamProto.Section value) {
if (sectionBuilder_ == null) {
if (section_ != null) {
section_ =
ucar.nc2.stream.NcStreamProto.Section.newBuilder(section_).mergeFrom(value).buildPartial();
} else {
section_ = value;
}
onChanged();
} else {
sectionBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Section section = 3;
*/
public Builder clearSection() {
if (sectionBuilder_ == null) {
section_ = null;
onChanged();
} else {
section_ = null;
sectionBuilder_ = null;
}
return this;
}
/**
* optional .Section section = 3;
*/
public ucar.nc2.stream.NcStreamProto.Section.Builder getSectionBuilder() {
onChanged();
return getSectionFieldBuilder().getBuilder();
}
/**
* optional .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_;
}
}
/**
* optional .Section section = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
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.SingleFieldBuilder<
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_ ;
/**
* optional bool bigend = 4;
*/
public boolean getBigend() {
return bigend_;
}
/**
* optional bool bigend = 4;
*/
public Builder setBigend(boolean value) {
bigend_ = value;
onChanged();
return this;
}
/**
* optional bool bigend = 4;
*/
public Builder clearBigend() {
bigend_ = false;
onChanged();
return this;
}
private int version_ ;
/**
* optional uint32 version = 5;
*/
public int getVersion() {
return version_;
}
/**
* optional uint32 version = 5;
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* optional uint32 version = 5;
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private boolean isVlen_ ;
/**
* optional bool isVlen = 7;
*/
public boolean getIsVlen() {
return isVlen_;
}
/**
* optional bool isVlen = 7;
*/
public Builder setIsVlen(boolean value) {
isVlen_ = value;
onChanged();
return this;
}
/**
* optional bool isVlen = 7;
*/
public Builder clearIsVlen() {
isVlen_ = false;
onChanged();
return this;
}
private int nelems_ ;
/**
* optional uint32 nelems = 9;
*/
public int getNelems() {
return nelems_;
}
/**
* optional uint32 nelems = 9;
*/
public Builder setNelems(int value) {
nelems_ = value;
onChanged();
return this;
}
/**
* optional uint32 nelems = 9;
*/
public Builder clearNelems() {
nelems_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString primdata_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes primdata = 10;
*
*
* rectangular, primitive array
*
*/
public com.google.protobuf.ByteString getPrimdata() {
return primdata_;
}
/**
* optional bytes primdata = 10;
*
*
* rectangular, primitive array
*
*/
public Builder setPrimdata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
primdata_ = value;
onChanged();
return this;
}
/**
* optional bytes primdata = 10;
*
*
* rectangular, primitive array
*
*/
public Builder clearPrimdata() {
primdata_ = getDefaultInstance().getPrimdata();
onChanged();
return this;
}
private com.google.protobuf.LazyStringList stringdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStringdataIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
stringdata_ = new com.google.protobuf.LazyStringArrayList(stringdata_);
bitField0_ |= 0x00000100;
}
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public com.google.protobuf.ProtocolStringList
getStringdataList() {
return stringdata_.getUnmodifiableView();
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public int getStringdataCount() {
return stringdata_.size();
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public java.lang.String getStringdata(int index) {
return stringdata_.get(index);
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public com.google.protobuf.ByteString
getStringdataBytes(int index) {
return stringdata_.getByteString(index);
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder setStringdata(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringdataIsMutable();
stringdata_.set(index, value);
onChanged();
return this;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder addStringdata(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringdataIsMutable();
stringdata_.add(value);
onChanged();
return this;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder addAllStringdata(
java.lang.Iterable values) {
ensureStringdataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stringdata_);
onChanged();
return this;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder clearStringdata() {
stringdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* repeated string stringdata = 11;
*
*
* string dataType
*
*/
public Builder addStringdataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureStringdataIsMutable();
stringdata_.add(value);
onChanged();
return this;
}
private java.util.List vlens_ = java.util.Collections.emptyList();
private void ensureVlensIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
vlens_ = new java.util.ArrayList(vlens_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public java.util.List
getVlensList() {
return java.util.Collections.unmodifiableList(vlens_);
}
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public int getVlensCount() {
return vlens_.size();
}
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public int getVlens(int index) {
return vlens_.get(index);
}
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public Builder setVlens(
int index, int value) {
ensureVlensIsMutable();
vlens_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public Builder addVlens(int value) {
ensureVlensIsMutable();
vlens_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public Builder addAllVlens(
java.lang.Iterable extends java.lang.Integer> values) {
ensureVlensIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, vlens_);
onChanged();
return this;
}
/**
* repeated uint32 vlens = 12;
*
*
* vlen lengths
*
*/
public Builder clearVlens() {
vlens_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private java.util.List opaquedata_ = java.util.Collections.emptyList();
private void ensureOpaquedataIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
opaquedata_ = new java.util.ArrayList(opaquedata_);
bitField0_ |= 0x00000400;
}
}
/**
*