ucar.nc2.ft.point.remote.PointStreamProto Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ucar/nc2/ft/point/remote/pointStream.proto
package ucar.nc2.ft.point.remote;
public final class PointStreamProto {
private PointStreamProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface LocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:Location)
com.google.protobuf.MessageOrBuilder {
/**
* optional double time = 1;
*/
double getTime();
/**
* optional double lat = 2;
*/
double getLat();
/**
* optional double lon = 3;
*/
double getLon();
/**
* optional double alt = 4;
*/
double getAlt();
/**
* optional double nomTime = 5;
*/
double getNomTime();
}
/**
* Protobuf type {@code Location}
*/
public static final class Location extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Location)
LocationOrBuilder {
// Use Location.newBuilder() to construct.
private Location(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Location() {
time_ = 0D;
lat_ = 0D;
lon_ = 0D;
alt_ = 0D;
nomTime_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Location(
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: {
time_ = input.readDouble();
break;
}
case 17: {
lat_ = input.readDouble();
break;
}
case 25: {
lon_ = input.readDouble();
break;
}
case 33: {
alt_ = input.readDouble();
break;
}
case 41: {
nomTime_ = 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.ft.point.remote.PointStreamProto.internal_static_Location_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.Location.class, ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder.class);
}
public static final int TIME_FIELD_NUMBER = 1;
private double time_;
/**
* optional double time = 1;
*/
public double getTime() {
return time_;
}
public static final int LAT_FIELD_NUMBER = 2;
private double lat_;
/**
* optional double lat = 2;
*/
public double getLat() {
return lat_;
}
public static final int LON_FIELD_NUMBER = 3;
private double lon_;
/**
* optional double lon = 3;
*/
public double getLon() {
return lon_;
}
public static final int ALT_FIELD_NUMBER = 4;
private double alt_;
/**
* optional double alt = 4;
*/
public double getAlt() {
return alt_;
}
public static final int NOMTIME_FIELD_NUMBER = 5;
private double nomTime_;
/**
* optional double nomTime = 5;
*/
public double getNomTime() {
return nomTime_;
}
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 (time_ != 0D) {
output.writeDouble(1, time_);
}
if (lat_ != 0D) {
output.writeDouble(2, lat_);
}
if (lon_ != 0D) {
output.writeDouble(3, lon_);
}
if (alt_ != 0D) {
output.writeDouble(4, alt_);
}
if (nomTime_ != 0D) {
output.writeDouble(5, nomTime_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (time_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, time_);
}
if (lat_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, lat_);
}
if (lon_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, lon_);
}
if (alt_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, alt_);
}
if (nomTime_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, nomTime_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft.point.remote.PointStreamProto.Location parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Location 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.ft.point.remote.PointStreamProto.Location parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Location parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Location parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Location parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Location parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Location parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Location parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Location 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.ft.point.remote.PointStreamProto.Location 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 Location}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:Location)
ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Location_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.Location.class, ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder.class);
}
// Construct using ucar.nc2.ft.point.remote.PointStreamProto.Location.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();
time_ = 0D;
lat_ = 0D;
lon_ = 0D;
alt_ = 0D;
nomTime_ = 0D;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Location_descriptor;
}
public ucar.nc2.ft.point.remote.PointStreamProto.Location getDefaultInstanceForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance();
}
public ucar.nc2.ft.point.remote.PointStreamProto.Location build() {
ucar.nc2.ft.point.remote.PointStreamProto.Location result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft.point.remote.PointStreamProto.Location buildPartial() {
ucar.nc2.ft.point.remote.PointStreamProto.Location result = new ucar.nc2.ft.point.remote.PointStreamProto.Location(this);
result.time_ = time_;
result.lat_ = lat_;
result.lon_ = lon_;
result.alt_ = alt_;
result.nomTime_ = nomTime_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft.point.remote.PointStreamProto.Location) {
return mergeFrom((ucar.nc2.ft.point.remote.PointStreamProto.Location)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft.point.remote.PointStreamProto.Location other) {
if (other == ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance()) return this;
if (other.getTime() != 0D) {
setTime(other.getTime());
}
if (other.getLat() != 0D) {
setLat(other.getLat());
}
if (other.getLon() != 0D) {
setLon(other.getLon());
}
if (other.getAlt() != 0D) {
setAlt(other.getAlt());
}
if (other.getNomTime() != 0D) {
setNomTime(other.getNomTime());
}
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.ft.point.remote.PointStreamProto.Location parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft.point.remote.PointStreamProto.Location) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double time_ ;
/**
* optional double time = 1;
*/
public double getTime() {
return time_;
}
/**
* optional double time = 1;
*/
public Builder setTime(double value) {
time_ = value;
onChanged();
return this;
}
/**
* optional double time = 1;
*/
public Builder clearTime() {
time_ = 0D;
onChanged();
return this;
}
private double lat_ ;
/**
* optional double lat = 2;
*/
public double getLat() {
return lat_;
}
/**
* optional double lat = 2;
*/
public Builder setLat(double value) {
lat_ = value;
onChanged();
return this;
}
/**
* optional double lat = 2;
*/
public Builder clearLat() {
lat_ = 0D;
onChanged();
return this;
}
private double lon_ ;
/**
* optional double lon = 3;
*/
public double getLon() {
return lon_;
}
/**
* optional double lon = 3;
*/
public Builder setLon(double value) {
lon_ = value;
onChanged();
return this;
}
/**
* optional double lon = 3;
*/
public Builder clearLon() {
lon_ = 0D;
onChanged();
return this;
}
private double alt_ ;
/**
* optional double alt = 4;
*/
public double getAlt() {
return alt_;
}
/**
* optional double alt = 4;
*/
public Builder setAlt(double value) {
alt_ = value;
onChanged();
return this;
}
/**
* optional double alt = 4;
*/
public Builder clearAlt() {
alt_ = 0D;
onChanged();
return this;
}
private double nomTime_ ;
/**
* optional double nomTime = 5;
*/
public double getNomTime() {
return nomTime_;
}
/**
* optional double nomTime = 5;
*/
public Builder setNomTime(double value) {
nomTime_ = value;
onChanged();
return this;
}
/**
* optional double nomTime = 5;
*/
public Builder clearNomTime() {
nomTime_ = 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:Location)
}
// @@protoc_insertion_point(class_scope:Location)
private static final ucar.nc2.ft.point.remote.PointStreamProto.Location DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft.point.remote.PointStreamProto.Location();
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Location getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Location parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Location(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.ft.point.remote.PointStreamProto.Location getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PointFeatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:PointFeature)
com.google.protobuf.MessageOrBuilder {
/**
* optional .Location loc = 1;
*/
boolean hasLoc();
/**
* optional .Location loc = 1;
*/
ucar.nc2.ft.point.remote.PointStreamProto.Location getLoc();
/**
* optional .Location loc = 1;
*/
ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder getLocOrBuilder();
/**
* optional bytes data = 3;
*
*
* fixed length data
*
*/
com.google.protobuf.ByteString getData();
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
com.google.protobuf.ProtocolStringList
getSdataList();
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
int getSdataCount();
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
java.lang.String getSdata(int index);
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
com.google.protobuf.ByteString
getSdataBytes(int index);
}
/**
* Protobuf type {@code PointFeature}
*/
public static final class PointFeature extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:PointFeature)
PointFeatureOrBuilder {
// Use PointFeature.newBuilder() to construct.
private PointFeature(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PointFeature() {
data_ = com.google.protobuf.ByteString.EMPTY;
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PointFeature(
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: {
ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder subBuilder = null;
if (loc_ != null) {
subBuilder = loc_.toBuilder();
}
loc_ = input.readMessage(ucar.nc2.ft.point.remote.PointStreamProto.Location.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loc_);
loc_ = subBuilder.buildPartial();
}
break;
}
case 26: {
data_ = input.readBytes();
break;
}
case 34: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
sdata_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
sdata_.add(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)) {
sdata_ = sdata_.getUnmodifiableView();
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeature_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.PointFeature.class, ucar.nc2.ft.point.remote.PointStreamProto.PointFeature.Builder.class);
}
private int bitField0_;
public static final int LOC_FIELD_NUMBER = 1;
private ucar.nc2.ft.point.remote.PointStreamProto.Location loc_;
/**
* optional .Location loc = 1;
*/
public boolean hasLoc() {
return loc_ != null;
}
/**
* optional .Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Location getLoc() {
return loc_ == null ? ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance() : loc_;
}
/**
* optional .Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder getLocOrBuilder() {
return getLoc();
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
* optional bytes data = 3;
*
*
* fixed length data
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int SDATA_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList sdata_;
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public com.google.protobuf.ProtocolStringList
getSdataList() {
return sdata_;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public int getSdataCount() {
return sdata_.size();
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public java.lang.String getSdata(int index) {
return sdata_.get(index);
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public com.google.protobuf.ByteString
getSdataBytes(int index) {
return sdata_.getByteString(index);
}
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 (loc_ != null) {
output.writeMessage(1, getLoc());
}
if (!data_.isEmpty()) {
output.writeBytes(3, data_);
}
for (int i = 0; i < sdata_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, sdata_.getRaw(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (loc_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLoc());
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
{
int dataSize = 0;
for (int i = 0; i < sdata_.size(); i++) {
dataSize += computeStringSizeNoTag(sdata_.getRaw(i));
}
size += dataSize;
size += 1 * getSdataList().size();
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature 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.ft.point.remote.PointStreamProto.PointFeature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature 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.ft.point.remote.PointStreamProto.PointFeature 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 PointFeature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:PointFeature)
ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeature_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.PointFeature.class, ucar.nc2.ft.point.remote.PointStreamProto.PointFeature.Builder.class);
}
// Construct using ucar.nc2.ft.point.remote.PointStreamProto.PointFeature.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();
if (locBuilder_ == null) {
loc_ = null;
} else {
loc_ = null;
locBuilder_ = null;
}
data_ = com.google.protobuf.ByteString.EMPTY;
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeature_descriptor;
}
public ucar.nc2.ft.point.remote.PointStreamProto.PointFeature getDefaultInstanceForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.PointFeature.getDefaultInstance();
}
public ucar.nc2.ft.point.remote.PointStreamProto.PointFeature build() {
ucar.nc2.ft.point.remote.PointStreamProto.PointFeature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft.point.remote.PointStreamProto.PointFeature buildPartial() {
ucar.nc2.ft.point.remote.PointStreamProto.PointFeature result = new ucar.nc2.ft.point.remote.PointStreamProto.PointFeature(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (locBuilder_ == null) {
result.loc_ = loc_;
} else {
result.loc_ = locBuilder_.build();
}
result.data_ = data_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
sdata_ = sdata_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.sdata_ = sdata_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft.point.remote.PointStreamProto.PointFeature) {
return mergeFrom((ucar.nc2.ft.point.remote.PointStreamProto.PointFeature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft.point.remote.PointStreamProto.PointFeature other) {
if (other == ucar.nc2.ft.point.remote.PointStreamProto.PointFeature.getDefaultInstance()) return this;
if (other.hasLoc()) {
mergeLoc(other.getLoc());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.sdata_.isEmpty()) {
if (sdata_.isEmpty()) {
sdata_ = other.sdata_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSdataIsMutable();
sdata_.addAll(other.sdata_);
}
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.ft.point.remote.PointStreamProto.PointFeature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft.point.remote.PointStreamProto.PointFeature) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private ucar.nc2.ft.point.remote.PointStreamProto.Location loc_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft.point.remote.PointStreamProto.Location, ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder, ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder> locBuilder_;
/**
* optional .Location loc = 1;
*/
public boolean hasLoc() {
return locBuilder_ != null || loc_ != null;
}
/**
* optional .Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Location getLoc() {
if (locBuilder_ == null) {
return loc_ == null ? ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance() : loc_;
} else {
return locBuilder_.getMessage();
}
}
/**
* optional .Location loc = 1;
*/
public Builder setLoc(ucar.nc2.ft.point.remote.PointStreamProto.Location value) {
if (locBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
loc_ = value;
onChanged();
} else {
locBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Location loc = 1;
*/
public Builder setLoc(
ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder builderForValue) {
if (locBuilder_ == null) {
loc_ = builderForValue.build();
onChanged();
} else {
locBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Location loc = 1;
*/
public Builder mergeLoc(ucar.nc2.ft.point.remote.PointStreamProto.Location value) {
if (locBuilder_ == null) {
if (loc_ != null) {
loc_ =
ucar.nc2.ft.point.remote.PointStreamProto.Location.newBuilder(loc_).mergeFrom(value).buildPartial();
} else {
loc_ = value;
}
onChanged();
} else {
locBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Location loc = 1;
*/
public Builder clearLoc() {
if (locBuilder_ == null) {
loc_ = null;
onChanged();
} else {
loc_ = null;
locBuilder_ = null;
}
return this;
}
/**
* optional .Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder getLocBuilder() {
onChanged();
return getLocFieldBuilder().getBuilder();
}
/**
* optional .Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder getLocOrBuilder() {
if (locBuilder_ != null) {
return locBuilder_.getMessageOrBuilder();
} else {
return loc_ == null ?
ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance() : loc_;
}
}
/**
* optional .Location loc = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft.point.remote.PointStreamProto.Location, ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder, ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder>
getLocFieldBuilder() {
if (locBuilder_ == null) {
locBuilder_ = new com.google.protobuf.SingleFieldBuilder<
ucar.nc2.ft.point.remote.PointStreamProto.Location, ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder, ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder>(
getLoc(),
getParentForChildren(),
isClean());
loc_ = null;
}
return locBuilder_;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes data = 3;
*
*
* fixed length data
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* optional bytes data = 3;
*
*
* fixed length data
*
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
* optional bytes data = 3;
*
*
* fixed length data
*
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private com.google.protobuf.LazyStringList sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSdataIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
sdata_ = new com.google.protobuf.LazyStringArrayList(sdata_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public com.google.protobuf.ProtocolStringList
getSdataList() {
return sdata_.getUnmodifiableView();
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public int getSdataCount() {
return sdata_.size();
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public java.lang.String getSdata(int index) {
return sdata_.get(index);
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public com.google.protobuf.ByteString
getSdataBytes(int index) {
return sdata_.getByteString(index);
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder setSdata(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSdataIsMutable();
sdata_.set(index, value);
onChanged();
return this;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder addSdata(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSdataIsMutable();
sdata_.add(value);
onChanged();
return this;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder addAllSdata(
java.lang.Iterable values) {
ensureSdataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sdata_);
onChanged();
return this;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder clearSdata() {
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public Builder addSdataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSdataIsMutable();
sdata_.add(value);
onChanged();
return this;
}
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:PointFeature)
}
// @@protoc_insertion_point(class_scope:PointFeature)
private static final ucar.nc2.ft.point.remote.PointStreamProto.PointFeature DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft.point.remote.PointStreamProto.PointFeature();
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeature getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PointFeature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new PointFeature(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.ft.point.remote.PointStreamProto.PointFeature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MemberOrBuilder extends
// @@protoc_insertion_point(interface_extends:Member)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string desc = 2;
*/
java.lang.String getDesc();
/**
* optional string desc = 2;
*/
com.google.protobuf.ByteString
getDescBytes();
/**
* optional string units = 3;
*/
java.lang.String getUnits();
/**
* optional string units = 3;
*/
com.google.protobuf.ByteString
getUnitsBytes();
/**
* optional .DataType dataType = 4;
*/
int getDataTypeValue();
/**
* optional .DataType dataType = 4;
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
/**
* optional .Section section = 5;
*/
boolean hasSection();
/**
* optional .Section section = 5;
*/
ucar.nc2.stream.NcStreamProto.Section getSection();
/**
* optional .Section section = 5;
*/
ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder();
}
/**
* Protobuf type {@code Member}
*/
public static final class Member extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Member)
MemberOrBuilder {
// Use Member.newBuilder() to construct.
private Member(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Member() {
name_ = "";
desc_ = "";
units_ = "";
dataType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Member(
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();
desc_ = s;
break;
}
case 26: {
String s = input.readStringRequireUtf8();
units_ = s;
break;
}
case 32: {
int rawValue = input.readEnum();
dataType_ = rawValue;
break;
}
case 42: {
ucar.nc2.stream.NcStreamProto.Section.Builder subBuilder = null;
if (section_ != null) {
subBuilder = section_.toBuilder();
}
section_ = input.readMessage(ucar.nc2.stream.NcStreamProto.Section.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(section_);
section_ = subBuilder.buildPartial();
}
break;
}
}
}
} 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.ft.point.remote.PointStreamProto.internal_static_Member_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Member_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.Member.class, ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder.class);
}
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 DESC_FIELD_NUMBER = 2;
private volatile java.lang.Object desc_;
/**
* optional string desc = 2;
*/
public java.lang.String getDesc() {
java.lang.Object ref = desc_;
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();
desc_ = s;
return s;
}
}
/**
* optional string desc = 2;
*/
public com.google.protobuf.ByteString
getDescBytes() {
java.lang.Object ref = desc_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
desc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNITS_FIELD_NUMBER = 3;
private volatile java.lang.Object units_;
/**
* optional string units = 3;
*/
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 = 3;
*/
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 DATATYPE_FIELD_NUMBER = 4;
private int dataType_;
/**
* optional .DataType dataType = 4;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 4;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
ucar.nc2.stream.NcStreamProto.DataType result = ucar.nc2.stream.NcStreamProto.DataType.valueOf(dataType_);
return result == null ? ucar.nc2.stream.NcStreamProto.DataType.UNRECOGNIZED : result;
}
public static final int SECTION_FIELD_NUMBER = 5;
private ucar.nc2.stream.NcStreamProto.Section section_;
/**
* optional .Section section = 5;
*/
public boolean hasSection() {
return section_ != null;
}
/**
* optional .Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
}
/**
* optional .Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() {
return getSection();
}
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 (!getDescBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, desc_);
}
if (!getUnitsBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, units_);
}
if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) {
output.writeEnum(4, dataType_);
}
if (section_ != null) {
output.writeMessage(5, getSection());
}
}
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 (!getDescBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, desc_);
}
if (!getUnitsBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, units_);
}
if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, dataType_);
}
if (section_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSection());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft.point.remote.PointStreamProto.Member parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member 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.ft.point.remote.PointStreamProto.Member 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 Member}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:Member)
ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Member_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Member_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.Member.class, ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder.class);
}
// Construct using ucar.nc2.ft.point.remote.PointStreamProto.Member.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_ = "";
desc_ = "";
units_ = "";
dataType_ = 0;
if (sectionBuilder_ == null) {
section_ = null;
} else {
section_ = null;
sectionBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Member_descriptor;
}
public ucar.nc2.ft.point.remote.PointStreamProto.Member getDefaultInstanceForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.Member.getDefaultInstance();
}
public ucar.nc2.ft.point.remote.PointStreamProto.Member build() {
ucar.nc2.ft.point.remote.PointStreamProto.Member result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft.point.remote.PointStreamProto.Member buildPartial() {
ucar.nc2.ft.point.remote.PointStreamProto.Member result = new ucar.nc2.ft.point.remote.PointStreamProto.Member(this);
result.name_ = name_;
result.desc_ = desc_;
result.units_ = units_;
result.dataType_ = dataType_;
if (sectionBuilder_ == null) {
result.section_ = section_;
} else {
result.section_ = sectionBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft.point.remote.PointStreamProto.Member) {
return mergeFrom((ucar.nc2.ft.point.remote.PointStreamProto.Member)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft.point.remote.PointStreamProto.Member other) {
if (other == ucar.nc2.ft.point.remote.PointStreamProto.Member.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDesc().isEmpty()) {
desc_ = other.desc_;
onChanged();
}
if (!other.getUnits().isEmpty()) {
units_ = other.units_;
onChanged();
}
if (other.dataType_ != 0) {
setDataTypeValue(other.getDataTypeValue());
}
if (other.hasSection()) {
mergeSection(other.getSection());
}
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.ft.point.remote.PointStreamProto.Member parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft.point.remote.PointStreamProto.Member) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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.lang.Object desc_ = "";
/**
* optional string desc = 2;
*/
public java.lang.String getDesc() {
java.lang.Object ref = desc_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
desc_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string desc = 2;
*/
public com.google.protobuf.ByteString
getDescBytes() {
java.lang.Object ref = desc_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
desc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string desc = 2;
*/
public Builder setDesc(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
desc_ = value;
onChanged();
return this;
}
/**
* optional string desc = 2;
*/
public Builder clearDesc() {
desc_ = getDefaultInstance().getDesc();
onChanged();
return this;
}
/**
* optional string desc = 2;
*/
public Builder setDescBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
desc_ = value;
onChanged();
return this;
}
private java.lang.Object units_ = "";
/**
* optional string units = 3;
*/
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 = 3;
*/
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 = 3;
*/
public Builder setUnits(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
units_ = value;
onChanged();
return this;
}
/**
* optional string units = 3;
*/
public Builder clearUnits() {
units_ = getDefaultInstance().getUnits();
onChanged();
return this;
}
/**
* optional string units = 3;
*/
public Builder setUnitsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
units_ = value;
onChanged();
return this;
}
private int dataType_ = 0;
/**
* optional .DataType dataType = 4;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .DataType dataType = 4;
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
onChanged();
return this;
}
/**
* optional .DataType dataType = 4;
*/
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 = 4;
*/
public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .DataType dataType = 4;
*/
public Builder clearDataType() {
dataType_ = 0;
onChanged();
return this;
}
private ucar.nc2.stream.NcStreamProto.Section section_ = null;
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> sectionBuilder_;
/**
* optional .Section section = 5;
*/
public boolean hasSection() {
return sectionBuilder_ != null || section_ != null;
}
/**
* optional .Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
if (sectionBuilder_ == null) {
return section_ == null ? ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
} else {
return sectionBuilder_.getMessage();
}
}
/**
* optional .Section section = 5;
*/
public Builder setSection(ucar.nc2.stream.NcStreamProto.Section value) {
if (sectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
section_ = value;
onChanged();
} else {
sectionBuilder_.setMessage(value);
}
return this;
}
/**
* optional .Section section = 5;
*/
public Builder setSection(
ucar.nc2.stream.NcStreamProto.Section.Builder builderForValue) {
if (sectionBuilder_ == null) {
section_ = builderForValue.build();
onChanged();
} else {
sectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .Section section = 5;
*/
public Builder mergeSection(ucar.nc2.stream.NcStreamProto.Section value) {
if (sectionBuilder_ == null) {
if (section_ != null) {
section_ =
ucar.nc2.stream.NcStreamProto.Section.newBuilder(section_).mergeFrom(value).buildPartial();
} else {
section_ = value;
}
onChanged();
} else {
sectionBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .Section section = 5;
*/
public Builder clearSection() {
if (sectionBuilder_ == null) {
section_ = null;
onChanged();
} else {
section_ = null;
sectionBuilder_ = null;
}
return this;
}
/**
* optional .Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.Section.Builder getSectionBuilder() {
onChanged();
return getSectionFieldBuilder().getBuilder();
}
/**
* optional .Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() {
if (sectionBuilder_ != null) {
return sectionBuilder_.getMessageOrBuilder();
} else {
return section_ == null ?
ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance() : section_;
}
}
/**
* optional .Section section = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder>
getSectionFieldBuilder() {
if (sectionBuilder_ == null) {
sectionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder>(
getSection(),
getParentForChildren(),
isClean());
section_ = null;
}
return sectionBuilder_;
}
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:Member)
}
// @@protoc_insertion_point(class_scope:Member)
private static final ucar.nc2.ft.point.remote.PointStreamProto.Member DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft.point.remote.PointStreamProto.Member();
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Member getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Member parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Member(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.ft.point.remote.PointStreamProto.Member getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PointFeatureCollectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:PointFeatureCollection)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string timeUnit = 2;
*/
java.lang.String getTimeUnit();
/**
* optional string timeUnit = 2;
*/
com.google.protobuf.ByteString
getTimeUnitBytes();
/**
* repeated .Member members = 3;
*/
java.util.List
getMembersList();
/**
* repeated .Member members = 3;
*/
ucar.nc2.ft.point.remote.PointStreamProto.Member getMembers(int index);
/**
* repeated .Member members = 3;
*/
int getMembersCount();
/**
* repeated .Member members = 3;
*/
java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder>
getMembersOrBuilderList();
/**
* repeated .Member members = 3;
*/
ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder getMembersOrBuilder(
int index);
/**
* optional string altUnit = 4;
*/
java.lang.String getAltUnit();
/**
* optional string altUnit = 4;
*/
com.google.protobuf.ByteString
getAltUnitBytes();
}
/**
* Protobuf type {@code PointFeatureCollection}
*/
public static final class PointFeatureCollection extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:PointFeatureCollection)
PointFeatureCollectionOrBuilder {
// Use PointFeatureCollection.newBuilder() to construct.
private PointFeatureCollection(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PointFeatureCollection() {
name_ = "";
timeUnit_ = "";
members_ = java.util.Collections.emptyList();
altUnit_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PointFeatureCollection(
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();
timeUnit_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
members_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
members_.add(input.readMessage(ucar.nc2.ft.point.remote.PointStreamProto.Member.parser(), extensionRegistry));
break;
}
case 34: {
String s = input.readStringRequireUtf8();
altUnit_ = 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)) {
members_ = java.util.Collections.unmodifiableList(members_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeatureCollection_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeatureCollection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection.class, ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection.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 TIMEUNIT_FIELD_NUMBER = 2;
private volatile java.lang.Object timeUnit_;
/**
* optional string timeUnit = 2;
*/
public java.lang.String getTimeUnit() {
java.lang.Object ref = timeUnit_;
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();
timeUnit_ = s;
return s;
}
}
/**
* optional string timeUnit = 2;
*/
public com.google.protobuf.ByteString
getTimeUnitBytes() {
java.lang.Object ref = timeUnit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timeUnit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MEMBERS_FIELD_NUMBER = 3;
private java.util.List members_;
/**
* repeated .Member members = 3;
*/
public java.util.List getMembersList() {
return members_;
}
/**
* repeated .Member members = 3;
*/
public java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder>
getMembersOrBuilderList() {
return members_;
}
/**
* repeated .Member members = 3;
*/
public int getMembersCount() {
return members_.size();
}
/**
* repeated .Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Member getMembers(int index) {
return members_.get(index);
}
/**
* repeated .Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder getMembersOrBuilder(
int index) {
return members_.get(index);
}
public static final int ALTUNIT_FIELD_NUMBER = 4;
private volatile java.lang.Object altUnit_;
/**
* optional string altUnit = 4;
*/
public java.lang.String getAltUnit() {
java.lang.Object ref = altUnit_;
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();
altUnit_ = s;
return s;
}
}
/**
* optional string altUnit = 4;
*/
public com.google.protobuf.ByteString
getAltUnitBytes() {
java.lang.Object ref = altUnit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
altUnit_ = 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 (!getTimeUnitBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, timeUnit_);
}
for (int i = 0; i < members_.size(); i++) {
output.writeMessage(3, members_.get(i));
}
if (!getAltUnitBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, altUnit_);
}
}
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 (!getTimeUnitBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, timeUnit_);
}
for (int i = 0; i < members_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, members_.get(i));
}
if (!getAltUnitBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, altUnit_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection 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.ft.point.remote.PointStreamProto.PointFeatureCollection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection 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.ft.point.remote.PointStreamProto.PointFeatureCollection 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 PointFeatureCollection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:PointFeatureCollection)
ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeatureCollection_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeatureCollection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection.class, ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection.Builder.class);
}
// Construct using ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMembersFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
timeUnit_ = "";
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
membersBuilder_.clear();
}
altUnit_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_PointFeatureCollection_descriptor;
}
public ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection getDefaultInstanceForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection.getDefaultInstance();
}
public ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection build() {
ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection buildPartial() {
ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection result = new ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
result.timeUnit_ = timeUnit_;
if (membersBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
members_ = java.util.Collections.unmodifiableList(members_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.members_ = members_;
} else {
result.members_ = membersBuilder_.build();
}
result.altUnit_ = altUnit_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection) {
return mergeFrom((ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection other) {
if (other == ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getTimeUnit().isEmpty()) {
timeUnit_ = other.timeUnit_;
onChanged();
}
if (membersBuilder_ == null) {
if (!other.members_.isEmpty()) {
if (members_.isEmpty()) {
members_ = other.members_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureMembersIsMutable();
members_.addAll(other.members_);
}
onChanged();
}
} else {
if (!other.members_.isEmpty()) {
if (membersBuilder_.isEmpty()) {
membersBuilder_.dispose();
membersBuilder_ = null;
members_ = other.members_;
bitField0_ = (bitField0_ & ~0x00000004);
membersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMembersFieldBuilder() : null;
} else {
membersBuilder_.addAllMessages(other.members_);
}
}
}
if (!other.getAltUnit().isEmpty()) {
altUnit_ = other.altUnit_;
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.ft.point.remote.PointStreamProto.PointFeatureCollection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection) 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.lang.Object timeUnit_ = "";
/**
* optional string timeUnit = 2;
*/
public java.lang.String getTimeUnit() {
java.lang.Object ref = timeUnit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timeUnit_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string timeUnit = 2;
*/
public com.google.protobuf.ByteString
getTimeUnitBytes() {
java.lang.Object ref = timeUnit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timeUnit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string timeUnit = 2;
*/
public Builder setTimeUnit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
timeUnit_ = value;
onChanged();
return this;
}
/**
* optional string timeUnit = 2;
*/
public Builder clearTimeUnit() {
timeUnit_ = getDefaultInstance().getTimeUnit();
onChanged();
return this;
}
/**
* optional string timeUnit = 2;
*/
public Builder setTimeUnitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
timeUnit_ = value;
onChanged();
return this;
}
private java.util.List members_ =
java.util.Collections.emptyList();
private void ensureMembersIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
members_ = new java.util.ArrayList(members_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft.point.remote.PointStreamProto.Member, ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder, ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder> membersBuilder_;
/**
* repeated .Member members = 3;
*/
public java.util.List getMembersList() {
if (membersBuilder_ == null) {
return java.util.Collections.unmodifiableList(members_);
} else {
return membersBuilder_.getMessageList();
}
}
/**
* repeated .Member members = 3;
*/
public int getMembersCount() {
if (membersBuilder_ == null) {
return members_.size();
} else {
return membersBuilder_.getCount();
}
}
/**
* repeated .Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Member getMembers(int index) {
if (membersBuilder_ == null) {
return members_.get(index);
} else {
return membersBuilder_.getMessage(index);
}
}
/**
* repeated .Member members = 3;
*/
public Builder setMembers(
int index, ucar.nc2.ft.point.remote.PointStreamProto.Member value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.set(index, value);
onChanged();
} else {
membersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Member members = 3;
*/
public Builder setMembers(
int index, ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.set(index, builderForValue.build());
onChanged();
} else {
membersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Member members = 3;
*/
public Builder addMembers(ucar.nc2.ft.point.remote.PointStreamProto.Member value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.add(value);
onChanged();
} else {
membersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Member members = 3;
*/
public Builder addMembers(
int index, ucar.nc2.ft.point.remote.PointStreamProto.Member value) {
if (membersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMembersIsMutable();
members_.add(index, value);
onChanged();
} else {
membersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Member members = 3;
*/
public Builder addMembers(
ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.add(builderForValue.build());
onChanged();
} else {
membersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Member members = 3;
*/
public Builder addMembers(
int index, ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder builderForValue) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.add(index, builderForValue.build());
onChanged();
} else {
membersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Member members = 3;
*/
public Builder addAllMembers(
java.lang.Iterable extends ucar.nc2.ft.point.remote.PointStreamProto.Member> values) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, members_);
onChanged();
} else {
membersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Member members = 3;
*/
public Builder clearMembers() {
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
membersBuilder_.clear();
}
return this;
}
/**
* repeated .Member members = 3;
*/
public Builder removeMembers(int index) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.remove(index);
onChanged();
} else {
membersBuilder_.remove(index);
}
return this;
}
/**
* repeated .Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder getMembersBuilder(
int index) {
return getMembersFieldBuilder().getBuilder(index);
}
/**
* repeated .Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder getMembersOrBuilder(
int index) {
if (membersBuilder_ == null) {
return members_.get(index); } else {
return membersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Member members = 3;
*/
public java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder>
getMembersOrBuilderList() {
if (membersBuilder_ != null) {
return membersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(members_);
}
}
/**
* repeated .Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder addMembersBuilder() {
return getMembersFieldBuilder().addBuilder(
ucar.nc2.ft.point.remote.PointStreamProto.Member.getDefaultInstance());
}
/**
* repeated .Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder addMembersBuilder(
int index) {
return getMembersFieldBuilder().addBuilder(
index, ucar.nc2.ft.point.remote.PointStreamProto.Member.getDefaultInstance());
}
/**
* repeated .Member members = 3;
*/
public java.util.List
getMembersBuilderList() {
return getMembersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft.point.remote.PointStreamProto.Member, ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder, ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder>
getMembersFieldBuilder() {
if (membersBuilder_ == null) {
membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft.point.remote.PointStreamProto.Member, ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder, ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder>(
members_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
members_ = null;
}
return membersBuilder_;
}
private java.lang.Object altUnit_ = "";
/**
* optional string altUnit = 4;
*/
public java.lang.String getAltUnit() {
java.lang.Object ref = altUnit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
altUnit_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string altUnit = 4;
*/
public com.google.protobuf.ByteString
getAltUnitBytes() {
java.lang.Object ref = altUnit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
altUnit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string altUnit = 4;
*/
public Builder setAltUnit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
altUnit_ = value;
onChanged();
return this;
}
/**
* optional string altUnit = 4;
*/
public Builder clearAltUnit() {
altUnit_ = getDefaultInstance().getAltUnit();
onChanged();
return this;
}
/**
* optional string altUnit = 4;
*/
public Builder setAltUnitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
altUnit_ = 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:PointFeatureCollection)
}
// @@protoc_insertion_point(class_scope:PointFeatureCollection)
private static final ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection();
}
public static ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PointFeatureCollection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new PointFeatureCollection(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.ft.point.remote.PointStreamProto.PointFeatureCollection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StationOrBuilder extends
// @@protoc_insertion_point(interface_extends:Station)
com.google.protobuf.MessageOrBuilder {
/**
* optional string id = 1;
*/
java.lang.String getId();
/**
* optional string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* optional double lat = 2;
*/
double getLat();
/**
* optional double lon = 3;
*/
double getLon();
/**
* optional double alt = 4;
*/
double getAlt();
/**
* optional string desc = 5;
*/
java.lang.String getDesc();
/**
* optional string desc = 5;
*/
com.google.protobuf.ByteString
getDescBytes();
/**
* optional string wmoId = 6;
*/
java.lang.String getWmoId();
/**
* optional string wmoId = 6;
*/
com.google.protobuf.ByteString
getWmoIdBytes();
}
/**
* Protobuf type {@code Station}
*/
public static final class Station extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Station)
StationOrBuilder {
// Use Station.newBuilder() to construct.
private Station(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Station() {
id_ = "";
lat_ = 0D;
lon_ = 0D;
alt_ = 0D;
desc_ = "";
wmoId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Station(
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();
id_ = s;
break;
}
case 17: {
lat_ = input.readDouble();
break;
}
case 25: {
lon_ = input.readDouble();
break;
}
case 33: {
alt_ = input.readDouble();
break;
}
case 42: {
String s = input.readStringRequireUtf8();
desc_ = s;
break;
}
case 50: {
String s = input.readStringRequireUtf8();
wmoId_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Station_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Station_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.Station.class, ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAT_FIELD_NUMBER = 2;
private double lat_;
/**
* optional double lat = 2;
*/
public double getLat() {
return lat_;
}
public static final int LON_FIELD_NUMBER = 3;
private double lon_;
/**
* optional double lon = 3;
*/
public double getLon() {
return lon_;
}
public static final int ALT_FIELD_NUMBER = 4;
private double alt_;
/**
* optional double alt = 4;
*/
public double getAlt() {
return alt_;
}
public static final int DESC_FIELD_NUMBER = 5;
private volatile java.lang.Object desc_;
/**
* optional string desc = 5;
*/
public java.lang.String getDesc() {
java.lang.Object ref = desc_;
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();
desc_ = s;
return s;
}
}
/**
* optional string desc = 5;
*/
public com.google.protobuf.ByteString
getDescBytes() {
java.lang.Object ref = desc_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
desc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WMOID_FIELD_NUMBER = 6;
private volatile java.lang.Object wmoId_;
/**
* optional string wmoId = 6;
*/
public java.lang.String getWmoId() {
java.lang.Object ref = wmoId_;
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();
wmoId_ = s;
return s;
}
}
/**
* optional string wmoId = 6;
*/
public com.google.protobuf.ByteString
getWmoIdBytes() {
java.lang.Object ref = wmoId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
wmoId_ = 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 (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
}
if (lat_ != 0D) {
output.writeDouble(2, lat_);
}
if (lon_ != 0D) {
output.writeDouble(3, lon_);
}
if (alt_ != 0D) {
output.writeDouble(4, alt_);
}
if (!getDescBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, desc_);
}
if (!getWmoIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, wmoId_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
}
if (lat_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, lat_);
}
if (lon_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, lon_);
}
if (alt_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, alt_);
}
if (!getDescBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, desc_);
}
if (!getWmoIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(6, wmoId_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft.point.remote.PointStreamProto.Station parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Station 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.ft.point.remote.PointStreamProto.Station parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Station parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Station parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Station parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Station parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Station parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Station parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Station 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.ft.point.remote.PointStreamProto.Station 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 Station}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:Station)
ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Station_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Station_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.Station.class, ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder.class);
}
// Construct using ucar.nc2.ft.point.remote.PointStreamProto.Station.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();
id_ = "";
lat_ = 0D;
lon_ = 0D;
alt_ = 0D;
desc_ = "";
wmoId_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_Station_descriptor;
}
public ucar.nc2.ft.point.remote.PointStreamProto.Station getDefaultInstanceForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.Station.getDefaultInstance();
}
public ucar.nc2.ft.point.remote.PointStreamProto.Station build() {
ucar.nc2.ft.point.remote.PointStreamProto.Station result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft.point.remote.PointStreamProto.Station buildPartial() {
ucar.nc2.ft.point.remote.PointStreamProto.Station result = new ucar.nc2.ft.point.remote.PointStreamProto.Station(this);
result.id_ = id_;
result.lat_ = lat_;
result.lon_ = lon_;
result.alt_ = alt_;
result.desc_ = desc_;
result.wmoId_ = wmoId_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft.point.remote.PointStreamProto.Station) {
return mergeFrom((ucar.nc2.ft.point.remote.PointStreamProto.Station)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft.point.remote.PointStreamProto.Station other) {
if (other == ucar.nc2.ft.point.remote.PointStreamProto.Station.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.getLat() != 0D) {
setLat(other.getLat());
}
if (other.getLon() != 0D) {
setLon(other.getLon());
}
if (other.getAlt() != 0D) {
setAlt(other.getAlt());
}
if (!other.getDesc().isEmpty()) {
desc_ = other.desc_;
onChanged();
}
if (!other.getWmoId().isEmpty()) {
wmoId_ = other.wmoId_;
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.ft.point.remote.PointStreamProto.Station parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft.point.remote.PointStreamProto.Station) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private double lat_ ;
/**
* optional double lat = 2;
*/
public double getLat() {
return lat_;
}
/**
* optional double lat = 2;
*/
public Builder setLat(double value) {
lat_ = value;
onChanged();
return this;
}
/**
* optional double lat = 2;
*/
public Builder clearLat() {
lat_ = 0D;
onChanged();
return this;
}
private double lon_ ;
/**
* optional double lon = 3;
*/
public double getLon() {
return lon_;
}
/**
* optional double lon = 3;
*/
public Builder setLon(double value) {
lon_ = value;
onChanged();
return this;
}
/**
* optional double lon = 3;
*/
public Builder clearLon() {
lon_ = 0D;
onChanged();
return this;
}
private double alt_ ;
/**
* optional double alt = 4;
*/
public double getAlt() {
return alt_;
}
/**
* optional double alt = 4;
*/
public Builder setAlt(double value) {
alt_ = value;
onChanged();
return this;
}
/**
* optional double alt = 4;
*/
public Builder clearAlt() {
alt_ = 0D;
onChanged();
return this;
}
private java.lang.Object desc_ = "";
/**
* optional string desc = 5;
*/
public java.lang.String getDesc() {
java.lang.Object ref = desc_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
desc_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string desc = 5;
*/
public com.google.protobuf.ByteString
getDescBytes() {
java.lang.Object ref = desc_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
desc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string desc = 5;
*/
public Builder setDesc(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
desc_ = value;
onChanged();
return this;
}
/**
* optional string desc = 5;
*/
public Builder clearDesc() {
desc_ = getDefaultInstance().getDesc();
onChanged();
return this;
}
/**
* optional string desc = 5;
*/
public Builder setDescBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
desc_ = value;
onChanged();
return this;
}
private java.lang.Object wmoId_ = "";
/**
* optional string wmoId = 6;
*/
public java.lang.String getWmoId() {
java.lang.Object ref = wmoId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
wmoId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string wmoId = 6;
*/
public com.google.protobuf.ByteString
getWmoIdBytes() {
java.lang.Object ref = wmoId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
wmoId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string wmoId = 6;
*/
public Builder setWmoId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
wmoId_ = value;
onChanged();
return this;
}
/**
* optional string wmoId = 6;
*/
public Builder clearWmoId() {
wmoId_ = getDefaultInstance().getWmoId();
onChanged();
return this;
}
/**
* optional string wmoId = 6;
*/
public Builder setWmoIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
wmoId_ = 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:Station)
}
// @@protoc_insertion_point(class_scope:Station)
private static final ucar.nc2.ft.point.remote.PointStreamProto.Station DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft.point.remote.PointStreamProto.Station();
}
public static ucar.nc2.ft.point.remote.PointStreamProto.Station getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Station parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Station(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.ft.point.remote.PointStreamProto.Station getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StationListOrBuilder extends
// @@protoc_insertion_point(interface_extends:StationList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Station stations = 1;
*/
java.util.List
getStationsList();
/**
* repeated .Station stations = 1;
*/
ucar.nc2.ft.point.remote.PointStreamProto.Station getStations(int index);
/**
* repeated .Station stations = 1;
*/
int getStationsCount();
/**
* repeated .Station stations = 1;
*/
java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder>
getStationsOrBuilderList();
/**
* repeated .Station stations = 1;
*/
ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder getStationsOrBuilder(
int index);
}
/**
* Protobuf type {@code StationList}
*/
public static final class StationList extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:StationList)
StationListOrBuilder {
// Use StationList.newBuilder() to construct.
private StationList(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private StationList() {
stations_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StationList(
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)) {
stations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
stations_.add(input.readMessage(ucar.nc2.ft.point.remote.PointStreamProto.Station.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)) {
stations_ = java.util.Collections.unmodifiableList(stations_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_StationList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_StationList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.StationList.class, ucar.nc2.ft.point.remote.PointStreamProto.StationList.Builder.class);
}
public static final int STATIONS_FIELD_NUMBER = 1;
private java.util.List stations_;
/**
* repeated .Station stations = 1;
*/
public java.util.List getStationsList() {
return stations_;
}
/**
* repeated .Station stations = 1;
*/
public java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder>
getStationsOrBuilderList() {
return stations_;
}
/**
* repeated .Station stations = 1;
*/
public int getStationsCount() {
return stations_.size();
}
/**
* repeated .Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Station getStations(int index) {
return stations_.get(index);
}
/**
* repeated .Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder getStationsOrBuilder(
int index) {
return stations_.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 < stations_.size(); i++) {
output.writeMessage(1, stations_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < stations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, stations_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList 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.ft.point.remote.PointStreamProto.StationList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList 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.ft.point.remote.PointStreamProto.StationList 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 StationList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:StationList)
ucar.nc2.ft.point.remote.PointStreamProto.StationListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_StationList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_StationList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.StationList.class, ucar.nc2.ft.point.remote.PointStreamProto.StationList.Builder.class);
}
// Construct using ucar.nc2.ft.point.remote.PointStreamProto.StationList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getStationsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (stationsBuilder_ == null) {
stations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
stationsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_StationList_descriptor;
}
public ucar.nc2.ft.point.remote.PointStreamProto.StationList getDefaultInstanceForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.StationList.getDefaultInstance();
}
public ucar.nc2.ft.point.remote.PointStreamProto.StationList build() {
ucar.nc2.ft.point.remote.PointStreamProto.StationList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.ft.point.remote.PointStreamProto.StationList buildPartial() {
ucar.nc2.ft.point.remote.PointStreamProto.StationList result = new ucar.nc2.ft.point.remote.PointStreamProto.StationList(this);
int from_bitField0_ = bitField0_;
if (stationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
stations_ = java.util.Collections.unmodifiableList(stations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.stations_ = stations_;
} else {
result.stations_ = stationsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.ft.point.remote.PointStreamProto.StationList) {
return mergeFrom((ucar.nc2.ft.point.remote.PointStreamProto.StationList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.ft.point.remote.PointStreamProto.StationList other) {
if (other == ucar.nc2.ft.point.remote.PointStreamProto.StationList.getDefaultInstance()) return this;
if (stationsBuilder_ == null) {
if (!other.stations_.isEmpty()) {
if (stations_.isEmpty()) {
stations_ = other.stations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStationsIsMutable();
stations_.addAll(other.stations_);
}
onChanged();
}
} else {
if (!other.stations_.isEmpty()) {
if (stationsBuilder_.isEmpty()) {
stationsBuilder_.dispose();
stationsBuilder_ = null;
stations_ = other.stations_;
bitField0_ = (bitField0_ & ~0x00000001);
stationsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getStationsFieldBuilder() : null;
} else {
stationsBuilder_.addAllMessages(other.stations_);
}
}
}
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.ft.point.remote.PointStreamProto.StationList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.ft.point.remote.PointStreamProto.StationList) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List stations_ =
java.util.Collections.emptyList();
private void ensureStationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
stations_ = new java.util.ArrayList(stations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft.point.remote.PointStreamProto.Station, ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder, ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder> stationsBuilder_;
/**
* repeated .Station stations = 1;
*/
public java.util.List getStationsList() {
if (stationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(stations_);
} else {
return stationsBuilder_.getMessageList();
}
}
/**
* repeated .Station stations = 1;
*/
public int getStationsCount() {
if (stationsBuilder_ == null) {
return stations_.size();
} else {
return stationsBuilder_.getCount();
}
}
/**
* repeated .Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Station getStations(int index) {
if (stationsBuilder_ == null) {
return stations_.get(index);
} else {
return stationsBuilder_.getMessage(index);
}
}
/**
* repeated .Station stations = 1;
*/
public Builder setStations(
int index, ucar.nc2.ft.point.remote.PointStreamProto.Station value) {
if (stationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStationsIsMutable();
stations_.set(index, value);
onChanged();
} else {
stationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Station stations = 1;
*/
public Builder setStations(
int index, ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder builderForValue) {
if (stationsBuilder_ == null) {
ensureStationsIsMutable();
stations_.set(index, builderForValue.build());
onChanged();
} else {
stationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Station stations = 1;
*/
public Builder addStations(ucar.nc2.ft.point.remote.PointStreamProto.Station value) {
if (stationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStationsIsMutable();
stations_.add(value);
onChanged();
} else {
stationsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Station stations = 1;
*/
public Builder addStations(
int index, ucar.nc2.ft.point.remote.PointStreamProto.Station value) {
if (stationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStationsIsMutable();
stations_.add(index, value);
onChanged();
} else {
stationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Station stations = 1;
*/
public Builder addStations(
ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder builderForValue) {
if (stationsBuilder_ == null) {
ensureStationsIsMutable();
stations_.add(builderForValue.build());
onChanged();
} else {
stationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Station stations = 1;
*/
public Builder addStations(
int index, ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder builderForValue) {
if (stationsBuilder_ == null) {
ensureStationsIsMutable();
stations_.add(index, builderForValue.build());
onChanged();
} else {
stationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Station stations = 1;
*/
public Builder addAllStations(
java.lang.Iterable extends ucar.nc2.ft.point.remote.PointStreamProto.Station> values) {
if (stationsBuilder_ == null) {
ensureStationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stations_);
onChanged();
} else {
stationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Station stations = 1;
*/
public Builder clearStations() {
if (stationsBuilder_ == null) {
stations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
stationsBuilder_.clear();
}
return this;
}
/**
* repeated .Station stations = 1;
*/
public Builder removeStations(int index) {
if (stationsBuilder_ == null) {
ensureStationsIsMutable();
stations_.remove(index);
onChanged();
} else {
stationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder getStationsBuilder(
int index) {
return getStationsFieldBuilder().getBuilder(index);
}
/**
* repeated .Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder getStationsOrBuilder(
int index) {
if (stationsBuilder_ == null) {
return stations_.get(index); } else {
return stationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Station stations = 1;
*/
public java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder>
getStationsOrBuilderList() {
if (stationsBuilder_ != null) {
return stationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(stations_);
}
}
/**
* repeated .Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder addStationsBuilder() {
return getStationsFieldBuilder().addBuilder(
ucar.nc2.ft.point.remote.PointStreamProto.Station.getDefaultInstance());
}
/**
* repeated .Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder addStationsBuilder(
int index) {
return getStationsFieldBuilder().addBuilder(
index, ucar.nc2.ft.point.remote.PointStreamProto.Station.getDefaultInstance());
}
/**
* repeated .Station stations = 1;
*/
public java.util.List
getStationsBuilderList() {
return getStationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft.point.remote.PointStreamProto.Station, ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder, ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder>
getStationsFieldBuilder() {
if (stationsBuilder_ == null) {
stationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.ft.point.remote.PointStreamProto.Station, ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder, ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder>(
stations_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
stations_ = null;
}
return stationsBuilder_;
}
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:StationList)
}
// @@protoc_insertion_point(class_scope:StationList)
private static final ucar.nc2.ft.point.remote.PointStreamProto.StationList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ucar.nc2.ft.point.remote.PointStreamProto.StationList();
}
public static ucar.nc2.ft.point.remote.PointStreamProto.StationList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StationList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new StationList(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.ft.point.remote.PointStreamProto.StationList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_Location_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Location_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_PointFeature_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_PointFeature_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_Member_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Member_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_PointFeatureCollection_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_PointFeatureCollection_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_Station_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Station_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_StationList_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_StationList_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/ft/point/remote/pointStream.p" +
"roto\032\036ucar/nc2/stream/ncStream.proto\"P\n\010" +
"Location\022\014\n\004time\030\001 \001(\001\022\013\n\003lat\030\002 \001(\001\022\013\n\003l" +
"on\030\003 \001(\001\022\013\n\003alt\030\004 \001(\001\022\017\n\007nomTime\030\005 \001(\001\"C" +
"\n\014PointFeature\022\026\n\003loc\030\001 \001(\0132\t.Location\022\014" +
"\n\004data\030\003 \001(\014\022\r\n\005sdata\030\004 \003(\t\"k\n\006Member\022\014\n" +
"\004name\030\001 \001(\t\022\014\n\004desc\030\002 \001(\t\022\r\n\005units\030\003 \001(\t" +
"\022\033\n\010dataType\030\004 \001(\0162\t.DataType\022\031\n\007section" +
"\030\005 \001(\0132\010.Section\"c\n\026PointFeatureCollecti" +
"on\022\014\n\004name\030\001 \001(\t\022\020\n\010timeUnit\030\002 \001(\t\022\030\n\007me",
"mbers\030\003 \003(\0132\007.Member\022\017\n\007altUnit\030\004 \001(\t\"Y\n" +
"\007Station\022\n\n\002id\030\001 \001(\t\022\013\n\003lat\030\002 \001(\001\022\013\n\003lon" +
"\030\003 \001(\001\022\013\n\003alt\030\004 \001(\001\022\014\n\004desc\030\005 \001(\t\022\r\n\005wmo" +
"Id\030\006 \001(\t\")\n\013StationList\022\032\n\010stations\030\001 \003(" +
"\0132\010.StationB,\n\030ucar.nc2.ft.point.remoteB" +
"\020PointStreamProtob\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_Location_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Location_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_Location_descriptor,
new java.lang.String[] { "Time", "Lat", "Lon", "Alt", "NomTime", });
internal_static_PointFeature_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_PointFeature_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_PointFeature_descriptor,
new java.lang.String[] { "Loc", "Data", "Sdata", });
internal_static_Member_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_Member_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_Member_descriptor,
new java.lang.String[] { "Name", "Desc", "Units", "DataType", "Section", });
internal_static_PointFeatureCollection_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_PointFeatureCollection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_PointFeatureCollection_descriptor,
new java.lang.String[] { "Name", "TimeUnit", "Members", "AltUnit", });
internal_static_Station_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_Station_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_Station_descriptor,
new java.lang.String[] { "Id", "Lat", "Lon", "Alt", "Desc", "WmoId", });
internal_static_StationList_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_StationList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_StationList_descriptor,
new java.lang.String[] { "Stations", });
ucar.nc2.stream.NcStreamProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}