ucar.nc2.ft2.coverage.remote.CdmrFeatureProto Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ucar/nc2/ft2/coverage/remote/cdmrfeature.proto
package ucar.nc2.ft2.coverage.remote;
public final class CdmrFeatureProto {
private CdmrFeatureProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code AxisType}
*
*
* same as ucar.nc2.constants.AxisType
*
*/
public enum AxisType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* RunTime = 0;
*/
RunTime(0, 0),
/**
* Ensemble = 1;
*/
Ensemble(1, 1),
/**
* Time = 2;
*/
Time(2, 2),
/**
* GeoX = 3;
*/
GeoX(3, 3),
/**
* GeoY = 4;
*/
GeoY(4, 4),
/**
* GeoZ = 5;
*/
GeoZ(5, 5),
/**
* Lat = 6;
*/
Lat(6, 6),
/**
* Lon = 7;
*/
Lon(7, 7),
/**
* Height = 8;
*/
Height(8, 8),
/**
* Pressure = 9;
*/
Pressure(9, 9),
/**
* RadialAzimuth = 10;
*/
RadialAzimuth(10, 10),
/**
* RadialDistance = 11;
*/
RadialDistance(11, 11),
/**
* RadialElevation = 12;
*/
RadialElevation(12, 12),
/**
* Spectral = 13;
*/
Spectral(13, 13),
/**
* TimeOffset = 14;
*/
TimeOffset(14, 14),
UNRECOGNIZED(-1, -1),
;
/**
* RunTime = 0;
*/
public static final int RunTime_VALUE = 0;
/**
* Ensemble = 1;
*/
public static final int Ensemble_VALUE = 1;
/**
* Time = 2;
*/
public static final int Time_VALUE = 2;
/**
* GeoX = 3;
*/
public static final int GeoX_VALUE = 3;
/**
* GeoY = 4;
*/
public static final int GeoY_VALUE = 4;
/**
* GeoZ = 5;
*/
public static final int GeoZ_VALUE = 5;
/**
* Lat = 6;
*/
public static final int Lat_VALUE = 6;
/**
* Lon = 7;
*/
public static final int Lon_VALUE = 7;
/**
* Height = 8;
*/
public static final int Height_VALUE = 8;
/**
* Pressure = 9;
*/
public static final int Pressure_VALUE = 9;
/**
* RadialAzimuth = 10;
*/
public static final int RadialAzimuth_VALUE = 10;
/**
* RadialDistance = 11;
*/
public static final int RadialDistance_VALUE = 11;
/**
* RadialElevation = 12;
*/
public static final int RadialElevation_VALUE = 12;
/**
* Spectral = 13;
*/
public static final int Spectral_VALUE = 13;
/**
* TimeOffset = 14;
*/
public static final int TimeOffset_VALUE = 14;
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 AxisType valueOf(int value) {
switch (value) {
case 0: return RunTime;
case 1: return Ensemble;
case 2: return Time;
case 3: return GeoX;
case 4: return GeoY;
case 5: return GeoZ;
case 6: return Lat;
case 7: return Lon;
case 8: return Height;
case 9: return Pressure;
case 10: return RadialAzimuth;
case 11: return RadialDistance;
case 12: return RadialElevation;
case 13: return Spectral;
case 14: return TimeOffset;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AxisType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AxisType findValueByNumber(int number) {
return AxisType.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.ft2.coverage.remote.CdmrFeatureProto.getDescriptor().getEnumTypes().get(0);
}
private static final AxisType[] VALUES = values();
public static AxisType 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 AxisType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:AxisType)
}
/**
* Protobuf enum {@code AxisSpacing}
*
*
* same as CoverageCoordAxis.Spacing
*
*/
public enum AxisSpacing
implements com.google.protobuf.ProtocolMessageEnum {
/**
* regularPoint = 0;
*/
regularPoint(0, 0),
/**
* irregularPoint = 1;
*/
irregularPoint(1, 1),
/**
* contiguousInterval = 2;
*/
contiguousInterval(2, 2),
/**
* discontiguousInterval = 3;
*/
discontiguousInterval(3, 3),
/**
* regularInterval = 4;
*/
regularInterval(4, 4),
UNRECOGNIZED(-1, -1),
;
/**
* regularPoint = 0;
*/
public static final int regularPoint_VALUE = 0;
/**
* irregularPoint = 1;
*/
public static final int irregularPoint_VALUE = 1;
/**
* contiguousInterval = 2;
*/
public static final int contiguousInterval_VALUE = 2;
/**
* discontiguousInterval = 3;
*/
public static final int discontiguousInterval_VALUE = 3;
/**
* regularInterval = 4;
*/
public static final int regularInterval_VALUE = 4;
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 AxisSpacing valueOf(int value) {
switch (value) {
case 0: return regularPoint;
case 1: return irregularPoint;
case 2: return contiguousInterval;
case 3: return discontiguousInterval;
case 4: return regularInterval;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AxisSpacing> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AxisSpacing findValueByNumber(int number) {
return AxisSpacing.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.ft2.coverage.remote.CdmrFeatureProto.getDescriptor().getEnumTypes().get(1);
}
private static final AxisSpacing[] VALUES = values();
public static AxisSpacing 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 AxisSpacing(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:AxisSpacing)
}
/**
* Protobuf enum {@code DependenceType}
*
*
* same as CoverageCoordAxis.DependenceType
*
*/
public enum DependenceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* independent = 0;
*
*
* has its own dimension, is a coordinate variable, eg x(x)
*
*/
independent(0, 0),
/**
* dependent = 1;
*
*
* aux coordinate, reftime(time) or time_bounds(time);
*
*/
dependent(1, 1),
/**
* scalar = 2;
*
*
* reftime
*
*/
scalar(2, 2),
/**
* twoD = 3;
*
*
* lat(x,y)
*
*/
twoD(3, 3),
/**
* fmrcReg = 4;
*
*
* time(reftime, hourOfDay)
*
*/
fmrcReg(4, 4),
UNRECOGNIZED(-1, -1),
;
/**
* independent = 0;
*
*
* has its own dimension, is a coordinate variable, eg x(x)
*
*/
public static final int independent_VALUE = 0;
/**
* dependent = 1;
*
*
* aux coordinate, reftime(time) or time_bounds(time);
*
*/
public static final int dependent_VALUE = 1;
/**
* scalar = 2;
*
*
* reftime
*
*/
public static final int scalar_VALUE = 2;
/**
* twoD = 3;
*
*
* lat(x,y)
*
*/
public static final int twoD_VALUE = 3;
/**
* fmrcReg = 4;
*
*
* time(reftime, hourOfDay)
*
*/
public static final int fmrcReg_VALUE = 4;
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 DependenceType valueOf(int value) {
switch (value) {
case 0: return independent;
case 1: return dependent;
case 2: return scalar;
case 3: return twoD;
case 4: return fmrcReg;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DependenceType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DependenceType findValueByNumber(int number) {
return DependenceType.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.ft2.coverage.remote.CdmrFeatureProto.getDescriptor().getEnumTypes().get(2);
}
private static final DependenceType[] VALUES = values();
public static DependenceType 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 DependenceType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:DependenceType)
}
/**
* Protobuf enum {@code Calendar}
*
*
* same as ucar.nc2.time.Calendar
*
*/
public enum Calendar
implements com.google.protobuf.ProtocolMessageEnum {
/**
* proleptic_gregorian = 0;
*/
proleptic_gregorian(0, 0),
/**
* gregorian = 1;
*/
gregorian(1, 1),
/**
* noleap = 2;
*/
noleap(2, 2),
/**
* all_leap = 3;
*/
all_leap(3, 3),
/**
* uniform30day = 4;
*/
uniform30day(4, 4),
/**
* julian = 5;
*/
julian(5, 5),
/**
* none = 6;
*/
none(6, 6),
UNRECOGNIZED(-1, -1),
;
/**
* proleptic_gregorian = 0;
*/
public static final int proleptic_gregorian_VALUE = 0;
/**
* gregorian = 1;
*/
public static final int gregorian_VALUE = 1;
/**
* noleap = 2;
*/
public static final int noleap_VALUE = 2;
/**
* all_leap = 3;
*/
public static final int all_leap_VALUE = 3;
/**
* uniform30day = 4;
*/
public static final int uniform30day_VALUE = 4;
/**
* julian = 5;
*/
public static final int julian_VALUE = 5;
/**
* none = 6;
*/
public static final int none_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 Calendar valueOf(int value) {
switch (value) {
case 0: return proleptic_gregorian;
case 1: return gregorian;
case 2: return noleap;
case 3: return all_leap;
case 4: return uniform30day;
case 5: return julian;
case 6: return none;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Calendar> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Calendar findValueByNumber(int number) {
return Calendar.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.ft2.coverage.remote.CdmrFeatureProto.getDescriptor().getEnumTypes().get(3);
}
private static final Calendar[] VALUES = values();
public static Calendar 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 Calendar(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Calendar)
}
/**
* Protobuf enum {@code CoverageType}
*/
public enum CoverageType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* General = 0;
*/
General(0, 0),
/**
* Curvilinear = 1;
*/
Curvilinear(1, 1),
/**
* Grid = 2;
*/
Grid(2, 2),
/**
* Swath = 3;
*/
Swath(3, 3),
/**
* Fmrc = 4;
*/
Fmrc(4, 4),
UNRECOGNIZED(-1, -1),
;
/**
* General = 0;
*/
public static final int General_VALUE = 0;
/**
* Curvilinear = 1;
*/
public static final int Curvilinear_VALUE = 1;
/**
* Grid = 2;
*/
public static final int Grid_VALUE = 2;
/**
* Swath = 3;
*/
public static final int Swath_VALUE = 3;
/**
* Fmrc = 4;
*/
public static final int Fmrc_VALUE = 4;
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 CoverageType valueOf(int value) {
switch (value) {
case 0: return General;
case 1: return Curvilinear;
case 2: return Grid;
case 3: return Swath;
case 4: return Fmrc;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CoverageType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CoverageType findValueByNumber(int number) {
return CoverageType.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.ft2.coverage.remote.CdmrFeatureProto.getDescriptor().getEnumTypes().get(4);
}
private static final CoverageType[] VALUES = values();
public static CoverageType 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 CoverageType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:CoverageType)
}
public interface CoordTransformOrBuilder extends
// @@protoc_insertion_point(interface_extends:CoordTransform)
com.google.protobuf.MessageOrBuilder {
/**
* optional bool isHoriz = 1;
*/
boolean getIsHoriz();
/**
* optional string name = 2;
*
*
* short name, unique within dataset
*
*/
java.lang.String getName();
/**
* optional string name = 2;
*
*
* short name, unique within dataset
*
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* repeated .Attribute params = 3;
*/
java.util.List
getParamsList();
/**
* repeated .Attribute params = 3;
*/
ucar.nc2.stream.NcStreamProto.Attribute getParams(int index);
/**
* repeated .Attribute params = 3;
*/
int getParamsCount();
/**
* repeated .Attribute params = 3;
*/
java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getParamsOrBuilderList();
/**
* repeated .Attribute params = 3;
*/
ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getParamsOrBuilder(
int index);
}
/**
* Protobuf type {@code CoordTransform}
*/
public static final class CoordTransform extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CoordTransform)
CoordTransformOrBuilder {
// Use CoordTransform.newBuilder() to construct.
private CoordTransform(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CoordTransform() {
isHoriz_ = false;
name_ = "";
params_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CoordTransform(
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: {
isHoriz_ = input.readBool();
break;
}
case 18: {
String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
params_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
params_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Attribute.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)) {
params_ = java.util.Collections.unmodifiableList(params_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordTransform_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordTransform_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder.class);
}
private int bitField0_;
public static final int ISHORIZ_FIELD_NUMBER = 1;
private boolean isHoriz_;
/**
* optional bool isHoriz = 1;
*/
public boolean getIsHoriz() {
return isHoriz_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* optional string name = 2;
*
*
* short name, unique within dataset
*
*/
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 = 2;
*
*
* short name, unique within dataset
*
*/
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 PARAMS_FIELD_NUMBER = 3;
private java.util.List params_;
/**
* repeated .Attribute params = 3;
*/
public java.util.List getParamsList() {
return params_;
}
/**
* repeated .Attribute params = 3;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getParamsOrBuilderList() {
return params_;
}
/**
* repeated .Attribute params = 3;
*/
public int getParamsCount() {
return params_.size();
}
/**
* repeated .Attribute params = 3;
*/
public ucar.nc2.stream.NcStreamProto.Attribute getParams(int index) {
return params_.get(index);
}
/**
* repeated .Attribute params = 3;
*/
public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getParamsOrBuilder(
int index) {
return params_.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 (isHoriz_ != false) {
output.writeBool(1, isHoriz_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
}
for (int i = 0; i < params_.size(); i++) {
output.writeMessage(3, params_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (isHoriz_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isHoriz_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
}
for (int i = 0; i < params_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, params_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform 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.ft2.coverage.remote.CdmrFeatureProto.CoordTransform parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform 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.ft2.coverage.remote.CdmrFeatureProto.CoordTransform 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 CoordTransform}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CoordTransform)
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordTransform_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordTransform_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder.class);
}
// Construct using ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getParamsFieldBuilder();
}
}
public Builder clear() {
super.clear();
isHoriz_ = false;
name_ = "";
if (paramsBuilder_ == null) {
params_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
paramsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordTransform_descriptor;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform getDefaultInstanceForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.getDefaultInstance();
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform build() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform buildPartial() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform result = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.isHoriz_ = isHoriz_;
result.name_ = name_;
if (paramsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
params_ = java.util.Collections.unmodifiableList(params_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform) {
return mergeFrom((ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform other) {
if (other == ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.getDefaultInstance()) return this;
if (other.getIsHoriz() != false) {
setIsHoriz(other.getIsHoriz());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (paramsBuilder_ == null) {
if (!other.params_.isEmpty()) {
if (params_.isEmpty()) {
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureParamsIsMutable();
params_.addAll(other.params_);
}
onChanged();
}
} else {
if (!other.params_.isEmpty()) {
if (paramsBuilder_.isEmpty()) {
paramsBuilder_.dispose();
paramsBuilder_ = null;
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000004);
paramsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getParamsFieldBuilder() : null;
} else {
paramsBuilder_.addAllMessages(other.params_);
}
}
}
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.ft2.coverage.remote.CdmrFeatureProto.CoordTransform parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean isHoriz_ ;
/**
* optional bool isHoriz = 1;
*/
public boolean getIsHoriz() {
return isHoriz_;
}
/**
* optional bool isHoriz = 1;
*/
public Builder setIsHoriz(boolean value) {
isHoriz_ = value;
onChanged();
return this;
}
/**
* optional bool isHoriz = 1;
*/
public Builder clearIsHoriz() {
isHoriz_ = false;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 2;
*
*
* short name, unique within dataset
*
*/
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 = 2;
*
*
* short name, unique within dataset
*
*/
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 = 2;
*
*
* short name, unique within dataset
*
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 2;
*
*
* short name, unique within dataset
*
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 2;
*
*
* short name, unique within dataset
*
*/
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 params_ =
java.util.Collections.emptyList();
private void ensureParamsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
params_ = new java.util.ArrayList(params_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder> paramsBuilder_;
/**
* repeated .Attribute params = 3;
*/
public java.util.List getParamsList() {
if (paramsBuilder_ == null) {
return java.util.Collections.unmodifiableList(params_);
} else {
return paramsBuilder_.getMessageList();
}
}
/**
* repeated .Attribute params = 3;
*/
public int getParamsCount() {
if (paramsBuilder_ == null) {
return params_.size();
} else {
return paramsBuilder_.getCount();
}
}
/**
* repeated .Attribute params = 3;
*/
public ucar.nc2.stream.NcStreamProto.Attribute getParams(int index) {
if (paramsBuilder_ == null) {
return params_.get(index);
} else {
return paramsBuilder_.getMessage(index);
}
}
/**
* repeated .Attribute params = 3;
*/
public Builder setParams(
int index, ucar.nc2.stream.NcStreamProto.Attribute value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.set(index, value);
onChanged();
} else {
paramsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Attribute params = 3;
*/
public Builder setParams(
int index, ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.set(index, builderForValue.build());
onChanged();
} else {
paramsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Attribute params = 3;
*/
public Builder addParams(ucar.nc2.stream.NcStreamProto.Attribute value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.add(value);
onChanged();
} else {
paramsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Attribute params = 3;
*/
public Builder addParams(
int index, ucar.nc2.stream.NcStreamProto.Attribute value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.add(index, value);
onChanged();
} else {
paramsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Attribute params = 3;
*/
public Builder addParams(
ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.add(builderForValue.build());
onChanged();
} else {
paramsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Attribute params = 3;
*/
public Builder addParams(
int index, ucar.nc2.stream.NcStreamProto.Attribute.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.add(index, builderForValue.build());
onChanged();
} else {
paramsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Attribute params = 3;
*/
public Builder addAllParams(
java.lang.Iterable extends ucar.nc2.stream.NcStreamProto.Attribute> values) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, params_);
onChanged();
} else {
paramsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Attribute params = 3;
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
paramsBuilder_.clear();
}
return this;
}
/**
* repeated .Attribute params = 3;
*/
public Builder removeParams(int index) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.remove(index);
onChanged();
} else {
paramsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Attribute params = 3;
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Builder getParamsBuilder(
int index) {
return getParamsFieldBuilder().getBuilder(index);
}
/**
* repeated .Attribute params = 3;
*/
public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getParamsOrBuilder(
int index) {
if (paramsBuilder_ == null) {
return params_.get(index); } else {
return paramsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Attribute params = 3;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getParamsOrBuilderList() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(params_);
}
}
/**
* repeated .Attribute params = 3;
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Builder addParamsBuilder() {
return getParamsFieldBuilder().addBuilder(
ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance());
}
/**
* repeated .Attribute params = 3;
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Builder addParamsBuilder(
int index) {
return getParamsFieldBuilder().addBuilder(
index, ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance());
}
/**
* repeated .Attribute params = 3;
*/
public java.util.List
getParamsBuilderList() {
return getParamsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.stream.NcStreamProto.Attribute, ucar.nc2.stream.NcStreamProto.Attribute.Builder, ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>(
params_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
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:CoordTransform)
}
// @@protoc_insertion_point(class_scope:CoordTransform)
private static final ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform();
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CoordTransform parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CoordTransform(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.ft2.coverage.remote.CdmrFeatureProto.CoordTransform getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CoordAxisOrBuilder extends
// @@protoc_insertion_point(interface_extends:CoordAxis)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*
*
* short name, unique within dataset
*
*/
java.lang.String getName();
/**
* optional string name = 1;
*
*
* short name, unique within dataset
*
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional .DataType dataType = 2;
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 2;
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
java.util.List
getAttsList();
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index);
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
int getAttsCount();
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getAttsOrBuilderList();
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index);
/**
* optional .AxisType axisType = 4;
*/
int getAxisTypeValue();
/**
* optional .AxisType axisType = 4;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType getAxisType();
/**
* optional string units = 5;
*/
java.lang.String getUnits();
/**
* optional string units = 5;
*/
com.google.protobuf.ByteString
getUnitsBytes();
/**
* optional string description = 6;
*/
java.lang.String getDescription();
/**
* optional string description = 6;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* optional .DependenceType depend = 7;
*/
int getDependValue();
/**
* optional .DependenceType depend = 7;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType getDepend();
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
com.google.protobuf.ProtocolStringList
getDependsOnList();
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
int getDependsOnCount();
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
java.lang.String getDependsOn(int index);
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
com.google.protobuf.ByteString
getDependsOnBytes(int index);
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
java.util.List getShapeList();
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
int getShapeCount();
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
int getShape(int index);
/**
* optional int64 nvalues = 10;
*/
long getNvalues();
/**
* optional .AxisSpacing spacing = 11;
*/
int getSpacingValue();
/**
* optional .AxisSpacing spacing = 11;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing getSpacing();
/**
* optional double startValue = 12;
*/
double getStartValue();
/**
* optional double endValue = 13;
*/
double getEndValue();
/**
* optional double resolution = 14;
*
*
* resolution = (end-start) / (nvalues-1)
*
*/
double getResolution();
/**
* optional bytes values = 15;
*
*
* big endian doubles; not used for regular, may be deferred
*
*/
com.google.protobuf.ByteString getValues();
}
/**
* Protobuf type {@code CoordAxis}
*/
public static final class CoordAxis extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CoordAxis)
CoordAxisOrBuilder {
// Use CoordAxis.newBuilder() to construct.
private CoordAxis(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CoordAxis() {
name_ = "";
dataType_ = 0;
atts_ = java.util.Collections.emptyList();
axisType_ = 0;
units_ = "";
description_ = "";
depend_ = 0;
dependsOn_ = com.google.protobuf.LazyStringArrayList.EMPTY;
shape_ = java.util.Collections.emptyList();
nvalues_ = 0L;
spacing_ = 0;
startValue_ = 0D;
endValue_ = 0D;
resolution_ = 0D;
values_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CoordAxis(
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)) {
atts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
atts_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Attribute.parser(), extensionRegistry));
break;
}
case 32: {
int rawValue = input.readEnum();
axisType_ = rawValue;
break;
}
case 42: {
String s = input.readStringRequireUtf8();
units_ = s;
break;
}
case 50: {
String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 56: {
int rawValue = input.readEnum();
depend_ = rawValue;
break;
}
case 66: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
dependsOn_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000080;
}
dependsOn_.add(s);
break;
}
case 72: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
shape_.add(input.readUInt32());
break;
}
case 74: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
while (input.getBytesUntilLimit() > 0) {
shape_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 80: {
nvalues_ = input.readInt64();
break;
}
case 88: {
int rawValue = input.readEnum();
spacing_ = rawValue;
break;
}
case 97: {
startValue_ = input.readDouble();
break;
}
case 105: {
endValue_ = input.readDouble();
break;
}
case 113: {
resolution_ = input.readDouble();
break;
}
case 122: {
values_ = input.readBytes();
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)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
dependsOn_ = dependsOn_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordAxis_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordAxis_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.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, unique within dataset
*
*/
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, unique within dataset
*
*/
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 ATTS_FIELD_NUMBER = 3;
private java.util.List atts_;
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public java.util.List getAttsList() {
return atts_;
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getAttsOrBuilderList() {
return atts_;
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public int getAttsCount() {
return atts_.size();
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) {
return atts_.get(index);
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
return atts_.get(index);
}
public static final int AXISTYPE_FIELD_NUMBER = 4;
private int axisType_;
/**
* optional .AxisType axisType = 4;
*/
public int getAxisTypeValue() {
return axisType_;
}
/**
* optional .AxisType axisType = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType getAxisType() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType.valueOf(axisType_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType.UNRECOGNIZED : result;
}
public static final int UNITS_FIELD_NUMBER = 5;
private volatile java.lang.Object units_;
/**
* optional string units = 5;
*/
public java.lang.String getUnits() {
java.lang.Object ref = units_;
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();
units_ = s;
return s;
}
}
/**
* optional string units = 5;
*/
public com.google.protobuf.ByteString
getUnitsBytes() {
java.lang.Object ref = units_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
units_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 6;
private volatile java.lang.Object description_;
/**
* optional string description = 6;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
* optional string description = 6;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPEND_FIELD_NUMBER = 7;
private int depend_;
/**
* optional .DependenceType depend = 7;
*/
public int getDependValue() {
return depend_;
}
/**
* optional .DependenceType depend = 7;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType getDepend() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType.valueOf(depend_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType.UNRECOGNIZED : result;
}
public static final int DEPENDSON_FIELD_NUMBER = 8;
private com.google.protobuf.LazyStringList dependsOn_;
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public com.google.protobuf.ProtocolStringList
getDependsOnList() {
return dependsOn_;
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public int getDependsOnCount() {
return dependsOn_.size();
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public java.lang.String getDependsOn(int index) {
return dependsOn_.get(index);
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public com.google.protobuf.ByteString
getDependsOnBytes(int index) {
return dependsOn_.getByteString(index);
}
public static final int SHAPE_FIELD_NUMBER = 9;
private java.util.List shape_;
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public java.util.List
getShapeList() {
return shape_;
}
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public int getShape(int index) {
return shape_.get(index);
}
private int shapeMemoizedSerializedSize = -1;
public static final int NVALUES_FIELD_NUMBER = 10;
private long nvalues_;
/**
* optional int64 nvalues = 10;
*/
public long getNvalues() {
return nvalues_;
}
public static final int SPACING_FIELD_NUMBER = 11;
private int spacing_;
/**
* optional .AxisSpacing spacing = 11;
*/
public int getSpacingValue() {
return spacing_;
}
/**
* optional .AxisSpacing spacing = 11;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing getSpacing() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing.valueOf(spacing_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing.UNRECOGNIZED : result;
}
public static final int STARTVALUE_FIELD_NUMBER = 12;
private double startValue_;
/**
* optional double startValue = 12;
*/
public double getStartValue() {
return startValue_;
}
public static final int ENDVALUE_FIELD_NUMBER = 13;
private double endValue_;
/**
* optional double endValue = 13;
*/
public double getEndValue() {
return endValue_;
}
public static final int RESOLUTION_FIELD_NUMBER = 14;
private double resolution_;
/**
* optional double resolution = 14;
*
*
* resolution = (end-start) / (nvalues-1)
*
*/
public double getResolution() {
return resolution_;
}
public static final int VALUES_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString values_;
/**
* optional bytes values = 15;
*
*
* big endian doubles; not used for regular, may be deferred
*
*/
public com.google.protobuf.ByteString getValues() {
return values_;
}
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_);
}
for (int i = 0; i < atts_.size(); i++) {
output.writeMessage(3, atts_.get(i));
}
if (axisType_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType.RunTime.getNumber()) {
output.writeEnum(4, axisType_);
}
if (!getUnitsBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, units_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, description_);
}
if (depend_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType.independent.getNumber()) {
output.writeEnum(7, depend_);
}
for (int i = 0; i < dependsOn_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 8, dependsOn_.getRaw(i));
}
if (getShapeList().size() > 0) {
output.writeRawVarint32(74);
output.writeRawVarint32(shapeMemoizedSerializedSize);
}
for (int i = 0; i < shape_.size(); i++) {
output.writeUInt32NoTag(shape_.get(i));
}
if (nvalues_ != 0L) {
output.writeInt64(10, nvalues_);
}
if (spacing_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing.regularPoint.getNumber()) {
output.writeEnum(11, spacing_);
}
if (startValue_ != 0D) {
output.writeDouble(12, startValue_);
}
if (endValue_ != 0D) {
output.writeDouble(13, endValue_);
}
if (resolution_ != 0D) {
output.writeDouble(14, resolution_);
}
if (!values_.isEmpty()) {
output.writeBytes(15, values_);
}
}
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 < atts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, atts_.get(i));
}
if (axisType_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType.RunTime.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, axisType_);
}
if (!getUnitsBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, units_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(6, description_);
}
if (depend_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType.independent.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, depend_);
}
{
int dataSize = 0;
for (int i = 0; i < dependsOn_.size(); i++) {
dataSize += computeStringSizeNoTag(dependsOn_.getRaw(i));
}
size += dataSize;
size += 1 * getDependsOnList().size();
}
{
int dataSize = 0;
for (int i = 0; i < shape_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(shape_.get(i));
}
size += dataSize;
if (!getShapeList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
shapeMemoizedSerializedSize = dataSize;
}
if (nvalues_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, nvalues_);
}
if (spacing_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing.regularPoint.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, spacing_);
}
if (startValue_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(12, startValue_);
}
if (endValue_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(13, endValue_);
}
if (resolution_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(14, resolution_);
}
if (!values_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, values_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis 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.ft2.coverage.remote.CdmrFeatureProto.CoordAxis parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis 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.ft2.coverage.remote.CdmrFeatureProto.CoordAxis 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 CoordAxis}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CoordAxis)
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordAxis_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordAxis_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder.class);
}
// Construct using ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAttsFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
dataType_ = 0;
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
attsBuilder_.clear();
}
axisType_ = 0;
units_ = "";
description_ = "";
depend_ = 0;
dependsOn_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000080);
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
nvalues_ = 0L;
spacing_ = 0;
startValue_ = 0D;
endValue_ = 0D;
resolution_ = 0D;
values_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordAxis_descriptor;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis getDefaultInstanceForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.getDefaultInstance();
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis build() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis buildPartial() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis result = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.dataType_ = dataType_;
if (attsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.atts_ = atts_;
} else {
result.atts_ = attsBuilder_.build();
}
result.axisType_ = axisType_;
result.units_ = units_;
result.description_ = description_;
result.depend_ = depend_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
dependsOn_ = dependsOn_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000080);
}
result.dependsOn_ = dependsOn_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.shape_ = shape_;
result.nvalues_ = nvalues_;
result.spacing_ = spacing_;
result.startValue_ = startValue_;
result.endValue_ = endValue_;
result.resolution_ = resolution_;
result.values_ = values_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis) {
return mergeFrom((ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis other) {
if (other == ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.dataType_ != 0) {
setDataTypeValue(other.getDataTypeValue());
}
if (attsBuilder_ == null) {
if (!other.atts_.isEmpty()) {
if (atts_.isEmpty()) {
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAttsIsMutable();
atts_.addAll(other.atts_);
}
onChanged();
}
} else {
if (!other.atts_.isEmpty()) {
if (attsBuilder_.isEmpty()) {
attsBuilder_.dispose();
attsBuilder_ = null;
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000004);
attsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAttsFieldBuilder() : null;
} else {
attsBuilder_.addAllMessages(other.atts_);
}
}
}
if (other.axisType_ != 0) {
setAxisTypeValue(other.getAxisTypeValue());
}
if (!other.getUnits().isEmpty()) {
units_ = other.units_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.depend_ != 0) {
setDependValue(other.getDependValue());
}
if (!other.dependsOn_.isEmpty()) {
if (dependsOn_.isEmpty()) {
dependsOn_ = other.dependsOn_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureDependsOnIsMutable();
dependsOn_.addAll(other.dependsOn_);
}
onChanged();
}
if (!other.shape_.isEmpty()) {
if (shape_.isEmpty()) {
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureShapeIsMutable();
shape_.addAll(other.shape_);
}
onChanged();
}
if (other.getNvalues() != 0L) {
setNvalues(other.getNvalues());
}
if (other.spacing_ != 0) {
setSpacingValue(other.getSpacingValue());
}
if (other.getStartValue() != 0D) {
setStartValue(other.getStartValue());
}
if (other.getEndValue() != 0D) {
setEndValue(other.getEndValue());
}
if (other.getResolution() != 0D) {
setResolution(other.getResolution());
}
if (other.getValues() != com.google.protobuf.ByteString.EMPTY) {
setValues(other.getValues());
}
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.ft2.coverage.remote.CdmrFeatureProto.CoordAxis parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis) 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, unique within dataset
*
*/
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, unique within dataset
*
*/
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, unique within dataset
*
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name, unique within dataset
*
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name, unique within dataset
*
*/
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 atts_ =
java.util.Collections.emptyList();
private void ensureAttsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
atts_ = new java.util.ArrayList(atts_);
bitField0_ |= 0x00000004;
}
}
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 = 3;
*
*
* find calendar attribute here?
*
*/
public java.util.List getAttsList() {
if (attsBuilder_ == null) {
return java.util.Collections.unmodifiableList(atts_);
} else {
return attsBuilder_.getMessageList();
}
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public int getAttsCount() {
if (attsBuilder_ == null) {
return atts_.size();
} else {
return attsBuilder_.getCount();
}
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) {
if (attsBuilder_ == null) {
return atts_.get(index);
} else {
return attsBuilder_.getMessage(index);
}
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
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 = 3;
*
*
* find calendar attribute here?
*
*/
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 = 3;
*
*
* find calendar attribute here?
*
*/
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 = 3;
*
*
* find calendar attribute here?
*
*/
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 = 3;
*
*
* find calendar attribute here?
*
*/
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 = 3;
*
*
* find calendar attribute here?
*
*/
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 = 3;
*
*
* find calendar attribute here?
*
*/
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 = 3;
*
*
* find calendar attribute here?
*
*/
public Builder clearAtts() {
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
attsBuilder_.clear();
}
return this;
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public Builder removeAtts(int index) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.remove(index);
onChanged();
} else {
attsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Builder getAttsBuilder(
int index) {
return getAttsFieldBuilder().getBuilder(index);
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
if (attsBuilder_ == null) {
return atts_.get(index); } else {
return attsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
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 = 3;
*
*
* find calendar attribute here?
*
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder() {
return getAttsFieldBuilder().addBuilder(
ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance());
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder(
int index) {
return getAttsFieldBuilder().addBuilder(
index, ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance());
}
/**
* repeated .Attribute atts = 3;
*
*
* find calendar attribute here?
*
*/
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_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
atts_ = null;
}
return attsBuilder_;
}
private int axisType_ = 0;
/**
* optional .AxisType axisType = 4;
*/
public int getAxisTypeValue() {
return axisType_;
}
/**
* optional .AxisType axisType = 4;
*/
public Builder setAxisTypeValue(int value) {
axisType_ = value;
onChanged();
return this;
}
/**
* optional .AxisType axisType = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType getAxisType() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType.valueOf(axisType_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType.UNRECOGNIZED : result;
}
/**
* optional .AxisType axisType = 4;
*/
public Builder setAxisType(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisType value) {
if (value == null) {
throw new NullPointerException();
}
axisType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .AxisType axisType = 4;
*/
public Builder clearAxisType() {
axisType_ = 0;
onChanged();
return this;
}
private java.lang.Object units_ = "";
/**
* optional string units = 5;
*/
public java.lang.String getUnits() {
java.lang.Object ref = units_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
units_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string units = 5;
*/
public com.google.protobuf.ByteString
getUnitsBytes() {
java.lang.Object ref = units_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
units_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string units = 5;
*/
public Builder setUnits(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
units_ = value;
onChanged();
return this;
}
/**
* optional string units = 5;
*/
public Builder clearUnits() {
units_ = getDefaultInstance().getUnits();
onChanged();
return this;
}
/**
* optional string units = 5;
*/
public Builder setUnitsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
units_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* optional string description = 6;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string description = 6;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string description = 6;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
* optional string description = 6;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* optional string description = 6;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private int depend_ = 0;
/**
* optional .DependenceType depend = 7;
*/
public int getDependValue() {
return depend_;
}
/**
* optional .DependenceType depend = 7;
*/
public Builder setDependValue(int value) {
depend_ = value;
onChanged();
return this;
}
/**
* optional .DependenceType depend = 7;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType getDepend() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType.valueOf(depend_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType.UNRECOGNIZED : result;
}
/**
* optional .DependenceType depend = 7;
*/
public Builder setDepend(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.DependenceType value) {
if (value == null) {
throw new NullPointerException();
}
depend_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .DependenceType depend = 7;
*/
public Builder clearDepend() {
depend_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList dependsOn_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDependsOnIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
dependsOn_ = new com.google.protobuf.LazyStringArrayList(dependsOn_);
bitField0_ |= 0x00000080;
}
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public com.google.protobuf.ProtocolStringList
getDependsOnList() {
return dependsOn_.getUnmodifiableView();
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public int getDependsOnCount() {
return dependsOn_.size();
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public java.lang.String getDependsOn(int index) {
return dependsOn_.get(index);
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public com.google.protobuf.ByteString
getDependsOnBytes(int index) {
return dependsOn_.getByteString(index);
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public Builder setDependsOn(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDependsOnIsMutable();
dependsOn_.set(index, value);
onChanged();
return this;
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public Builder addDependsOn(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDependsOnIsMutable();
dependsOn_.add(value);
onChanged();
return this;
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public Builder addAllDependsOn(
java.lang.Iterable values) {
ensureDependsOnIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dependsOn_);
onChanged();
return this;
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public Builder clearDependsOn() {
dependsOn_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* repeated string dependsOn = 8;
*
*
* depends on these axes, only for non-independent axes
*
*/
public Builder addDependsOnBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDependsOnIsMutable();
dependsOn_.add(value);
onChanged();
return this;
}
private java.util.List shape_ = java.util.Collections.emptyList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
shape_ = new java.util.ArrayList(shape_);
bitField0_ |= 0x00000100;
}
}
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public java.util.List
getShapeList() {
return java.util.Collections.unmodifiableList(shape_);
}
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public int getShape(int index) {
return shape_.get(index);
}
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public Builder setShape(
int index, int value) {
ensureShapeIsMutable();
shape_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public Builder addShape(int value) {
ensureShapeIsMutable();
shape_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public Builder addAllShape(
java.lang.Iterable extends java.lang.Integer> values) {
ensureShapeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shape_);
onChanged();
return this;
}
/**
* repeated uint32 shape = 9;
*
*
* the shape of the axis (>1D only)
*
*/
public Builder clearShape() {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
private long nvalues_ ;
/**
* optional int64 nvalues = 10;
*/
public long getNvalues() {
return nvalues_;
}
/**
* optional int64 nvalues = 10;
*/
public Builder setNvalues(long value) {
nvalues_ = value;
onChanged();
return this;
}
/**
* optional int64 nvalues = 10;
*/
public Builder clearNvalues() {
nvalues_ = 0L;
onChanged();
return this;
}
private int spacing_ = 0;
/**
* optional .AxisSpacing spacing = 11;
*/
public int getSpacingValue() {
return spacing_;
}
/**
* optional .AxisSpacing spacing = 11;
*/
public Builder setSpacingValue(int value) {
spacing_ = value;
onChanged();
return this;
}
/**
* optional .AxisSpacing spacing = 11;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing getSpacing() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing.valueOf(spacing_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing.UNRECOGNIZED : result;
}
/**
* optional .AxisSpacing spacing = 11;
*/
public Builder setSpacing(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.AxisSpacing value) {
if (value == null) {
throw new NullPointerException();
}
spacing_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .AxisSpacing spacing = 11;
*/
public Builder clearSpacing() {
spacing_ = 0;
onChanged();
return this;
}
private double startValue_ ;
/**
* optional double startValue = 12;
*/
public double getStartValue() {
return startValue_;
}
/**
* optional double startValue = 12;
*/
public Builder setStartValue(double value) {
startValue_ = value;
onChanged();
return this;
}
/**
* optional double startValue = 12;
*/
public Builder clearStartValue() {
startValue_ = 0D;
onChanged();
return this;
}
private double endValue_ ;
/**
* optional double endValue = 13;
*/
public double getEndValue() {
return endValue_;
}
/**
* optional double endValue = 13;
*/
public Builder setEndValue(double value) {
endValue_ = value;
onChanged();
return this;
}
/**
* optional double endValue = 13;
*/
public Builder clearEndValue() {
endValue_ = 0D;
onChanged();
return this;
}
private double resolution_ ;
/**
* optional double resolution = 14;
*
*
* resolution = (end-start) / (nvalues-1)
*
*/
public double getResolution() {
return resolution_;
}
/**
* optional double resolution = 14;
*
*
* resolution = (end-start) / (nvalues-1)
*
*/
public Builder setResolution(double value) {
resolution_ = value;
onChanged();
return this;
}
/**
* optional double resolution = 14;
*
*
* resolution = (end-start) / (nvalues-1)
*
*/
public Builder clearResolution() {
resolution_ = 0D;
onChanged();
return this;
}
private com.google.protobuf.ByteString values_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes values = 15;
*
*
* big endian doubles; not used for regular, may be deferred
*
*/
public com.google.protobuf.ByteString getValues() {
return values_;
}
/**
* optional bytes values = 15;
*
*
* big endian doubles; not used for regular, may be deferred
*
*/
public Builder setValues(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
values_ = value;
onChanged();
return this;
}
/**
* optional bytes values = 15;
*
*
* big endian doubles; not used for regular, may be deferred
*
*/
public Builder clearValues() {
values_ = getDefaultInstance().getValues();
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:CoordAxis)
}
// @@protoc_insertion_point(class_scope:CoordAxis)
private static final ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis();
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CoordAxis parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CoordAxis(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.ft2.coverage.remote.CdmrFeatureProto.CoordAxis getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CoordSysOrBuilder extends
// @@protoc_insertion_point(interface_extends:CoordSys)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*
*
* must be unique in dataset's CoordSys
*
*/
java.lang.String getName();
/**
* optional string name = 1;
*
*
* must be unique in dataset's CoordSys
*
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* repeated string axisNames = 2;
*/
com.google.protobuf.ProtocolStringList
getAxisNamesList();
/**
* repeated string axisNames = 2;
*/
int getAxisNamesCount();
/**
* repeated string axisNames = 2;
*/
java.lang.String getAxisNames(int index);
/**
* repeated string axisNames = 2;
*/
com.google.protobuf.ByteString
getAxisNamesBytes(int index);
/**
* repeated string transformNames = 3;
*/
com.google.protobuf.ProtocolStringList
getTransformNamesList();
/**
* repeated string transformNames = 3;
*/
int getTransformNamesCount();
/**
* repeated string transformNames = 3;
*/
java.lang.String getTransformNames(int index);
/**
* repeated string transformNames = 3;
*/
com.google.protobuf.ByteString
getTransformNamesBytes(int index);
/**
* optional .CoverageType coverageType = 5;
*/
int getCoverageTypeValue();
/**
* optional .CoverageType coverageType = 5;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType getCoverageType();
}
/**
* Protobuf type {@code CoordSys}
*/
public static final class CoordSys extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CoordSys)
CoordSysOrBuilder {
// Use CoordSys.newBuilder() to construct.
private CoordSys(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CoordSys() {
name_ = "";
axisNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
transformNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
coverageType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CoordSys(
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: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
axisNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
axisNames_.add(s);
break;
}
case 26: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
transformNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
transformNames_.add(s);
break;
}
case 40: {
int rawValue = input.readEnum();
coverageType_ = 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_ & 0x00000002) == 0x00000002)) {
axisNames_ = axisNames_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
transformNames_ = transformNames_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordSys_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordSys_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*
*
* must be unique in dataset's CoordSys
*
*/
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;
*
*
* must be unique in dataset's CoordSys
*
*/
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 AXISNAMES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList axisNames_;
/**
* repeated string axisNames = 2;
*/
public com.google.protobuf.ProtocolStringList
getAxisNamesList() {
return axisNames_;
}
/**
* repeated string axisNames = 2;
*/
public int getAxisNamesCount() {
return axisNames_.size();
}
/**
* repeated string axisNames = 2;
*/
public java.lang.String getAxisNames(int index) {
return axisNames_.get(index);
}
/**
* repeated string axisNames = 2;
*/
public com.google.protobuf.ByteString
getAxisNamesBytes(int index) {
return axisNames_.getByteString(index);
}
public static final int TRANSFORMNAMES_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList transformNames_;
/**
* repeated string transformNames = 3;
*/
public com.google.protobuf.ProtocolStringList
getTransformNamesList() {
return transformNames_;
}
/**
* repeated string transformNames = 3;
*/
public int getTransformNamesCount() {
return transformNames_.size();
}
/**
* repeated string transformNames = 3;
*/
public java.lang.String getTransformNames(int index) {
return transformNames_.get(index);
}
/**
* repeated string transformNames = 3;
*/
public com.google.protobuf.ByteString
getTransformNamesBytes(int index) {
return transformNames_.getByteString(index);
}
public static final int COVERAGETYPE_FIELD_NUMBER = 5;
private int coverageType_;
/**
* optional .CoverageType coverageType = 5;
*/
public int getCoverageTypeValue() {
return coverageType_;
}
/**
* optional .CoverageType coverageType = 5;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType getCoverageType() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.valueOf(coverageType_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.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_);
}
for (int i = 0; i < axisNames_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, axisNames_.getRaw(i));
}
for (int i = 0; i < transformNames_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, transformNames_.getRaw(i));
}
if (coverageType_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.General.getNumber()) {
output.writeEnum(5, coverageType_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
}
{
int dataSize = 0;
for (int i = 0; i < axisNames_.size(); i++) {
dataSize += computeStringSizeNoTag(axisNames_.getRaw(i));
}
size += dataSize;
size += 1 * getAxisNamesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < transformNames_.size(); i++) {
dataSize += computeStringSizeNoTag(transformNames_.getRaw(i));
}
size += dataSize;
size += 1 * getTransformNamesList().size();
}
if (coverageType_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.General.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, coverageType_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys 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.ft2.coverage.remote.CdmrFeatureProto.CoordSys parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys 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.ft2.coverage.remote.CdmrFeatureProto.CoordSys 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 CoordSys}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CoordSys)
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordSys_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordSys_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder.class);
}
// Construct using ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.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_ = "";
axisNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
transformNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
coverageType_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoordSys_descriptor;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys getDefaultInstanceForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.getDefaultInstance();
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys build() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys buildPartial() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys result = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
axisNames_ = axisNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.axisNames_ = axisNames_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
transformNames_ = transformNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.transformNames_ = transformNames_;
result.coverageType_ = coverageType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys) {
return mergeFrom((ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys other) {
if (other == ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.axisNames_.isEmpty()) {
if (axisNames_.isEmpty()) {
axisNames_ = other.axisNames_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAxisNamesIsMutable();
axisNames_.addAll(other.axisNames_);
}
onChanged();
}
if (!other.transformNames_.isEmpty()) {
if (transformNames_.isEmpty()) {
transformNames_ = other.transformNames_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTransformNamesIsMutable();
transformNames_.addAll(other.transformNames_);
}
onChanged();
}
if (other.coverageType_ != 0) {
setCoverageTypeValue(other.getCoverageTypeValue());
}
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.ft2.coverage.remote.CdmrFeatureProto.CoordSys parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*
*
* must be unique in dataset's CoordSys
*
*/
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;
*
*
* must be unique in dataset's CoordSys
*
*/
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;
*
*
* must be unique in dataset's CoordSys
*
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* must be unique in dataset's CoordSys
*
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* must be unique in dataset's CoordSys
*
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList axisNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAxisNamesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
axisNames_ = new com.google.protobuf.LazyStringArrayList(axisNames_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string axisNames = 2;
*/
public com.google.protobuf.ProtocolStringList
getAxisNamesList() {
return axisNames_.getUnmodifiableView();
}
/**
* repeated string axisNames = 2;
*/
public int getAxisNamesCount() {
return axisNames_.size();
}
/**
* repeated string axisNames = 2;
*/
public java.lang.String getAxisNames(int index) {
return axisNames_.get(index);
}
/**
* repeated string axisNames = 2;
*/
public com.google.protobuf.ByteString
getAxisNamesBytes(int index) {
return axisNames_.getByteString(index);
}
/**
* repeated string axisNames = 2;
*/
public Builder setAxisNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAxisNamesIsMutable();
axisNames_.set(index, value);
onChanged();
return this;
}
/**
* repeated string axisNames = 2;
*/
public Builder addAxisNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAxisNamesIsMutable();
axisNames_.add(value);
onChanged();
return this;
}
/**
* repeated string axisNames = 2;
*/
public Builder addAllAxisNames(
java.lang.Iterable values) {
ensureAxisNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, axisNames_);
onChanged();
return this;
}
/**
* repeated string axisNames = 2;
*/
public Builder clearAxisNames() {
axisNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string axisNames = 2;
*/
public Builder addAxisNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAxisNamesIsMutable();
axisNames_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList transformNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTransformNamesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
transformNames_ = new com.google.protobuf.LazyStringArrayList(transformNames_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string transformNames = 3;
*/
public com.google.protobuf.ProtocolStringList
getTransformNamesList() {
return transformNames_.getUnmodifiableView();
}
/**
* repeated string transformNames = 3;
*/
public int getTransformNamesCount() {
return transformNames_.size();
}
/**
* repeated string transformNames = 3;
*/
public java.lang.String getTransformNames(int index) {
return transformNames_.get(index);
}
/**
* repeated string transformNames = 3;
*/
public com.google.protobuf.ByteString
getTransformNamesBytes(int index) {
return transformNames_.getByteString(index);
}
/**
* repeated string transformNames = 3;
*/
public Builder setTransformNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTransformNamesIsMutable();
transformNames_.set(index, value);
onChanged();
return this;
}
/**
* repeated string transformNames = 3;
*/
public Builder addTransformNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTransformNamesIsMutable();
transformNames_.add(value);
onChanged();
return this;
}
/**
* repeated string transformNames = 3;
*/
public Builder addAllTransformNames(
java.lang.Iterable values) {
ensureTransformNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transformNames_);
onChanged();
return this;
}
/**
* repeated string transformNames = 3;
*/
public Builder clearTransformNames() {
transformNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string transformNames = 3;
*/
public Builder addTransformNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTransformNamesIsMutable();
transformNames_.add(value);
onChanged();
return this;
}
private int coverageType_ = 0;
/**
* optional .CoverageType coverageType = 5;
*/
public int getCoverageTypeValue() {
return coverageType_;
}
/**
* optional .CoverageType coverageType = 5;
*/
public Builder setCoverageTypeValue(int value) {
coverageType_ = value;
onChanged();
return this;
}
/**
* optional .CoverageType coverageType = 5;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType getCoverageType() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.valueOf(coverageType_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.UNRECOGNIZED : result;
}
/**
* optional .CoverageType coverageType = 5;
*/
public Builder setCoverageType(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType value) {
if (value == null) {
throw new NullPointerException();
}
coverageType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .CoverageType coverageType = 5;
*/
public Builder clearCoverageType() {
coverageType_ = 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:CoordSys)
}
// @@protoc_insertion_point(class_scope:CoordSys)
private static final ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys();
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CoordSys parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CoordSys(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.ft2.coverage.remote.CdmrFeatureProto.CoordSys getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CalendarDateRangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:CalendarDateRange)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 start = 1;
*/
long getStart();
/**
* optional int64 end = 2;
*/
long getEnd();
/**
* optional .Calendar calendar = 3;
*/
int getCalendarValue();
/**
* optional .Calendar calendar = 3;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar getCalendar();
}
/**
* Protobuf type {@code CalendarDateRange}
*/
public static final class CalendarDateRange extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CalendarDateRange)
CalendarDateRangeOrBuilder {
// Use CalendarDateRange.newBuilder() to construct.
private CalendarDateRange(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CalendarDateRange() {
start_ = 0L;
end_ = 0L;
calendar_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CalendarDateRange(
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.readInt64();
break;
}
case 16: {
end_ = input.readInt64();
break;
}
case 24: {
int rawValue = input.readEnum();
calendar_ = 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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CalendarDateRange_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CalendarDateRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.Builder.class);
}
public static final int START_FIELD_NUMBER = 1;
private long start_;
/**
* optional int64 start = 1;
*/
public long getStart() {
return start_;
}
public static final int END_FIELD_NUMBER = 2;
private long end_;
/**
* optional int64 end = 2;
*/
public long getEnd() {
return end_;
}
public static final int CALENDAR_FIELD_NUMBER = 3;
private int calendar_;
/**
* optional .Calendar calendar = 3;
*/
public int getCalendarValue() {
return calendar_;
}
/**
* optional .Calendar calendar = 3;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar getCalendar() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar.valueOf(calendar_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar.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 (start_ != 0L) {
output.writeInt64(1, start_);
}
if (end_ != 0L) {
output.writeInt64(2, end_);
}
if (calendar_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar.proleptic_gregorian.getNumber()) {
output.writeEnum(3, calendar_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (start_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, start_);
}
if (end_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, end_);
}
if (calendar_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar.proleptic_gregorian.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, calendar_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange 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.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange 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.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange 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 CalendarDateRange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CalendarDateRange)
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CalendarDateRange_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CalendarDateRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.Builder.class);
}
// Construct using ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.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;
end_ = 0L;
calendar_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CalendarDateRange_descriptor;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange getDefaultInstanceForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.getDefaultInstance();
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange build() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange buildPartial() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange result = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange(this);
result.start_ = start_;
result.end_ = end_;
result.calendar_ = calendar_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange) {
return mergeFrom((ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange other) {
if (other == ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.getDefaultInstance()) return this;
if (other.getStart() != 0L) {
setStart(other.getStart());
}
if (other.getEnd() != 0L) {
setEnd(other.getEnd());
}
if (other.calendar_ != 0) {
setCalendarValue(other.getCalendarValue());
}
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.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long start_ ;
/**
* optional int64 start = 1;
*/
public long getStart() {
return start_;
}
/**
* optional int64 start = 1;
*/
public Builder setStart(long value) {
start_ = value;
onChanged();
return this;
}
/**
* optional int64 start = 1;
*/
public Builder clearStart() {
start_ = 0L;
onChanged();
return this;
}
private long end_ ;
/**
* optional int64 end = 2;
*/
public long getEnd() {
return end_;
}
/**
* optional int64 end = 2;
*/
public Builder setEnd(long value) {
end_ = value;
onChanged();
return this;
}
/**
* optional int64 end = 2;
*/
public Builder clearEnd() {
end_ = 0L;
onChanged();
return this;
}
private int calendar_ = 0;
/**
* optional .Calendar calendar = 3;
*/
public int getCalendarValue() {
return calendar_;
}
/**
* optional .Calendar calendar = 3;
*/
public Builder setCalendarValue(int value) {
calendar_ = value;
onChanged();
return this;
}
/**
* optional .Calendar calendar = 3;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar getCalendar() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar.valueOf(calendar_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar.UNRECOGNIZED : result;
}
/**
* optional .Calendar calendar = 3;
*/
public Builder setCalendar(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Calendar value) {
if (value == null) {
throw new NullPointerException();
}
calendar_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Calendar calendar = 3;
*/
public Builder clearCalendar() {
calendar_ = 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:CalendarDateRange)
}
// @@protoc_insertion_point(class_scope:CalendarDateRange)
private static final ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange();
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CalendarDateRange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CalendarDateRange(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.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RectangleOrBuilder extends
// @@protoc_insertion_point(interface_extends:Rectangle)
com.google.protobuf.MessageOrBuilder {
/**
* optional double startx = 1;
*/
double getStartx();
/**
* optional double starty = 2;
*/
double getStarty();
/**
* optional double incx = 3;
*/
double getIncx();
/**
* optional double incy = 4;
*/
double getIncy();
}
/**
* Protobuf type {@code Rectangle}
*/
public static final class Rectangle extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Rectangle)
RectangleOrBuilder {
// Use Rectangle.newBuilder() to construct.
private Rectangle(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Rectangle() {
startx_ = 0D;
starty_ = 0D;
incx_ = 0D;
incy_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Rectangle(
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 9: {
startx_ = input.readDouble();
break;
}
case 17: {
starty_ = input.readDouble();
break;
}
case 25: {
incx_ = input.readDouble();
break;
}
case 33: {
incy_ = input.readDouble();
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.ft2.coverage.remote.CdmrFeatureProto.internal_static_Rectangle_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_Rectangle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder.class);
}
public static final int STARTX_FIELD_NUMBER = 1;
private double startx_;
/**
* optional double startx = 1;
*/
public double getStartx() {
return startx_;
}
public static final int STARTY_FIELD_NUMBER = 2;
private double starty_;
/**
* optional double starty = 2;
*/
public double getStarty() {
return starty_;
}
public static final int INCX_FIELD_NUMBER = 3;
private double incx_;
/**
* optional double incx = 3;
*/
public double getIncx() {
return incx_;
}
public static final int INCY_FIELD_NUMBER = 4;
private double incy_;
/**
* optional double incy = 4;
*/
public double getIncy() {
return incy_;
}
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 (startx_ != 0D) {
output.writeDouble(1, startx_);
}
if (starty_ != 0D) {
output.writeDouble(2, starty_);
}
if (incx_ != 0D) {
output.writeDouble(3, incx_);
}
if (incy_ != 0D) {
output.writeDouble(4, incy_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startx_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, startx_);
}
if (starty_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, starty_);
}
if (incx_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, incx_);
}
if (incy_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, incy_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle 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.ft2.coverage.remote.CdmrFeatureProto.Rectangle parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle 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.ft2.coverage.remote.CdmrFeatureProto.Rectangle 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 Rectangle}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:Rectangle)
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_Rectangle_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_Rectangle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder.class);
}
// Construct using ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.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();
startx_ = 0D;
starty_ = 0D;
incx_ = 0D;
incy_ = 0D;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_Rectangle_descriptor;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle getDefaultInstanceForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.getDefaultInstance();
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle build() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle buildPartial() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle result = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle(this);
result.startx_ = startx_;
result.starty_ = starty_;
result.incx_ = incx_;
result.incy_ = incy_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle) {
return mergeFrom((ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle other) {
if (other == ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.getDefaultInstance()) return this;
if (other.getStartx() != 0D) {
setStartx(other.getStartx());
}
if (other.getStarty() != 0D) {
setStarty(other.getStarty());
}
if (other.getIncx() != 0D) {
setIncx(other.getIncx());
}
if (other.getIncy() != 0D) {
setIncy(other.getIncy());
}
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.ft2.coverage.remote.CdmrFeatureProto.Rectangle parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double startx_ ;
/**
* optional double startx = 1;
*/
public double getStartx() {
return startx_;
}
/**
* optional double startx = 1;
*/
public Builder setStartx(double value) {
startx_ = value;
onChanged();
return this;
}
/**
* optional double startx = 1;
*/
public Builder clearStartx() {
startx_ = 0D;
onChanged();
return this;
}
private double starty_ ;
/**
* optional double starty = 2;
*/
public double getStarty() {
return starty_;
}
/**
* optional double starty = 2;
*/
public Builder setStarty(double value) {
starty_ = value;
onChanged();
return this;
}
/**
* optional double starty = 2;
*/
public Builder clearStarty() {
starty_ = 0D;
onChanged();
return this;
}
private double incx_ ;
/**
* optional double incx = 3;
*/
public double getIncx() {
return incx_;
}
/**
* optional double incx = 3;
*/
public Builder setIncx(double value) {
incx_ = value;
onChanged();
return this;
}
/**
* optional double incx = 3;
*/
public Builder clearIncx() {
incx_ = 0D;
onChanged();
return this;
}
private double incy_ ;
/**
* optional double incy = 4;
*/
public double getIncy() {
return incy_;
}
/**
* optional double incy = 4;
*/
public Builder setIncy(double value) {
incy_ = value;
onChanged();
return this;
}
/**
* optional double incy = 4;
*/
public Builder clearIncy() {
incy_ = 0D;
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:Rectangle)
}
// @@protoc_insertion_point(class_scope:Rectangle)
private static final ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle();
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Rectangle parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Rectangle(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.ft2.coverage.remote.CdmrFeatureProto.Rectangle getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CoverageOrBuilder extends
// @@protoc_insertion_point(interface_extends:Coverage)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*
*
* short name, unique within dataset
*
*/
java.lang.String getName();
/**
* optional string name = 1;
*
*
* short name, unique within dataset
*
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional .DataType dataType = 2;
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 2;
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
/**
* 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 string coordSys = 5;
*/
java.lang.String getCoordSys();
/**
* optional string coordSys = 5;
*/
com.google.protobuf.ByteString
getCoordSysBytes();
/**
* optional string units = 6;
*/
java.lang.String getUnits();
/**
* optional string units = 6;
*/
com.google.protobuf.ByteString
getUnitsBytes();
/**
* optional string description = 7;
*/
java.lang.String getDescription();
/**
* optional string description = 7;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
}
/**
* Protobuf type {@code Coverage}
*/
public static final class Coverage extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Coverage)
CoverageOrBuilder {
// Use Coverage.newBuilder() to construct.
private Coverage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Coverage() {
name_ = "";
dataType_ = 0;
atts_ = java.util.Collections.emptyList();
coordSys_ = "";
units_ = "";
description_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Coverage(
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 34: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
atts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
atts_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Attribute.parser(), extensionRegistry));
break;
}
case 42: {
String s = input.readStringRequireUtf8();
coordSys_ = s;
break;
}
case 50: {
String s = input.readStringRequireUtf8();
units_ = s;
break;
}
case 58: {
String s = input.readStringRequireUtf8();
description_ = 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)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_Coverage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_Coverage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.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, unique within dataset
*
*/
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, unique within dataset
*
*/
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 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 COORDSYS_FIELD_NUMBER = 5;
private volatile java.lang.Object coordSys_;
/**
* optional string coordSys = 5;
*/
public java.lang.String getCoordSys() {
java.lang.Object ref = coordSys_;
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();
coordSys_ = s;
return s;
}
}
/**
* optional string coordSys = 5;
*/
public com.google.protobuf.ByteString
getCoordSysBytes() {
java.lang.Object ref = coordSys_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coordSys_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNITS_FIELD_NUMBER = 6;
private volatile java.lang.Object units_;
/**
* optional string units = 6;
*/
public java.lang.String getUnits() {
java.lang.Object ref = units_;
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();
units_ = s;
return s;
}
}
/**
* optional string units = 6;
*/
public com.google.protobuf.ByteString
getUnitsBytes() {
java.lang.Object ref = units_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
units_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 7;
private volatile java.lang.Object description_;
/**
* optional string description = 7;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
* optional string description = 7;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = 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 < atts_.size(); i++) {
output.writeMessage(4, atts_.get(i));
}
if (!getCoordSysBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, coordSys_);
}
if (!getUnitsBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, units_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, description_);
}
}
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 < atts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, atts_.get(i));
}
if (!getCoordSysBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, coordSys_);
}
if (!getUnitsBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(6, units_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, description_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage 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.ft2.coverage.remote.CdmrFeatureProto.Coverage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage 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.ft2.coverage.remote.CdmrFeatureProto.Coverage 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 Coverage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:Coverage)
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_Coverage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_Coverage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder.class);
}
// Construct using ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAttsFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
dataType_ = 0;
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
attsBuilder_.clear();
}
coordSys_ = "";
units_ = "";
description_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_Coverage_descriptor;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage getDefaultInstanceForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.getDefaultInstance();
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage build() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage buildPartial() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage result = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.dataType_ = dataType_;
if (attsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.atts_ = atts_;
} else {
result.atts_ = attsBuilder_.build();
}
result.coordSys_ = coordSys_;
result.units_ = units_;
result.description_ = description_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage) {
return mergeFrom((ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage other) {
if (other == ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.dataType_ != 0) {
setDataTypeValue(other.getDataTypeValue());
}
if (attsBuilder_ == null) {
if (!other.atts_.isEmpty()) {
if (atts_.isEmpty()) {
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAttsIsMutable();
atts_.addAll(other.atts_);
}
onChanged();
}
} else {
if (!other.atts_.isEmpty()) {
if (attsBuilder_.isEmpty()) {
attsBuilder_.dispose();
attsBuilder_ = null;
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000004);
attsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAttsFieldBuilder() : null;
} else {
attsBuilder_.addAllMessages(other.atts_);
}
}
}
if (!other.getCoordSys().isEmpty()) {
coordSys_ = other.coordSys_;
onChanged();
}
if (!other.getUnits().isEmpty()) {
units_ = other.units_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
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.ft2.coverage.remote.CdmrFeatureProto.Coverage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage) 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, unique within dataset
*
*/
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, unique within dataset
*
*/
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, unique within dataset
*
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name, unique within dataset
*
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*
*
* short name, unique within dataset
*
*/
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 atts_ =
java.util.Collections.emptyList();
private void ensureAttsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
atts_ = new java.util.ArrayList(atts_);
bitField0_ |= 0x00000004;
}
}
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_ & ~0x00000004);
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_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
atts_ = null;
}
return attsBuilder_;
}
private java.lang.Object coordSys_ = "";
/**
* optional string coordSys = 5;
*/
public java.lang.String getCoordSys() {
java.lang.Object ref = coordSys_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
coordSys_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string coordSys = 5;
*/
public com.google.protobuf.ByteString
getCoordSysBytes() {
java.lang.Object ref = coordSys_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coordSys_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string coordSys = 5;
*/
public Builder setCoordSys(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
coordSys_ = value;
onChanged();
return this;
}
/**
* optional string coordSys = 5;
*/
public Builder clearCoordSys() {
coordSys_ = getDefaultInstance().getCoordSys();
onChanged();
return this;
}
/**
* optional string coordSys = 5;
*/
public Builder setCoordSysBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
coordSys_ = value;
onChanged();
return this;
}
private java.lang.Object units_ = "";
/**
* optional string units = 6;
*/
public java.lang.String getUnits() {
java.lang.Object ref = units_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
units_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string units = 6;
*/
public com.google.protobuf.ByteString
getUnitsBytes() {
java.lang.Object ref = units_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
units_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string units = 6;
*/
public Builder setUnits(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
units_ = value;
onChanged();
return this;
}
/**
* optional string units = 6;
*/
public Builder clearUnits() {
units_ = getDefaultInstance().getUnits();
onChanged();
return this;
}
/**
* optional string units = 6;
*/
public Builder setUnitsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
units_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* optional string description = 7;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string description = 7;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string description = 7;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
* optional string description = 7;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* optional string description = 7;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = 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:Coverage)
}
// @@protoc_insertion_point(class_scope:Coverage)
private static final ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage();
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Coverage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Coverage(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.ft2.coverage.remote.CdmrFeatureProto.Coverage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CoverageDatasetOrBuilder extends
// @@protoc_insertion_point(interface_extends:CoverageDataset)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* repeated .Attribute atts = 2;
*/
java.util.List
getAttsList();
/**
* repeated .Attribute atts = 2;
*/
ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index);
/**
* repeated .Attribute atts = 2;
*/
int getAttsCount();
/**
* repeated .Attribute atts = 2;
*/
java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getAttsOrBuilderList();
/**
* repeated .Attribute atts = 2;
*/
ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index);
/**
* optional .Rectangle latlonRect = 3;
*/
boolean hasLatlonRect();
/**
* optional .Rectangle latlonRect = 3;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle getLatlonRect();
/**
* optional .Rectangle latlonRect = 3;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder getLatlonRectOrBuilder();
/**
* optional .Rectangle projRect = 4;
*/
boolean hasProjRect();
/**
* optional .Rectangle projRect = 4;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle getProjRect();
/**
* optional .Rectangle projRect = 4;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder getProjRectOrBuilder();
/**
* optional .CalendarDateRange dateRange = 5;
*/
boolean hasDateRange();
/**
* optional .CalendarDateRange dateRange = 5;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange getDateRange();
/**
* optional .CalendarDateRange dateRange = 5;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRangeOrBuilder getDateRangeOrBuilder();
/**
* repeated .CoordSys coordSys = 6;
*/
java.util.List
getCoordSysList();
/**
* repeated .CoordSys coordSys = 6;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys getCoordSys(int index);
/**
* repeated .CoordSys coordSys = 6;
*/
int getCoordSysCount();
/**
* repeated .CoordSys coordSys = 6;
*/
java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>
getCoordSysOrBuilderList();
/**
* repeated .CoordSys coordSys = 6;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder getCoordSysOrBuilder(
int index);
/**
* repeated .CoordTransform coordTransforms = 7;
*/
java.util.List
getCoordTransformsList();
/**
* repeated .CoordTransform coordTransforms = 7;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform getCoordTransforms(int index);
/**
* repeated .CoordTransform coordTransforms = 7;
*/
int getCoordTransformsCount();
/**
* repeated .CoordTransform coordTransforms = 7;
*/
java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>
getCoordTransformsOrBuilderList();
/**
* repeated .CoordTransform coordTransforms = 7;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder getCoordTransformsOrBuilder(
int index);
/**
* repeated .CoordAxis coordAxes = 8;
*/
java.util.List
getCoordAxesList();
/**
* repeated .CoordAxis coordAxes = 8;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis getCoordAxes(int index);
/**
* repeated .CoordAxis coordAxes = 8;
*/
int getCoordAxesCount();
/**
* repeated .CoordAxis coordAxes = 8;
*/
java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>
getCoordAxesOrBuilderList();
/**
* repeated .CoordAxis coordAxes = 8;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder getCoordAxesOrBuilder(
int index);
/**
* repeated .Coverage grids = 9;
*/
java.util.List
getGridsList();
/**
* repeated .Coverage grids = 9;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage getGrids(int index);
/**
* repeated .Coverage grids = 9;
*/
int getGridsCount();
/**
* repeated .Coverage grids = 9;
*/
java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder>
getGridsOrBuilderList();
/**
* repeated .Coverage grids = 9;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder getGridsOrBuilder(
int index);
/**
* optional .CoverageType coverageType = 10;
*/
int getCoverageTypeValue();
/**
* optional .CoverageType coverageType = 10;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType getCoverageType();
}
/**
* Protobuf type {@code CoverageDataset}
*/
public static final class CoverageDataset extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CoverageDataset)
CoverageDatasetOrBuilder {
// Use CoverageDataset.newBuilder() to construct.
private CoverageDataset(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CoverageDataset() {
name_ = "";
atts_ = java.util.Collections.emptyList();
coordSys_ = java.util.Collections.emptyList();
coordTransforms_ = java.util.Collections.emptyList();
coordAxes_ = java.util.Collections.emptyList();
grids_ = java.util.Collections.emptyList();
coverageType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CoverageDataset(
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)) {
atts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
atts_.add(input.readMessage(ucar.nc2.stream.NcStreamProto.Attribute.parser(), extensionRegistry));
break;
}
case 26: {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder subBuilder = null;
if (latlonRect_ != null) {
subBuilder = latlonRect_.toBuilder();
}
latlonRect_ = input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(latlonRect_);
latlonRect_ = subBuilder.buildPartial();
}
break;
}
case 34: {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder subBuilder = null;
if (projRect_ != null) {
subBuilder = projRect_.toBuilder();
}
projRect_ = input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(projRect_);
projRect_ = subBuilder.buildPartial();
}
break;
}
case 42: {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.Builder subBuilder = null;
if (dateRange_ != null) {
subBuilder = dateRange_.toBuilder();
}
dateRange_ = input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dateRange_);
dateRange_ = subBuilder.buildPartial();
}
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
coordSys_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
coordSys_.add(input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
coordTransforms_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
coordTransforms_.add(input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.parser(), extensionRegistry));
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
coordAxes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
coordAxes_.add(input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.parser(), extensionRegistry));
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
grids_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
grids_.add(input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.parser(), extensionRegistry));
break;
}
case 80: {
int rawValue = input.readEnum();
coverageType_ = 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_ & 0x00000002) == 0x00000002)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
coordSys_ = java.util.Collections.unmodifiableList(coordSys_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
coordTransforms_ = java.util.Collections.unmodifiableList(coordTransforms_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
coordAxes_ = java.util.Collections.unmodifiableList(coordAxes_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
grids_ = java.util.Collections.unmodifiableList(grids_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataset_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset.Builder.class);
}
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 ATTS_FIELD_NUMBER = 2;
private java.util.List atts_;
/**
* repeated .Attribute atts = 2;
*/
public java.util.List getAttsList() {
return atts_;
}
/**
* repeated .Attribute atts = 2;
*/
public java.util.List extends ucar.nc2.stream.NcStreamProto.AttributeOrBuilder>
getAttsOrBuilderList() {
return atts_;
}
/**
* repeated .Attribute atts = 2;
*/
public int getAttsCount() {
return atts_.size();
}
/**
* repeated .Attribute atts = 2;
*/
public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) {
return atts_.get(index);
}
/**
* repeated .Attribute atts = 2;
*/
public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
return atts_.get(index);
}
public static final int LATLONRECT_FIELD_NUMBER = 3;
private ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle latlonRect_;
/**
* optional .Rectangle latlonRect = 3;
*/
public boolean hasLatlonRect() {
return latlonRect_ != null;
}
/**
* optional .Rectangle latlonRect = 3;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle getLatlonRect() {
return latlonRect_ == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.getDefaultInstance() : latlonRect_;
}
/**
* optional .Rectangle latlonRect = 3;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder getLatlonRectOrBuilder() {
return getLatlonRect();
}
public static final int PROJRECT_FIELD_NUMBER = 4;
private ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle projRect_;
/**
* optional .Rectangle projRect = 4;
*/
public boolean hasProjRect() {
return projRect_ != null;
}
/**
* optional .Rectangle projRect = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle getProjRect() {
return projRect_ == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.getDefaultInstance() : projRect_;
}
/**
* optional .Rectangle projRect = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder getProjRectOrBuilder() {
return getProjRect();
}
public static final int DATERANGE_FIELD_NUMBER = 5;
private ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange dateRange_;
/**
* optional .CalendarDateRange dateRange = 5;
*/
public boolean hasDateRange() {
return dateRange_ != null;
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange getDateRange() {
return dateRange_ == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.getDefaultInstance() : dateRange_;
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRangeOrBuilder getDateRangeOrBuilder() {
return getDateRange();
}
public static final int COORDSYS_FIELD_NUMBER = 6;
private java.util.List coordSys_;
/**
* repeated .CoordSys coordSys = 6;
*/
public java.util.List getCoordSysList() {
return coordSys_;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>
getCoordSysOrBuilderList() {
return coordSys_;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public int getCoordSysCount() {
return coordSys_.size();
}
/**
* repeated .CoordSys coordSys = 6;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys getCoordSys(int index) {
return coordSys_.get(index);
}
/**
* repeated .CoordSys coordSys = 6;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder getCoordSysOrBuilder(
int index) {
return coordSys_.get(index);
}
public static final int COORDTRANSFORMS_FIELD_NUMBER = 7;
private java.util.List coordTransforms_;
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public java.util.List getCoordTransformsList() {
return coordTransforms_;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>
getCoordTransformsOrBuilderList() {
return coordTransforms_;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public int getCoordTransformsCount() {
return coordTransforms_.size();
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform getCoordTransforms(int index) {
return coordTransforms_.get(index);
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder getCoordTransformsOrBuilder(
int index) {
return coordTransforms_.get(index);
}
public static final int COORDAXES_FIELD_NUMBER = 8;
private java.util.List coordAxes_;
/**
* repeated .CoordAxis coordAxes = 8;
*/
public java.util.List getCoordAxesList() {
return coordAxes_;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>
getCoordAxesOrBuilderList() {
return coordAxes_;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public int getCoordAxesCount() {
return coordAxes_.size();
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis getCoordAxes(int index) {
return coordAxes_.get(index);
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder getCoordAxesOrBuilder(
int index) {
return coordAxes_.get(index);
}
public static final int GRIDS_FIELD_NUMBER = 9;
private java.util.List grids_;
/**
* repeated .Coverage grids = 9;
*/
public java.util.List getGridsList() {
return grids_;
}
/**
* repeated .Coverage grids = 9;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder>
getGridsOrBuilderList() {
return grids_;
}
/**
* repeated .Coverage grids = 9;
*/
public int getGridsCount() {
return grids_.size();
}
/**
* repeated .Coverage grids = 9;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage getGrids(int index) {
return grids_.get(index);
}
/**
* repeated .Coverage grids = 9;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder getGridsOrBuilder(
int index) {
return grids_.get(index);
}
public static final int COVERAGETYPE_FIELD_NUMBER = 10;
private int coverageType_;
/**
* optional .CoverageType coverageType = 10;
*/
public int getCoverageTypeValue() {
return coverageType_;
}
/**
* optional .CoverageType coverageType = 10;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType getCoverageType() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.valueOf(coverageType_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.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_);
}
for (int i = 0; i < atts_.size(); i++) {
output.writeMessage(2, atts_.get(i));
}
if (latlonRect_ != null) {
output.writeMessage(3, getLatlonRect());
}
if (projRect_ != null) {
output.writeMessage(4, getProjRect());
}
if (dateRange_ != null) {
output.writeMessage(5, getDateRange());
}
for (int i = 0; i < coordSys_.size(); i++) {
output.writeMessage(6, coordSys_.get(i));
}
for (int i = 0; i < coordTransforms_.size(); i++) {
output.writeMessage(7, coordTransforms_.get(i));
}
for (int i = 0; i < coordAxes_.size(); i++) {
output.writeMessage(8, coordAxes_.get(i));
}
for (int i = 0; i < grids_.size(); i++) {
output.writeMessage(9, grids_.get(i));
}
if (coverageType_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.General.getNumber()) {
output.writeEnum(10, coverageType_);
}
}
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 < atts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, atts_.get(i));
}
if (latlonRect_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLatlonRect());
}
if (projRect_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getProjRect());
}
if (dateRange_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDateRange());
}
for (int i = 0; i < coordSys_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, coordSys_.get(i));
}
for (int i = 0; i < coordTransforms_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, coordTransforms_.get(i));
}
for (int i = 0; i < coordAxes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, coordAxes_.get(i));
}
for (int i = 0; i < grids_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, grids_.get(i));
}
if (coverageType_ != ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.General.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, coverageType_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset 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.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset 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.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset 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 CoverageDataset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CoverageDataset)
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDatasetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataset_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset.Builder.class);
}
// Construct using ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAttsFieldBuilder();
getCoordSysFieldBuilder();
getCoordTransformsFieldBuilder();
getCoordAxesFieldBuilder();
getGridsFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
attsBuilder_.clear();
}
if (latlonRectBuilder_ == null) {
latlonRect_ = null;
} else {
latlonRect_ = null;
latlonRectBuilder_ = null;
}
if (projRectBuilder_ == null) {
projRect_ = null;
} else {
projRect_ = null;
projRectBuilder_ = null;
}
if (dateRangeBuilder_ == null) {
dateRange_ = null;
} else {
dateRange_ = null;
dateRangeBuilder_ = null;
}
if (coordSysBuilder_ == null) {
coordSys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
coordSysBuilder_.clear();
}
if (coordTransformsBuilder_ == null) {
coordTransforms_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
coordTransformsBuilder_.clear();
}
if (coordAxesBuilder_ == null) {
coordAxes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
coordAxesBuilder_.clear();
}
if (gridsBuilder_ == null) {
grids_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
gridsBuilder_.clear();
}
coverageType_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataset_descriptor;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset getDefaultInstanceForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset.getDefaultInstance();
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset build() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset buildPartial() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset result = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (attsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
atts_ = java.util.Collections.unmodifiableList(atts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.atts_ = atts_;
} else {
result.atts_ = attsBuilder_.build();
}
if (latlonRectBuilder_ == null) {
result.latlonRect_ = latlonRect_;
} else {
result.latlonRect_ = latlonRectBuilder_.build();
}
if (projRectBuilder_ == null) {
result.projRect_ = projRect_;
} else {
result.projRect_ = projRectBuilder_.build();
}
if (dateRangeBuilder_ == null) {
result.dateRange_ = dateRange_;
} else {
result.dateRange_ = dateRangeBuilder_.build();
}
if (coordSysBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
coordSys_ = java.util.Collections.unmodifiableList(coordSys_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.coordSys_ = coordSys_;
} else {
result.coordSys_ = coordSysBuilder_.build();
}
if (coordTransformsBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
coordTransforms_ = java.util.Collections.unmodifiableList(coordTransforms_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.coordTransforms_ = coordTransforms_;
} else {
result.coordTransforms_ = coordTransformsBuilder_.build();
}
if (coordAxesBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080)) {
coordAxes_ = java.util.Collections.unmodifiableList(coordAxes_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.coordAxes_ = coordAxes_;
} else {
result.coordAxes_ = coordAxesBuilder_.build();
}
if (gridsBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100)) {
grids_ = java.util.Collections.unmodifiableList(grids_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.grids_ = grids_;
} else {
result.grids_ = gridsBuilder_.build();
}
result.coverageType_ = coverageType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset) {
return mergeFrom((ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset other) {
if (other == ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (attsBuilder_ == null) {
if (!other.atts_.isEmpty()) {
if (atts_.isEmpty()) {
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAttsIsMutable();
atts_.addAll(other.atts_);
}
onChanged();
}
} else {
if (!other.atts_.isEmpty()) {
if (attsBuilder_.isEmpty()) {
attsBuilder_.dispose();
attsBuilder_ = null;
atts_ = other.atts_;
bitField0_ = (bitField0_ & ~0x00000002);
attsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAttsFieldBuilder() : null;
} else {
attsBuilder_.addAllMessages(other.atts_);
}
}
}
if (other.hasLatlonRect()) {
mergeLatlonRect(other.getLatlonRect());
}
if (other.hasProjRect()) {
mergeProjRect(other.getProjRect());
}
if (other.hasDateRange()) {
mergeDateRange(other.getDateRange());
}
if (coordSysBuilder_ == null) {
if (!other.coordSys_.isEmpty()) {
if (coordSys_.isEmpty()) {
coordSys_ = other.coordSys_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCoordSysIsMutable();
coordSys_.addAll(other.coordSys_);
}
onChanged();
}
} else {
if (!other.coordSys_.isEmpty()) {
if (coordSysBuilder_.isEmpty()) {
coordSysBuilder_.dispose();
coordSysBuilder_ = null;
coordSys_ = other.coordSys_;
bitField0_ = (bitField0_ & ~0x00000020);
coordSysBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCoordSysFieldBuilder() : null;
} else {
coordSysBuilder_.addAllMessages(other.coordSys_);
}
}
}
if (coordTransformsBuilder_ == null) {
if (!other.coordTransforms_.isEmpty()) {
if (coordTransforms_.isEmpty()) {
coordTransforms_ = other.coordTransforms_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureCoordTransformsIsMutable();
coordTransforms_.addAll(other.coordTransforms_);
}
onChanged();
}
} else {
if (!other.coordTransforms_.isEmpty()) {
if (coordTransformsBuilder_.isEmpty()) {
coordTransformsBuilder_.dispose();
coordTransformsBuilder_ = null;
coordTransforms_ = other.coordTransforms_;
bitField0_ = (bitField0_ & ~0x00000040);
coordTransformsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCoordTransformsFieldBuilder() : null;
} else {
coordTransformsBuilder_.addAllMessages(other.coordTransforms_);
}
}
}
if (coordAxesBuilder_ == null) {
if (!other.coordAxes_.isEmpty()) {
if (coordAxes_.isEmpty()) {
coordAxes_ = other.coordAxes_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureCoordAxesIsMutable();
coordAxes_.addAll(other.coordAxes_);
}
onChanged();
}
} else {
if (!other.coordAxes_.isEmpty()) {
if (coordAxesBuilder_.isEmpty()) {
coordAxesBuilder_.dispose();
coordAxesBuilder_ = null;
coordAxes_ = other.coordAxes_;
bitField0_ = (bitField0_ & ~0x00000080);
coordAxesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCoordAxesFieldBuilder() : null;
} else {
coordAxesBuilder_.addAllMessages(other.coordAxes_);
}
}
}
if (gridsBuilder_ == null) {
if (!other.grids_.isEmpty()) {
if (grids_.isEmpty()) {
grids_ = other.grids_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureGridsIsMutable();
grids_.addAll(other.grids_);
}
onChanged();
}
} else {
if (!other.grids_.isEmpty()) {
if (gridsBuilder_.isEmpty()) {
gridsBuilder_.dispose();
gridsBuilder_ = null;
grids_ = other.grids_;
bitField0_ = (bitField0_ & ~0x00000100);
gridsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getGridsFieldBuilder() : null;
} else {
gridsBuilder_.addAllMessages(other.grids_);
}
}
}
if (other.coverageType_ != 0) {
setCoverageTypeValue(other.getCoverageTypeValue());
}
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.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset) 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 atts_ =
java.util.Collections.emptyList();
private void ensureAttsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
atts_ = new java.util.ArrayList(atts_);
bitField0_ |= 0x00000002;
}
}
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 = 2;
*/
public java.util.List getAttsList() {
if (attsBuilder_ == null) {
return java.util.Collections.unmodifiableList(atts_);
} else {
return attsBuilder_.getMessageList();
}
}
/**
* repeated .Attribute atts = 2;
*/
public int getAttsCount() {
if (attsBuilder_ == null) {
return atts_.size();
} else {
return attsBuilder_.getCount();
}
}
/**
* repeated .Attribute atts = 2;
*/
public ucar.nc2.stream.NcStreamProto.Attribute getAtts(int index) {
if (attsBuilder_ == null) {
return atts_.get(index);
} else {
return attsBuilder_.getMessage(index);
}
}
/**
* repeated .Attribute atts = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
public Builder clearAtts() {
if (attsBuilder_ == null) {
atts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
attsBuilder_.clear();
}
return this;
}
/**
* repeated .Attribute atts = 2;
*/
public Builder removeAtts(int index) {
if (attsBuilder_ == null) {
ensureAttsIsMutable();
atts_.remove(index);
onChanged();
} else {
attsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Attribute atts = 2;
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Builder getAttsBuilder(
int index) {
return getAttsFieldBuilder().getBuilder(index);
}
/**
* repeated .Attribute atts = 2;
*/
public ucar.nc2.stream.NcStreamProto.AttributeOrBuilder getAttsOrBuilder(
int index) {
if (attsBuilder_ == null) {
return atts_.get(index); } else {
return attsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Attribute atts = 2;
*/
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 = 2;
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder() {
return getAttsFieldBuilder().addBuilder(
ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance());
}
/**
* repeated .Attribute atts = 2;
*/
public ucar.nc2.stream.NcStreamProto.Attribute.Builder addAttsBuilder(
int index) {
return getAttsFieldBuilder().addBuilder(
index, ucar.nc2.stream.NcStreamProto.Attribute.getDefaultInstance());
}
/**
* repeated .Attribute atts = 2;
*/
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_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
atts_ = null;
}
return attsBuilder_;
}
private ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle latlonRect_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder> latlonRectBuilder_;
/**
* optional .Rectangle latlonRect = 3;
*/
public boolean hasLatlonRect() {
return latlonRectBuilder_ != null || latlonRect_ != null;
}
/**
* optional .Rectangle latlonRect = 3;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle getLatlonRect() {
if (latlonRectBuilder_ == null) {
return latlonRect_ == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.getDefaultInstance() : latlonRect_;
} else {
return latlonRectBuilder_.getMessage();
}
}
/**
* optional .Rectangle latlonRect = 3;
*/
public Builder setLatlonRect(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle value) {
if (latlonRectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
latlonRect_ = value;
onChanged();
} else {
latlonRectBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Rectangle latlonRect = 3;
*/
public Builder setLatlonRect(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder builderForValue) {
if (latlonRectBuilder_ == null) {
latlonRect_ = builderForValue.build();
onChanged();
} else {
latlonRectBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Rectangle latlonRect = 3;
*/
public Builder mergeLatlonRect(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle value) {
if (latlonRectBuilder_ == null) {
if (latlonRect_ != null) {
latlonRect_ =
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.newBuilder(latlonRect_).mergeFrom(value).buildPartial();
} else {
latlonRect_ = value;
}
onChanged();
} else {
latlonRectBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Rectangle latlonRect = 3;
*/
public Builder clearLatlonRect() {
if (latlonRectBuilder_ == null) {
latlonRect_ = null;
onChanged();
} else {
latlonRect_ = null;
latlonRectBuilder_ = null;
}
return this;
}
/**
* optional .Rectangle latlonRect = 3;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder getLatlonRectBuilder() {
onChanged();
return getLatlonRectFieldBuilder().getBuilder();
}
/**
* optional .Rectangle latlonRect = 3;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder getLatlonRectOrBuilder() {
if (latlonRectBuilder_ != null) {
return latlonRectBuilder_.getMessageOrBuilder();
} else {
return latlonRect_ == null ?
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.getDefaultInstance() : latlonRect_;
}
}
/**
* optional .Rectangle latlonRect = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder>
getLatlonRectFieldBuilder() {
if (latlonRectBuilder_ == null) {
latlonRectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder>(
getLatlonRect(),
getParentForChildren(),
isClean());
latlonRect_ = null;
}
return latlonRectBuilder_;
}
private ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle projRect_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder> projRectBuilder_;
/**
* optional .Rectangle projRect = 4;
*/
public boolean hasProjRect() {
return projRectBuilder_ != null || projRect_ != null;
}
/**
* optional .Rectangle projRect = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle getProjRect() {
if (projRectBuilder_ == null) {
return projRect_ == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.getDefaultInstance() : projRect_;
} else {
return projRectBuilder_.getMessage();
}
}
/**
* optional .Rectangle projRect = 4;
*/
public Builder setProjRect(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle value) {
if (projRectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
projRect_ = value;
onChanged();
} else {
projRectBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Rectangle projRect = 4;
*/
public Builder setProjRect(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder builderForValue) {
if (projRectBuilder_ == null) {
projRect_ = builderForValue.build();
onChanged();
} else {
projRectBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Rectangle projRect = 4;
*/
public Builder mergeProjRect(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle value) {
if (projRectBuilder_ == null) {
if (projRect_ != null) {
projRect_ =
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.newBuilder(projRect_).mergeFrom(value).buildPartial();
} else {
projRect_ = value;
}
onChanged();
} else {
projRectBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Rectangle projRect = 4;
*/
public Builder clearProjRect() {
if (projRectBuilder_ == null) {
projRect_ = null;
onChanged();
} else {
projRect_ = null;
projRectBuilder_ = null;
}
return this;
}
/**
* optional .Rectangle projRect = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder getProjRectBuilder() {
onChanged();
return getProjRectFieldBuilder().getBuilder();
}
/**
* optional .Rectangle projRect = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder getProjRectOrBuilder() {
if (projRectBuilder_ != null) {
return projRectBuilder_.getMessageOrBuilder();
} else {
return projRect_ == null ?
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.getDefaultInstance() : projRect_;
}
}
/**
* optional .Rectangle projRect = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder>
getProjRectFieldBuilder() {
if (projRectBuilder_ == null) {
projRectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Rectangle.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.RectangleOrBuilder>(
getProjRect(),
getParentForChildren(),
isClean());
projRect_ = null;
}
return projRectBuilder_;
}
private ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange dateRange_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRangeOrBuilder> dateRangeBuilder_;
/**
* optional .CalendarDateRange dateRange = 5;
*/
public boolean hasDateRange() {
return dateRangeBuilder_ != null || dateRange_ != null;
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange getDateRange() {
if (dateRangeBuilder_ == null) {
return dateRange_ == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.getDefaultInstance() : dateRange_;
} else {
return dateRangeBuilder_.getMessage();
}
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
public Builder setDateRange(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange value) {
if (dateRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dateRange_ = value;
onChanged();
} else {
dateRangeBuilder_.setMessage(value);
}
return this;
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
public Builder setDateRange(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.Builder builderForValue) {
if (dateRangeBuilder_ == null) {
dateRange_ = builderForValue.build();
onChanged();
} else {
dateRangeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
public Builder mergeDateRange(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange value) {
if (dateRangeBuilder_ == null) {
if (dateRange_ != null) {
dateRange_ =
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.newBuilder(dateRange_).mergeFrom(value).buildPartial();
} else {
dateRange_ = value;
}
onChanged();
} else {
dateRangeBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
public Builder clearDateRange() {
if (dateRangeBuilder_ == null) {
dateRange_ = null;
onChanged();
} else {
dateRange_ = null;
dateRangeBuilder_ = null;
}
return this;
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.Builder getDateRangeBuilder() {
onChanged();
return getDateRangeFieldBuilder().getBuilder();
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRangeOrBuilder getDateRangeOrBuilder() {
if (dateRangeBuilder_ != null) {
return dateRangeBuilder_.getMessageOrBuilder();
} else {
return dateRange_ == null ?
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.getDefaultInstance() : dateRange_;
}
}
/**
* optional .CalendarDateRange dateRange = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRangeOrBuilder>
getDateRangeFieldBuilder() {
if (dateRangeBuilder_ == null) {
dateRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRange.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CalendarDateRangeOrBuilder>(
getDateRange(),
getParentForChildren(),
isClean());
dateRange_ = null;
}
return dateRangeBuilder_;
}
private java.util.List coordSys_ =
java.util.Collections.emptyList();
private void ensureCoordSysIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
coordSys_ = new java.util.ArrayList(coordSys_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder> coordSysBuilder_;
/**
* repeated .CoordSys coordSys = 6;
*/
public java.util.List getCoordSysList() {
if (coordSysBuilder_ == null) {
return java.util.Collections.unmodifiableList(coordSys_);
} else {
return coordSysBuilder_.getMessageList();
}
}
/**
* repeated .CoordSys coordSys = 6;
*/
public int getCoordSysCount() {
if (coordSysBuilder_ == null) {
return coordSys_.size();
} else {
return coordSysBuilder_.getCount();
}
}
/**
* repeated .CoordSys coordSys = 6;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys getCoordSys(int index) {
if (coordSysBuilder_ == null) {
return coordSys_.get(index);
} else {
return coordSysBuilder_.getMessage(index);
}
}
/**
* repeated .CoordSys coordSys = 6;
*/
public Builder setCoordSys(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys value) {
if (coordSysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordSysIsMutable();
coordSys_.set(index, value);
onChanged();
} else {
coordSysBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public Builder setCoordSys(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder builderForValue) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
coordSys_.set(index, builderForValue.build());
onChanged();
} else {
coordSysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public Builder addCoordSys(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys value) {
if (coordSysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordSysIsMutable();
coordSys_.add(value);
onChanged();
} else {
coordSysBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public Builder addCoordSys(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys value) {
if (coordSysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordSysIsMutable();
coordSys_.add(index, value);
onChanged();
} else {
coordSysBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public Builder addCoordSys(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder builderForValue) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
coordSys_.add(builderForValue.build());
onChanged();
} else {
coordSysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public Builder addCoordSys(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder builderForValue) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
coordSys_.add(index, builderForValue.build());
onChanged();
} else {
coordSysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public Builder addAllCoordSys(
java.lang.Iterable extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys> values) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coordSys_);
onChanged();
} else {
coordSysBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public Builder clearCoordSys() {
if (coordSysBuilder_ == null) {
coordSys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
coordSysBuilder_.clear();
}
return this;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public Builder removeCoordSys(int index) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
coordSys_.remove(index);
onChanged();
} else {
coordSysBuilder_.remove(index);
}
return this;
}
/**
* repeated .CoordSys coordSys = 6;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder getCoordSysBuilder(
int index) {
return getCoordSysFieldBuilder().getBuilder(index);
}
/**
* repeated .CoordSys coordSys = 6;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder getCoordSysOrBuilder(
int index) {
if (coordSysBuilder_ == null) {
return coordSys_.get(index); } else {
return coordSysBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .CoordSys coordSys = 6;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>
getCoordSysOrBuilderList() {
if (coordSysBuilder_ != null) {
return coordSysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(coordSys_);
}
}
/**
* repeated .CoordSys coordSys = 6;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder addCoordSysBuilder() {
return getCoordSysFieldBuilder().addBuilder(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.getDefaultInstance());
}
/**
* repeated .CoordSys coordSys = 6;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder addCoordSysBuilder(
int index) {
return getCoordSysFieldBuilder().addBuilder(
index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.getDefaultInstance());
}
/**
* repeated .CoordSys coordSys = 6;
*/
public java.util.List
getCoordSysBuilderList() {
return getCoordSysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>
getCoordSysFieldBuilder() {
if (coordSysBuilder_ == null) {
coordSysBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>(
coordSys_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
coordSys_ = null;
}
return coordSysBuilder_;
}
private java.util.List coordTransforms_ =
java.util.Collections.emptyList();
private void ensureCoordTransformsIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
coordTransforms_ = new java.util.ArrayList(coordTransforms_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder> coordTransformsBuilder_;
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public java.util.List getCoordTransformsList() {
if (coordTransformsBuilder_ == null) {
return java.util.Collections.unmodifiableList(coordTransforms_);
} else {
return coordTransformsBuilder_.getMessageList();
}
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public int getCoordTransformsCount() {
if (coordTransformsBuilder_ == null) {
return coordTransforms_.size();
} else {
return coordTransformsBuilder_.getCount();
}
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform getCoordTransforms(int index) {
if (coordTransformsBuilder_ == null) {
return coordTransforms_.get(index);
} else {
return coordTransformsBuilder_.getMessage(index);
}
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public Builder setCoordTransforms(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform value) {
if (coordTransformsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordTransformsIsMutable();
coordTransforms_.set(index, value);
onChanged();
} else {
coordTransformsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public Builder setCoordTransforms(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder builderForValue) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
coordTransforms_.set(index, builderForValue.build());
onChanged();
} else {
coordTransformsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public Builder addCoordTransforms(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform value) {
if (coordTransformsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordTransformsIsMutable();
coordTransforms_.add(value);
onChanged();
} else {
coordTransformsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public Builder addCoordTransforms(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform value) {
if (coordTransformsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordTransformsIsMutable();
coordTransforms_.add(index, value);
onChanged();
} else {
coordTransformsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public Builder addCoordTransforms(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder builderForValue) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
coordTransforms_.add(builderForValue.build());
onChanged();
} else {
coordTransformsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public Builder addCoordTransforms(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder builderForValue) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
coordTransforms_.add(index, builderForValue.build());
onChanged();
} else {
coordTransformsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public Builder addAllCoordTransforms(
java.lang.Iterable extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform> values) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coordTransforms_);
onChanged();
} else {
coordTransformsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public Builder clearCoordTransforms() {
if (coordTransformsBuilder_ == null) {
coordTransforms_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
coordTransformsBuilder_.clear();
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public Builder removeCoordTransforms(int index) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
coordTransforms_.remove(index);
onChanged();
} else {
coordTransformsBuilder_.remove(index);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder getCoordTransformsBuilder(
int index) {
return getCoordTransformsFieldBuilder().getBuilder(index);
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder getCoordTransformsOrBuilder(
int index) {
if (coordTransformsBuilder_ == null) {
return coordTransforms_.get(index); } else {
return coordTransformsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>
getCoordTransformsOrBuilderList() {
if (coordTransformsBuilder_ != null) {
return coordTransformsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(coordTransforms_);
}
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder addCoordTransformsBuilder() {
return getCoordTransformsFieldBuilder().addBuilder(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.getDefaultInstance());
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder addCoordTransformsBuilder(
int index) {
return getCoordTransformsFieldBuilder().addBuilder(
index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.getDefaultInstance());
}
/**
* repeated .CoordTransform coordTransforms = 7;
*/
public java.util.List
getCoordTransformsBuilderList() {
return getCoordTransformsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>
getCoordTransformsFieldBuilder() {
if (coordTransformsBuilder_ == null) {
coordTransformsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>(
coordTransforms_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
isClean());
coordTransforms_ = null;
}
return coordTransformsBuilder_;
}
private java.util.List coordAxes_ =
java.util.Collections.emptyList();
private void ensureCoordAxesIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
coordAxes_ = new java.util.ArrayList(coordAxes_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder> coordAxesBuilder_;
/**
* repeated .CoordAxis coordAxes = 8;
*/
public java.util.List getCoordAxesList() {
if (coordAxesBuilder_ == null) {
return java.util.Collections.unmodifiableList(coordAxes_);
} else {
return coordAxesBuilder_.getMessageList();
}
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public int getCoordAxesCount() {
if (coordAxesBuilder_ == null) {
return coordAxes_.size();
} else {
return coordAxesBuilder_.getCount();
}
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis getCoordAxes(int index) {
if (coordAxesBuilder_ == null) {
return coordAxes_.get(index);
} else {
return coordAxesBuilder_.getMessage(index);
}
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public Builder setCoordAxes(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis value) {
if (coordAxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordAxesIsMutable();
coordAxes_.set(index, value);
onChanged();
} else {
coordAxesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public Builder setCoordAxes(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder builderForValue) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
coordAxes_.set(index, builderForValue.build());
onChanged();
} else {
coordAxesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public Builder addCoordAxes(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis value) {
if (coordAxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordAxesIsMutable();
coordAxes_.add(value);
onChanged();
} else {
coordAxesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public Builder addCoordAxes(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis value) {
if (coordAxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordAxesIsMutable();
coordAxes_.add(index, value);
onChanged();
} else {
coordAxesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public Builder addCoordAxes(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder builderForValue) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
coordAxes_.add(builderForValue.build());
onChanged();
} else {
coordAxesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public Builder addCoordAxes(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder builderForValue) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
coordAxes_.add(index, builderForValue.build());
onChanged();
} else {
coordAxesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public Builder addAllCoordAxes(
java.lang.Iterable extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis> values) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coordAxes_);
onChanged();
} else {
coordAxesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public Builder clearCoordAxes() {
if (coordAxesBuilder_ == null) {
coordAxes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
coordAxesBuilder_.clear();
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public Builder removeCoordAxes(int index) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
coordAxes_.remove(index);
onChanged();
} else {
coordAxesBuilder_.remove(index);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder getCoordAxesBuilder(
int index) {
return getCoordAxesFieldBuilder().getBuilder(index);
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder getCoordAxesOrBuilder(
int index) {
if (coordAxesBuilder_ == null) {
return coordAxes_.get(index); } else {
return coordAxesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>
getCoordAxesOrBuilderList() {
if (coordAxesBuilder_ != null) {
return coordAxesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(coordAxes_);
}
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder addCoordAxesBuilder() {
return getCoordAxesFieldBuilder().addBuilder(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.getDefaultInstance());
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder addCoordAxesBuilder(
int index) {
return getCoordAxesFieldBuilder().addBuilder(
index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.getDefaultInstance());
}
/**
* repeated .CoordAxis coordAxes = 8;
*/
public java.util.List
getCoordAxesBuilderList() {
return getCoordAxesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>
getCoordAxesFieldBuilder() {
if (coordAxesBuilder_ == null) {
coordAxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>(
coordAxes_,
((bitField0_ & 0x00000080) == 0x00000080),
getParentForChildren(),
isClean());
coordAxes_ = null;
}
return coordAxesBuilder_;
}
private java.util.List grids_ =
java.util.Collections.emptyList();
private void ensureGridsIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
grids_ = new java.util.ArrayList(grids_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder> gridsBuilder_;
/**
* repeated .Coverage grids = 9;
*/
public java.util.List getGridsList() {
if (gridsBuilder_ == null) {
return java.util.Collections.unmodifiableList(grids_);
} else {
return gridsBuilder_.getMessageList();
}
}
/**
* repeated .Coverage grids = 9;
*/
public int getGridsCount() {
if (gridsBuilder_ == null) {
return grids_.size();
} else {
return gridsBuilder_.getCount();
}
}
/**
* repeated .Coverage grids = 9;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage getGrids(int index) {
if (gridsBuilder_ == null) {
return grids_.get(index);
} else {
return gridsBuilder_.getMessage(index);
}
}
/**
* repeated .Coverage grids = 9;
*/
public Builder setGrids(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage value) {
if (gridsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGridsIsMutable();
grids_.set(index, value);
onChanged();
} else {
gridsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Coverage grids = 9;
*/
public Builder setGrids(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder builderForValue) {
if (gridsBuilder_ == null) {
ensureGridsIsMutable();
grids_.set(index, builderForValue.build());
onChanged();
} else {
gridsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Coverage grids = 9;
*/
public Builder addGrids(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage value) {
if (gridsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGridsIsMutable();
grids_.add(value);
onChanged();
} else {
gridsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Coverage grids = 9;
*/
public Builder addGrids(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage value) {
if (gridsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGridsIsMutable();
grids_.add(index, value);
onChanged();
} else {
gridsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Coverage grids = 9;
*/
public Builder addGrids(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder builderForValue) {
if (gridsBuilder_ == null) {
ensureGridsIsMutable();
grids_.add(builderForValue.build());
onChanged();
} else {
gridsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Coverage grids = 9;
*/
public Builder addGrids(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder builderForValue) {
if (gridsBuilder_ == null) {
ensureGridsIsMutable();
grids_.add(index, builderForValue.build());
onChanged();
} else {
gridsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Coverage grids = 9;
*/
public Builder addAllGrids(
java.lang.Iterable extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage> values) {
if (gridsBuilder_ == null) {
ensureGridsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, grids_);
onChanged();
} else {
gridsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Coverage grids = 9;
*/
public Builder clearGrids() {
if (gridsBuilder_ == null) {
grids_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
gridsBuilder_.clear();
}
return this;
}
/**
* repeated .Coverage grids = 9;
*/
public Builder removeGrids(int index) {
if (gridsBuilder_ == null) {
ensureGridsIsMutable();
grids_.remove(index);
onChanged();
} else {
gridsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Coverage grids = 9;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder getGridsBuilder(
int index) {
return getGridsFieldBuilder().getBuilder(index);
}
/**
* repeated .Coverage grids = 9;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder getGridsOrBuilder(
int index) {
if (gridsBuilder_ == null) {
return grids_.get(index); } else {
return gridsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Coverage grids = 9;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder>
getGridsOrBuilderList() {
if (gridsBuilder_ != null) {
return gridsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(grids_);
}
}
/**
* repeated .Coverage grids = 9;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder addGridsBuilder() {
return getGridsFieldBuilder().addBuilder(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.getDefaultInstance());
}
/**
* repeated .Coverage grids = 9;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder addGridsBuilder(
int index) {
return getGridsFieldBuilder().addBuilder(
index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.getDefaultInstance());
}
/**
* repeated .Coverage grids = 9;
*/
public java.util.List
getGridsBuilderList() {
return getGridsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder>
getGridsFieldBuilder() {
if (gridsBuilder_ == null) {
gridsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageOrBuilder>(
grids_,
((bitField0_ & 0x00000100) == 0x00000100),
getParentForChildren(),
isClean());
grids_ = null;
}
return gridsBuilder_;
}
private int coverageType_ = 0;
/**
* optional .CoverageType coverageType = 10;
*/
public int getCoverageTypeValue() {
return coverageType_;
}
/**
* optional .CoverageType coverageType = 10;
*/
public Builder setCoverageTypeValue(int value) {
coverageType_ = value;
onChanged();
return this;
}
/**
* optional .CoverageType coverageType = 10;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType getCoverageType() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType result = ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.valueOf(coverageType_);
return result == null ? ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType.UNRECOGNIZED : result;
}
/**
* optional .CoverageType coverageType = 10;
*/
public Builder setCoverageType(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageType value) {
if (value == null) {
throw new NullPointerException();
}
coverageType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .CoverageType coverageType = 10;
*/
public Builder clearCoverageType() {
coverageType_ = 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:CoverageDataset)
}
// @@protoc_insertion_point(class_scope:CoverageDataset)
private static final ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset();
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CoverageDataset parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CoverageDataset(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.ft2.coverage.remote.CdmrFeatureProto.CoverageDataset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GeoReferencedArrayOrBuilder extends
// @@protoc_insertion_point(interface_extends:GeoReferencedArray)
com.google.protobuf.MessageOrBuilder {
/**
* optional string coverageName = 1;
*
*
* full escaped name.
*
*/
java.lang.String getCoverageName();
/**
* optional string coverageName = 1;
*
*
* full escaped name.
*
*/
com.google.protobuf.ByteString
getCoverageNameBytes();
/**
* optional .DataType dataType = 2;
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 2;
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
/**
* optional bool bigend = 3;
*/
boolean getBigend();
/**
* optional uint32 version = 4;
*
*
* set to >= 3 for proto3
*
*/
int getVersion();
/**
* optional .Compress compress = 5;
*/
int getCompressValue();
/**
* optional .Compress compress = 5;
*/
ucar.nc2.stream.NcStreamProto.Compress getCompress();
/**
* optional uint64 uncompressedSize = 6;
*/
long getUncompressedSize();
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
java.util.List getShapeList();
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
int getShapeCount();
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
int getShape(int index);
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
com.google.protobuf.ProtocolStringList
getAxisNameList();
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
int getAxisNameCount();
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
java.lang.String getAxisName(int index);
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
com.google.protobuf.ByteString
getAxisNameBytes(int index);
/**
* optional string coordSysName = 9;
*
*
* must have coordAxes corresponding to shape
*
*/
java.lang.String getCoordSysName();
/**
* optional string coordSysName = 9;
*
*
* must have coordAxes corresponding to shape
*
*/
com.google.protobuf.ByteString
getCoordSysNameBytes();
/**
* optional bytes primdata = 10;
*
*
* rectangular, primitive array
*
*/
com.google.protobuf.ByteString getPrimdata();
}
/**
* Protobuf type {@code GeoReferencedArray}
*/
public static final class GeoReferencedArray extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GeoReferencedArray)
GeoReferencedArrayOrBuilder {
// Use GeoReferencedArray.newBuilder() to construct.
private GeoReferencedArray(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private GeoReferencedArray() {
coverageName_ = "";
dataType_ = 0;
bigend_ = false;
version_ = 0;
compress_ = 0;
uncompressedSize_ = 0L;
shape_ = java.util.Collections.emptyList();
axisName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
coordSysName_ = "";
primdata_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private GeoReferencedArray(
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();
coverageName_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 24: {
bigend_ = input.readBool();
break;
}
case 32: {
version_ = input.readUInt32();
break;
}
case 40: {
int rawValue = input.readEnum();
compress_ = rawValue;
break;
}
case 48: {
uncompressedSize_ = input.readUInt64();
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
shape_.add(input.readUInt32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
shape_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
shape_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 66: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
axisName_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000080;
}
axisName_.add(s);
break;
}
case 74: {
String s = input.readStringRequireUtf8();
coordSysName_ = s;
break;
}
case 82: {
primdata_ = input.readBytes();
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_ & 0x00000040) == 0x00000040)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
axisName_ = axisName_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_GeoReferencedArray_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_GeoReferencedArray_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder.class);
}
private int bitField0_;
public static final int COVERAGENAME_FIELD_NUMBER = 1;
private volatile java.lang.Object coverageName_;
/**
* optional string coverageName = 1;
*
*
* full escaped name.
*
*/
public java.lang.String getCoverageName() {
java.lang.Object ref = coverageName_;
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();
coverageName_ = s;
return s;
}
}
/**
* optional string coverageName = 1;
*
*
* full escaped name.
*
*/
public com.google.protobuf.ByteString
getCoverageNameBytes() {
java.lang.Object ref = coverageName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coverageName_ = 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 BIGEND_FIELD_NUMBER = 3;
private boolean bigend_;
/**
* optional bool bigend = 3;
*/
public boolean getBigend() {
return bigend_;
}
public static final int VERSION_FIELD_NUMBER = 4;
private int version_;
/**
* optional uint32 version = 4;
*
*
* set to >= 3 for proto3
*
*/
public int getVersion() {
return version_;
}
public static final int COMPRESS_FIELD_NUMBER = 5;
private int compress_;
/**
* optional .Compress compress = 5;
*/
public int getCompressValue() {
return compress_;
}
/**
* optional .Compress compress = 5;
*/
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 UNCOMPRESSEDSIZE_FIELD_NUMBER = 6;
private long uncompressedSize_;
/**
* optional uint64 uncompressedSize = 6;
*/
public long getUncompressedSize() {
return uncompressedSize_;
}
public static final int SHAPE_FIELD_NUMBER = 7;
private java.util.List shape_;
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public java.util.List
getShapeList() {
return shape_;
}
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public int getShape(int index) {
return shape_.get(index);
}
private int shapeMemoizedSerializedSize = -1;
public static final int AXISNAME_FIELD_NUMBER = 8;
private com.google.protobuf.LazyStringList axisName_;
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public com.google.protobuf.ProtocolStringList
getAxisNameList() {
return axisName_;
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public int getAxisNameCount() {
return axisName_.size();
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public java.lang.String getAxisName(int index) {
return axisName_.get(index);
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public com.google.protobuf.ByteString
getAxisNameBytes(int index) {
return axisName_.getByteString(index);
}
public static final int COORDSYSNAME_FIELD_NUMBER = 9;
private volatile java.lang.Object coordSysName_;
/**
* optional string coordSysName = 9;
*
*
* must have coordAxes corresponding to shape
*
*/
public java.lang.String getCoordSysName() {
java.lang.Object ref = coordSysName_;
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();
coordSysName_ = s;
return s;
}
}
/**
* optional string coordSysName = 9;
*
*
* must have coordAxes corresponding to shape
*
*/
public com.google.protobuf.ByteString
getCoordSysNameBytes() {
java.lang.Object ref = coordSysName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coordSysName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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_;
}
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 (!getCoverageNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, coverageName_);
}
if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) {
output.writeEnum(2, dataType_);
}
if (bigend_ != false) {
output.writeBool(3, bigend_);
}
if (version_ != 0) {
output.writeUInt32(4, version_);
}
if (compress_ != ucar.nc2.stream.NcStreamProto.Compress.NONE.getNumber()) {
output.writeEnum(5, compress_);
}
if (uncompressedSize_ != 0L) {
output.writeUInt64(6, uncompressedSize_);
}
if (getShapeList().size() > 0) {
output.writeRawVarint32(58);
output.writeRawVarint32(shapeMemoizedSerializedSize);
}
for (int i = 0; i < shape_.size(); i++) {
output.writeUInt32NoTag(shape_.get(i));
}
for (int i = 0; i < axisName_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 8, axisName_.getRaw(i));
}
if (!getCoordSysNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 9, coordSysName_);
}
if (!primdata_.isEmpty()) {
output.writeBytes(10, primdata_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCoverageNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, coverageName_);
}
if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, dataType_);
}
if (bigend_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, bigend_);
}
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, version_);
}
if (compress_ != ucar.nc2.stream.NcStreamProto.Compress.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, compress_);
}
if (uncompressedSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, uncompressedSize_);
}
{
int dataSize = 0;
for (int i = 0; i < shape_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(shape_.get(i));
}
size += dataSize;
if (!getShapeList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
shapeMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < axisName_.size(); i++) {
dataSize += computeStringSizeNoTag(axisName_.getRaw(i));
}
size += dataSize;
size += 1 * getAxisNameList().size();
}
if (!getCoordSysNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(9, coordSysName_);
}
if (!primdata_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, primdata_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray 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.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray 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.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray 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 GeoReferencedArray}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:GeoReferencedArray)
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_GeoReferencedArray_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_GeoReferencedArray_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder.class);
}
// Construct using ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.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();
coverageName_ = "";
dataType_ = 0;
bigend_ = false;
version_ = 0;
compress_ = 0;
uncompressedSize_ = 0L;
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
axisName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000080);
coordSysName_ = "";
primdata_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_GeoReferencedArray_descriptor;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray getDefaultInstanceForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.getDefaultInstance();
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray build() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray buildPartial() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray result = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.coverageName_ = coverageName_;
result.dataType_ = dataType_;
result.bigend_ = bigend_;
result.version_ = version_;
result.compress_ = compress_;
result.uncompressedSize_ = uncompressedSize_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.shape_ = shape_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
axisName_ = axisName_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000080);
}
result.axisName_ = axisName_;
result.coordSysName_ = coordSysName_;
result.primdata_ = primdata_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray) {
return mergeFrom((ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray other) {
if (other == ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.getDefaultInstance()) return this;
if (!other.getCoverageName().isEmpty()) {
coverageName_ = other.coverageName_;
onChanged();
}
if (other.dataType_ != 0) {
setDataTypeValue(other.getDataTypeValue());
}
if (other.getBigend() != false) {
setBigend(other.getBigend());
}
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.compress_ != 0) {
setCompressValue(other.getCompressValue());
}
if (other.getUncompressedSize() != 0L) {
setUncompressedSize(other.getUncompressedSize());
}
if (!other.shape_.isEmpty()) {
if (shape_.isEmpty()) {
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureShapeIsMutable();
shape_.addAll(other.shape_);
}
onChanged();
}
if (!other.axisName_.isEmpty()) {
if (axisName_.isEmpty()) {
axisName_ = other.axisName_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureAxisNameIsMutable();
axisName_.addAll(other.axisName_);
}
onChanged();
}
if (!other.getCoordSysName().isEmpty()) {
coordSysName_ = other.coordSysName_;
onChanged();
}
if (other.getPrimdata() != com.google.protobuf.ByteString.EMPTY) {
setPrimdata(other.getPrimdata());
}
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.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object coverageName_ = "";
/**
* optional string coverageName = 1;
*
*
* full escaped name.
*
*/
public java.lang.String getCoverageName() {
java.lang.Object ref = coverageName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
coverageName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string coverageName = 1;
*
*
* full escaped name.
*
*/
public com.google.protobuf.ByteString
getCoverageNameBytes() {
java.lang.Object ref = coverageName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coverageName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string coverageName = 1;
*
*
* full escaped name.
*
*/
public Builder setCoverageName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
coverageName_ = value;
onChanged();
return this;
}
/**
* optional string coverageName = 1;
*
*
* full escaped name.
*
*/
public Builder clearCoverageName() {
coverageName_ = getDefaultInstance().getCoverageName();
onChanged();
return this;
}
/**
* optional string coverageName = 1;
*
*
* full escaped name.
*
*/
public Builder setCoverageNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
coverageName_ = 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 boolean bigend_ ;
/**
* optional bool bigend = 3;
*/
public boolean getBigend() {
return bigend_;
}
/**
* optional bool bigend = 3;
*/
public Builder setBigend(boolean value) {
bigend_ = value;
onChanged();
return this;
}
/**
* optional bool bigend = 3;
*/
public Builder clearBigend() {
bigend_ = false;
onChanged();
return this;
}
private int version_ ;
/**
* optional uint32 version = 4;
*
*
* set to >= 3 for proto3
*
*/
public int getVersion() {
return version_;
}
/**
* optional uint32 version = 4;
*
*
* set to >= 3 for proto3
*
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* optional uint32 version = 4;
*
*
* set to >= 3 for proto3
*
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private int compress_ = 0;
/**
* optional .Compress compress = 5;
*/
public int getCompressValue() {
return compress_;
}
/**
* optional .Compress compress = 5;
*/
public Builder setCompressValue(int value) {
compress_ = value;
onChanged();
return this;
}
/**
* optional .Compress compress = 5;
*/
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 = 5;
*/
public Builder setCompress(ucar.nc2.stream.NcStreamProto.Compress value) {
if (value == null) {
throw new NullPointerException();
}
compress_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Compress compress = 5;
*/
public Builder clearCompress() {
compress_ = 0;
onChanged();
return this;
}
private long uncompressedSize_ ;
/**
* optional uint64 uncompressedSize = 6;
*/
public long getUncompressedSize() {
return uncompressedSize_;
}
/**
* optional uint64 uncompressedSize = 6;
*/
public Builder setUncompressedSize(long value) {
uncompressedSize_ = value;
onChanged();
return this;
}
/**
* optional uint64 uncompressedSize = 6;
*/
public Builder clearUncompressedSize() {
uncompressedSize_ = 0L;
onChanged();
return this;
}
private java.util.List shape_ = java.util.Collections.emptyList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
shape_ = new java.util.ArrayList(shape_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public java.util.List
getShapeList() {
return java.util.Collections.unmodifiableList(shape_);
}
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public int getShapeCount() {
return shape_.size();
}
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public int getShape(int index) {
return shape_.get(index);
}
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public Builder setShape(
int index, int value) {
ensureShapeIsMutable();
shape_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public Builder addShape(int value) {
ensureShapeIsMutable();
shape_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public Builder addAllShape(
java.lang.Iterable extends java.lang.Integer> values) {
ensureShapeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shape_);
onChanged();
return this;
}
/**
* repeated uint32 shape = 7;
*
*
* the shape of the returned array
*
*/
public Builder clearShape() {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList axisName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAxisNameIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
axisName_ = new com.google.protobuf.LazyStringArrayList(axisName_);
bitField0_ |= 0x00000080;
}
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public com.google.protobuf.ProtocolStringList
getAxisNameList() {
return axisName_.getUnmodifiableView();
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public int getAxisNameCount() {
return axisName_.size();
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public java.lang.String getAxisName(int index) {
return axisName_.get(index);
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public com.google.protobuf.ByteString
getAxisNameBytes(int index) {
return axisName_.getByteString(index);
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public Builder setAxisName(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAxisNameIsMutable();
axisName_.set(index, value);
onChanged();
return this;
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public Builder addAxisName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAxisNameIsMutable();
axisName_.add(value);
onChanged();
return this;
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public Builder addAllAxisName(
java.lang.Iterable values) {
ensureAxisNameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, axisName_);
onChanged();
return this;
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public Builder clearAxisName() {
axisName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* repeated string axisName = 8;
*
*
* each dimension corresponds to this axis
*
*/
public Builder addAxisNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAxisNameIsMutable();
axisName_.add(value);
onChanged();
return this;
}
private java.lang.Object coordSysName_ = "";
/**
* optional string coordSysName = 9;
*
*
* must have coordAxes corresponding to shape
*
*/
public java.lang.String getCoordSysName() {
java.lang.Object ref = coordSysName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
coordSysName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string coordSysName = 9;
*
*
* must have coordAxes corresponding to shape
*
*/
public com.google.protobuf.ByteString
getCoordSysNameBytes() {
java.lang.Object ref = coordSysName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coordSysName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string coordSysName = 9;
*
*
* must have coordAxes corresponding to shape
*
*/
public Builder setCoordSysName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
coordSysName_ = value;
onChanged();
return this;
}
/**
* optional string coordSysName = 9;
*
*
* must have coordAxes corresponding to shape
*
*/
public Builder clearCoordSysName() {
coordSysName_ = getDefaultInstance().getCoordSysName();
onChanged();
return this;
}
/**
* optional string coordSysName = 9;
*
*
* must have coordAxes corresponding to shape
*
*/
public Builder setCoordSysNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
coordSysName_ = value;
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;
}
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:GeoReferencedArray)
}
// @@protoc_insertion_point(class_scope:GeoReferencedArray)
private static final ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray();
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GeoReferencedArray parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new GeoReferencedArray(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.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CoverageDataResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:CoverageDataResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
java.util.List
getCoordAxesList();
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis getCoordAxes(int index);
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
int getCoordAxesCount();
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>
getCoordAxesOrBuilderList();
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder getCoordAxesOrBuilder(
int index);
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
java.util.List
getCoordSysList();
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys getCoordSys(int index);
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
int getCoordSysCount();
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>
getCoordSysOrBuilderList();
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder getCoordSysOrBuilder(
int index);
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
java.util.List
getCoordTransformsList();
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform getCoordTransforms(int index);
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
int getCoordTransformsCount();
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>
getCoordTransformsOrBuilderList();
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder getCoordTransformsOrBuilder(
int index);
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
java.util.List
getGeoArrayList();
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray getGeoArray(int index);
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
int getGeoArrayCount();
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder>
getGeoArrayOrBuilderList();
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder getGeoArrayOrBuilder(
int index);
}
/**
* Protobuf type {@code CoverageDataResponse}
*/
public static final class CoverageDataResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:CoverageDataResponse)
CoverageDataResponseOrBuilder {
// Use CoverageDataResponse.newBuilder() to construct.
private CoverageDataResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CoverageDataResponse() {
coordAxes_ = java.util.Collections.emptyList();
coordSys_ = java.util.Collections.emptyList();
coordTransforms_ = java.util.Collections.emptyList();
geoArray_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CoverageDataResponse(
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)) {
coordAxes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
coordAxes_.add(input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
coordSys_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
coordSys_.add(input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
coordTransforms_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
coordTransforms_.add(input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
geoArray_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
geoArray_.add(input.readMessage(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.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)) {
coordAxes_ = java.util.Collections.unmodifiableList(coordAxes_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
coordSys_ = java.util.Collections.unmodifiableList(coordSys_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
coordTransforms_ = java.util.Collections.unmodifiableList(coordTransforms_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
geoArray_ = java.util.Collections.unmodifiableList(geoArray_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse.Builder.class);
}
public static final int COORDAXES_FIELD_NUMBER = 1;
private java.util.List coordAxes_;
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public java.util.List getCoordAxesList() {
return coordAxes_;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>
getCoordAxesOrBuilderList() {
return coordAxes_;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public int getCoordAxesCount() {
return coordAxes_.size();
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis getCoordAxes(int index) {
return coordAxes_.get(index);
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder getCoordAxesOrBuilder(
int index) {
return coordAxes_.get(index);
}
public static final int COORDSYS_FIELD_NUMBER = 2;
private java.util.List coordSys_;
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public java.util.List getCoordSysList() {
return coordSys_;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>
getCoordSysOrBuilderList() {
return coordSys_;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public int getCoordSysCount() {
return coordSys_.size();
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys getCoordSys(int index) {
return coordSys_.get(index);
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder getCoordSysOrBuilder(
int index) {
return coordSys_.get(index);
}
public static final int COORDTRANSFORMS_FIELD_NUMBER = 3;
private java.util.List coordTransforms_;
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public java.util.List getCoordTransformsList() {
return coordTransforms_;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>
getCoordTransformsOrBuilderList() {
return coordTransforms_;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public int getCoordTransformsCount() {
return coordTransforms_.size();
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform getCoordTransforms(int index) {
return coordTransforms_.get(index);
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder getCoordTransformsOrBuilder(
int index) {
return coordTransforms_.get(index);
}
public static final int GEOARRAY_FIELD_NUMBER = 4;
private java.util.List geoArray_;
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public java.util.List getGeoArrayList() {
return geoArray_;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder>
getGeoArrayOrBuilderList() {
return geoArray_;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public int getGeoArrayCount() {
return geoArray_.size();
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray getGeoArray(int index) {
return geoArray_.get(index);
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder getGeoArrayOrBuilder(
int index) {
return geoArray_.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 < coordAxes_.size(); i++) {
output.writeMessage(1, coordAxes_.get(i));
}
for (int i = 0; i < coordSys_.size(); i++) {
output.writeMessage(2, coordSys_.get(i));
}
for (int i = 0; i < coordTransforms_.size(); i++) {
output.writeMessage(3, coordTransforms_.get(i));
}
for (int i = 0; i < geoArray_.size(); i++) {
output.writeMessage(4, geoArray_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < coordAxes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, coordAxes_.get(i));
}
for (int i = 0; i < coordSys_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, coordSys_.get(i));
}
for (int i = 0; i < coordTransforms_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, coordTransforms_.get(i));
}
for (int i = 0; i < geoArray_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, geoArray_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse 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.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse 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.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse 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 CoverageDataResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:CoverageDataResponse)
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse.class, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse.Builder.class);
}
// Construct using ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getCoordAxesFieldBuilder();
getCoordSysFieldBuilder();
getCoordTransformsFieldBuilder();
getGeoArrayFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (coordAxesBuilder_ == null) {
coordAxes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
coordAxesBuilder_.clear();
}
if (coordSysBuilder_ == null) {
coordSys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
coordSysBuilder_.clear();
}
if (coordTransformsBuilder_ == null) {
coordTransforms_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
coordTransformsBuilder_.clear();
}
if (geoArrayBuilder_ == null) {
geoArray_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
geoArrayBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.internal_static_CoverageDataResponse_descriptor;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse getDefaultInstanceForType() {
return ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse.getDefaultInstance();
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse build() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse buildPartial() {
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse result = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse(this);
int from_bitField0_ = bitField0_;
if (coordAxesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
coordAxes_ = java.util.Collections.unmodifiableList(coordAxes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.coordAxes_ = coordAxes_;
} else {
result.coordAxes_ = coordAxesBuilder_.build();
}
if (coordSysBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
coordSys_ = java.util.Collections.unmodifiableList(coordSys_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.coordSys_ = coordSys_;
} else {
result.coordSys_ = coordSysBuilder_.build();
}
if (coordTransformsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
coordTransforms_ = java.util.Collections.unmodifiableList(coordTransforms_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.coordTransforms_ = coordTransforms_;
} else {
result.coordTransforms_ = coordTransformsBuilder_.build();
}
if (geoArrayBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
geoArray_ = java.util.Collections.unmodifiableList(geoArray_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.geoArray_ = geoArray_;
} else {
result.geoArray_ = geoArrayBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse) {
return mergeFrom((ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse other) {
if (other == ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse.getDefaultInstance()) return this;
if (coordAxesBuilder_ == null) {
if (!other.coordAxes_.isEmpty()) {
if (coordAxes_.isEmpty()) {
coordAxes_ = other.coordAxes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCoordAxesIsMutable();
coordAxes_.addAll(other.coordAxes_);
}
onChanged();
}
} else {
if (!other.coordAxes_.isEmpty()) {
if (coordAxesBuilder_.isEmpty()) {
coordAxesBuilder_.dispose();
coordAxesBuilder_ = null;
coordAxes_ = other.coordAxes_;
bitField0_ = (bitField0_ & ~0x00000001);
coordAxesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCoordAxesFieldBuilder() : null;
} else {
coordAxesBuilder_.addAllMessages(other.coordAxes_);
}
}
}
if (coordSysBuilder_ == null) {
if (!other.coordSys_.isEmpty()) {
if (coordSys_.isEmpty()) {
coordSys_ = other.coordSys_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCoordSysIsMutable();
coordSys_.addAll(other.coordSys_);
}
onChanged();
}
} else {
if (!other.coordSys_.isEmpty()) {
if (coordSysBuilder_.isEmpty()) {
coordSysBuilder_.dispose();
coordSysBuilder_ = null;
coordSys_ = other.coordSys_;
bitField0_ = (bitField0_ & ~0x00000002);
coordSysBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCoordSysFieldBuilder() : null;
} else {
coordSysBuilder_.addAllMessages(other.coordSys_);
}
}
}
if (coordTransformsBuilder_ == null) {
if (!other.coordTransforms_.isEmpty()) {
if (coordTransforms_.isEmpty()) {
coordTransforms_ = other.coordTransforms_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureCoordTransformsIsMutable();
coordTransforms_.addAll(other.coordTransforms_);
}
onChanged();
}
} else {
if (!other.coordTransforms_.isEmpty()) {
if (coordTransformsBuilder_.isEmpty()) {
coordTransformsBuilder_.dispose();
coordTransformsBuilder_ = null;
coordTransforms_ = other.coordTransforms_;
bitField0_ = (bitField0_ & ~0x00000004);
coordTransformsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCoordTransformsFieldBuilder() : null;
} else {
coordTransformsBuilder_.addAllMessages(other.coordTransforms_);
}
}
}
if (geoArrayBuilder_ == null) {
if (!other.geoArray_.isEmpty()) {
if (geoArray_.isEmpty()) {
geoArray_ = other.geoArray_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureGeoArrayIsMutable();
geoArray_.addAll(other.geoArray_);
}
onChanged();
}
} else {
if (!other.geoArray_.isEmpty()) {
if (geoArrayBuilder_.isEmpty()) {
geoArrayBuilder_.dispose();
geoArrayBuilder_ = null;
geoArray_ = other.geoArray_;
bitField0_ = (bitField0_ & ~0x00000008);
geoArrayBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getGeoArrayFieldBuilder() : null;
} else {
geoArrayBuilder_.addAllMessages(other.geoArray_);
}
}
}
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.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List coordAxes_ =
java.util.Collections.emptyList();
private void ensureCoordAxesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
coordAxes_ = new java.util.ArrayList(coordAxes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder> coordAxesBuilder_;
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public java.util.List getCoordAxesList() {
if (coordAxesBuilder_ == null) {
return java.util.Collections.unmodifiableList(coordAxes_);
} else {
return coordAxesBuilder_.getMessageList();
}
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public int getCoordAxesCount() {
if (coordAxesBuilder_ == null) {
return coordAxes_.size();
} else {
return coordAxesBuilder_.getCount();
}
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis getCoordAxes(int index) {
if (coordAxesBuilder_ == null) {
return coordAxes_.get(index);
} else {
return coordAxesBuilder_.getMessage(index);
}
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public Builder setCoordAxes(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis value) {
if (coordAxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordAxesIsMutable();
coordAxes_.set(index, value);
onChanged();
} else {
coordAxesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public Builder setCoordAxes(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder builderForValue) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
coordAxes_.set(index, builderForValue.build());
onChanged();
} else {
coordAxesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public Builder addCoordAxes(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis value) {
if (coordAxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordAxesIsMutable();
coordAxes_.add(value);
onChanged();
} else {
coordAxesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public Builder addCoordAxes(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis value) {
if (coordAxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordAxesIsMutable();
coordAxes_.add(index, value);
onChanged();
} else {
coordAxesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public Builder addCoordAxes(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder builderForValue) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
coordAxes_.add(builderForValue.build());
onChanged();
} else {
coordAxesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public Builder addCoordAxes(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder builderForValue) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
coordAxes_.add(index, builderForValue.build());
onChanged();
} else {
coordAxesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public Builder addAllCoordAxes(
java.lang.Iterable extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis> values) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coordAxes_);
onChanged();
} else {
coordAxesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public Builder clearCoordAxes() {
if (coordAxesBuilder_ == null) {
coordAxes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
coordAxesBuilder_.clear();
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public Builder removeCoordAxes(int index) {
if (coordAxesBuilder_ == null) {
ensureCoordAxesIsMutable();
coordAxes_.remove(index);
onChanged();
} else {
coordAxesBuilder_.remove(index);
}
return this;
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder getCoordAxesBuilder(
int index) {
return getCoordAxesFieldBuilder().getBuilder(index);
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder getCoordAxesOrBuilder(
int index) {
if (coordAxesBuilder_ == null) {
return coordAxes_.get(index); } else {
return coordAxesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>
getCoordAxesOrBuilderList() {
if (coordAxesBuilder_ != null) {
return coordAxesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(coordAxes_);
}
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder addCoordAxesBuilder() {
return getCoordAxesFieldBuilder().addBuilder(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.getDefaultInstance());
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder addCoordAxesBuilder(
int index) {
return getCoordAxesFieldBuilder().addBuilder(
index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.getDefaultInstance());
}
/**
* repeated .CoordAxis coordAxes = 1;
*
*
* may be shared if asking for multiple grids
*
*/
public java.util.List
getCoordAxesBuilderList() {
return getCoordAxesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>
getCoordAxesFieldBuilder() {
if (coordAxesBuilder_ == null) {
coordAxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxis.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordAxisOrBuilder>(
coordAxes_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
coordAxes_ = null;
}
return coordAxesBuilder_;
}
private java.util.List coordSys_ =
java.util.Collections.emptyList();
private void ensureCoordSysIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
coordSys_ = new java.util.ArrayList(coordSys_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder> coordSysBuilder_;
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public java.util.List getCoordSysList() {
if (coordSysBuilder_ == null) {
return java.util.Collections.unmodifiableList(coordSys_);
} else {
return coordSysBuilder_.getMessageList();
}
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public int getCoordSysCount() {
if (coordSysBuilder_ == null) {
return coordSys_.size();
} else {
return coordSysBuilder_.getCount();
}
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys getCoordSys(int index) {
if (coordSysBuilder_ == null) {
return coordSys_.get(index);
} else {
return coordSysBuilder_.getMessage(index);
}
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public Builder setCoordSys(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys value) {
if (coordSysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordSysIsMutable();
coordSys_.set(index, value);
onChanged();
} else {
coordSysBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public Builder setCoordSys(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder builderForValue) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
coordSys_.set(index, builderForValue.build());
onChanged();
} else {
coordSysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public Builder addCoordSys(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys value) {
if (coordSysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordSysIsMutable();
coordSys_.add(value);
onChanged();
} else {
coordSysBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public Builder addCoordSys(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys value) {
if (coordSysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordSysIsMutable();
coordSys_.add(index, value);
onChanged();
} else {
coordSysBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public Builder addCoordSys(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder builderForValue) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
coordSys_.add(builderForValue.build());
onChanged();
} else {
coordSysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public Builder addCoordSys(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder builderForValue) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
coordSys_.add(index, builderForValue.build());
onChanged();
} else {
coordSysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public Builder addAllCoordSys(
java.lang.Iterable extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys> values) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coordSys_);
onChanged();
} else {
coordSysBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public Builder clearCoordSys() {
if (coordSysBuilder_ == null) {
coordSys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
coordSysBuilder_.clear();
}
return this;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public Builder removeCoordSys(int index) {
if (coordSysBuilder_ == null) {
ensureCoordSysIsMutable();
coordSys_.remove(index);
onChanged();
} else {
coordSysBuilder_.remove(index);
}
return this;
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder getCoordSysBuilder(
int index) {
return getCoordSysFieldBuilder().getBuilder(index);
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder getCoordSysOrBuilder(
int index) {
if (coordSysBuilder_ == null) {
return coordSys_.get(index); } else {
return coordSysBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>
getCoordSysOrBuilderList() {
if (coordSysBuilder_ != null) {
return coordSysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(coordSys_);
}
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder addCoordSysBuilder() {
return getCoordSysFieldBuilder().addBuilder(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.getDefaultInstance());
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder addCoordSysBuilder(
int index) {
return getCoordSysFieldBuilder().addBuilder(
index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.getDefaultInstance());
}
/**
* repeated .CoordSys coordSys = 2;
*
*
* "
*
*/
public java.util.List
getCoordSysBuilderList() {
return getCoordSysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>
getCoordSysFieldBuilder() {
if (coordSysBuilder_ == null) {
coordSysBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSys.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordSysOrBuilder>(
coordSys_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
coordSys_ = null;
}
return coordSysBuilder_;
}
private java.util.List coordTransforms_ =
java.util.Collections.emptyList();
private void ensureCoordTransformsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
coordTransforms_ = new java.util.ArrayList(coordTransforms_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder> coordTransformsBuilder_;
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public java.util.List getCoordTransformsList() {
if (coordTransformsBuilder_ == null) {
return java.util.Collections.unmodifiableList(coordTransforms_);
} else {
return coordTransformsBuilder_.getMessageList();
}
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public int getCoordTransformsCount() {
if (coordTransformsBuilder_ == null) {
return coordTransforms_.size();
} else {
return coordTransformsBuilder_.getCount();
}
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform getCoordTransforms(int index) {
if (coordTransformsBuilder_ == null) {
return coordTransforms_.get(index);
} else {
return coordTransformsBuilder_.getMessage(index);
}
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public Builder setCoordTransforms(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform value) {
if (coordTransformsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordTransformsIsMutable();
coordTransforms_.set(index, value);
onChanged();
} else {
coordTransformsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public Builder setCoordTransforms(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder builderForValue) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
coordTransforms_.set(index, builderForValue.build());
onChanged();
} else {
coordTransformsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public Builder addCoordTransforms(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform value) {
if (coordTransformsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordTransformsIsMutable();
coordTransforms_.add(value);
onChanged();
} else {
coordTransformsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public Builder addCoordTransforms(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform value) {
if (coordTransformsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCoordTransformsIsMutable();
coordTransforms_.add(index, value);
onChanged();
} else {
coordTransformsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public Builder addCoordTransforms(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder builderForValue) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
coordTransforms_.add(builderForValue.build());
onChanged();
} else {
coordTransformsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public Builder addCoordTransforms(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder builderForValue) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
coordTransforms_.add(index, builderForValue.build());
onChanged();
} else {
coordTransformsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public Builder addAllCoordTransforms(
java.lang.Iterable extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform> values) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coordTransforms_);
onChanged();
} else {
coordTransformsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public Builder clearCoordTransforms() {
if (coordTransformsBuilder_ == null) {
coordTransforms_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
coordTransformsBuilder_.clear();
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public Builder removeCoordTransforms(int index) {
if (coordTransformsBuilder_ == null) {
ensureCoordTransformsIsMutable();
coordTransforms_.remove(index);
onChanged();
} else {
coordTransformsBuilder_.remove(index);
}
return this;
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder getCoordTransformsBuilder(
int index) {
return getCoordTransformsFieldBuilder().getBuilder(index);
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder getCoordTransformsOrBuilder(
int index) {
if (coordTransformsBuilder_ == null) {
return coordTransforms_.get(index); } else {
return coordTransformsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>
getCoordTransformsOrBuilderList() {
if (coordTransformsBuilder_ != null) {
return coordTransformsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(coordTransforms_);
}
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder addCoordTransformsBuilder() {
return getCoordTransformsFieldBuilder().addBuilder(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.getDefaultInstance());
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder addCoordTransformsBuilder(
int index) {
return getCoordTransformsFieldBuilder().addBuilder(
index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.getDefaultInstance());
}
/**
* repeated .CoordTransform coordTransforms = 3;
*
*
* "
*
*/
public java.util.List
getCoordTransformsBuilderList() {
return getCoordTransformsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>
getCoordTransformsFieldBuilder() {
if (coordTransformsBuilder_ == null) {
coordTransformsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransform.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoordTransformOrBuilder>(
coordTransforms_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
coordTransforms_ = null;
}
return coordTransformsBuilder_;
}
private java.util.List geoArray_ =
java.util.Collections.emptyList();
private void ensureGeoArrayIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
geoArray_ = new java.util.ArrayList(geoArray_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder> geoArrayBuilder_;
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public java.util.List getGeoArrayList() {
if (geoArrayBuilder_ == null) {
return java.util.Collections.unmodifiableList(geoArray_);
} else {
return geoArrayBuilder_.getMessageList();
}
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public int getGeoArrayCount() {
if (geoArrayBuilder_ == null) {
return geoArray_.size();
} else {
return geoArrayBuilder_.getCount();
}
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray getGeoArray(int index) {
if (geoArrayBuilder_ == null) {
return geoArray_.get(index);
} else {
return geoArrayBuilder_.getMessage(index);
}
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public Builder setGeoArray(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray value) {
if (geoArrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeoArrayIsMutable();
geoArray_.set(index, value);
onChanged();
} else {
geoArrayBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public Builder setGeoArray(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder builderForValue) {
if (geoArrayBuilder_ == null) {
ensureGeoArrayIsMutable();
geoArray_.set(index, builderForValue.build());
onChanged();
} else {
geoArrayBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public Builder addGeoArray(ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray value) {
if (geoArrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeoArrayIsMutable();
geoArray_.add(value);
onChanged();
} else {
geoArrayBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public Builder addGeoArray(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray value) {
if (geoArrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeoArrayIsMutable();
geoArray_.add(index, value);
onChanged();
} else {
geoArrayBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public Builder addGeoArray(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder builderForValue) {
if (geoArrayBuilder_ == null) {
ensureGeoArrayIsMutable();
geoArray_.add(builderForValue.build());
onChanged();
} else {
geoArrayBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public Builder addGeoArray(
int index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder builderForValue) {
if (geoArrayBuilder_ == null) {
ensureGeoArrayIsMutable();
geoArray_.add(index, builderForValue.build());
onChanged();
} else {
geoArrayBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public Builder addAllGeoArray(
java.lang.Iterable extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray> values) {
if (geoArrayBuilder_ == null) {
ensureGeoArrayIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, geoArray_);
onChanged();
} else {
geoArrayBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public Builder clearGeoArray() {
if (geoArrayBuilder_ == null) {
geoArray_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
geoArrayBuilder_.clear();
}
return this;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public Builder removeGeoArray(int index) {
if (geoArrayBuilder_ == null) {
ensureGeoArrayIsMutable();
geoArray_.remove(index);
onChanged();
} else {
geoArrayBuilder_.remove(index);
}
return this;
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder getGeoArrayBuilder(
int index) {
return getGeoArrayFieldBuilder().getBuilder(index);
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder getGeoArrayOrBuilder(
int index) {
if (geoArrayBuilder_ == null) {
return geoArray_.get(index); } else {
return geoArrayBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public java.util.List extends ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder>
getGeoArrayOrBuilderList() {
if (geoArrayBuilder_ != null) {
return geoArrayBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(geoArray_);
}
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder addGeoArrayBuilder() {
return getGeoArrayFieldBuilder().addBuilder(
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.getDefaultInstance());
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder addGeoArrayBuilder(
int index) {
return getGeoArrayFieldBuilder().addBuilder(
index, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.getDefaultInstance());
}
/**
* repeated .GeoReferencedArray geoArray = 4;
*/
public java.util.List
getGeoArrayBuilderList() {
return getGeoArrayFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder>
getGeoArrayFieldBuilder() {
if (geoArrayBuilder_ == null) {
geoArrayBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArray.Builder, ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.GeoReferencedArrayOrBuilder>(
geoArray_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
geoArray_ = null;
}
return geoArrayBuilder_;
}
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:CoverageDataResponse)
}
// @@protoc_insertion_point(class_scope:CoverageDataResponse)
private static final ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse();
}
public static ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CoverageDataResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new CoverageDataResponse(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.ft2.coverage.remote.CdmrFeatureProto.CoverageDataResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CoordTransform_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CoordTransform_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CoordAxis_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CoordAxis_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CoordSys_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CoordSys_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CalendarDateRange_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CalendarDateRange_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_Rectangle_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Rectangle_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_Coverage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Coverage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CoverageDataset_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CoverageDataset_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_GeoReferencedArray_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_GeoReferencedArray_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CoverageDataResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CoverageDataResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n.ucar/nc2/ft2/coverage/remote/cdmrfeatu" +
"re.proto\032\036ucar/nc2/stream/ncStream.proto" +
"\"K\n\016CoordTransform\022\017\n\007isHoriz\030\001 \001(\010\022\014\n\004n" +
"ame\030\002 \001(\t\022\032\n\006params\030\003 \003(\0132\n.Attribute\"\316\002" +
"\n\tCoordAxis\022\014\n\004name\030\001 \001(\t\022\033\n\010dataType\030\002 " +
"\001(\0162\t.DataType\022\030\n\004atts\030\003 \003(\0132\n.Attribute" +
"\022\033\n\010axisType\030\004 \001(\0162\t.AxisType\022\r\n\005units\030\005" +
" \001(\t\022\023\n\013description\030\006 \001(\t\022\037\n\006depend\030\007 \001(" +
"\0162\017.DependenceType\022\021\n\tdependsOn\030\010 \003(\t\022\r\n" +
"\005shape\030\t \003(\r\022\017\n\007nvalues\030\n \001(\003\022\035\n\007spacing",
"\030\013 \001(\0162\014.AxisSpacing\022\022\n\nstartValue\030\014 \001(\001" +
"\022\020\n\010endValue\030\r \001(\001\022\022\n\nresolution\030\016 \001(\001\022\016" +
"\n\006values\030\017 \001(\014\"h\n\010CoordSys\022\014\n\004name\030\001 \001(\t" +
"\022\021\n\taxisNames\030\002 \003(\t\022\026\n\016transformNames\030\003 " +
"\003(\t\022#\n\014coverageType\030\005 \001(\0162\r.CoverageType" +
"\"L\n\021CalendarDateRange\022\r\n\005start\030\001 \001(\003\022\013\n\003" +
"end\030\002 \001(\003\022\033\n\010calendar\030\003 \001(\0162\t.Calendar\"G" +
"\n\tRectangle\022\016\n\006startx\030\001 \001(\001\022\016\n\006starty\030\002 " +
"\001(\001\022\014\n\004incx\030\003 \001(\001\022\014\n\004incy\030\004 \001(\001\"\205\001\n\010Cove" +
"rage\022\014\n\004name\030\001 \001(\t\022\033\n\010dataType\030\002 \001(\0162\t.D",
"ataType\022\030\n\004atts\030\004 \003(\0132\n.Attribute\022\020\n\010coo" +
"rdSys\030\005 \001(\t\022\r\n\005units\030\006 \001(\t\022\023\n\013descriptio" +
"n\030\007 \001(\t\"\303\002\n\017CoverageDataset\022\014\n\004name\030\001 \001(" +
"\t\022\030\n\004atts\030\002 \003(\0132\n.Attribute\022\036\n\nlatlonRec" +
"t\030\003 \001(\0132\n.Rectangle\022\034\n\010projRect\030\004 \001(\0132\n." +
"Rectangle\022%\n\tdateRange\030\005 \001(\0132\022.CalendarD" +
"ateRange\022\033\n\010coordSys\030\006 \003(\0132\t.CoordSys\022(\n" +
"\017coordTransforms\030\007 \003(\0132\017.CoordTransform\022" +
"\035\n\tcoordAxes\030\010 \003(\0132\n.CoordAxis\022\030\n\005grids\030" +
"\t \003(\0132\t.Coverage\022#\n\014coverageType\030\n \001(\0162\r",
".CoverageType\"\350\001\n\022GeoReferencedArray\022\024\n\014" +
"coverageName\030\001 \001(\t\022\033\n\010dataType\030\002 \001(\0162\t.D" +
"ataType\022\016\n\006bigend\030\003 \001(\010\022\017\n\007version\030\004 \001(\r" +
"\022\033\n\010compress\030\005 \001(\0162\t.Compress\022\030\n\020uncompr" +
"essedSize\030\006 \001(\004\022\r\n\005shape\030\007 \003(\r\022\020\n\010axisNa" +
"me\030\010 \003(\t\022\024\n\014coordSysName\030\t \001(\t\022\020\n\010primda" +
"ta\030\n \001(\014\"\243\001\n\024CoverageDataResponse\022\035\n\tcoo" +
"rdAxes\030\001 \003(\0132\n.CoordAxis\022\033\n\010coordSys\030\002 \003" +
"(\0132\t.CoordSys\022(\n\017coordTransforms\030\003 \003(\0132\017" +
".CoordTransform\022%\n\010geoArray\030\004 \003(\0132\023.GeoR",
"eferencedArray*\323\001\n\010AxisType\022\013\n\007RunTime\020\000" +
"\022\014\n\010Ensemble\020\001\022\010\n\004Time\020\002\022\010\n\004GeoX\020\003\022\010\n\004Ge" +
"oY\020\004\022\010\n\004GeoZ\020\005\022\007\n\003Lat\020\006\022\007\n\003Lon\020\007\022\n\n\006Heig" +
"ht\020\010\022\014\n\010Pressure\020\t\022\021\n\rRadialAzimuth\020\n\022\022\n" +
"\016RadialDistance\020\013\022\023\n\017RadialElevation\020\014\022\014" +
"\n\010Spectral\020\r\022\016\n\nTimeOffset\020\016*{\n\013AxisSpac" +
"ing\022\020\n\014regularPoint\020\000\022\022\n\016irregularPoint\020" +
"\001\022\026\n\022contiguousInterval\020\002\022\031\n\025discontiguo" +
"usInterval\020\003\022\023\n\017regularInterval\020\004*S\n\016Dep" +
"endenceType\022\017\n\013independent\020\000\022\r\n\tdependen",
"t\020\001\022\n\n\006scalar\020\002\022\010\n\004twoD\020\003\022\013\n\007fmrcReg\020\004*t" +
"\n\010Calendar\022\027\n\023proleptic_gregorian\020\000\022\r\n\tg" +
"regorian\020\001\022\n\n\006noleap\020\002\022\014\n\010all_leap\020\003\022\020\n\014" +
"uniform30day\020\004\022\n\n\006julian\020\005\022\010\n\004none\020\006*K\n\014" +
"CoverageType\022\013\n\007General\020\000\022\017\n\013Curvilinear" +
"\020\001\022\010\n\004Grid\020\002\022\t\n\005Swath\020\003\022\010\n\004Fmrc\020\004B0\n\034uca" +
"r.nc2.ft2.coverage.remoteB\020CdmrFeaturePr" +
"otob\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ucar.nc2.stream.NcStreamProto.getDescriptor(),
}, assigner);
internal_static_CoordTransform_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_CoordTransform_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CoordTransform_descriptor,
new java.lang.String[] { "IsHoriz", "Name", "Params", });
internal_static_CoordAxis_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_CoordAxis_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CoordAxis_descriptor,
new java.lang.String[] { "Name", "DataType", "Atts", "AxisType", "Units", "Description", "Depend", "DependsOn", "Shape", "Nvalues", "Spacing", "StartValue", "EndValue", "Resolution", "Values", });
internal_static_CoordSys_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_CoordSys_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CoordSys_descriptor,
new java.lang.String[] { "Name", "AxisNames", "TransformNames", "CoverageType", });
internal_static_CalendarDateRange_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_CalendarDateRange_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CalendarDateRange_descriptor,
new java.lang.String[] { "Start", "End", "Calendar", });
internal_static_Rectangle_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_Rectangle_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_Rectangle_descriptor,
new java.lang.String[] { "Startx", "Starty", "Incx", "Incy", });
internal_static_Coverage_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_Coverage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_Coverage_descriptor,
new java.lang.String[] { "Name", "DataType", "Atts", "CoordSys", "Units", "Description", });
internal_static_CoverageDataset_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_CoverageDataset_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CoverageDataset_descriptor,
new java.lang.String[] { "Name", "Atts", "LatlonRect", "ProjRect", "DateRange", "CoordSys", "CoordTransforms", "CoordAxes", "Grids", "CoverageType", });
internal_static_GeoReferencedArray_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_GeoReferencedArray_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_GeoReferencedArray_descriptor,
new java.lang.String[] { "CoverageName", "DataType", "Bigend", "Version", "Compress", "UncompressedSize", "Shape", "AxisName", "CoordSysName", "Primdata", });
internal_static_CoverageDataResponse_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_CoverageDataResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CoverageDataResponse_descriptor,
new java.lang.String[] { "CoordAxes", "CoordSys", "CoordTransforms", "GeoArray", });
ucar.nc2.stream.NcStreamProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}