ucar.nc2.ft.point.remote.PointStreamProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdm Show documentation
Show all versions of cdm Show documentation
The NetCDF-Java Library is a Java interface to NetCDF files,
as well as to many other types of scientific data formats.
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 com.google.protobuf.MessageOrBuilder {
// required double time = 1;
/**
* required double time = 1;
*/
boolean hasTime();
/**
* required double time = 1;
*/
double getTime();
// required double lat = 2;
/**
* required double lat = 2;
*/
boolean hasLat();
/**
* required double lat = 2;
*/
double getLat();
// required double lon = 3;
/**
* required double lon = 3;
*/
boolean hasLon();
/**
* required double lon = 3;
*/
double getLon();
// optional double alt = 4;
/**
* optional double alt = 4;
*/
boolean hasAlt();
/**
* optional double alt = 4;
*/
double getAlt();
// optional double nomTime = 5;
/**
* optional double nomTime = 5;
*/
boolean hasNomTime();
/**
* optional double nomTime = 5;
*/
double getNomTime();
}
/**
* Protobuf type {@code pointStream.Location}
*/
public static final class Location extends
com.google.protobuf.GeneratedMessage
implements LocationOrBuilder {
// Use Location.newBuilder() to construct.
private Location(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Location(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Location defaultInstance;
public static Location getDefaultInstance() {
return defaultInstance;
}
public Location getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Location(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 9: {
bitField0_ |= 0x00000001;
time_ = input.readDouble();
break;
}
case 17: {
bitField0_ |= 0x00000002;
lat_ = input.readDouble();
break;
}
case 25: {
bitField0_ |= 0x00000004;
lon_ = input.readDouble();
break;
}
case 33: {
bitField0_ |= 0x00000008;
alt_ = input.readDouble();
break;
}
case 41: {
bitField0_ |= 0x00000010;
nomTime_ = input.readDouble();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_Location_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.Location.class, ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder.class);
}
public static 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 {
return new Location(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required double time = 1;
public static final int TIME_FIELD_NUMBER = 1;
private double time_;
/**
* required double time = 1;
*/
public boolean hasTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required double time = 1;
*/
public double getTime() {
return time_;
}
// required double lat = 2;
public static final int LAT_FIELD_NUMBER = 2;
private double lat_;
/**
* required double lat = 2;
*/
public boolean hasLat() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required double lat = 2;
*/
public double getLat() {
return lat_;
}
// required double lon = 3;
public static final int LON_FIELD_NUMBER = 3;
private double lon_;
/**
* required double lon = 3;
*/
public boolean hasLon() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required double lon = 3;
*/
public double getLon() {
return lon_;
}
// optional double alt = 4;
public static final int ALT_FIELD_NUMBER = 4;
private double alt_;
/**
* optional double alt = 4;
*/
public boolean hasAlt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional double alt = 4;
*/
public double getAlt() {
return alt_;
}
// optional double nomTime = 5;
public static final int NOMTIME_FIELD_NUMBER = 5;
private double nomTime_;
/**
* optional double nomTime = 5;
*/
public boolean hasNomTime() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional double nomTime = 5;
*/
public double getNomTime() {
return nomTime_;
}
private void initFields() {
time_ = 0D;
lat_ = 0D;
lon_ = 0D;
alt_ = 0D;
nomTime_ = 0D;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasTime()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLat()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLon()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeDouble(1, time_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, lat_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeDouble(3, lon_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeDouble(4, alt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeDouble(5, nomTime_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, time_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, lat_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, lon_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, alt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, nomTime_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
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 static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(ucar.nc2.ft.point.remote.PointStreamProto.Location prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pointStream.Location}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements 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_pointStream_Location_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
time_ = 0D;
bitField0_ = (bitField0_ & ~0x00000001);
lat_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
lon_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
alt_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
nomTime_ = 0D;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.time_ = time_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lat_ = lat_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lon_ = lon_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.alt_ = alt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.nomTime_ = nomTime_;
result.bitField0_ = to_bitField0_;
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.hasTime()) {
setTime(other.getTime());
}
if (other.hasLat()) {
setLat(other.getLat());
}
if (other.hasLon()) {
setLon(other.getLon());
}
if (other.hasAlt()) {
setAlt(other.getAlt());
}
if (other.hasNomTime()) {
setNomTime(other.getNomTime());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTime()) {
return false;
}
if (!hasLat()) {
return false;
}
if (!hasLon()) {
return false;
}
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 int bitField0_;
// required double time = 1;
private double time_ ;
/**
* required double time = 1;
*/
public boolean hasTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required double time = 1;
*/
public double getTime() {
return time_;
}
/**
* required double time = 1;
*/
public Builder setTime(double value) {
bitField0_ |= 0x00000001;
time_ = value;
onChanged();
return this;
}
/**
* required double time = 1;
*/
public Builder clearTime() {
bitField0_ = (bitField0_ & ~0x00000001);
time_ = 0D;
onChanged();
return this;
}
// required double lat = 2;
private double lat_ ;
/**
* required double lat = 2;
*/
public boolean hasLat() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required double lat = 2;
*/
public double getLat() {
return lat_;
}
/**
* required double lat = 2;
*/
public Builder setLat(double value) {
bitField0_ |= 0x00000002;
lat_ = value;
onChanged();
return this;
}
/**
* required double lat = 2;
*/
public Builder clearLat() {
bitField0_ = (bitField0_ & ~0x00000002);
lat_ = 0D;
onChanged();
return this;
}
// required double lon = 3;
private double lon_ ;
/**
* required double lon = 3;
*/
public boolean hasLon() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required double lon = 3;
*/
public double getLon() {
return lon_;
}
/**
* required double lon = 3;
*/
public Builder setLon(double value) {
bitField0_ |= 0x00000004;
lon_ = value;
onChanged();
return this;
}
/**
* required double lon = 3;
*/
public Builder clearLon() {
bitField0_ = (bitField0_ & ~0x00000004);
lon_ = 0D;
onChanged();
return this;
}
// optional double alt = 4;
private double alt_ ;
/**
* optional double alt = 4;
*/
public boolean hasAlt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional double alt = 4;
*/
public double getAlt() {
return alt_;
}
/**
* optional double alt = 4;
*/
public Builder setAlt(double value) {
bitField0_ |= 0x00000008;
alt_ = value;
onChanged();
return this;
}
/**
* optional double alt = 4;
*/
public Builder clearAlt() {
bitField0_ = (bitField0_ & ~0x00000008);
alt_ = 0D;
onChanged();
return this;
}
// optional double nomTime = 5;
private double nomTime_ ;
/**
* optional double nomTime = 5;
*/
public boolean hasNomTime() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional double nomTime = 5;
*/
public double getNomTime() {
return nomTime_;
}
/**
* optional double nomTime = 5;
*/
public Builder setNomTime(double value) {
bitField0_ |= 0x00000010;
nomTime_ = value;
onChanged();
return this;
}
/**
* optional double nomTime = 5;
*/
public Builder clearNomTime() {
bitField0_ = (bitField0_ & ~0x00000010);
nomTime_ = 0D;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pointStream.Location)
}
static {
defaultInstance = new Location(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pointStream.Location)
}
public interface PointFeatureOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .pointStream.Location loc = 1;
/**
* required .pointStream.Location loc = 1;
*/
boolean hasLoc();
/**
* required .pointStream.Location loc = 1;
*/
ucar.nc2.ft.point.remote.PointStreamProto.Location getLoc();
/**
* required .pointStream.Location loc = 1;
*/
ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder getLocOrBuilder();
// required bytes data = 3;
/**
* required bytes data = 3;
*
*
* fixed length data
*
*/
boolean hasData();
/**
* required bytes data = 3;
*
*
* fixed length data
*
*/
com.google.protobuf.ByteString getData();
// repeated string sdata = 4;
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
java.util.List
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 pointStream.PointFeature}
*/
public static final class PointFeature extends
com.google.protobuf.GeneratedMessage
implements PointFeatureOrBuilder {
// Use PointFeature.newBuilder() to construct.
private PointFeature(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PointFeature(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PointFeature defaultInstance;
public static PointFeature getDefaultInstance() {
return defaultInstance;
}
public PointFeature getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PointFeature(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = loc_.toBuilder();
}
loc_ = input.readMessage(ucar.nc2.ft.point.remote.PointStreamProto.Location.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loc_);
loc_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 26: {
bitField0_ |= 0x00000002;
data_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
sdata_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
sdata_.add(input.readBytes());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
sdata_ = new com.google.protobuf.UnmodifiableLazyStringList(sdata_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_PointFeature_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_PointFeature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.PointFeature.class, ucar.nc2.ft.point.remote.PointStreamProto.PointFeature.Builder.class);
}
public static 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 {
return new PointFeature(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .pointStream.Location loc = 1;
public static final int LOC_FIELD_NUMBER = 1;
private ucar.nc2.ft.point.remote.PointStreamProto.Location loc_;
/**
* required .pointStream.Location loc = 1;
*/
public boolean hasLoc() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .pointStream.Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Location getLoc() {
return loc_;
}
/**
* required .pointStream.Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder getLocOrBuilder() {
return loc_;
}
// required bytes data = 3;
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
* required bytes data = 3;
*
*
* fixed length data
*
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes data = 3;
*
*
* fixed length data
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
// repeated string sdata = 4;
public static final int SDATA_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList sdata_;
/**
* repeated string sdata = 4;
*
*
* Strings
*
*/
public java.util.List
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 void initFields() {
loc_ = ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance();
data_ = com.google.protobuf.ByteString.EMPTY;
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasLoc()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
if (!getLoc().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, loc_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(3, data_);
}
for (int i = 0; i < sdata_.size(); i++) {
output.writeBytes(4, sdata_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, loc_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
{
int dataSize = 0;
for (int i = 0; i < sdata_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(sdata_.getByteString(i));
}
size += dataSize;
size += 1 * getSdataList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
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 static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(ucar.nc2.ft.point.remote.PointStreamProto.PointFeature prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pointStream.PointFeature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements 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_pointStream_PointFeature_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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) {
getLocFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (locBuilder_ == null) {
loc_ = ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance();
} else {
locBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
sdata_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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 (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (locBuilder_ == null) {
result.loc_ = loc_;
} else {
result.loc_ = locBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.data_ = data_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
sdata_ = new com.google.protobuf.UnmodifiableLazyStringList(
sdata_);
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.hasData()) {
setData(other.getData());
}
if (!other.sdata_.isEmpty()) {
if (sdata_.isEmpty()) {
sdata_ = other.sdata_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSdataIsMutable();
sdata_.addAll(other.sdata_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasLoc()) {
return false;
}
if (!hasData()) {
return false;
}
if (!getLoc().isInitialized()) {
return false;
}
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_;
// required .pointStream.Location loc = 1;
private ucar.nc2.ft.point.remote.PointStreamProto.Location loc_ = ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance();
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_;
/**
* required .pointStream.Location loc = 1;
*/
public boolean hasLoc() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .pointStream.Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Location getLoc() {
if (locBuilder_ == null) {
return loc_;
} else {
return locBuilder_.getMessage();
}
}
/**
* required .pointStream.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);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .pointStream.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());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .pointStream.Location loc = 1;
*/
public Builder mergeLoc(ucar.nc2.ft.point.remote.PointStreamProto.Location value) {
if (locBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
loc_ != ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance()) {
loc_ =
ucar.nc2.ft.point.remote.PointStreamProto.Location.newBuilder(loc_).mergeFrom(value).buildPartial();
} else {
loc_ = value;
}
onChanged();
} else {
locBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .pointStream.Location loc = 1;
*/
public Builder clearLoc() {
if (locBuilder_ == null) {
loc_ = ucar.nc2.ft.point.remote.PointStreamProto.Location.getDefaultInstance();
onChanged();
} else {
locBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .pointStream.Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Location.Builder getLocBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getLocFieldBuilder().getBuilder();
}
/**
* required .pointStream.Location loc = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.LocationOrBuilder getLocOrBuilder() {
if (locBuilder_ != null) {
return locBuilder_.getMessageOrBuilder();
} else {
return loc_;
}
}
/**
* required .pointStream.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>(
loc_,
getParentForChildren(),
isClean());
loc_ = null;
}
return locBuilder_;
}
// required bytes data = 3;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes data = 3;
*
*
* fixed length data
*
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes data = 3;
*
*
* fixed length data
*
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* required bytes data = 3;
*
*
* fixed length data
*
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
data_ = value;
onChanged();
return this;
}
/**
* required bytes data = 3;
*
*
* fixed length data
*
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000002);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
// repeated string sdata = 4;
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 java.util.List
getSdataList() {
return java.util.Collections.unmodifiableList(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);
}
/**
* 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();
super.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();
}
ensureSdataIsMutable();
sdata_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pointStream.PointFeature)
}
static {
defaultInstance = new PointFeature(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pointStream.PointFeature)
}
public interface MemberOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 1;
/**
* required string name = 1;
*/
boolean hasName();
/**
* required string name = 1;
*/
java.lang.String getName();
/**
* required string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional string desc = 2;
/**
* optional string desc = 2;
*/
boolean hasDesc();
/**
* optional string desc = 2;
*/
java.lang.String getDesc();
/**
* optional string desc = 2;
*/
com.google.protobuf.ByteString
getDescBytes();
// optional string units = 3;
/**
* optional string units = 3;
*/
boolean hasUnits();
/**
* optional string units = 3;
*/
java.lang.String getUnits();
/**
* optional string units = 3;
*/
com.google.protobuf.ByteString
getUnitsBytes();
// required .ncstream.DataType dataType = 4;
/**
* required .ncstream.DataType dataType = 4;
*/
boolean hasDataType();
/**
* required .ncstream.DataType dataType = 4;
*/
ucar.nc2.stream.NcStreamProto.DataType getDataType();
// required .ncstream.Section section = 5;
/**
* required .ncstream.Section section = 5;
*/
boolean hasSection();
/**
* required .ncstream.Section section = 5;
*/
ucar.nc2.stream.NcStreamProto.Section getSection();
/**
* required .ncstream.Section section = 5;
*/
ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder();
}
/**
* Protobuf type {@code pointStream.Member}
*/
public static final class Member extends
com.google.protobuf.GeneratedMessage
implements MemberOrBuilder {
// Use Member.newBuilder() to construct.
private Member(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Member(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Member defaultInstance;
public static Member getDefaultInstance() {
return defaultInstance;
}
public Member getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Member(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
desc_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
units_ = input.readBytes();
break;
}
case 32: {
int rawValue = input.readEnum();
ucar.nc2.stream.NcStreamProto.DataType value = ucar.nc2.stream.NcStreamProto.DataType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
dataType_ = value;
}
break;
}
case 42: {
ucar.nc2.stream.NcStreamProto.Section.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = section_.toBuilder();
}
section_ = input.readMessage(ucar.nc2.stream.NcStreamProto.Section.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(section_);
section_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_Member_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_Member_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.Member.class, ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder.class);
}
public static 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 {
return new Member(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required 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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required 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;
}
}
// optional string desc = 2;
public static final int DESC_FIELD_NUMBER = 2;
private java.lang.Object desc_;
/**
* optional string desc = 2;
*/
public boolean hasDesc() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* 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();
if (bs.isValidUtf8()) {
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;
}
}
// optional string units = 3;
public static final int UNITS_FIELD_NUMBER = 3;
private java.lang.Object units_;
/**
* optional string units = 3;
*/
public boolean hasUnits() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* 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();
if (bs.isValidUtf8()) {
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;
}
}
// required .ncstream.DataType dataType = 4;
public static final int DATATYPE_FIELD_NUMBER = 4;
private ucar.nc2.stream.NcStreamProto.DataType dataType_;
/**
* required .ncstream.DataType dataType = 4;
*/
public boolean hasDataType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required .ncstream.DataType dataType = 4;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
return dataType_;
}
// required .ncstream.Section section = 5;
public static final int SECTION_FIELD_NUMBER = 5;
private ucar.nc2.stream.NcStreamProto.Section section_;
/**
* required .ncstream.Section section = 5;
*/
public boolean hasSection() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required .ncstream.Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
return section_;
}
/**
* required .ncstream.Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() {
return section_;
}
private void initFields() {
name_ = "";
desc_ = "";
units_ = "";
dataType_ = ucar.nc2.stream.NcStreamProto.DataType.CHAR;
section_ = ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDataType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSection()) {
memoizedIsInitialized = 0;
return false;
}
if (!getSection().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getDescBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getUnitsBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeEnum(4, dataType_.getNumber());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, section_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getDescBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getUnitsBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, dataType_.getNumber());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, section_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
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 static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(ucar.nc2.ft.point.remote.PointStreamProto.Member prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pointStream.Member}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements 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_pointStream_Member_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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) {
getSectionFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
desc_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
units_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
dataType_ = ucar.nc2.stream.NcStreamProto.DataType.CHAR;
bitField0_ = (bitField0_ & ~0x00000008);
if (sectionBuilder_ == null) {
section_ = ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance();
} else {
sectionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.desc_ = desc_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.units_ = units_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.dataType_ = dataType_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (sectionBuilder_ == null) {
result.section_ = section_;
} else {
result.section_ = sectionBuilder_.build();
}
result.bitField0_ = to_bitField0_;
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.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasDesc()) {
bitField0_ |= 0x00000002;
desc_ = other.desc_;
onChanged();
}
if (other.hasUnits()) {
bitField0_ |= 0x00000004;
units_ = other.units_;
onChanged();
}
if (other.hasDataType()) {
setDataType(other.getDataType());
}
if (other.hasSection()) {
mergeSection(other.getSection());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasDataType()) {
return false;
}
if (!hasSection()) {
return false;
}
if (!getSection().isInitialized()) {
return false;
}
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 int bitField0_;
// required string name = 1;
private java.lang.Object name_ = "";
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required 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;
}
}
/**
* required string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// optional string desc = 2;
private java.lang.Object desc_ = "";
/**
* optional string desc = 2;
*/
public boolean hasDesc() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string desc = 2;
*/
public java.lang.String getDesc() {
java.lang.Object ref = desc_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.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();
}
bitField0_ |= 0x00000002;
desc_ = value;
onChanged();
return this;
}
/**
* optional string desc = 2;
*/
public Builder clearDesc() {
bitField0_ = (bitField0_ & ~0x00000002);
desc_ = getDefaultInstance().getDesc();
onChanged();
return this;
}
/**
* optional string desc = 2;
*/
public Builder setDescBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
desc_ = value;
onChanged();
return this;
}
// optional string units = 3;
private java.lang.Object units_ = "";
/**
* optional string units = 3;
*/
public boolean hasUnits() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string units = 3;
*/
public java.lang.String getUnits() {
java.lang.Object ref = units_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.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();
}
bitField0_ |= 0x00000004;
units_ = value;
onChanged();
return this;
}
/**
* optional string units = 3;
*/
public Builder clearUnits() {
bitField0_ = (bitField0_ & ~0x00000004);
units_ = getDefaultInstance().getUnits();
onChanged();
return this;
}
/**
* optional string units = 3;
*/
public Builder setUnitsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
units_ = value;
onChanged();
return this;
}
// required .ncstream.DataType dataType = 4;
private ucar.nc2.stream.NcStreamProto.DataType dataType_ = ucar.nc2.stream.NcStreamProto.DataType.CHAR;
/**
* required .ncstream.DataType dataType = 4;
*/
public boolean hasDataType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required .ncstream.DataType dataType = 4;
*/
public ucar.nc2.stream.NcStreamProto.DataType getDataType() {
return dataType_;
}
/**
* required .ncstream.DataType dataType = 4;
*/
public Builder setDataType(ucar.nc2.stream.NcStreamProto.DataType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
dataType_ = value;
onChanged();
return this;
}
/**
* required .ncstream.DataType dataType = 4;
*/
public Builder clearDataType() {
bitField0_ = (bitField0_ & ~0x00000008);
dataType_ = ucar.nc2.stream.NcStreamProto.DataType.CHAR;
onChanged();
return this;
}
// required .ncstream.Section section = 5;
private ucar.nc2.stream.NcStreamProto.Section section_ = ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
ucar.nc2.stream.NcStreamProto.Section, ucar.nc2.stream.NcStreamProto.Section.Builder, ucar.nc2.stream.NcStreamProto.SectionOrBuilder> sectionBuilder_;
/**
* required .ncstream.Section section = 5;
*/
public boolean hasSection() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required .ncstream.Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.Section getSection() {
if (sectionBuilder_ == null) {
return section_;
} else {
return sectionBuilder_.getMessage();
}
}
/**
* required .ncstream.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);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* required .ncstream.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());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* required .ncstream.Section section = 5;
*/
public Builder mergeSection(ucar.nc2.stream.NcStreamProto.Section value) {
if (sectionBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
section_ != ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance()) {
section_ =
ucar.nc2.stream.NcStreamProto.Section.newBuilder(section_).mergeFrom(value).buildPartial();
} else {
section_ = value;
}
onChanged();
} else {
sectionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* required .ncstream.Section section = 5;
*/
public Builder clearSection() {
if (sectionBuilder_ == null) {
section_ = ucar.nc2.stream.NcStreamProto.Section.getDefaultInstance();
onChanged();
} else {
sectionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* required .ncstream.Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.Section.Builder getSectionBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getSectionFieldBuilder().getBuilder();
}
/**
* required .ncstream.Section section = 5;
*/
public ucar.nc2.stream.NcStreamProto.SectionOrBuilder getSectionOrBuilder() {
if (sectionBuilder_ != null) {
return sectionBuilder_.getMessageOrBuilder();
} else {
return section_;
}
}
/**
* required .ncstream.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>(
section_,
getParentForChildren(),
isClean());
section_ = null;
}
return sectionBuilder_;
}
// @@protoc_insertion_point(builder_scope:pointStream.Member)
}
static {
defaultInstance = new Member(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pointStream.Member)
}
public interface PointFeatureCollectionOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 1;
/**
* required string name = 1;
*/
boolean hasName();
/**
* required string name = 1;
*/
java.lang.String getName();
/**
* required string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// required string timeUnit = 2;
/**
* required string timeUnit = 2;
*/
boolean hasTimeUnit();
/**
* required string timeUnit = 2;
*/
java.lang.String getTimeUnit();
/**
* required string timeUnit = 2;
*/
com.google.protobuf.ByteString
getTimeUnitBytes();
// repeated .pointStream.Member members = 3;
/**
* repeated .pointStream.Member members = 3;
*/
java.util.List
getMembersList();
/**
* repeated .pointStream.Member members = 3;
*/
ucar.nc2.ft.point.remote.PointStreamProto.Member getMembers(int index);
/**
* repeated .pointStream.Member members = 3;
*/
int getMembersCount();
/**
* repeated .pointStream.Member members = 3;
*/
java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder>
getMembersOrBuilderList();
/**
* repeated .pointStream.Member members = 3;
*/
ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder getMembersOrBuilder(
int index);
}
/**
* Protobuf type {@code pointStream.PointFeatureCollection}
*/
public static final class PointFeatureCollection extends
com.google.protobuf.GeneratedMessage
implements PointFeatureCollectionOrBuilder {
// Use PointFeatureCollection.newBuilder() to construct.
private PointFeatureCollection(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PointFeatureCollection(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PointFeatureCollection defaultInstance;
public static PointFeatureCollection getDefaultInstance() {
return defaultInstance;
}
public PointFeatureCollection getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PointFeatureCollection(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
timeUnit_ = input.readBytes();
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;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
members_ = java.util.Collections.unmodifiableList(members_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_PointFeatureCollection_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_PointFeatureCollection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection.class, ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection.Builder.class);
}
public static 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 {
return new PointFeatureCollection(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required 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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required 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;
}
}
// required string timeUnit = 2;
public static final int TIMEUNIT_FIELD_NUMBER = 2;
private java.lang.Object timeUnit_;
/**
* required string timeUnit = 2;
*/
public boolean hasTimeUnit() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required 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();
if (bs.isValidUtf8()) {
timeUnit_ = s;
}
return s;
}
}
/**
* required 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;
}
}
// repeated .pointStream.Member members = 3;
public static final int MEMBERS_FIELD_NUMBER = 3;
private java.util.List members_;
/**
* repeated .pointStream.Member members = 3;
*/
public java.util.List getMembersList() {
return members_;
}
/**
* repeated .pointStream.Member members = 3;
*/
public java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder>
getMembersOrBuilderList() {
return members_;
}
/**
* repeated .pointStream.Member members = 3;
*/
public int getMembersCount() {
return members_.size();
}
/**
* repeated .pointStream.Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Member getMembers(int index) {
return members_.get(index);
}
/**
* repeated .pointStream.Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.MemberOrBuilder getMembersOrBuilder(
int index) {
return members_.get(index);
}
private void initFields() {
name_ = "";
timeUnit_ = "";
members_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTimeUnit()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getMembersCount(); i++) {
if (!getMembers(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getTimeUnitBytes());
}
for (int i = 0; i < members_.size(); i++) {
output.writeMessage(3, members_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getTimeUnitBytes());
}
for (int i = 0; i < members_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, members_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
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 static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(ucar.nc2.ft.point.remote.PointStreamProto.PointFeatureCollection prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pointStream.PointFeatureCollection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements 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_pointStream_PointFeatureCollection_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
timeUnit_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
membersBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
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.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.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasTimeUnit()) {
bitField0_ |= 0x00000002;
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_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasTimeUnit()) {
return false;
}
for (int i = 0; i < getMembersCount(); i++) {
if (!getMembers(i).isInitialized()) {
return false;
}
}
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_;
// required string name = 1;
private java.lang.Object name_ = "";
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required 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;
}
}
/**
* required string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// required string timeUnit = 2;
private java.lang.Object timeUnit_ = "";
/**
* required string timeUnit = 2;
*/
public boolean hasTimeUnit() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string timeUnit = 2;
*/
public java.lang.String getTimeUnit() {
java.lang.Object ref = timeUnit_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
timeUnit_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required 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;
}
}
/**
* required string timeUnit = 2;
*/
public Builder setTimeUnit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
timeUnit_ = value;
onChanged();
return this;
}
/**
* required string timeUnit = 2;
*/
public Builder clearTimeUnit() {
bitField0_ = (bitField0_ & ~0x00000002);
timeUnit_ = getDefaultInstance().getTimeUnit();
onChanged();
return this;
}
/**
* required string timeUnit = 2;
*/
public Builder setTimeUnitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
timeUnit_ = value;
onChanged();
return this;
}
// repeated .pointStream.Member members = 3;
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 .pointStream.Member members = 3;
*/
public java.util.List getMembersList() {
if (membersBuilder_ == null) {
return java.util.Collections.unmodifiableList(members_);
} else {
return membersBuilder_.getMessageList();
}
}
/**
* repeated .pointStream.Member members = 3;
*/
public int getMembersCount() {
if (membersBuilder_ == null) {
return members_.size();
} else {
return membersBuilder_.getCount();
}
}
/**
* repeated .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.Member members = 3;
*/
public Builder addAllMembers(
java.lang.Iterable extends ucar.nc2.ft.point.remote.PointStreamProto.Member> values) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
super.addAll(values, members_);
onChanged();
} else {
membersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .pointStream.Member members = 3;
*/
public Builder clearMembers() {
if (membersBuilder_ == null) {
members_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
membersBuilder_.clear();
}
return this;
}
/**
* repeated .pointStream.Member members = 3;
*/
public Builder removeMembers(int index) {
if (membersBuilder_ == null) {
ensureMembersIsMutable();
members_.remove(index);
onChanged();
} else {
membersBuilder_.remove(index);
}
return this;
}
/**
* repeated .pointStream.Member members = 3;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Member.Builder getMembersBuilder(
int index) {
return getMembersFieldBuilder().getBuilder(index);
}
/**
* repeated .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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_;
}
// @@protoc_insertion_point(builder_scope:pointStream.PointFeatureCollection)
}
static {
defaultInstance = new PointFeatureCollection(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pointStream.PointFeatureCollection)
}
public interface StationOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string id = 1;
/**
* required string id = 1;
*/
boolean hasId();
/**
* required string id = 1;
*/
java.lang.String getId();
/**
* required string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
// required double lat = 2;
/**
* required double lat = 2;
*/
boolean hasLat();
/**
* required double lat = 2;
*/
double getLat();
// required double lon = 3;
/**
* required double lon = 3;
*/
boolean hasLon();
/**
* required double lon = 3;
*/
double getLon();
// optional double alt = 4;
/**
* optional double alt = 4;
*/
boolean hasAlt();
/**
* optional double alt = 4;
*/
double getAlt();
// optional string desc = 5;
/**
* optional string desc = 5;
*/
boolean hasDesc();
/**
* optional string desc = 5;
*/
java.lang.String getDesc();
/**
* optional string desc = 5;
*/
com.google.protobuf.ByteString
getDescBytes();
// optional string wmoId = 6;
/**
* optional string wmoId = 6;
*/
boolean hasWmoId();
/**
* optional string wmoId = 6;
*/
java.lang.String getWmoId();
/**
* optional string wmoId = 6;
*/
com.google.protobuf.ByteString
getWmoIdBytes();
}
/**
* Protobuf type {@code pointStream.Station}
*/
public static final class Station extends
com.google.protobuf.GeneratedMessage
implements StationOrBuilder {
// Use Station.newBuilder() to construct.
private Station(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Station(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Station defaultInstance;
public static Station getDefaultInstance() {
return defaultInstance;
}
public Station getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Station(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
id_ = input.readBytes();
break;
}
case 17: {
bitField0_ |= 0x00000002;
lat_ = input.readDouble();
break;
}
case 25: {
bitField0_ |= 0x00000004;
lon_ = input.readDouble();
break;
}
case 33: {
bitField0_ |= 0x00000008;
alt_ = input.readDouble();
break;
}
case 42: {
bitField0_ |= 0x00000010;
desc_ = input.readBytes();
break;
}
case 50: {
bitField0_ |= 0x00000020;
wmoId_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_Station_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_Station_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.Station.class, ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder.class);
}
public static 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 {
return new Station(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string id = 1;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.Object id_;
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required 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();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
}
}
/**
* required 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;
}
}
// required double lat = 2;
public static final int LAT_FIELD_NUMBER = 2;
private double lat_;
/**
* required double lat = 2;
*/
public boolean hasLat() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required double lat = 2;
*/
public double getLat() {
return lat_;
}
// required double lon = 3;
public static final int LON_FIELD_NUMBER = 3;
private double lon_;
/**
* required double lon = 3;
*/
public boolean hasLon() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required double lon = 3;
*/
public double getLon() {
return lon_;
}
// optional double alt = 4;
public static final int ALT_FIELD_NUMBER = 4;
private double alt_;
/**
* optional double alt = 4;
*/
public boolean hasAlt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional double alt = 4;
*/
public double getAlt() {
return alt_;
}
// optional string desc = 5;
public static final int DESC_FIELD_NUMBER = 5;
private java.lang.Object desc_;
/**
* optional string desc = 5;
*/
public boolean hasDesc() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* 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();
if (bs.isValidUtf8()) {
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;
}
}
// optional string wmoId = 6;
public static final int WMOID_FIELD_NUMBER = 6;
private java.lang.Object wmoId_;
/**
* optional string wmoId = 6;
*/
public boolean hasWmoId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* 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();
if (bs.isValidUtf8()) {
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 void initFields() {
id_ = "";
lat_ = 0D;
lon_ = 0D;
alt_ = 0D;
desc_ = "";
wmoId_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLat()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLon()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, lat_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeDouble(3, lon_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeDouble(4, alt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getDescBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(6, getWmoIdBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, lat_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, lon_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, alt_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getDescBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getWmoIdBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
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 static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(ucar.nc2.ft.point.remote.PointStreamProto.Station prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pointStream.Station}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements 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_pointStream_Station_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
lat_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
lon_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
alt_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
desc_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
wmoId_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.lat_ = lat_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lon_ = lon_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.alt_ = alt_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.desc_ = desc_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.wmoId_ = wmoId_;
result.bitField0_ = to_bitField0_;
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.hasId()) {
bitField0_ |= 0x00000001;
id_ = other.id_;
onChanged();
}
if (other.hasLat()) {
setLat(other.getLat());
}
if (other.hasLon()) {
setLon(other.getLon());
}
if (other.hasAlt()) {
setAlt(other.getAlt());
}
if (other.hasDesc()) {
bitField0_ |= 0x00000010;
desc_ = other.desc_;
onChanged();
}
if (other.hasWmoId()) {
bitField0_ |= 0x00000020;
wmoId_ = other.wmoId_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
if (!hasLat()) {
return false;
}
if (!hasLon()) {
return false;
}
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 int bitField0_;
// required string id = 1;
private java.lang.Object id_ = "";
/**
* required string id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required 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;
}
}
/**
* required string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* required string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
// required double lat = 2;
private double lat_ ;
/**
* required double lat = 2;
*/
public boolean hasLat() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required double lat = 2;
*/
public double getLat() {
return lat_;
}
/**
* required double lat = 2;
*/
public Builder setLat(double value) {
bitField0_ |= 0x00000002;
lat_ = value;
onChanged();
return this;
}
/**
* required double lat = 2;
*/
public Builder clearLat() {
bitField0_ = (bitField0_ & ~0x00000002);
lat_ = 0D;
onChanged();
return this;
}
// required double lon = 3;
private double lon_ ;
/**
* required double lon = 3;
*/
public boolean hasLon() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required double lon = 3;
*/
public double getLon() {
return lon_;
}
/**
* required double lon = 3;
*/
public Builder setLon(double value) {
bitField0_ |= 0x00000004;
lon_ = value;
onChanged();
return this;
}
/**
* required double lon = 3;
*/
public Builder clearLon() {
bitField0_ = (bitField0_ & ~0x00000004);
lon_ = 0D;
onChanged();
return this;
}
// optional double alt = 4;
private double alt_ ;
/**
* optional double alt = 4;
*/
public boolean hasAlt() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional double alt = 4;
*/
public double getAlt() {
return alt_;
}
/**
* optional double alt = 4;
*/
public Builder setAlt(double value) {
bitField0_ |= 0x00000008;
alt_ = value;
onChanged();
return this;
}
/**
* optional double alt = 4;
*/
public Builder clearAlt() {
bitField0_ = (bitField0_ & ~0x00000008);
alt_ = 0D;
onChanged();
return this;
}
// optional string desc = 5;
private java.lang.Object desc_ = "";
/**
* optional string desc = 5;
*/
public boolean hasDesc() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string desc = 5;
*/
public java.lang.String getDesc() {
java.lang.Object ref = desc_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.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();
}
bitField0_ |= 0x00000010;
desc_ = value;
onChanged();
return this;
}
/**
* optional string desc = 5;
*/
public Builder clearDesc() {
bitField0_ = (bitField0_ & ~0x00000010);
desc_ = getDefaultInstance().getDesc();
onChanged();
return this;
}
/**
* optional string desc = 5;
*/
public Builder setDescBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
desc_ = value;
onChanged();
return this;
}
// optional string wmoId = 6;
private java.lang.Object wmoId_ = "";
/**
* optional string wmoId = 6;
*/
public boolean hasWmoId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string wmoId = 6;
*/
public java.lang.String getWmoId() {
java.lang.Object ref = wmoId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.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();
}
bitField0_ |= 0x00000020;
wmoId_ = value;
onChanged();
return this;
}
/**
* optional string wmoId = 6;
*/
public Builder clearWmoId() {
bitField0_ = (bitField0_ & ~0x00000020);
wmoId_ = getDefaultInstance().getWmoId();
onChanged();
return this;
}
/**
* optional string wmoId = 6;
*/
public Builder setWmoIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
wmoId_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:pointStream.Station)
}
static {
defaultInstance = new Station(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pointStream.Station)
}
public interface StationListOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .pointStream.Station stations = 1;
/**
* repeated .pointStream.Station stations = 1;
*/
java.util.List
getStationsList();
/**
* repeated .pointStream.Station stations = 1;
*/
ucar.nc2.ft.point.remote.PointStreamProto.Station getStations(int index);
/**
* repeated .pointStream.Station stations = 1;
*/
int getStationsCount();
/**
* repeated .pointStream.Station stations = 1;
*/
java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder>
getStationsOrBuilderList();
/**
* repeated .pointStream.Station stations = 1;
*/
ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder getStationsOrBuilder(
int index);
}
/**
* Protobuf type {@code pointStream.StationList}
*/
public static final class StationList extends
com.google.protobuf.GeneratedMessage
implements StationListOrBuilder {
// Use StationList.newBuilder() to construct.
private StationList(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StationList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StationList defaultInstance;
public static StationList getDefaultInstance() {
return defaultInstance;
}
public StationList getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StationList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, 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 e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
stations_ = java.util.Collections.unmodifiableList(stations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_StationList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_StationList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.ft.point.remote.PointStreamProto.StationList.class, ucar.nc2.ft.point.remote.PointStreamProto.StationList.Builder.class);
}
public static 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 {
return new StationList(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .pointStream.Station stations = 1;
public static final int STATIONS_FIELD_NUMBER = 1;
private java.util.List stations_;
/**
* repeated .pointStream.Station stations = 1;
*/
public java.util.List getStationsList() {
return stations_;
}
/**
* repeated .pointStream.Station stations = 1;
*/
public java.util.List extends ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder>
getStationsOrBuilderList() {
return stations_;
}
/**
* repeated .pointStream.Station stations = 1;
*/
public int getStationsCount() {
return stations_.size();
}
/**
* repeated .pointStream.Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Station getStations(int index) {
return stations_.get(index);
}
/**
* repeated .pointStream.Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.StationOrBuilder getStationsOrBuilder(
int index) {
return stations_.get(index);
}
private void initFields() {
stations_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getStationsCount(); i++) {
if (!getStations(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < stations_.size(); i++) {
output.writeMessage(1, stations_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
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));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
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 static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(ucar.nc2.ft.point.remote.PointStreamProto.StationList prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code pointStream.StationList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements 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_pointStream_StationList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (stationsBuilder_ == null) {
stations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
stationsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.ft.point.remote.PointStreamProto.internal_static_pointStream_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_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getStationsCount(); i++) {
if (!getStations(i).isInitialized()) {
return false;
}
}
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_;
// repeated .pointStream.Station stations = 1;
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 .pointStream.Station stations = 1;
*/
public java.util.List getStationsList() {
if (stationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(stations_);
} else {
return stationsBuilder_.getMessageList();
}
}
/**
* repeated .pointStream.Station stations = 1;
*/
public int getStationsCount() {
if (stationsBuilder_ == null) {
return stations_.size();
} else {
return stationsBuilder_.getCount();
}
}
/**
* repeated .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.Station stations = 1;
*/
public Builder addAllStations(
java.lang.Iterable extends ucar.nc2.ft.point.remote.PointStreamProto.Station> values) {
if (stationsBuilder_ == null) {
ensureStationsIsMutable();
super.addAll(values, stations_);
onChanged();
} else {
stationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .pointStream.Station stations = 1;
*/
public Builder clearStations() {
if (stationsBuilder_ == null) {
stations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
stationsBuilder_.clear();
}
return this;
}
/**
* repeated .pointStream.Station stations = 1;
*/
public Builder removeStations(int index) {
if (stationsBuilder_ == null) {
ensureStationsIsMutable();
stations_.remove(index);
onChanged();
} else {
stationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .pointStream.Station stations = 1;
*/
public ucar.nc2.ft.point.remote.PointStreamProto.Station.Builder getStationsBuilder(
int index) {
return getStationsFieldBuilder().getBuilder(index);
}
/**
* repeated .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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 .pointStream.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_;
}
// @@protoc_insertion_point(builder_scope:pointStream.StationList)
}
static {
defaultInstance = new StationList(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:pointStream.StationList)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pointStream_Location_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pointStream_Location_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pointStream_PointFeature_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pointStream_PointFeature_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pointStream_Member_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pointStream_Member_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pointStream_PointFeatureCollection_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pointStream_PointFeatureCollection_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pointStream_Station_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pointStream_Station_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_pointStream_StationList_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_pointStream_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\022\013pointStream\032\036ucar/nc2/stream/ncStr" +
"eam.proto\"P\n\010Location\022\014\n\004time\030\001 \002(\001\022\013\n\003l" +
"at\030\002 \002(\001\022\013\n\003lon\030\003 \002(\001\022\013\n\003alt\030\004 \001(\001\022\017\n\007no" +
"mTime\030\005 \001(\001\"O\n\014PointFeature\022\"\n\003loc\030\001 \002(\013" +
"2\025.pointStream.Location\022\014\n\004data\030\003 \002(\014\022\r\n" +
"\005sdata\030\004 \003(\t\"}\n\006Member\022\014\n\004name\030\001 \002(\t\022\014\n\004" +
"desc\030\002 \001(\t\022\r\n\005units\030\003 \001(\t\022$\n\010dataType\030\004 " +
"\002(\0162\022.ncstream.DataType\022\"\n\007section\030\005 \002(\013" +
"2\021.ncstream.Section\"^\n\026PointFeatureColle",
"ction\022\014\n\004name\030\001 \002(\t\022\020\n\010timeUnit\030\002 \002(\t\022$\n" +
"\007members\030\003 \003(\0132\023.pointStream.Member\"Y\n\007S" +
"tation\022\n\n\002id\030\001 \002(\t\022\013\n\003lat\030\002 \002(\001\022\013\n\003lon\030\003" +
" \002(\001\022\013\n\003alt\030\004 \001(\001\022\014\n\004desc\030\005 \001(\t\022\r\n\005wmoId" +
"\030\006 \001(\t\"5\n\013StationList\022&\n\010stations\030\001 \003(\0132" +
"\024.pointStream.StationB,\n\030ucar.nc2.ft.poi" +
"nt.remoteB\020PointStreamProto"
};
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;
internal_static_pointStream_Location_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_pointStream_Location_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pointStream_Location_descriptor,
new java.lang.String[] { "Time", "Lat", "Lon", "Alt", "NomTime", });
internal_static_pointStream_PointFeature_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_pointStream_PointFeature_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pointStream_PointFeature_descriptor,
new java.lang.String[] { "Loc", "Data", "Sdata", });
internal_static_pointStream_Member_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_pointStream_Member_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pointStream_Member_descriptor,
new java.lang.String[] { "Name", "Desc", "Units", "DataType", "Section", });
internal_static_pointStream_PointFeatureCollection_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_pointStream_PointFeatureCollection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pointStream_PointFeatureCollection_descriptor,
new java.lang.String[] { "Name", "TimeUnit", "Members", });
internal_static_pointStream_Station_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_pointStream_Station_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pointStream_Station_descriptor,
new java.lang.String[] { "Id", "Lat", "Lon", "Alt", "Desc", "WmoId", });
internal_static_pointStream_StationList_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_pointStream_StationList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_pointStream_StationList_descriptor,
new java.lang.String[] { "Stations", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
ucar.nc2.stream.NcStreamProto.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy