
ucar.nc2.iosp.noaa.GhcnmProto Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ucar/nc2/iosp/noaa/GhcnmIndex.proto
package ucar.nc2.iosp.noaa;
public final class GhcnmProto {
private GhcnmProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface StationIndexOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required uint64 stnid = 1;
/**
* required uint64 stnid = 1;
*/
boolean hasStnid();
/**
* required uint64 stnid = 1;
*/
long getStnid();
// required uint64 stnPos = 2;
/**
* required uint64 stnPos = 2;
*/
boolean hasStnPos();
/**
* required uint64 stnPos = 2;
*/
long getStnPos();
// required uint64 dataPos = 3;
/**
* required uint64 dataPos = 3;
*/
boolean hasDataPos();
/**
* required uint64 dataPos = 3;
*/
long getDataPos();
// required uint32 dataCount = 4;
/**
* required uint32 dataCount = 4;
*/
boolean hasDataCount();
/**
* required uint32 dataCount = 4;
*/
int getDataCount();
}
/**
* Protobuf type {@code ghcnm.StationIndex}
*/
public static final class StationIndex extends
com.google.protobuf.GeneratedMessage
implements StationIndexOrBuilder {
// Use StationIndex.newBuilder() to construct.
private StationIndex(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StationIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StationIndex defaultInstance;
public static StationIndex getDefaultInstance() {
return defaultInstance;
}
public StationIndex getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StationIndex(
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 8: {
bitField0_ |= 0x00000001;
stnid_ = input.readUInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
stnPos_ = input.readUInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
dataPos_ = input.readUInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
dataCount_ = input.readUInt32();
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.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndex_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.class, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StationIndex parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StationIndex(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required uint64 stnid = 1;
public static final int STNID_FIELD_NUMBER = 1;
private long stnid_;
/**
* required uint64 stnid = 1;
*/
public boolean hasStnid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint64 stnid = 1;
*/
public long getStnid() {
return stnid_;
}
// required uint64 stnPos = 2;
public static final int STNPOS_FIELD_NUMBER = 2;
private long stnPos_;
/**
* required uint64 stnPos = 2;
*/
public boolean hasStnPos() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint64 stnPos = 2;
*/
public long getStnPos() {
return stnPos_;
}
// required uint64 dataPos = 3;
public static final int DATAPOS_FIELD_NUMBER = 3;
private long dataPos_;
/**
* required uint64 dataPos = 3;
*/
public boolean hasDataPos() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint64 dataPos = 3;
*/
public long getDataPos() {
return dataPos_;
}
// required uint32 dataCount = 4;
public static final int DATACOUNT_FIELD_NUMBER = 4;
private int dataCount_;
/**
* required uint32 dataCount = 4;
*/
public boolean hasDataCount() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required uint32 dataCount = 4;
*/
public int getDataCount() {
return dataCount_;
}
private void initFields() {
stnid_ = 0L;
stnPos_ = 0L;
dataPos_ = 0L;
dataCount_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasStnid()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasStnPos()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDataPos()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDataCount()) {
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.writeUInt64(1, stnid_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, stnPos_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, dataPos_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(4, dataCount_);
}
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
.computeUInt64Size(1, stnid_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, stnPos_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, dataPos_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, dataCount_);
}
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.iosp.noaa.GhcnmProto.StationIndex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndex 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.iosp.noaa.GhcnmProto.StationIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndex parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndex parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndex 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.iosp.noaa.GhcnmProto.StationIndex 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 ghcnm.StationIndex}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndex_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.class, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder.class);
}
// Construct using ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.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();
stnid_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
stnPos_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
dataPos_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
dataCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndex_descriptor;
}
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndex getDefaultInstanceForType() {
return ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.getDefaultInstance();
}
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndex build() {
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndex buildPartial() {
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex result = new ucar.nc2.iosp.noaa.GhcnmProto.StationIndex(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.stnid_ = stnid_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.stnPos_ = stnPos_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.dataPos_ = dataPos_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.dataCount_ = dataCount_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.iosp.noaa.GhcnmProto.StationIndex) {
return mergeFrom((ucar.nc2.iosp.noaa.GhcnmProto.StationIndex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.iosp.noaa.GhcnmProto.StationIndex other) {
if (other == ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.getDefaultInstance()) return this;
if (other.hasStnid()) {
setStnid(other.getStnid());
}
if (other.hasStnPos()) {
setStnPos(other.getStnPos());
}
if (other.hasDataPos()) {
setDataPos(other.getDataPos());
}
if (other.hasDataCount()) {
setDataCount(other.getDataCount());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasStnid()) {
return false;
}
if (!hasStnPos()) {
return false;
}
if (!hasDataPos()) {
return false;
}
if (!hasDataCount()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.iosp.noaa.GhcnmProto.StationIndex) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required uint64 stnid = 1;
private long stnid_ ;
/**
* required uint64 stnid = 1;
*/
public boolean hasStnid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint64 stnid = 1;
*/
public long getStnid() {
return stnid_;
}
/**
* required uint64 stnid = 1;
*/
public Builder setStnid(long value) {
bitField0_ |= 0x00000001;
stnid_ = value;
onChanged();
return this;
}
/**
* required uint64 stnid = 1;
*/
public Builder clearStnid() {
bitField0_ = (bitField0_ & ~0x00000001);
stnid_ = 0L;
onChanged();
return this;
}
// required uint64 stnPos = 2;
private long stnPos_ ;
/**
* required uint64 stnPos = 2;
*/
public boolean hasStnPos() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint64 stnPos = 2;
*/
public long getStnPos() {
return stnPos_;
}
/**
* required uint64 stnPos = 2;
*/
public Builder setStnPos(long value) {
bitField0_ |= 0x00000002;
stnPos_ = value;
onChanged();
return this;
}
/**
* required uint64 stnPos = 2;
*/
public Builder clearStnPos() {
bitField0_ = (bitField0_ & ~0x00000002);
stnPos_ = 0L;
onChanged();
return this;
}
// required uint64 dataPos = 3;
private long dataPos_ ;
/**
* required uint64 dataPos = 3;
*/
public boolean hasDataPos() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint64 dataPos = 3;
*/
public long getDataPos() {
return dataPos_;
}
/**
* required uint64 dataPos = 3;
*/
public Builder setDataPos(long value) {
bitField0_ |= 0x00000004;
dataPos_ = value;
onChanged();
return this;
}
/**
* required uint64 dataPos = 3;
*/
public Builder clearDataPos() {
bitField0_ = (bitField0_ & ~0x00000004);
dataPos_ = 0L;
onChanged();
return this;
}
// required uint32 dataCount = 4;
private int dataCount_ ;
/**
* required uint32 dataCount = 4;
*/
public boolean hasDataCount() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required uint32 dataCount = 4;
*/
public int getDataCount() {
return dataCount_;
}
/**
* required uint32 dataCount = 4;
*/
public Builder setDataCount(int value) {
bitField0_ |= 0x00000008;
dataCount_ = value;
onChanged();
return this;
}
/**
* required uint32 dataCount = 4;
*/
public Builder clearDataCount() {
bitField0_ = (bitField0_ & ~0x00000008);
dataCount_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ghcnm.StationIndex)
}
static {
defaultInstance = new StationIndex(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ghcnm.StationIndex)
}
public interface StationIndexListOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .ghcnm.StationIndex list = 1;
/**
* repeated .ghcnm.StationIndex list = 1;
*/
java.util.List
getListList();
/**
* repeated .ghcnm.StationIndex list = 1;
*/
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex getList(int index);
/**
* repeated .ghcnm.StationIndex list = 1;
*/
int getListCount();
/**
* repeated .ghcnm.StationIndex list = 1;
*/
java.util.List extends ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder>
getListOrBuilderList();
/**
* repeated .ghcnm.StationIndex list = 1;
*/
ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder getListOrBuilder(
int index);
}
/**
* Protobuf type {@code ghcnm.StationIndexList}
*/
public static final class StationIndexList extends
com.google.protobuf.GeneratedMessage
implements StationIndexListOrBuilder {
// Use StationIndexList.newBuilder() to construct.
private StationIndexList(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StationIndexList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StationIndexList defaultInstance;
public static StationIndexList getDefaultInstance() {
return defaultInstance;
}
public StationIndexList getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StationIndexList(
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)) {
list_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
list_.add(input.readMessage(ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.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)) {
list_ = java.util.Collections.unmodifiableList(list_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndexList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndexList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList.class, ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StationIndexList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StationIndexList(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .ghcnm.StationIndex list = 1;
public static final int LIST_FIELD_NUMBER = 1;
private java.util.List list_;
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public java.util.List getListList() {
return list_;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public java.util.List extends ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder>
getListOrBuilderList() {
return list_;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public int getListCount() {
return list_.size();
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndex getList(int index) {
return list_.get(index);
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder getListOrBuilder(
int index) {
return list_.get(index);
}
private void initFields() {
list_ = 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 < getListCount(); i++) {
if (!getList(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 < list_.size(); i++) {
output.writeMessage(1, list_.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 < list_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, list_.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.iosp.noaa.GhcnmProto.StationIndexList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList 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.iosp.noaa.GhcnmProto.StationIndexList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList 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.iosp.noaa.GhcnmProto.StationIndexList 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 ghcnm.StationIndexList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements ucar.nc2.iosp.noaa.GhcnmProto.StationIndexListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ucar.nc2.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndexList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return ucar.nc2.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndexList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList.class, ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList.Builder.class);
}
// Construct using ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getListFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (listBuilder_ == null) {
list_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
listBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ucar.nc2.iosp.noaa.GhcnmProto.internal_static_ghcnm_StationIndexList_descriptor;
}
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList getDefaultInstanceForType() {
return ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList.getDefaultInstance();
}
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList build() {
ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList buildPartial() {
ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList result = new ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList(this);
int from_bitField0_ = bitField0_;
if (listBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
list_ = java.util.Collections.unmodifiableList(list_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.list_ = list_;
} else {
result.list_ = listBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList) {
return mergeFrom((ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList other) {
if (other == ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList.getDefaultInstance()) return this;
if (listBuilder_ == null) {
if (!other.list_.isEmpty()) {
if (list_.isEmpty()) {
list_ = other.list_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureListIsMutable();
list_.addAll(other.list_);
}
onChanged();
}
} else {
if (!other.list_.isEmpty()) {
if (listBuilder_.isEmpty()) {
listBuilder_.dispose();
listBuilder_ = null;
list_ = other.list_;
bitField0_ = (bitField0_ & ~0x00000001);
listBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getListFieldBuilder() : null;
} else {
listBuilder_.addAllMessages(other.list_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getListCount(); i++) {
if (!getList(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.iosp.noaa.GhcnmProto.StationIndexList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ucar.nc2.iosp.noaa.GhcnmProto.StationIndexList) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .ghcnm.StationIndex list = 1;
private java.util.List list_ =
java.util.Collections.emptyList();
private void ensureListIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
list_ = new java.util.ArrayList(list_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder, ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder> listBuilder_;
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public java.util.List getListList() {
if (listBuilder_ == null) {
return java.util.Collections.unmodifiableList(list_);
} else {
return listBuilder_.getMessageList();
}
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public int getListCount() {
if (listBuilder_ == null) {
return list_.size();
} else {
return listBuilder_.getCount();
}
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndex getList(int index) {
if (listBuilder_ == null) {
return list_.get(index);
} else {
return listBuilder_.getMessage(index);
}
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public Builder setList(
int index, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex value) {
if (listBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListIsMutable();
list_.set(index, value);
onChanged();
} else {
listBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public Builder setList(
int index, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder builderForValue) {
if (listBuilder_ == null) {
ensureListIsMutable();
list_.set(index, builderForValue.build());
onChanged();
} else {
listBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public Builder addList(ucar.nc2.iosp.noaa.GhcnmProto.StationIndex value) {
if (listBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListIsMutable();
list_.add(value);
onChanged();
} else {
listBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public Builder addList(
int index, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex value) {
if (listBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListIsMutable();
list_.add(index, value);
onChanged();
} else {
listBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public Builder addList(
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder builderForValue) {
if (listBuilder_ == null) {
ensureListIsMutable();
list_.add(builderForValue.build());
onChanged();
} else {
listBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public Builder addList(
int index, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder builderForValue) {
if (listBuilder_ == null) {
ensureListIsMutable();
list_.add(index, builderForValue.build());
onChanged();
} else {
listBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public Builder addAllList(
java.lang.Iterable extends ucar.nc2.iosp.noaa.GhcnmProto.StationIndex> values) {
if (listBuilder_ == null) {
ensureListIsMutable();
super.addAll(values, list_);
onChanged();
} else {
listBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public Builder clearList() {
if (listBuilder_ == null) {
list_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
listBuilder_.clear();
}
return this;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public Builder removeList(int index) {
if (listBuilder_ == null) {
ensureListIsMutable();
list_.remove(index);
onChanged();
} else {
listBuilder_.remove(index);
}
return this;
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder getListBuilder(
int index) {
return getListFieldBuilder().getBuilder(index);
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder getListOrBuilder(
int index) {
if (listBuilder_ == null) {
return list_.get(index); } else {
return listBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public java.util.List extends ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder>
getListOrBuilderList() {
if (listBuilder_ != null) {
return listBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(list_);
}
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder addListBuilder() {
return getListFieldBuilder().addBuilder(
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.getDefaultInstance());
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder addListBuilder(
int index) {
return getListFieldBuilder().addBuilder(
index, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.getDefaultInstance());
}
/**
* repeated .ghcnm.StationIndex list = 1;
*/
public java.util.List
getListBuilderList() {
return getListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder, ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder>
getListFieldBuilder() {
if (listBuilder_ == null) {
listBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
ucar.nc2.iosp.noaa.GhcnmProto.StationIndex, ucar.nc2.iosp.noaa.GhcnmProto.StationIndex.Builder, ucar.nc2.iosp.noaa.GhcnmProto.StationIndexOrBuilder>(
list_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
list_ = null;
}
return listBuilder_;
}
// @@protoc_insertion_point(builder_scope:ghcnm.StationIndexList)
}
static {
defaultInstance = new StationIndexList(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ghcnm.StationIndexList)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ghcnm_StationIndex_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ghcnm_StationIndex_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ghcnm_StationIndexList_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ghcnm_StationIndexList_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/iosp/noaa/GhcnmIndex.proto\022\005g" +
"hcnm\"Q\n\014StationIndex\022\r\n\005stnid\030\001 \002(\004\022\016\n\006s" +
"tnPos\030\002 \002(\004\022\017\n\007dataPos\030\003 \002(\004\022\021\n\tdataCoun" +
"t\030\004 \002(\r\"5\n\020StationIndexList\022!\n\004list\030\001 \003(" +
"\0132\023.ghcnm.StationIndexB \n\022ucar.nc2.iosp." +
"noaaB\nGhcnmProto"
};
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_ghcnm_StationIndex_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ghcnm_StationIndex_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ghcnm_StationIndex_descriptor,
new java.lang.String[] { "Stnid", "StnPos", "DataPos", "DataCount", });
internal_static_ghcnm_StationIndexList_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ghcnm_StationIndexList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ghcnm_StationIndexList_descriptor,
new java.lang.String[] { "List", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy