package com.cellbots.logger.localServer;
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/telemetry.proto
public final class Telemetry {
private Telemetry() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface PositionOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional float latitude = 1;
/**
* <code>optional float latitude = 1;</code>
*/
boolean hasLatitude();
/**
* <code>optional float latitude = 1;</code>
*/
float getLatitude();
// optional float longitude = 2;
/**
* <code>optional float longitude = 2;</code>
*/
boolean hasLongitude();
/**
* <code>optional float longitude = 2;</code>
*/
float getLongitude();
// optional float altitude = 3;
/**
* <code>optional float altitude = 3;</code>
*/
boolean hasAltitude();
/**
* <code>optional float altitude = 3;</code>
*/
float getAltitude();
}
/**
* Protobuf type {@code Position}
*/
public static final class Position extends
com.google.protobuf.GeneratedMessage
implements PositionOrBuilder {
// Use Position.newBuilder() to construct.
private Position(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Position(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Position defaultInstance;
public static Position getDefaultInstance() {
return defaultInstance;
}
public Position getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Position(
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 13: {
bitField0_ |= 0x00000001;
latitude_ = input.readFloat();
break;
}
case 21: {
bitField0_ |= 0x00000002;
longitude_ = input.readFloat();
break;
}
case 29: {
bitField0_ |= 0x00000004;
altitude_ = input.readFloat();
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 Telemetry.internal_static_Position_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_Position_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.Position.class, Telemetry.Position.Builder.class);
}
public static com.google.protobuf.Parser<Position> PARSER =
new com.google.protobuf.AbstractParser<Position>() {
public Position parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Position(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Position> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional float latitude = 1;
public static final int LATITUDE_FIELD_NUMBER = 1;
private float latitude_;
/**
* <code>optional float latitude = 1;</code>
*/
public boolean hasLatitude() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional float latitude = 1;</code>
*/
public float getLatitude() {
return latitude_;
}
// optional float longitude = 2;
public static final int LONGITUDE_FIELD_NUMBER = 2;
private float longitude_;
/**
* <code>optional float longitude = 2;</code>
*/
public boolean hasLongitude() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float longitude = 2;</code>
*/
public float getLongitude() {
return longitude_;
}
// optional float altitude = 3;
public static final int ALTITUDE_FIELD_NUMBER = 3;
private float altitude_;
/**
* <code>optional float altitude = 3;</code>
*/
public boolean hasAltitude() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float altitude = 3;</code>
*/
public float getAltitude() {
return altitude_;
}
private void initFields() {
latitude_ = 0F;
longitude_ = 0F;
altitude_ = 0F;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeFloat(1, latitude_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, longitude_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, altitude_);
}
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
.computeFloatSize(1, latitude_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, longitude_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, altitude_);
}
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 Telemetry.Position parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.Position parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.Position parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.Position parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.Position parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.Position parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Telemetry.Position parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static Telemetry.Position parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static Telemetry.Position parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.Position 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(Telemetry.Position 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 Position}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements Telemetry.PositionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Telemetry.internal_static_Position_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_Position_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.Position.class, Telemetry.Position.Builder.class);
}
// Construct using Telemetry.Position.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();
latitude_ = 0F;
bitField0_ = (bitField0_ & ~0x00000001);
longitude_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
altitude_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Telemetry.internal_static_Position_descriptor;
}
public Telemetry.Position getDefaultInstanceForType() {
return Telemetry.Position.getDefaultInstance();
}
public Telemetry.Position build() {
Telemetry.Position result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public Telemetry.Position buildPartial() {
Telemetry.Position result = new Telemetry.Position(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.latitude_ = latitude_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.longitude_ = longitude_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.altitude_ = altitude_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Telemetry.Position) {
return mergeFrom((Telemetry.Position)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Telemetry.Position other) {
if (other == Telemetry.Position.getDefaultInstance()) return this;
if (other.hasLatitude()) {
setLatitude(other.getLatitude());
}
if (other.hasLongitude()) {
setLongitude(other.getLongitude());
}
if (other.hasAltitude()) {
setAltitude(other.getAltitude());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Telemetry.Position parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Telemetry.Position) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional float latitude = 1;
private float latitude_ ;
/**
* <code>optional float latitude = 1;</code>
*/
public boolean hasLatitude() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional float latitude = 1;</code>
*/
public float getLatitude() {
return latitude_;
}
/**
* <code>optional float latitude = 1;</code>
*/
public Builder setLatitude(float value) {
bitField0_ |= 0x00000001;
latitude_ = value;
onChanged();
return this;
}
/**
* <code>optional float latitude = 1;</code>
*/
public Builder clearLatitude() {
bitField0_ = (bitField0_ & ~0x00000001);
latitude_ = 0F;
onChanged();
return this;
}
// optional float longitude = 2;
private float longitude_ ;
/**
* <code>optional float longitude = 2;</code>
*/
public boolean hasLongitude() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float longitude = 2;</code>
*/
public float getLongitude() {
return longitude_;
}
/**
* <code>optional float longitude = 2;</code>
*/
public Builder setLongitude(float value) {
bitField0_ |= 0x00000002;
longitude_ = value;
onChanged();
return this;
}
/**
* <code>optional float longitude = 2;</code>
*/
public Builder clearLongitude() {
bitField0_ = (bitField0_ & ~0x00000002);
longitude_ = 0F;
onChanged();
return this;
}
// optional float altitude = 3;
private float altitude_ ;
/**
* <code>optional float altitude = 3;</code>
*/
public boolean hasAltitude() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float altitude = 3;</code>
*/
public float getAltitude() {
return altitude_;
}
/**
* <code>optional float altitude = 3;</code>
*/
public Builder setAltitude(float value) {
bitField0_ |= 0x00000004;
altitude_ = value;
onChanged();
return this;
}
/**
* <code>optional float altitude = 3;</code>
*/
public Builder clearAltitude() {
bitField0_ = (bitField0_ & ~0x00000004);
altitude_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:Position)
}
static {
defaultInstance = new Position(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:Position)
}
public interface SensorOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .Sensor.SensorType sensor_type = 1;
/**
* <code>required .Sensor.SensorType sensor_type = 1;</code>
*/
boolean hasSensorType();
/**
* <code>required .Sensor.SensorType sensor_type = 1;</code>
*/
Telemetry.Sensor.SensorType getSensorType();
// optional uint32 id = 2 [default = 1];
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*/
boolean hasId();
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*/
int getId();
// optional float value = 3;
/**
* <code>optional float value = 3;</code>
*/
boolean hasValue();
/**
* <code>optional float value = 3;</code>
*/
float getValue();
}
/**
* Protobuf type {@code Sensor}
*/
public static final class Sensor extends
com.google.protobuf.GeneratedMessage
implements SensorOrBuilder {
// Use Sensor.newBuilder() to construct.
private Sensor(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Sensor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Sensor defaultInstance;
public static Sensor getDefaultInstance() {
return defaultInstance;
}
public Sensor getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Sensor(
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: {
int rawValue = input.readEnum();
Telemetry.Sensor.SensorType value = Telemetry.Sensor.SensorType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
sensorType_ = value;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
id_ = input.readUInt32();
break;
}
case 29: {
bitField0_ |= 0x00000004;
value_ = input.readFloat();
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 Telemetry.internal_static_Sensor_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_Sensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.Sensor.class, Telemetry.Sensor.Builder.class);
}
public static com.google.protobuf.Parser<Sensor> PARSER =
new com.google.protobuf.AbstractParser<Sensor>() {
public Sensor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Sensor(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Sensor> getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code Sensor.SensorType}
*/
public enum SensorType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>AMBIENT_TEMPERATURE = 0;</code>
*/
AMBIENT_TEMPERATURE(0, 0),
/**
* <code>LIGHT = 1;</code>
*/
LIGHT(1, 1),
/**
* <code>PRESSURE = 2;</code>
*/
PRESSURE(2, 2),
/**
* <code>RELATIVE_HUMIDITY = 3;</code>
*/
RELATIVE_HUMIDITY(3, 3),
;
/**
* <code>AMBIENT_TEMPERATURE = 0;</code>
*/
public static final int AMBIENT_TEMPERATURE_VALUE = 0;
/**
* <code>LIGHT = 1;</code>
*/
public static final int LIGHT_VALUE = 1;
/**
* <code>PRESSURE = 2;</code>
*/
public static final int PRESSURE_VALUE = 2;
/**
* <code>RELATIVE_HUMIDITY = 3;</code>
*/
public static final int RELATIVE_HUMIDITY_VALUE = 3;
public final int getNumber() { return value; }
public static SensorType valueOf(int value) {
switch (value) {
case 0: return AMBIENT_TEMPERATURE;
case 1: return LIGHT;
case 2: return PRESSURE;
case 3: return RELATIVE_HUMIDITY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<SensorType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<SensorType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<SensorType>() {
public SensorType findValueByNumber(int number) {
return SensorType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return Telemetry.Sensor.getDescriptor().getEnumTypes().get(0);
}
private static final SensorType[] VALUES = values();
public static SensorType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private SensorType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Sensor.SensorType)
}
private int bitField0_;
// required .Sensor.SensorType sensor_type = 1;
public static final int SENSOR_TYPE_FIELD_NUMBER = 1;
private Telemetry.Sensor.SensorType sensorType_;
/**
* <code>required .Sensor.SensorType sensor_type = 1;</code>
*/
public boolean hasSensorType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .Sensor.SensorType sensor_type = 1;</code>
*/
public Telemetry.Sensor.SensorType getSensorType() {
return sensorType_;
}
// optional uint32 id = 2 [default = 1];
public static final int ID_FIELD_NUMBER = 2;
private int id_;
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*/
public int getId() {
return id_;
}
// optional float value = 3;
public static final int VALUE_FIELD_NUMBER = 3;
private float value_;
/**
* <code>optional float value = 3;</code>
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float value = 3;</code>
*/
public float getValue() {
return value_;
}
private void initFields() {
sensorType_ = Telemetry.Sensor.SensorType.AMBIENT_TEMPERATURE;
id_ = 1;
value_ = 0F;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSensorType()) {
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.writeEnum(1, sensorType_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, id_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, value_);
}
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
.computeEnumSize(1, sensorType_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, id_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, value_);
}
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 Telemetry.Sensor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.Sensor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.Sensor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.Sensor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.Sensor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.Sensor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Telemetry.Sensor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static Telemetry.Sensor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static Telemetry.Sensor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.Sensor 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(Telemetry.Sensor 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 Sensor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements Telemetry.SensorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Telemetry.internal_static_Sensor_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_Sensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.Sensor.class, Telemetry.Sensor.Builder.class);
}
// Construct using Telemetry.Sensor.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();
sensorType_ = Telemetry.Sensor.SensorType.AMBIENT_TEMPERATURE;
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
value_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Telemetry.internal_static_Sensor_descriptor;
}
public Telemetry.Sensor getDefaultInstanceForType() {
return Telemetry.Sensor.getDefaultInstance();
}
public Telemetry.Sensor build() {
Telemetry.Sensor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public Telemetry.Sensor buildPartial() {
Telemetry.Sensor result = new Telemetry.Sensor(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.sensorType_ = sensorType_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Telemetry.Sensor) {
return mergeFrom((Telemetry.Sensor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Telemetry.Sensor other) {
if (other == Telemetry.Sensor.getDefaultInstance()) return this;
if (other.hasSensorType()) {
setSensorType(other.getSensorType());
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSensorType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Telemetry.Sensor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Telemetry.Sensor) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .Sensor.SensorType sensor_type = 1;
private Telemetry.Sensor.SensorType sensorType_ = Telemetry.Sensor.SensorType.AMBIENT_TEMPERATURE;
/**
* <code>required .Sensor.SensorType sensor_type = 1;</code>
*/
public boolean hasSensorType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .Sensor.SensorType sensor_type = 1;</code>
*/
public Telemetry.Sensor.SensorType getSensorType() {
return sensorType_;
}
/**
* <code>required .Sensor.SensorType sensor_type = 1;</code>
*/
public Builder setSensorType(Telemetry.Sensor.SensorType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
sensorType_ = value;
onChanged();
return this;
}
/**
* <code>required .Sensor.SensorType sensor_type = 1;</code>
*/
public Builder clearSensorType() {
bitField0_ = (bitField0_ & ~0x00000001);
sensorType_ = Telemetry.Sensor.SensorType.AMBIENT_TEMPERATURE;
onChanged();
return this;
}
// optional uint32 id = 2 [default = 1];
private int id_ = 1;
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*/
public int getId() {
return id_;
}
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*/
public Builder setId(int value) {
bitField0_ |= 0x00000002;
id_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 1;
onChanged();
return this;
}
// optional float value = 3;
private float value_ ;
/**
* <code>optional float value = 3;</code>
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float value = 3;</code>
*/
public float getValue() {
return value_;
}
/**
* <code>optional float value = 3;</code>
*/
public Builder setValue(float value) {
bitField0_ |= 0x00000004;
value_ = value;
onChanged();
return this;
}
/**
* <code>optional float value = 3;</code>
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000004);
value_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:Sensor)
}
static {
defaultInstance = new Sensor(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:Sensor)
}
public interface ThreeAxisSensorOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .ThreeAxisSensor.SensorType sensor_type = 1;
/**
* <code>required .ThreeAxisSensor.SensorType sensor_type = 1;</code>
*/
boolean hasSensorType();
/**
* <code>required .ThreeAxisSensor.SensorType sensor_type = 1;</code>
*/
Telemetry.ThreeAxisSensor.SensorType getSensorType();
// optional uint32 id = 2 [default = 1];
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*
* <pre>
* ID of sensor if multiple exist.
* </pre>
*/
boolean hasId();
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*
* <pre>
* ID of sensor if multiple exist.
* </pre>
*/
int getId();
// optional float x = 3;
/**
* <code>optional float x = 3;</code>
*
* <pre>
* Slot saved for some unknown value. (Accuracy? Magnitude?)
* </pre>
*/
boolean hasX();
/**
* <code>optional float x = 3;</code>
*
* <pre>
* Slot saved for some unknown value. (Accuracy? Magnitude?)
* </pre>
*/
float getX();
// optional float y = 4;
/**
* <code>optional float y = 4;</code>
*/
boolean hasY();
/**
* <code>optional float y = 4;</code>
*/
float getY();
// optional float z = 5;
/**
* <code>optional float z = 5;</code>
*/
boolean hasZ();
/**
* <code>optional float z = 5;</code>
*/
float getZ();
}
/**
* Protobuf type {@code ThreeAxisSensor}
*/
public static final class ThreeAxisSensor extends
com.google.protobuf.GeneratedMessage
implements ThreeAxisSensorOrBuilder {
// Use ThreeAxisSensor.newBuilder() to construct.
private ThreeAxisSensor(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ThreeAxisSensor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ThreeAxisSensor defaultInstance;
public static ThreeAxisSensor getDefaultInstance() {
return defaultInstance;
}
public ThreeAxisSensor getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ThreeAxisSensor(
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: {
int rawValue = input.readEnum();
Telemetry.ThreeAxisSensor.SensorType value = Telemetry.ThreeAxisSensor.SensorType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
sensorType_ = value;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
id_ = input.readUInt32();
break;
}
case 29: {
bitField0_ |= 0x00000004;
x_ = input.readFloat();
break;
}
case 37: {
bitField0_ |= 0x00000008;
y_ = input.readFloat();
break;
}
case 45: {
bitField0_ |= 0x00000010;
z_ = input.readFloat();
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 Telemetry.internal_static_ThreeAxisSensor_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_ThreeAxisSensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.ThreeAxisSensor.class, Telemetry.ThreeAxisSensor.Builder.class);
}
public static com.google.protobuf.Parser<ThreeAxisSensor> PARSER =
new com.google.protobuf.AbstractParser<ThreeAxisSensor>() {
public ThreeAxisSensor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ThreeAxisSensor(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ThreeAxisSensor> getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code ThreeAxisSensor.SensorType}
*/
public enum SensorType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>ACCELEROMETER = 0;</code>
*/
ACCELEROMETER(0, 0),
/**
* <code>GRAVITY = 1;</code>
*/
GRAVITY(1, 1),
/**
* <code>GYROSCOPE = 2;</code>
*/
GYROSCOPE(2, 2),
/**
* <code>LINEAR_ACCELERATION = 3;</code>
*/
LINEAR_ACCELERATION(3, 3),
/**
* <code>MAGNETIC_FIELD = 4;</code>
*/
MAGNETIC_FIELD(4, 4),
/**
* <code>ORIENTATION = 5;</code>
*/
ORIENTATION(5, 5),
/**
* <code>ROTATION_VECTOR = 6;</code>
*/
ROTATION_VECTOR(6, 6),
/**
* <code>CORRECTED_GYROSCOPE = 20;</code>
*/
CORRECTED_GYROSCOPE(7, 20),
;
/**
* <code>ACCELEROMETER = 0;</code>
*/
public static final int ACCELEROMETER_VALUE = 0;
/**
* <code>GRAVITY = 1;</code>
*/
public static final int GRAVITY_VALUE = 1;
/**
* <code>GYROSCOPE = 2;</code>
*/
public static final int GYROSCOPE_VALUE = 2;
/**
* <code>LINEAR_ACCELERATION = 3;</code>
*/
public static final int LINEAR_ACCELERATION_VALUE = 3;
/**
* <code>MAGNETIC_FIELD = 4;</code>
*/
public static final int MAGNETIC_FIELD_VALUE = 4;
/**
* <code>ORIENTATION = 5;</code>
*/
public static final int ORIENTATION_VALUE = 5;
/**
* <code>ROTATION_VECTOR = 6;</code>
*/
public static final int ROTATION_VECTOR_VALUE = 6;
/**
* <code>CORRECTED_GYROSCOPE = 20;</code>
*/
public static final int CORRECTED_GYROSCOPE_VALUE = 20;
public final int getNumber() { return value; }
public static SensorType valueOf(int value) {
switch (value) {
case 0: return ACCELEROMETER;
case 1: return GRAVITY;
case 2: return GYROSCOPE;
case 3: return LINEAR_ACCELERATION;
case 4: return MAGNETIC_FIELD;
case 5: return ORIENTATION;
case 6: return ROTATION_VECTOR;
case 20: return CORRECTED_GYROSCOPE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<SensorType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<SensorType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<SensorType>() {
public SensorType findValueByNumber(int number) {
return SensorType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return Telemetry.ThreeAxisSensor.getDescriptor().getEnumTypes().get(0);
}
private static final SensorType[] VALUES = values();
public static SensorType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private SensorType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ThreeAxisSensor.SensorType)
}
private int bitField0_;
// required .ThreeAxisSensor.SensorType sensor_type = 1;
public static final int SENSOR_TYPE_FIELD_NUMBER = 1;
private Telemetry.ThreeAxisSensor.SensorType sensorType_;
/**
* <code>required .ThreeAxisSensor.SensorType sensor_type = 1;</code>
*/
public boolean hasSensorType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .ThreeAxisSensor.SensorType sensor_type = 1;</code>
*/
public Telemetry.ThreeAxisSensor.SensorType getSensorType() {
return sensorType_;
}
// optional uint32 id = 2 [default = 1];
public static final int ID_FIELD_NUMBER = 2;
private int id_;
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*
* <pre>
* ID of sensor if multiple exist.
* </pre>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*
* <pre>
* ID of sensor if multiple exist.
* </pre>
*/
public int getId() {
return id_;
}
// optional float x = 3;
public static final int X_FIELD_NUMBER = 3;
private float x_;
/**
* <code>optional float x = 3;</code>
*
* <pre>
* Slot saved for some unknown value. (Accuracy? Magnitude?)
* </pre>
*/
public boolean hasX() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float x = 3;</code>
*
* <pre>
* Slot saved for some unknown value. (Accuracy? Magnitude?)
* </pre>
*/
public float getX() {
return x_;
}
// optional float y = 4;
public static final int Y_FIELD_NUMBER = 4;
private float y_;
/**
* <code>optional float y = 4;</code>
*/
public boolean hasY() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float y = 4;</code>
*/
public float getY() {
return y_;
}
// optional float z = 5;
public static final int Z_FIELD_NUMBER = 5;
private float z_;
/**
* <code>optional float z = 5;</code>
*/
public boolean hasZ() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float z = 5;</code>
*/
public float getZ() {
return z_;
}
private void initFields() {
sensorType_ = Telemetry.ThreeAxisSensor.SensorType.ACCELEROMETER;
id_ = 1;
x_ = 0F;
y_ = 0F;
z_ = 0F;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasSensorType()) {
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.writeEnum(1, sensorType_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, id_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, x_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFloat(4, y_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFloat(5, z_);
}
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
.computeEnumSize(1, sensorType_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, id_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, x_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, y_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, z_);
}
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 Telemetry.ThreeAxisSensor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.ThreeAxisSensor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.ThreeAxisSensor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.ThreeAxisSensor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.ThreeAxisSensor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.ThreeAxisSensor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Telemetry.ThreeAxisSensor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static Telemetry.ThreeAxisSensor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static Telemetry.ThreeAxisSensor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.ThreeAxisSensor 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(Telemetry.ThreeAxisSensor 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 ThreeAxisSensor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements Telemetry.ThreeAxisSensorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Telemetry.internal_static_ThreeAxisSensor_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_ThreeAxisSensor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.ThreeAxisSensor.class, Telemetry.ThreeAxisSensor.Builder.class);
}
// Construct using Telemetry.ThreeAxisSensor.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();
sensorType_ = Telemetry.ThreeAxisSensor.SensorType.ACCELEROMETER;
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
x_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
y_ = 0F;
bitField0_ = (bitField0_ & ~0x00000008);
z_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Telemetry.internal_static_ThreeAxisSensor_descriptor;
}
public Telemetry.ThreeAxisSensor getDefaultInstanceForType() {
return Telemetry.ThreeAxisSensor.getDefaultInstance();
}
public Telemetry.ThreeAxisSensor build() {
Telemetry.ThreeAxisSensor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public Telemetry.ThreeAxisSensor buildPartial() {
Telemetry.ThreeAxisSensor result = new Telemetry.ThreeAxisSensor(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.sensorType_ = sensorType_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.x_ = x_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.y_ = y_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.z_ = z_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Telemetry.ThreeAxisSensor) {
return mergeFrom((Telemetry.ThreeAxisSensor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Telemetry.ThreeAxisSensor other) {
if (other == Telemetry.ThreeAxisSensor.getDefaultInstance()) return this;
if (other.hasSensorType()) {
setSensorType(other.getSensorType());
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasX()) {
setX(other.getX());
}
if (other.hasY()) {
setY(other.getY());
}
if (other.hasZ()) {
setZ(other.getZ());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSensorType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Telemetry.ThreeAxisSensor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Telemetry.ThreeAxisSensor) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .ThreeAxisSensor.SensorType sensor_type = 1;
private Telemetry.ThreeAxisSensor.SensorType sensorType_ = Telemetry.ThreeAxisSensor.SensorType.ACCELEROMETER;
/**
* <code>required .ThreeAxisSensor.SensorType sensor_type = 1;</code>
*/
public boolean hasSensorType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .ThreeAxisSensor.SensorType sensor_type = 1;</code>
*/
public Telemetry.ThreeAxisSensor.SensorType getSensorType() {
return sensorType_;
}
/**
* <code>required .ThreeAxisSensor.SensorType sensor_type = 1;</code>
*/
public Builder setSensorType(Telemetry.ThreeAxisSensor.SensorType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
sensorType_ = value;
onChanged();
return this;
}
/**
* <code>required .ThreeAxisSensor.SensorType sensor_type = 1;</code>
*/
public Builder clearSensorType() {
bitField0_ = (bitField0_ & ~0x00000001);
sensorType_ = Telemetry.ThreeAxisSensor.SensorType.ACCELEROMETER;
onChanged();
return this;
}
// optional uint32 id = 2 [default = 1];
private int id_ = 1;
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*
* <pre>
* ID of sensor if multiple exist.
* </pre>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*
* <pre>
* ID of sensor if multiple exist.
* </pre>
*/
public int getId() {
return id_;
}
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*
* <pre>
* ID of sensor if multiple exist.
* </pre>
*/
public Builder setId(int value) {
bitField0_ |= 0x00000002;
id_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 id = 2 [default = 1];</code>
*
* <pre>
* ID of sensor if multiple exist.
* </pre>
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 1;
onChanged();
return this;
}
// optional float x = 3;
private float x_ ;
/**
* <code>optional float x = 3;</code>
*
* <pre>
* Slot saved for some unknown value. (Accuracy? Magnitude?)
* </pre>
*/
public boolean hasX() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float x = 3;</code>
*
* <pre>
* Slot saved for some unknown value. (Accuracy? Magnitude?)
* </pre>
*/
public float getX() {
return x_;
}
/**
* <code>optional float x = 3;</code>
*
* <pre>
* Slot saved for some unknown value. (Accuracy? Magnitude?)
* </pre>
*/
public Builder setX(float value) {
bitField0_ |= 0x00000004;
x_ = value;
onChanged();
return this;
}
/**
* <code>optional float x = 3;</code>
*
* <pre>
* Slot saved for some unknown value. (Accuracy? Magnitude?)
* </pre>
*/
public Builder clearX() {
bitField0_ = (bitField0_ & ~0x00000004);
x_ = 0F;
onChanged();
return this;
}
// optional float y = 4;
private float y_ ;
/**
* <code>optional float y = 4;</code>
*/
public boolean hasY() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float y = 4;</code>
*/
public float getY() {
return y_;
}
/**
* <code>optional float y = 4;</code>
*/
public Builder setY(float value) {
bitField0_ |= 0x00000008;
y_ = value;
onChanged();
return this;
}
/**
* <code>optional float y = 4;</code>
*/
public Builder clearY() {
bitField0_ = (bitField0_ & ~0x00000008);
y_ = 0F;
onChanged();
return this;
}
// optional float z = 5;
private float z_ ;
/**
* <code>optional float z = 5;</code>
*/
public boolean hasZ() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float z = 5;</code>
*/
public float getZ() {
return z_;
}
/**
* <code>optional float z = 5;</code>
*/
public Builder setZ(float value) {
bitField0_ |= 0x00000010;
z_ = value;
onChanged();
return this;
}
/**
* <code>optional float z = 5;</code>
*/
public Builder clearZ() {
bitField0_ = (bitField0_ & ~0x00000010);
z_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ThreeAxisSensor)
}
static {
defaultInstance = new ThreeAxisSensor(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ThreeAxisSensor)
}
public interface DataPacketOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string sender_id = 1;
/**
* <code>optional string sender_id = 1;</code>
*/
boolean hasSenderId();
/**
* <code>optional string sender_id = 1;</code>
*/
java.lang.String getSenderId();
/**
* <code>optional string sender_id = 1;</code>
*/
com.google.protobuf.ByteString
getSenderIdBytes();
// optional uint32 sequence = 2;
/**
* <code>optional uint32 sequence = 2;</code>
*
* <pre>
* Serial identifier for ordering a packet stream.
* </pre>
*/
boolean hasSequence();
/**
* <code>optional uint32 sequence = 2;</code>
*
* <pre>
* Serial identifier for ordering a packet stream.
* </pre>
*/
int getSequence();
// optional uint64 timestamp = 3;
/**
* <code>optional uint64 timestamp = 3;</code>
*
* <pre>
* Miliseconds; time of packet capture.
* </pre>
*/
boolean hasTimestamp();
/**
* <code>optional uint64 timestamp = 3;</code>
*
* <pre>
* Miliseconds; time of packet capture.
* </pre>
*/
long getTimestamp();
// optional .Position position = 20;
/**
* <code>optional .Position position = 20;</code>
*/
boolean hasPosition();
/**
* <code>optional .Position position = 20;</code>
*/
Telemetry.Position getPosition();
/**
* <code>optional .Position position = 20;</code>
*/
Telemetry.PositionOrBuilder getPositionOrBuilder();
// repeated .Sensor sensor = 21;
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
java.util.List<Telemetry.Sensor>
getSensorList();
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
Telemetry.Sensor getSensor(int index);
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
int getSensorCount();
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
java.util.List<? extends Telemetry.SensorOrBuilder>
getSensorOrBuilderList();
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
Telemetry.SensorOrBuilder getSensorOrBuilder(
int index);
// repeated .ThreeAxisSensor three_axis_sensor = 22;
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
java.util.List<Telemetry.ThreeAxisSensor>
getThreeAxisSensorList();
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
Telemetry.ThreeAxisSensor getThreeAxisSensor(int index);
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
int getThreeAxisSensorCount();
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
java.util.List<? extends Telemetry.ThreeAxisSensorOrBuilder>
getThreeAxisSensorOrBuilderList();
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
Telemetry.ThreeAxisSensorOrBuilder getThreeAxisSensorOrBuilder(
int index);
}
/**
* Protobuf type {@code DataPacket}
*/
public static final class DataPacket extends
com.google.protobuf.GeneratedMessage
implements DataPacketOrBuilder {
// Use DataPacket.newBuilder() to construct.
private DataPacket(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DataPacket(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DataPacket defaultInstance;
public static DataPacket getDefaultInstance() {
return defaultInstance;
}
public DataPacket getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataPacket(
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;
senderId_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
sequence_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
timestamp_ = input.readUInt64();
break;
}
case 162: {
Telemetry.Position.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = position_.toBuilder();
}
position_ = input.readMessage(Telemetry.Position.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(position_);
position_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 170: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
sensor_ = new java.util.ArrayList<Telemetry.Sensor>();
mutable_bitField0_ |= 0x00000010;
}
sensor_.add(input.readMessage(Telemetry.Sensor.PARSER, extensionRegistry));
break;
}
case 178: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
threeAxisSensor_ = new java.util.ArrayList<Telemetry.ThreeAxisSensor>();
mutable_bitField0_ |= 0x00000020;
}
threeAxisSensor_.add(input.readMessage(Telemetry.ThreeAxisSensor.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_ & 0x00000010) == 0x00000010)) {
sensor_ = java.util.Collections.unmodifiableList(sensor_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
threeAxisSensor_ = java.util.Collections.unmodifiableList(threeAxisSensor_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Telemetry.internal_static_DataPacket_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_DataPacket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.DataPacket.class, Telemetry.DataPacket.Builder.class);
}
public static com.google.protobuf.Parser<DataPacket> PARSER =
new com.google.protobuf.AbstractParser<DataPacket>() {
public DataPacket parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DataPacket(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<DataPacket> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string sender_id = 1;
public static final int SENDER_ID_FIELD_NUMBER = 1;
private java.lang.Object senderId_;
/**
* <code>optional string sender_id = 1;</code>
*/
public boolean hasSenderId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string sender_id = 1;</code>
*/
public java.lang.String getSenderId() {
java.lang.Object ref = senderId_;
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()) {
senderId_ = s;
}
return s;
}
}
/**
* <code>optional string sender_id = 1;</code>
*/
public com.google.protobuf.ByteString
getSenderIdBytes() {
java.lang.Object ref = senderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
senderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional uint32 sequence = 2;
public static final int SEQUENCE_FIELD_NUMBER = 2;
private int sequence_;
/**
* <code>optional uint32 sequence = 2;</code>
*
* <pre>
* Serial identifier for ordering a packet stream.
* </pre>
*/
public boolean hasSequence() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint32 sequence = 2;</code>
*
* <pre>
* Serial identifier for ordering a packet stream.
* </pre>
*/
public int getSequence() {
return sequence_;
}
// optional uint64 timestamp = 3;
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_;
/**
* <code>optional uint64 timestamp = 3;</code>
*
* <pre>
* Miliseconds; time of packet capture.
* </pre>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional uint64 timestamp = 3;</code>
*
* <pre>
* Miliseconds; time of packet capture.
* </pre>
*/
public long getTimestamp() {
return timestamp_;
}
// optional .Position position = 20;
public static final int POSITION_FIELD_NUMBER = 20;
private Telemetry.Position position_;
/**
* <code>optional .Position position = 20;</code>
*/
public boolean hasPosition() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .Position position = 20;</code>
*/
public Telemetry.Position getPosition() {
return position_;
}
/**
* <code>optional .Position position = 20;</code>
*/
public Telemetry.PositionOrBuilder getPositionOrBuilder() {
return position_;
}
// repeated .Sensor sensor = 21;
public static final int SENSOR_FIELD_NUMBER = 21;
private java.util.List<Telemetry.Sensor> sensor_;
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public java.util.List<Telemetry.Sensor> getSensorList() {
return sensor_;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public java.util.List<? extends Telemetry.SensorOrBuilder>
getSensorOrBuilderList() {
return sensor_;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public int getSensorCount() {
return sensor_.size();
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Telemetry.Sensor getSensor(int index) {
return sensor_.get(index);
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Telemetry.SensorOrBuilder getSensorOrBuilder(
int index) {
return sensor_.get(index);
}
// repeated .ThreeAxisSensor three_axis_sensor = 22;
public static final int THREE_AXIS_SENSOR_FIELD_NUMBER = 22;
private java.util.List<Telemetry.ThreeAxisSensor> threeAxisSensor_;
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public java.util.List<Telemetry.ThreeAxisSensor> getThreeAxisSensorList() {
return threeAxisSensor_;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public java.util.List<? extends Telemetry.ThreeAxisSensorOrBuilder>
getThreeAxisSensorOrBuilderList() {
return threeAxisSensor_;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public int getThreeAxisSensorCount() {
return threeAxisSensor_.size();
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Telemetry.ThreeAxisSensor getThreeAxisSensor(int index) {
return threeAxisSensor_.get(index);
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Telemetry.ThreeAxisSensorOrBuilder getThreeAxisSensorOrBuilder(
int index) {
return threeAxisSensor_.get(index);
}
private void initFields() {
senderId_ = "";
sequence_ = 0;
timestamp_ = 0L;
position_ = Telemetry.Position.getDefaultInstance();
sensor_ = java.util.Collections.emptyList();
threeAxisSensor_ = 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 < getSensorCount(); i++) {
if (!getSensor(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getThreeAxisSensorCount(); i++) {
if (!getThreeAxisSensor(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, getSenderIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, sequence_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, timestamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(20, position_);
}
for (int i = 0; i < sensor_.size(); i++) {
output.writeMessage(21, sensor_.get(i));
}
for (int i = 0; i < threeAxisSensor_.size(); i++) {
output.writeMessage(22, threeAxisSensor_.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, getSenderIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, sequence_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, timestamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, position_);
}
for (int i = 0; i < sensor_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, sensor_.get(i));
}
for (int i = 0; i < threeAxisSensor_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, threeAxisSensor_.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 Telemetry.DataPacket parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.DataPacket parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.DataPacket parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.DataPacket parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.DataPacket parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.DataPacket parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Telemetry.DataPacket parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static Telemetry.DataPacket parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static Telemetry.DataPacket parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.DataPacket 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(Telemetry.DataPacket 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 DataPacket}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements Telemetry.DataPacketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Telemetry.internal_static_DataPacket_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_DataPacket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.DataPacket.class, Telemetry.DataPacket.Builder.class);
}
// Construct using Telemetry.DataPacket.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getPositionFieldBuilder();
getSensorFieldBuilder();
getThreeAxisSensorFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
senderId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
sequence_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
if (positionBuilder_ == null) {
position_ = Telemetry.Position.getDefaultInstance();
} else {
positionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (sensorBuilder_ == null) {
sensor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
sensorBuilder_.clear();
}
if (threeAxisSensorBuilder_ == null) {
threeAxisSensor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
threeAxisSensorBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Telemetry.internal_static_DataPacket_descriptor;
}
public Telemetry.DataPacket getDefaultInstanceForType() {
return Telemetry.DataPacket.getDefaultInstance();
}
public Telemetry.DataPacket build() {
Telemetry.DataPacket result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public Telemetry.DataPacket buildPartial() {
Telemetry.DataPacket result = new Telemetry.DataPacket(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.senderId_ = senderId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.sequence_ = sequence_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.timestamp_ = timestamp_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (positionBuilder_ == null) {
result.position_ = position_;
} else {
result.position_ = positionBuilder_.build();
}
if (sensorBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
sensor_ = java.util.Collections.unmodifiableList(sensor_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.sensor_ = sensor_;
} else {
result.sensor_ = sensorBuilder_.build();
}
if (threeAxisSensorBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
threeAxisSensor_ = java.util.Collections.unmodifiableList(threeAxisSensor_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.threeAxisSensor_ = threeAxisSensor_;
} else {
result.threeAxisSensor_ = threeAxisSensorBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Telemetry.DataPacket) {
return mergeFrom((Telemetry.DataPacket)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Telemetry.DataPacket other) {
if (other == Telemetry.DataPacket.getDefaultInstance()) return this;
if (other.hasSenderId()) {
bitField0_ |= 0x00000001;
senderId_ = other.senderId_;
onChanged();
}
if (other.hasSequence()) {
setSequence(other.getSequence());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasPosition()) {
mergePosition(other.getPosition());
}
if (sensorBuilder_ == null) {
if (!other.sensor_.isEmpty()) {
if (sensor_.isEmpty()) {
sensor_ = other.sensor_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureSensorIsMutable();
sensor_.addAll(other.sensor_);
}
onChanged();
}
} else {
if (!other.sensor_.isEmpty()) {
if (sensorBuilder_.isEmpty()) {
sensorBuilder_.dispose();
sensorBuilder_ = null;
sensor_ = other.sensor_;
bitField0_ = (bitField0_ & ~0x00000010);
sensorBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getSensorFieldBuilder() : null;
} else {
sensorBuilder_.addAllMessages(other.sensor_);
}
}
}
if (threeAxisSensorBuilder_ == null) {
if (!other.threeAxisSensor_.isEmpty()) {
if (threeAxisSensor_.isEmpty()) {
threeAxisSensor_ = other.threeAxisSensor_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureThreeAxisSensorIsMutable();
threeAxisSensor_.addAll(other.threeAxisSensor_);
}
onChanged();
}
} else {
if (!other.threeAxisSensor_.isEmpty()) {
if (threeAxisSensorBuilder_.isEmpty()) {
threeAxisSensorBuilder_.dispose();
threeAxisSensorBuilder_ = null;
threeAxisSensor_ = other.threeAxisSensor_;
bitField0_ = (bitField0_ & ~0x00000020);
threeAxisSensorBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getThreeAxisSensorFieldBuilder() : null;
} else {
threeAxisSensorBuilder_.addAllMessages(other.threeAxisSensor_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getSensorCount(); i++) {
if (!getSensor(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getThreeAxisSensorCount(); i++) {
if (!getThreeAxisSensor(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Telemetry.DataPacket parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Telemetry.DataPacket) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string sender_id = 1;
private java.lang.Object senderId_ = "";
/**
* <code>optional string sender_id = 1;</code>
*/
public boolean hasSenderId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string sender_id = 1;</code>
*/
public java.lang.String getSenderId() {
java.lang.Object ref = senderId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
senderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string sender_id = 1;</code>
*/
public com.google.protobuf.ByteString
getSenderIdBytes() {
java.lang.Object ref = senderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
senderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string sender_id = 1;</code>
*/
public Builder setSenderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
senderId_ = value;
onChanged();
return this;
}
/**
* <code>optional string sender_id = 1;</code>
*/
public Builder clearSenderId() {
bitField0_ = (bitField0_ & ~0x00000001);
senderId_ = getDefaultInstance().getSenderId();
onChanged();
return this;
}
/**
* <code>optional string sender_id = 1;</code>
*/
public Builder setSenderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
senderId_ = value;
onChanged();
return this;
}
// optional uint32 sequence = 2;
private int sequence_ ;
/**
* <code>optional uint32 sequence = 2;</code>
*
* <pre>
* Serial identifier for ordering a packet stream.
* </pre>
*/
public boolean hasSequence() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint32 sequence = 2;</code>
*
* <pre>
* Serial identifier for ordering a packet stream.
* </pre>
*/
public int getSequence() {
return sequence_;
}
/**
* <code>optional uint32 sequence = 2;</code>
*
* <pre>
* Serial identifier for ordering a packet stream.
* </pre>
*/
public Builder setSequence(int value) {
bitField0_ |= 0x00000002;
sequence_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 sequence = 2;</code>
*
* <pre>
* Serial identifier for ordering a packet stream.
* </pre>
*/
public Builder clearSequence() {
bitField0_ = (bitField0_ & ~0x00000002);
sequence_ = 0;
onChanged();
return this;
}
// optional uint64 timestamp = 3;
private long timestamp_ ;
/**
* <code>optional uint64 timestamp = 3;</code>
*
* <pre>
* Miliseconds; time of packet capture.
* </pre>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional uint64 timestamp = 3;</code>
*
* <pre>
* Miliseconds; time of packet capture.
* </pre>
*/
public long getTimestamp() {
return timestamp_;
}
/**
* <code>optional uint64 timestamp = 3;</code>
*
* <pre>
* Miliseconds; time of packet capture.
* </pre>
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000004;
timestamp_ = value;
onChanged();
return this;
}
/**
* <code>optional uint64 timestamp = 3;</code>
*
* <pre>
* Miliseconds; time of packet capture.
* </pre>
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = 0L;
onChanged();
return this;
}
// optional .Position position = 20;
private Telemetry.Position position_ = Telemetry.Position.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
Telemetry.Position, Telemetry.Position.Builder, Telemetry.PositionOrBuilder> positionBuilder_;
/**
* <code>optional .Position position = 20;</code>
*/
public boolean hasPosition() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .Position position = 20;</code>
*/
public Telemetry.Position getPosition() {
if (positionBuilder_ == null) {
return position_;
} else {
return positionBuilder_.getMessage();
}
}
/**
* <code>optional .Position position = 20;</code>
*/
public Builder setPosition(Telemetry.Position value) {
if (positionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
position_ = value;
onChanged();
} else {
positionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .Position position = 20;</code>
*/
public Builder setPosition(
Telemetry.Position.Builder builderForValue) {
if (positionBuilder_ == null) {
position_ = builderForValue.build();
onChanged();
} else {
positionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .Position position = 20;</code>
*/
public Builder mergePosition(Telemetry.Position value) {
if (positionBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
position_ != Telemetry.Position.getDefaultInstance()) {
position_ =
Telemetry.Position.newBuilder(position_).mergeFrom(value).buildPartial();
} else {
position_ = value;
}
onChanged();
} else {
positionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .Position position = 20;</code>
*/
public Builder clearPosition() {
if (positionBuilder_ == null) {
position_ = Telemetry.Position.getDefaultInstance();
onChanged();
} else {
positionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* <code>optional .Position position = 20;</code>
*/
public Telemetry.Position.Builder getPositionBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getPositionFieldBuilder().getBuilder();
}
/**
* <code>optional .Position position = 20;</code>
*/
public Telemetry.PositionOrBuilder getPositionOrBuilder() {
if (positionBuilder_ != null) {
return positionBuilder_.getMessageOrBuilder();
} else {
return position_;
}
}
/**
* <code>optional .Position position = 20;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
Telemetry.Position, Telemetry.Position.Builder, Telemetry.PositionOrBuilder>
getPositionFieldBuilder() {
if (positionBuilder_ == null) {
positionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
Telemetry.Position, Telemetry.Position.Builder, Telemetry.PositionOrBuilder>(
position_,
getParentForChildren(),
isClean());
position_ = null;
}
return positionBuilder_;
}
// repeated .Sensor sensor = 21;
private java.util.List<Telemetry.Sensor> sensor_ =
java.util.Collections.emptyList();
private void ensureSensorIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
sensor_ = new java.util.ArrayList<Telemetry.Sensor>(sensor_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
Telemetry.Sensor, Telemetry.Sensor.Builder, Telemetry.SensorOrBuilder> sensorBuilder_;
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public java.util.List<Telemetry.Sensor> getSensorList() {
if (sensorBuilder_ == null) {
return java.util.Collections.unmodifiableList(sensor_);
} else {
return sensorBuilder_.getMessageList();
}
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public int getSensorCount() {
if (sensorBuilder_ == null) {
return sensor_.size();
} else {
return sensorBuilder_.getCount();
}
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Telemetry.Sensor getSensor(int index) {
if (sensorBuilder_ == null) {
return sensor_.get(index);
} else {
return sensorBuilder_.getMessage(index);
}
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Builder setSensor(
int index, Telemetry.Sensor value) {
if (sensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSensorIsMutable();
sensor_.set(index, value);
onChanged();
} else {
sensorBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Builder setSensor(
int index, Telemetry.Sensor.Builder builderForValue) {
if (sensorBuilder_ == null) {
ensureSensorIsMutable();
sensor_.set(index, builderForValue.build());
onChanged();
} else {
sensorBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Builder addSensor(Telemetry.Sensor value) {
if (sensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSensorIsMutable();
sensor_.add(value);
onChanged();
} else {
sensorBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Builder addSensor(
int index, Telemetry.Sensor value) {
if (sensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSensorIsMutable();
sensor_.add(index, value);
onChanged();
} else {
sensorBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Builder addSensor(
Telemetry.Sensor.Builder builderForValue) {
if (sensorBuilder_ == null) {
ensureSensorIsMutable();
sensor_.add(builderForValue.build());
onChanged();
} else {
sensorBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Builder addSensor(
int index, Telemetry.Sensor.Builder builderForValue) {
if (sensorBuilder_ == null) {
ensureSensorIsMutable();
sensor_.add(index, builderForValue.build());
onChanged();
} else {
sensorBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Builder addAllSensor(
java.lang.Iterable<? extends Telemetry.Sensor> values) {
if (sensorBuilder_ == null) {
ensureSensorIsMutable();
super.addAll(values, sensor_);
onChanged();
} else {
sensorBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Builder clearSensor() {
if (sensorBuilder_ == null) {
sensor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
sensorBuilder_.clear();
}
return this;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Builder removeSensor(int index) {
if (sensorBuilder_ == null) {
ensureSensorIsMutable();
sensor_.remove(index);
onChanged();
} else {
sensorBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Telemetry.Sensor.Builder getSensorBuilder(
int index) {
return getSensorFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Telemetry.SensorOrBuilder getSensorOrBuilder(
int index) {
if (sensorBuilder_ == null) {
return sensor_.get(index); } else {
return sensorBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public java.util.List<? extends Telemetry.SensorOrBuilder>
getSensorOrBuilderList() {
if (sensorBuilder_ != null) {
return sensorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sensor_);
}
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Telemetry.Sensor.Builder addSensorBuilder() {
return getSensorFieldBuilder().addBuilder(
Telemetry.Sensor.getDefaultInstance());
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public Telemetry.Sensor.Builder addSensorBuilder(
int index) {
return getSensorFieldBuilder().addBuilder(
index, Telemetry.Sensor.getDefaultInstance());
}
/**
* <code>repeated .Sensor sensor = 21;</code>
*/
public java.util.List<Telemetry.Sensor.Builder>
getSensorBuilderList() {
return getSensorFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
Telemetry.Sensor, Telemetry.Sensor.Builder, Telemetry.SensorOrBuilder>
getSensorFieldBuilder() {
if (sensorBuilder_ == null) {
sensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
Telemetry.Sensor, Telemetry.Sensor.Builder, Telemetry.SensorOrBuilder>(
sensor_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
sensor_ = null;
}
return sensorBuilder_;
}
// repeated .ThreeAxisSensor three_axis_sensor = 22;
private java.util.List<Telemetry.ThreeAxisSensor> threeAxisSensor_ =
java.util.Collections.emptyList();
private void ensureThreeAxisSensorIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
threeAxisSensor_ = new java.util.ArrayList<Telemetry.ThreeAxisSensor>(threeAxisSensor_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
Telemetry.ThreeAxisSensor, Telemetry.ThreeAxisSensor.Builder, Telemetry.ThreeAxisSensorOrBuilder> threeAxisSensorBuilder_;
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public java.util.List<Telemetry.ThreeAxisSensor> getThreeAxisSensorList() {
if (threeAxisSensorBuilder_ == null) {
return java.util.Collections.unmodifiableList(threeAxisSensor_);
} else {
return threeAxisSensorBuilder_.getMessageList();
}
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public int getThreeAxisSensorCount() {
if (threeAxisSensorBuilder_ == null) {
return threeAxisSensor_.size();
} else {
return threeAxisSensorBuilder_.getCount();
}
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Telemetry.ThreeAxisSensor getThreeAxisSensor(int index) {
if (threeAxisSensorBuilder_ == null) {
return threeAxisSensor_.get(index);
} else {
return threeAxisSensorBuilder_.getMessage(index);
}
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Builder setThreeAxisSensor(
int index, Telemetry.ThreeAxisSensor value) {
if (threeAxisSensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThreeAxisSensorIsMutable();
threeAxisSensor_.set(index, value);
onChanged();
} else {
threeAxisSensorBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Builder setThreeAxisSensor(
int index, Telemetry.ThreeAxisSensor.Builder builderForValue) {
if (threeAxisSensorBuilder_ == null) {
ensureThreeAxisSensorIsMutable();
threeAxisSensor_.set(index, builderForValue.build());
onChanged();
} else {
threeAxisSensorBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Builder addThreeAxisSensor(Telemetry.ThreeAxisSensor value) {
if (threeAxisSensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThreeAxisSensorIsMutable();
threeAxisSensor_.add(value);
onChanged();
} else {
threeAxisSensorBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Builder addThreeAxisSensor(
int index, Telemetry.ThreeAxisSensor value) {
if (threeAxisSensorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThreeAxisSensorIsMutable();
threeAxisSensor_.add(index, value);
onChanged();
} else {
threeAxisSensorBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Builder addThreeAxisSensor(
Telemetry.ThreeAxisSensor.Builder builderForValue) {
if (threeAxisSensorBuilder_ == null) {
ensureThreeAxisSensorIsMutable();
threeAxisSensor_.add(builderForValue.build());
onChanged();
} else {
threeAxisSensorBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Builder addThreeAxisSensor(
int index, Telemetry.ThreeAxisSensor.Builder builderForValue) {
if (threeAxisSensorBuilder_ == null) {
ensureThreeAxisSensorIsMutable();
threeAxisSensor_.add(index, builderForValue.build());
onChanged();
} else {
threeAxisSensorBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Builder addAllThreeAxisSensor(
java.lang.Iterable<? extends Telemetry.ThreeAxisSensor> values) {
if (threeAxisSensorBuilder_ == null) {
ensureThreeAxisSensorIsMutable();
super.addAll(values, threeAxisSensor_);
onChanged();
} else {
threeAxisSensorBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Builder clearThreeAxisSensor() {
if (threeAxisSensorBuilder_ == null) {
threeAxisSensor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
threeAxisSensorBuilder_.clear();
}
return this;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Builder removeThreeAxisSensor(int index) {
if (threeAxisSensorBuilder_ == null) {
ensureThreeAxisSensorIsMutable();
threeAxisSensor_.remove(index);
onChanged();
} else {
threeAxisSensorBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Telemetry.ThreeAxisSensor.Builder getThreeAxisSensorBuilder(
int index) {
return getThreeAxisSensorFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Telemetry.ThreeAxisSensorOrBuilder getThreeAxisSensorOrBuilder(
int index) {
if (threeAxisSensorBuilder_ == null) {
return threeAxisSensor_.get(index); } else {
return threeAxisSensorBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public java.util.List<? extends Telemetry.ThreeAxisSensorOrBuilder>
getThreeAxisSensorOrBuilderList() {
if (threeAxisSensorBuilder_ != null) {
return threeAxisSensorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(threeAxisSensor_);
}
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Telemetry.ThreeAxisSensor.Builder addThreeAxisSensorBuilder() {
return getThreeAxisSensorFieldBuilder().addBuilder(
Telemetry.ThreeAxisSensor.getDefaultInstance());
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public Telemetry.ThreeAxisSensor.Builder addThreeAxisSensorBuilder(
int index) {
return getThreeAxisSensorFieldBuilder().addBuilder(
index, Telemetry.ThreeAxisSensor.getDefaultInstance());
}
/**
* <code>repeated .ThreeAxisSensor three_axis_sensor = 22;</code>
*/
public java.util.List<Telemetry.ThreeAxisSensor.Builder>
getThreeAxisSensorBuilderList() {
return getThreeAxisSensorFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
Telemetry.ThreeAxisSensor, Telemetry.ThreeAxisSensor.Builder, Telemetry.ThreeAxisSensorOrBuilder>
getThreeAxisSensorFieldBuilder() {
if (threeAxisSensorBuilder_ == null) {
threeAxisSensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
Telemetry.ThreeAxisSensor, Telemetry.ThreeAxisSensor.Builder, Telemetry.ThreeAxisSensorOrBuilder>(
threeAxisSensor_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
threeAxisSensor_ = null;
}
return threeAxisSensorBuilder_;
}
// @@protoc_insertion_point(builder_scope:DataPacket)
}
static {
defaultInstance = new DataPacket(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:DataPacket)
}
public interface IridiumPacketOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .IridiumPacket.IridiumHeader header = 1;
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
boolean hasHeader();
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
Telemetry.IridiumPacket.IridiumHeader getHeader();
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
Telemetry.IridiumPacket.IridiumHeaderOrBuilder getHeaderOrBuilder();
// optional bytes payload = 2;
/**
* <code>optional bytes payload = 2;</code>
*/
boolean hasPayload();
/**
* <code>optional bytes payload = 2;</code>
*/
com.google.protobuf.ByteString getPayload();
// optional .IridiumPacket.IridiumLocation location = 3;
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
boolean hasLocation();
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
Telemetry.IridiumPacket.IridiumLocation getLocation();
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
Telemetry.IridiumPacket.IridiumLocationOrBuilder getLocationOrBuilder();
}
/**
* Protobuf type {@code IridiumPacket}
*/
public static final class IridiumPacket extends
com.google.protobuf.GeneratedMessage
implements IridiumPacketOrBuilder {
// Use IridiumPacket.newBuilder() to construct.
private IridiumPacket(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IridiumPacket(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IridiumPacket defaultInstance;
public static IridiumPacket getDefaultInstance() {
return defaultInstance;
}
public IridiumPacket getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IridiumPacket(
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: {
Telemetry.IridiumPacket.IridiumHeader.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(Telemetry.IridiumPacket.IridiumHeader.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
bitField0_ |= 0x00000002;
payload_ = input.readBytes();
break;
}
case 26: {
Telemetry.IridiumPacket.IridiumLocation.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = location_.toBuilder();
}
location_ = input.readMessage(Telemetry.IridiumPacket.IridiumLocation.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(location_);
location_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
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 Telemetry.internal_static_IridiumPacket_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_IridiumPacket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.IridiumPacket.class, Telemetry.IridiumPacket.Builder.class);
}
public static com.google.protobuf.Parser<IridiumPacket> PARSER =
new com.google.protobuf.AbstractParser<IridiumPacket>() {
public IridiumPacket parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IridiumPacket(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<IridiumPacket> getParserForType() {
return PARSER;
}
public interface IridiumHeaderOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional uint32 cdr_reference = 1;
/**
* <code>optional uint32 cdr_reference = 1;</code>
*/
boolean hasCdrReference();
/**
* <code>optional uint32 cdr_reference = 1;</code>
*/
int getCdrReference();
// optional string imei = 2;
/**
* <code>optional string imei = 2;</code>
*/
boolean hasImei();
/**
* <code>optional string imei = 2;</code>
*/
java.lang.String getImei();
/**
* <code>optional string imei = 2;</code>
*/
com.google.protobuf.ByteString
getImeiBytes();
// optional uint32 status = 3;
/**
* <code>optional uint32 status = 3;</code>
*/
boolean hasStatus();
/**
* <code>optional uint32 status = 3;</code>
*/
int getStatus();
// optional uint32 mo_message_sequence_number = 4;
/**
* <code>optional uint32 mo_message_sequence_number = 4;</code>
*/
boolean hasMoMessageSequenceNumber();
/**
* <code>optional uint32 mo_message_sequence_number = 4;</code>
*/
int getMoMessageSequenceNumber();
// optional uint32 mt_message_sequence_number = 5;
/**
* <code>optional uint32 mt_message_sequence_number = 5;</code>
*/
boolean hasMtMessageSequenceNumber();
/**
* <code>optional uint32 mt_message_sequence_number = 5;</code>
*/
int getMtMessageSequenceNumber();
// optional uint64 timestamp = 6;
/**
* <code>optional uint64 timestamp = 6;</code>
*/
boolean hasTimestamp();
/**
* <code>optional uint64 timestamp = 6;</code>
*/
long getTimestamp();
}
/**
* Protobuf type {@code IridiumPacket.IridiumHeader}
*/
public static final class IridiumHeader extends
com.google.protobuf.GeneratedMessage
implements IridiumHeaderOrBuilder {
// Use IridiumHeader.newBuilder() to construct.
private IridiumHeader(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IridiumHeader(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IridiumHeader defaultInstance;
public static IridiumHeader getDefaultInstance() {
return defaultInstance;
}
public IridiumHeader getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IridiumHeader(
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;
cdrReference_ = input.readUInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
imei_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
status_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
moMessageSequenceNumber_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
mtMessageSequenceNumber_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
timestamp_ = input.readUInt64();
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 Telemetry.internal_static_IridiumPacket_IridiumHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_IridiumPacket_IridiumHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.IridiumPacket.IridiumHeader.class, Telemetry.IridiumPacket.IridiumHeader.Builder.class);
}
public static com.google.protobuf.Parser<IridiumHeader> PARSER =
new com.google.protobuf.AbstractParser<IridiumHeader>() {
public IridiumHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IridiumHeader(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<IridiumHeader> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 cdr_reference = 1;
public static final int CDR_REFERENCE_FIELD_NUMBER = 1;
private int cdrReference_;
/**
* <code>optional uint32 cdr_reference = 1;</code>
*/
public boolean hasCdrReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional uint32 cdr_reference = 1;</code>
*/
public int getCdrReference() {
return cdrReference_;
}
// optional string imei = 2;
public static final int IMEI_FIELD_NUMBER = 2;
private java.lang.Object imei_;
/**
* <code>optional string imei = 2;</code>
*/
public boolean hasImei() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string imei = 2;</code>
*/
public java.lang.String getImei() {
java.lang.Object ref = imei_;
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()) {
imei_ = s;
}
return s;
}
}
/**
* <code>optional string imei = 2;</code>
*/
public com.google.protobuf.ByteString
getImeiBytes() {
java.lang.Object ref = imei_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imei_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional uint32 status = 3;
public static final int STATUS_FIELD_NUMBER = 3;
private int status_;
/**
* <code>optional uint32 status = 3;</code>
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional uint32 status = 3;</code>
*/
public int getStatus() {
return status_;
}
// optional uint32 mo_message_sequence_number = 4;
public static final int MO_MESSAGE_SEQUENCE_NUMBER_FIELD_NUMBER = 4;
private int moMessageSequenceNumber_;
/**
* <code>optional uint32 mo_message_sequence_number = 4;</code>
*/
public boolean hasMoMessageSequenceNumber() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional uint32 mo_message_sequence_number = 4;</code>
*/
public int getMoMessageSequenceNumber() {
return moMessageSequenceNumber_;
}
// optional uint32 mt_message_sequence_number = 5;
public static final int MT_MESSAGE_SEQUENCE_NUMBER_FIELD_NUMBER = 5;
private int mtMessageSequenceNumber_;
/**
* <code>optional uint32 mt_message_sequence_number = 5;</code>
*/
public boolean hasMtMessageSequenceNumber() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional uint32 mt_message_sequence_number = 5;</code>
*/
public int getMtMessageSequenceNumber() {
return mtMessageSequenceNumber_;
}
// optional uint64 timestamp = 6;
public static final int TIMESTAMP_FIELD_NUMBER = 6;
private long timestamp_;
/**
* <code>optional uint64 timestamp = 6;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional uint64 timestamp = 6;</code>
*/
public long getTimestamp() {
return timestamp_;
}
private void initFields() {
cdrReference_ = 0;
imei_ = "";
status_ = 0;
moMessageSequenceNumber_ = 0;
mtMessageSequenceNumber_ = 0;
timestamp_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, cdrReference_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getImeiBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, status_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(4, moMessageSequenceNumber_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, mtMessageSequenceNumber_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt64(6, timestamp_);
}
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
.computeUInt32Size(1, cdrReference_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getImeiBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, status_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, moMessageSequenceNumber_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, mtMessageSequenceNumber_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, timestamp_);
}
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 Telemetry.IridiumPacket.IridiumHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.IridiumPacket.IridiumHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.IridiumPacket.IridiumHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.IridiumPacket.IridiumHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.IridiumPacket.IridiumHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.IridiumPacket.IridiumHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Telemetry.IridiumPacket.IridiumHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static Telemetry.IridiumPacket.IridiumHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static Telemetry.IridiumPacket.IridiumHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.IridiumPacket.IridiumHeader 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(Telemetry.IridiumPacket.IridiumHeader 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 IridiumPacket.IridiumHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements Telemetry.IridiumPacket.IridiumHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Telemetry.internal_static_IridiumPacket_IridiumHeader_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_IridiumPacket_IridiumHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.IridiumPacket.IridiumHeader.class, Telemetry.IridiumPacket.IridiumHeader.Builder.class);
}
// Construct using Telemetry.IridiumPacket.IridiumHeader.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();
cdrReference_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
imei_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
moMessageSequenceNumber_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
mtMessageSequenceNumber_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Telemetry.internal_static_IridiumPacket_IridiumHeader_descriptor;
}
public Telemetry.IridiumPacket.IridiumHeader getDefaultInstanceForType() {
return Telemetry.IridiumPacket.IridiumHeader.getDefaultInstance();
}
public Telemetry.IridiumPacket.IridiumHeader build() {
Telemetry.IridiumPacket.IridiumHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public Telemetry.IridiumPacket.IridiumHeader buildPartial() {
Telemetry.IridiumPacket.IridiumHeader result = new Telemetry.IridiumPacket.IridiumHeader(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.cdrReference_ = cdrReference_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.imei_ = imei_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.moMessageSequenceNumber_ = moMessageSequenceNumber_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.mtMessageSequenceNumber_ = mtMessageSequenceNumber_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.timestamp_ = timestamp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Telemetry.IridiumPacket.IridiumHeader) {
return mergeFrom((Telemetry.IridiumPacket.IridiumHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Telemetry.IridiumPacket.IridiumHeader other) {
if (other == Telemetry.IridiumPacket.IridiumHeader.getDefaultInstance()) return this;
if (other.hasCdrReference()) {
setCdrReference(other.getCdrReference());
}
if (other.hasImei()) {
bitField0_ |= 0x00000002;
imei_ = other.imei_;
onChanged();
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasMoMessageSequenceNumber()) {
setMoMessageSequenceNumber(other.getMoMessageSequenceNumber());
}
if (other.hasMtMessageSequenceNumber()) {
setMtMessageSequenceNumber(other.getMtMessageSequenceNumber());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Telemetry.IridiumPacket.IridiumHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Telemetry.IridiumPacket.IridiumHeader) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 cdr_reference = 1;
private int cdrReference_ ;
/**
* <code>optional uint32 cdr_reference = 1;</code>
*/
public boolean hasCdrReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional uint32 cdr_reference = 1;</code>
*/
public int getCdrReference() {
return cdrReference_;
}
/**
* <code>optional uint32 cdr_reference = 1;</code>
*/
public Builder setCdrReference(int value) {
bitField0_ |= 0x00000001;
cdrReference_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 cdr_reference = 1;</code>
*/
public Builder clearCdrReference() {
bitField0_ = (bitField0_ & ~0x00000001);
cdrReference_ = 0;
onChanged();
return this;
}
// optional string imei = 2;
private java.lang.Object imei_ = "";
/**
* <code>optional string imei = 2;</code>
*/
public boolean hasImei() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string imei = 2;</code>
*/
public java.lang.String getImei() {
java.lang.Object ref = imei_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
imei_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string imei = 2;</code>
*/
public com.google.protobuf.ByteString
getImeiBytes() {
java.lang.Object ref = imei_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imei_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string imei = 2;</code>
*/
public Builder setImei(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
imei_ = value;
onChanged();
return this;
}
/**
* <code>optional string imei = 2;</code>
*/
public Builder clearImei() {
bitField0_ = (bitField0_ & ~0x00000002);
imei_ = getDefaultInstance().getImei();
onChanged();
return this;
}
/**
* <code>optional string imei = 2;</code>
*/
public Builder setImeiBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
imei_ = value;
onChanged();
return this;
}
// optional uint32 status = 3;
private int status_ ;
/**
* <code>optional uint32 status = 3;</code>
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional uint32 status = 3;</code>
*/
public int getStatus() {
return status_;
}
/**
* <code>optional uint32 status = 3;</code>
*/
public Builder setStatus(int value) {
bitField0_ |= 0x00000004;
status_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 status = 3;</code>
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 0;
onChanged();
return this;
}
// optional uint32 mo_message_sequence_number = 4;
private int moMessageSequenceNumber_ ;
/**
* <code>optional uint32 mo_message_sequence_number = 4;</code>
*/
public boolean hasMoMessageSequenceNumber() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional uint32 mo_message_sequence_number = 4;</code>
*/
public int getMoMessageSequenceNumber() {
return moMessageSequenceNumber_;
}
/**
* <code>optional uint32 mo_message_sequence_number = 4;</code>
*/
public Builder setMoMessageSequenceNumber(int value) {
bitField0_ |= 0x00000008;
moMessageSequenceNumber_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 mo_message_sequence_number = 4;</code>
*/
public Builder clearMoMessageSequenceNumber() {
bitField0_ = (bitField0_ & ~0x00000008);
moMessageSequenceNumber_ = 0;
onChanged();
return this;
}
// optional uint32 mt_message_sequence_number = 5;
private int mtMessageSequenceNumber_ ;
/**
* <code>optional uint32 mt_message_sequence_number = 5;</code>
*/
public boolean hasMtMessageSequenceNumber() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional uint32 mt_message_sequence_number = 5;</code>
*/
public int getMtMessageSequenceNumber() {
return mtMessageSequenceNumber_;
}
/**
* <code>optional uint32 mt_message_sequence_number = 5;</code>
*/
public Builder setMtMessageSequenceNumber(int value) {
bitField0_ |= 0x00000010;
mtMessageSequenceNumber_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 mt_message_sequence_number = 5;</code>
*/
public Builder clearMtMessageSequenceNumber() {
bitField0_ = (bitField0_ & ~0x00000010);
mtMessageSequenceNumber_ = 0;
onChanged();
return this;
}
// optional uint64 timestamp = 6;
private long timestamp_ ;
/**
* <code>optional uint64 timestamp = 6;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional uint64 timestamp = 6;</code>
*/
public long getTimestamp() {
return timestamp_;
}
/**
* <code>optional uint64 timestamp = 6;</code>
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000020;
timestamp_ = value;
onChanged();
return this;
}
/**
* <code>optional uint64 timestamp = 6;</code>
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000020);
timestamp_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:IridiumPacket.IridiumHeader)
}
static {
defaultInstance = new IridiumHeader(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IridiumPacket.IridiumHeader)
}
public interface IridiumLocationOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional uint32 format = 1;
/**
* <code>optional uint32 format = 1;</code>
*/
boolean hasFormat();
/**
* <code>optional uint32 format = 1;</code>
*/
int getFormat();
// optional uint32 lat_degrees = 2;
/**
* <code>optional uint32 lat_degrees = 2;</code>
*/
boolean hasLatDegrees();
/**
* <code>optional uint32 lat_degrees = 2;</code>
*/
int getLatDegrees();
// optional uint32 lat_decimal = 3;
/**
* <code>optional uint32 lat_decimal = 3;</code>
*/
boolean hasLatDecimal();
/**
* <code>optional uint32 lat_decimal = 3;</code>
*/
int getLatDecimal();
// optional uint32 lon_degrees = 4;
/**
* <code>optional uint32 lon_degrees = 4;</code>
*/
boolean hasLonDegrees();
/**
* <code>optional uint32 lon_degrees = 4;</code>
*/
int getLonDegrees();
// optional uint32 lon_decimal = 5;
/**
* <code>optional uint32 lon_decimal = 5;</code>
*/
boolean hasLonDecimal();
/**
* <code>optional uint32 lon_decimal = 5;</code>
*/
int getLonDecimal();
// optional uint32 cep_radius = 6;
/**
* <code>optional uint32 cep_radius = 6;</code>
*/
boolean hasCepRadius();
/**
* <code>optional uint32 cep_radius = 6;</code>
*/
int getCepRadius();
// optional float latitude = 20;
/**
* <code>optional float latitude = 20;</code>
*/
boolean hasLatitude();
/**
* <code>optional float latitude = 20;</code>
*/
float getLatitude();
// optional float longitude = 21;
/**
* <code>optional float longitude = 21;</code>
*/
boolean hasLongitude();
/**
* <code>optional float longitude = 21;</code>
*/
float getLongitude();
}
/**
* Protobuf type {@code IridiumPacket.IridiumLocation}
*/
public static final class IridiumLocation extends
com.google.protobuf.GeneratedMessage
implements IridiumLocationOrBuilder {
// Use IridiumLocation.newBuilder() to construct.
private IridiumLocation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IridiumLocation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IridiumLocation defaultInstance;
public static IridiumLocation getDefaultInstance() {
return defaultInstance;
}
public IridiumLocation getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IridiumLocation(
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;
format_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
latDegrees_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
latDecimal_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
lonDegrees_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
lonDecimal_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
cepRadius_ = input.readUInt32();
break;
}
case 165: {
bitField0_ |= 0x00000040;
latitude_ = input.readFloat();
break;
}
case 173: {
bitField0_ |= 0x00000080;
longitude_ = input.readFloat();
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 Telemetry.internal_static_IridiumPacket_IridiumLocation_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_IridiumPacket_IridiumLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.IridiumPacket.IridiumLocation.class, Telemetry.IridiumPacket.IridiumLocation.Builder.class);
}
public static com.google.protobuf.Parser<IridiumLocation> PARSER =
new com.google.protobuf.AbstractParser<IridiumLocation>() {
public IridiumLocation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IridiumLocation(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<IridiumLocation> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 format = 1;
public static final int FORMAT_FIELD_NUMBER = 1;
private int format_;
/**
* <code>optional uint32 format = 1;</code>
*/
public boolean hasFormat() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional uint32 format = 1;</code>
*/
public int getFormat() {
return format_;
}
// optional uint32 lat_degrees = 2;
public static final int LAT_DEGREES_FIELD_NUMBER = 2;
private int latDegrees_;
/**
* <code>optional uint32 lat_degrees = 2;</code>
*/
public boolean hasLatDegrees() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint32 lat_degrees = 2;</code>
*/
public int getLatDegrees() {
return latDegrees_;
}
// optional uint32 lat_decimal = 3;
public static final int LAT_DECIMAL_FIELD_NUMBER = 3;
private int latDecimal_;
/**
* <code>optional uint32 lat_decimal = 3;</code>
*/
public boolean hasLatDecimal() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional uint32 lat_decimal = 3;</code>
*/
public int getLatDecimal() {
return latDecimal_;
}
// optional uint32 lon_degrees = 4;
public static final int LON_DEGREES_FIELD_NUMBER = 4;
private int lonDegrees_;
/**
* <code>optional uint32 lon_degrees = 4;</code>
*/
public boolean hasLonDegrees() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional uint32 lon_degrees = 4;</code>
*/
public int getLonDegrees() {
return lonDegrees_;
}
// optional uint32 lon_decimal = 5;
public static final int LON_DECIMAL_FIELD_NUMBER = 5;
private int lonDecimal_;
/**
* <code>optional uint32 lon_decimal = 5;</code>
*/
public boolean hasLonDecimal() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional uint32 lon_decimal = 5;</code>
*/
public int getLonDecimal() {
return lonDecimal_;
}
// optional uint32 cep_radius = 6;
public static final int CEP_RADIUS_FIELD_NUMBER = 6;
private int cepRadius_;
/**
* <code>optional uint32 cep_radius = 6;</code>
*/
public boolean hasCepRadius() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional uint32 cep_radius = 6;</code>
*/
public int getCepRadius() {
return cepRadius_;
}
// optional float latitude = 20;
public static final int LATITUDE_FIELD_NUMBER = 20;
private float latitude_;
/**
* <code>optional float latitude = 20;</code>
*/
public boolean hasLatitude() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional float latitude = 20;</code>
*/
public float getLatitude() {
return latitude_;
}
// optional float longitude = 21;
public static final int LONGITUDE_FIELD_NUMBER = 21;
private float longitude_;
/**
* <code>optional float longitude = 21;</code>
*/
public boolean hasLongitude() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional float longitude = 21;</code>
*/
public float getLongitude() {
return longitude_;
}
private void initFields() {
format_ = 0;
latDegrees_ = 0;
latDecimal_ = 0;
lonDegrees_ = 0;
lonDecimal_ = 0;
cepRadius_ = 0;
latitude_ = 0F;
longitude_ = 0F;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, format_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, latDegrees_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, latDecimal_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(4, lonDegrees_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, lonDecimal_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt32(6, cepRadius_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeFloat(20, latitude_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeFloat(21, longitude_);
}
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
.computeUInt32Size(1, format_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, latDegrees_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, latDecimal_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, lonDegrees_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, lonDecimal_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, cepRadius_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(20, latitude_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(21, longitude_);
}
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 Telemetry.IridiumPacket.IridiumLocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.IridiumPacket.IridiumLocation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.IridiumPacket.IridiumLocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.IridiumPacket.IridiumLocation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.IridiumPacket.IridiumLocation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.IridiumPacket.IridiumLocation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Telemetry.IridiumPacket.IridiumLocation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static Telemetry.IridiumPacket.IridiumLocation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static Telemetry.IridiumPacket.IridiumLocation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.IridiumPacket.IridiumLocation 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(Telemetry.IridiumPacket.IridiumLocation 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 IridiumPacket.IridiumLocation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements Telemetry.IridiumPacket.IridiumLocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Telemetry.internal_static_IridiumPacket_IridiumLocation_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_IridiumPacket_IridiumLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.IridiumPacket.IridiumLocation.class, Telemetry.IridiumPacket.IridiumLocation.Builder.class);
}
// Construct using Telemetry.IridiumPacket.IridiumLocation.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();
format_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
latDegrees_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
latDecimal_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
lonDegrees_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
lonDecimal_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
cepRadius_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
latitude_ = 0F;
bitField0_ = (bitField0_ & ~0x00000040);
longitude_ = 0F;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Telemetry.internal_static_IridiumPacket_IridiumLocation_descriptor;
}
public Telemetry.IridiumPacket.IridiumLocation getDefaultInstanceForType() {
return Telemetry.IridiumPacket.IridiumLocation.getDefaultInstance();
}
public Telemetry.IridiumPacket.IridiumLocation build() {
Telemetry.IridiumPacket.IridiumLocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public Telemetry.IridiumPacket.IridiumLocation buildPartial() {
Telemetry.IridiumPacket.IridiumLocation result = new Telemetry.IridiumPacket.IridiumLocation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.format_ = format_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.latDegrees_ = latDegrees_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.latDecimal_ = latDecimal_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.lonDegrees_ = lonDegrees_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.lonDecimal_ = lonDecimal_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.cepRadius_ = cepRadius_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.latitude_ = latitude_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.longitude_ = longitude_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Telemetry.IridiumPacket.IridiumLocation) {
return mergeFrom((Telemetry.IridiumPacket.IridiumLocation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Telemetry.IridiumPacket.IridiumLocation other) {
if (other == Telemetry.IridiumPacket.IridiumLocation.getDefaultInstance()) return this;
if (other.hasFormat()) {
setFormat(other.getFormat());
}
if (other.hasLatDegrees()) {
setLatDegrees(other.getLatDegrees());
}
if (other.hasLatDecimal()) {
setLatDecimal(other.getLatDecimal());
}
if (other.hasLonDegrees()) {
setLonDegrees(other.getLonDegrees());
}
if (other.hasLonDecimal()) {
setLonDecimal(other.getLonDecimal());
}
if (other.hasCepRadius()) {
setCepRadius(other.getCepRadius());
}
if (other.hasLatitude()) {
setLatitude(other.getLatitude());
}
if (other.hasLongitude()) {
setLongitude(other.getLongitude());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Telemetry.IridiumPacket.IridiumLocation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Telemetry.IridiumPacket.IridiumLocation) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 format = 1;
private int format_ ;
/**
* <code>optional uint32 format = 1;</code>
*/
public boolean hasFormat() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional uint32 format = 1;</code>
*/
public int getFormat() {
return format_;
}
/**
* <code>optional uint32 format = 1;</code>
*/
public Builder setFormat(int value) {
bitField0_ |= 0x00000001;
format_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 format = 1;</code>
*/
public Builder clearFormat() {
bitField0_ = (bitField0_ & ~0x00000001);
format_ = 0;
onChanged();
return this;
}
// optional uint32 lat_degrees = 2;
private int latDegrees_ ;
/**
* <code>optional uint32 lat_degrees = 2;</code>
*/
public boolean hasLatDegrees() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional uint32 lat_degrees = 2;</code>
*/
public int getLatDegrees() {
return latDegrees_;
}
/**
* <code>optional uint32 lat_degrees = 2;</code>
*/
public Builder setLatDegrees(int value) {
bitField0_ |= 0x00000002;
latDegrees_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 lat_degrees = 2;</code>
*/
public Builder clearLatDegrees() {
bitField0_ = (bitField0_ & ~0x00000002);
latDegrees_ = 0;
onChanged();
return this;
}
// optional uint32 lat_decimal = 3;
private int latDecimal_ ;
/**
* <code>optional uint32 lat_decimal = 3;</code>
*/
public boolean hasLatDecimal() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional uint32 lat_decimal = 3;</code>
*/
public int getLatDecimal() {
return latDecimal_;
}
/**
* <code>optional uint32 lat_decimal = 3;</code>
*/
public Builder setLatDecimal(int value) {
bitField0_ |= 0x00000004;
latDecimal_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 lat_decimal = 3;</code>
*/
public Builder clearLatDecimal() {
bitField0_ = (bitField0_ & ~0x00000004);
latDecimal_ = 0;
onChanged();
return this;
}
// optional uint32 lon_degrees = 4;
private int lonDegrees_ ;
/**
* <code>optional uint32 lon_degrees = 4;</code>
*/
public boolean hasLonDegrees() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional uint32 lon_degrees = 4;</code>
*/
public int getLonDegrees() {
return lonDegrees_;
}
/**
* <code>optional uint32 lon_degrees = 4;</code>
*/
public Builder setLonDegrees(int value) {
bitField0_ |= 0x00000008;
lonDegrees_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 lon_degrees = 4;</code>
*/
public Builder clearLonDegrees() {
bitField0_ = (bitField0_ & ~0x00000008);
lonDegrees_ = 0;
onChanged();
return this;
}
// optional uint32 lon_decimal = 5;
private int lonDecimal_ ;
/**
* <code>optional uint32 lon_decimal = 5;</code>
*/
public boolean hasLonDecimal() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional uint32 lon_decimal = 5;</code>
*/
public int getLonDecimal() {
return lonDecimal_;
}
/**
* <code>optional uint32 lon_decimal = 5;</code>
*/
public Builder setLonDecimal(int value) {
bitField0_ |= 0x00000010;
lonDecimal_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 lon_decimal = 5;</code>
*/
public Builder clearLonDecimal() {
bitField0_ = (bitField0_ & ~0x00000010);
lonDecimal_ = 0;
onChanged();
return this;
}
// optional uint32 cep_radius = 6;
private int cepRadius_ ;
/**
* <code>optional uint32 cep_radius = 6;</code>
*/
public boolean hasCepRadius() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional uint32 cep_radius = 6;</code>
*/
public int getCepRadius() {
return cepRadius_;
}
/**
* <code>optional uint32 cep_radius = 6;</code>
*/
public Builder setCepRadius(int value) {
bitField0_ |= 0x00000020;
cepRadius_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 cep_radius = 6;</code>
*/
public Builder clearCepRadius() {
bitField0_ = (bitField0_ & ~0x00000020);
cepRadius_ = 0;
onChanged();
return this;
}
// optional float latitude = 20;
private float latitude_ ;
/**
* <code>optional float latitude = 20;</code>
*/
public boolean hasLatitude() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional float latitude = 20;</code>
*/
public float getLatitude() {
return latitude_;
}
/**
* <code>optional float latitude = 20;</code>
*/
public Builder setLatitude(float value) {
bitField0_ |= 0x00000040;
latitude_ = value;
onChanged();
return this;
}
/**
* <code>optional float latitude = 20;</code>
*/
public Builder clearLatitude() {
bitField0_ = (bitField0_ & ~0x00000040);
latitude_ = 0F;
onChanged();
return this;
}
// optional float longitude = 21;
private float longitude_ ;
/**
* <code>optional float longitude = 21;</code>
*/
public boolean hasLongitude() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional float longitude = 21;</code>
*/
public float getLongitude() {
return longitude_;
}
/**
* <code>optional float longitude = 21;</code>
*/
public Builder setLongitude(float value) {
bitField0_ |= 0x00000080;
longitude_ = value;
onChanged();
return this;
}
/**
* <code>optional float longitude = 21;</code>
*/
public Builder clearLongitude() {
bitField0_ = (bitField0_ & ~0x00000080);
longitude_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:IridiumPacket.IridiumLocation)
}
static {
defaultInstance = new IridiumLocation(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IridiumPacket.IridiumLocation)
}
private int bitField0_;
// optional .IridiumPacket.IridiumHeader header = 1;
public static final int HEADER_FIELD_NUMBER = 1;
private Telemetry.IridiumPacket.IridiumHeader header_;
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public Telemetry.IridiumPacket.IridiumHeader getHeader() {
return header_;
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public Telemetry.IridiumPacket.IridiumHeaderOrBuilder getHeaderOrBuilder() {
return header_;
}
// optional bytes payload = 2;
public static final int PAYLOAD_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString payload_;
/**
* <code>optional bytes payload = 2;</code>
*/
public boolean hasPayload() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes payload = 2;</code>
*/
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
// optional .IridiumPacket.IridiumLocation location = 3;
public static final int LOCATION_FIELD_NUMBER = 3;
private Telemetry.IridiumPacket.IridiumLocation location_;
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public boolean hasLocation() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public Telemetry.IridiumPacket.IridiumLocation getLocation() {
return location_;
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public Telemetry.IridiumPacket.IridiumLocationOrBuilder getLocationOrBuilder() {
return location_;
}
private void initFields() {
header_ = Telemetry.IridiumPacket.IridiumHeader.getDefaultInstance();
payload_ = com.google.protobuf.ByteString.EMPTY;
location_ = Telemetry.IridiumPacket.IridiumLocation.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, header_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, payload_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, location_);
}
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, header_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, payload_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, location_);
}
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 Telemetry.IridiumPacket parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.IridiumPacket parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.IridiumPacket parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.IridiumPacket parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.IridiumPacket parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.IridiumPacket parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Telemetry.IridiumPacket parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static Telemetry.IridiumPacket parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static Telemetry.IridiumPacket parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.IridiumPacket 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(Telemetry.IridiumPacket 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 IridiumPacket}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements Telemetry.IridiumPacketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Telemetry.internal_static_IridiumPacket_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_IridiumPacket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.IridiumPacket.class, Telemetry.IridiumPacket.Builder.class);
}
// Construct using Telemetry.IridiumPacket.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getHeaderFieldBuilder();
getLocationFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = Telemetry.IridiumPacket.IridiumHeader.getDefaultInstance();
} else {
headerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
payload_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (locationBuilder_ == null) {
location_ = Telemetry.IridiumPacket.IridiumLocation.getDefaultInstance();
} else {
locationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Telemetry.internal_static_IridiumPacket_descriptor;
}
public Telemetry.IridiumPacket getDefaultInstanceForType() {
return Telemetry.IridiumPacket.getDefaultInstance();
}
public Telemetry.IridiumPacket build() {
Telemetry.IridiumPacket result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public Telemetry.IridiumPacket buildPartial() {
Telemetry.IridiumPacket result = new Telemetry.IridiumPacket(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.payload_ = payload_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (locationBuilder_ == null) {
result.location_ = location_;
} else {
result.location_ = locationBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Telemetry.IridiumPacket) {
return mergeFrom((Telemetry.IridiumPacket)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Telemetry.IridiumPacket other) {
if (other == Telemetry.IridiumPacket.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasPayload()) {
setPayload(other.getPayload());
}
if (other.hasLocation()) {
mergeLocation(other.getLocation());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Telemetry.IridiumPacket parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Telemetry.IridiumPacket) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .IridiumPacket.IridiumHeader header = 1;
private Telemetry.IridiumPacket.IridiumHeader header_ = Telemetry.IridiumPacket.IridiumHeader.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
Telemetry.IridiumPacket.IridiumHeader, Telemetry.IridiumPacket.IridiumHeader.Builder, Telemetry.IridiumPacket.IridiumHeaderOrBuilder> headerBuilder_;
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public Telemetry.IridiumPacket.IridiumHeader getHeader() {
if (headerBuilder_ == null) {
return header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public Builder setHeader(Telemetry.IridiumPacket.IridiumHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public Builder setHeader(
Telemetry.IridiumPacket.IridiumHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public Builder mergeHeader(Telemetry.IridiumPacket.IridiumHeader value) {
if (headerBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
header_ != Telemetry.IridiumPacket.IridiumHeader.getDefaultInstance()) {
header_ =
Telemetry.IridiumPacket.IridiumHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = Telemetry.IridiumPacket.IridiumHeader.getDefaultInstance();
onChanged();
} else {
headerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public Telemetry.IridiumPacket.IridiumHeader.Builder getHeaderBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
public Telemetry.IridiumPacket.IridiumHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_;
}
}
/**
* <code>optional .IridiumPacket.IridiumHeader header = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
Telemetry.IridiumPacket.IridiumHeader, Telemetry.IridiumPacket.IridiumHeader.Builder, Telemetry.IridiumPacket.IridiumHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
Telemetry.IridiumPacket.IridiumHeader, Telemetry.IridiumPacket.IridiumHeader.Builder, Telemetry.IridiumPacket.IridiumHeaderOrBuilder>(
header_,
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
// optional bytes payload = 2;
private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes payload = 2;</code>
*/
public boolean hasPayload() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes payload = 2;</code>
*/
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
/**
* <code>optional bytes payload = 2;</code>
*/
public Builder setPayload(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
payload_ = value;
onChanged();
return this;
}
/**
* <code>optional bytes payload = 2;</code>
*/
public Builder clearPayload() {
bitField0_ = (bitField0_ & ~0x00000002);
payload_ = getDefaultInstance().getPayload();
onChanged();
return this;
}
// optional .IridiumPacket.IridiumLocation location = 3;
private Telemetry.IridiumPacket.IridiumLocation location_ = Telemetry.IridiumPacket.IridiumLocation.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
Telemetry.IridiumPacket.IridiumLocation, Telemetry.IridiumPacket.IridiumLocation.Builder, Telemetry.IridiumPacket.IridiumLocationOrBuilder> locationBuilder_;
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public boolean hasLocation() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public Telemetry.IridiumPacket.IridiumLocation getLocation() {
if (locationBuilder_ == null) {
return location_;
} else {
return locationBuilder_.getMessage();
}
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public Builder setLocation(Telemetry.IridiumPacket.IridiumLocation value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
location_ = value;
onChanged();
} else {
locationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public Builder setLocation(
Telemetry.IridiumPacket.IridiumLocation.Builder builderForValue) {
if (locationBuilder_ == null) {
location_ = builderForValue.build();
onChanged();
} else {
locationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public Builder mergeLocation(Telemetry.IridiumPacket.IridiumLocation value) {
if (locationBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
location_ != Telemetry.IridiumPacket.IridiumLocation.getDefaultInstance()) {
location_ =
Telemetry.IridiumPacket.IridiumLocation.newBuilder(location_).mergeFrom(value).buildPartial();
} else {
location_ = value;
}
onChanged();
} else {
locationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public Builder clearLocation() {
if (locationBuilder_ == null) {
location_ = Telemetry.IridiumPacket.IridiumLocation.getDefaultInstance();
onChanged();
} else {
locationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public Telemetry.IridiumPacket.IridiumLocation.Builder getLocationBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getLocationFieldBuilder().getBuilder();
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
public Telemetry.IridiumPacket.IridiumLocationOrBuilder getLocationOrBuilder() {
if (locationBuilder_ != null) {
return locationBuilder_.getMessageOrBuilder();
} else {
return location_;
}
}
/**
* <code>optional .IridiumPacket.IridiumLocation location = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
Telemetry.IridiumPacket.IridiumLocation, Telemetry.IridiumPacket.IridiumLocation.Builder, Telemetry.IridiumPacket.IridiumLocationOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
locationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
Telemetry.IridiumPacket.IridiumLocation, Telemetry.IridiumPacket.IridiumLocation.Builder, Telemetry.IridiumPacket.IridiumLocationOrBuilder>(
location_,
getParentForChildren(),
isClean());
location_ = null;
}
return locationBuilder_;
}
// @@protoc_insertion_point(builder_scope:IridiumPacket)
}
static {
defaultInstance = new IridiumPacket(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:IridiumPacket)
}
public interface CommandPacketOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string sender_id = 1;
/**
* <code>optional string sender_id = 1;</code>
*/
boolean hasSenderId();
/**
* <code>optional string sender_id = 1;</code>
*/
java.lang.String getSenderId();
/**
* <code>optional string sender_id = 1;</code>
*/
com.google.protobuf.ByteString
getSenderIdBytes();
// optional string recipient_id = 2;
/**
* <code>optional string recipient_id = 2;</code>
*/
boolean hasRecipientId();
/**
* <code>optional string recipient_id = 2;</code>
*/
java.lang.String getRecipientId();
/**
* <code>optional string recipient_id = 2;</code>
*/
com.google.protobuf.ByteString
getRecipientIdBytes();
// optional uint64 timestamp = 3;
/**
* <code>optional uint64 timestamp = 3;</code>
*/
boolean hasTimestamp();
/**
* <code>optional uint64 timestamp = 3;</code>
*/
long getTimestamp();
}
/**
* Protobuf type {@code CommandPacket}
*/
public static final class CommandPacket extends
com.google.protobuf.GeneratedMessage
implements CommandPacketOrBuilder {
// Use CommandPacket.newBuilder() to construct.
private CommandPacket(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CommandPacket(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CommandPacket defaultInstance;
public static CommandPacket getDefaultInstance() {
return defaultInstance;
}
public CommandPacket getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandPacket(
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;
senderId_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
recipientId_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
timestamp_ = input.readUInt64();
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 Telemetry.internal_static_CommandPacket_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_CommandPacket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.CommandPacket.class, Telemetry.CommandPacket.Builder.class);
}
public static com.google.protobuf.Parser<CommandPacket> PARSER =
new com.google.protobuf.AbstractParser<CommandPacket>() {
public CommandPacket parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandPacket(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CommandPacket> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string sender_id = 1;
public static final int SENDER_ID_FIELD_NUMBER = 1;
private java.lang.Object senderId_;
/**
* <code>optional string sender_id = 1;</code>
*/
public boolean hasSenderId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string sender_id = 1;</code>
*/
public java.lang.String getSenderId() {
java.lang.Object ref = senderId_;
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()) {
senderId_ = s;
}
return s;
}
}
/**
* <code>optional string sender_id = 1;</code>
*/
public com.google.protobuf.ByteString
getSenderIdBytes() {
java.lang.Object ref = senderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
senderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string recipient_id = 2;
public static final int RECIPIENT_ID_FIELD_NUMBER = 2;
private java.lang.Object recipientId_;
/**
* <code>optional string recipient_id = 2;</code>
*/
public boolean hasRecipientId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string recipient_id = 2;</code>
*/
public java.lang.String getRecipientId() {
java.lang.Object ref = recipientId_;
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()) {
recipientId_ = s;
}
return s;
}
}
/**
* <code>optional string recipient_id = 2;</code>
*/
public com.google.protobuf.ByteString
getRecipientIdBytes() {
java.lang.Object ref = recipientId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recipientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional uint64 timestamp = 3;
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_;
/**
* <code>optional uint64 timestamp = 3;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional uint64 timestamp = 3;</code>
*/
public long getTimestamp() {
return timestamp_;
}
private void initFields() {
senderId_ = "";
recipientId_ = "";
timestamp_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getSenderIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getRecipientIdBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, timestamp_);
}
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, getSenderIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getRecipientIdBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, timestamp_);
}
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 Telemetry.CommandPacket parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.CommandPacket parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.CommandPacket parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static Telemetry.CommandPacket parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static Telemetry.CommandPacket parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.CommandPacket parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Telemetry.CommandPacket parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static Telemetry.CommandPacket parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static Telemetry.CommandPacket parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static Telemetry.CommandPacket 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(Telemetry.CommandPacket 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 CommandPacket}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements Telemetry.CommandPacketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Telemetry.internal_static_CommandPacket_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Telemetry.internal_static_CommandPacket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
Telemetry.CommandPacket.class, Telemetry.CommandPacket.Builder.class);
}
// Construct using Telemetry.CommandPacket.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();
senderId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
recipientId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Telemetry.internal_static_CommandPacket_descriptor;
}
public Telemetry.CommandPacket getDefaultInstanceForType() {
return Telemetry.CommandPacket.getDefaultInstance();
}
public Telemetry.CommandPacket build() {
Telemetry.CommandPacket result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public Telemetry.CommandPacket buildPartial() {
Telemetry.CommandPacket result = new Telemetry.CommandPacket(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.senderId_ = senderId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.recipientId_ = recipientId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.timestamp_ = timestamp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Telemetry.CommandPacket) {
return mergeFrom((Telemetry.CommandPacket)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(Telemetry.CommandPacket other) {
if (other == Telemetry.CommandPacket.getDefaultInstance()) return this;
if (other.hasSenderId()) {
bitField0_ |= 0x00000001;
senderId_ = other.senderId_;
onChanged();
}
if (other.hasRecipientId()) {
bitField0_ |= 0x00000002;
recipientId_ = other.recipientId_;
onChanged();
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Telemetry.CommandPacket parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (Telemetry.CommandPacket) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string sender_id = 1;
private java.lang.Object senderId_ = "";
/**
* <code>optional string sender_id = 1;</code>
*/
public boolean hasSenderId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string sender_id = 1;</code>
*/
public java.lang.String getSenderId() {
java.lang.Object ref = senderId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
senderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string sender_id = 1;</code>
*/
public com.google.protobuf.ByteString
getSenderIdBytes() {
java.lang.Object ref = senderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
senderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string sender_id = 1;</code>
*/
public Builder setSenderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
senderId_ = value;
onChanged();
return this;
}
/**
* <code>optional string sender_id = 1;</code>
*/
public Builder clearSenderId() {
bitField0_ = (bitField0_ & ~0x00000001);
senderId_ = getDefaultInstance().getSenderId();
onChanged();
return this;
}
/**
* <code>optional string sender_id = 1;</code>
*/
public Builder setSenderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
senderId_ = value;
onChanged();
return this;
}
// optional string recipient_id = 2;
private java.lang.Object recipientId_ = "";
/**
* <code>optional string recipient_id = 2;</code>
*/
public boolean hasRecipientId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string recipient_id = 2;</code>
*/
public java.lang.String getRecipientId() {
java.lang.Object ref = recipientId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
recipientId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string recipient_id = 2;</code>
*/
public com.google.protobuf.ByteString
getRecipientIdBytes() {
java.lang.Object ref = recipientId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recipientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string recipient_id = 2;</code>
*/
public Builder setRecipientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
recipientId_ = value;
onChanged();
return this;
}
/**
* <code>optional string recipient_id = 2;</code>
*/
public Builder clearRecipientId() {
bitField0_ = (bitField0_ & ~0x00000002);
recipientId_ = getDefaultInstance().getRecipientId();
onChanged();
return this;
}
/**
* <code>optional string recipient_id = 2;</code>
*/
public Builder setRecipientIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
recipientId_ = value;
onChanged();
return this;
}
// optional uint64 timestamp = 3;
private long timestamp_ ;
/**
* <code>optional uint64 timestamp = 3;</code>
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional uint64 timestamp = 3;</code>
*/
public long getTimestamp() {
return timestamp_;
}
/**
* <code>optional uint64 timestamp = 3;</code>
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000004;
timestamp_ = value;
onChanged();
return this;
}
/**
* <code>optional uint64 timestamp = 3;</code>
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:CommandPacket)
}
static {
defaultInstance = new CommandPacket(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:CommandPacket)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_Position_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Position_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_Sensor_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Sensor_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_ThreeAxisSensor_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ThreeAxisSensor_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_DataPacket_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_DataPacket_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_IridiumPacket_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_IridiumPacket_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_IridiumPacket_IridiumHeader_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_IridiumPacket_IridiumHeader_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_IridiumPacket_IridiumLocation_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_IridiumPacket_IridiumLocation_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_CommandPacket_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_CommandPacket_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\037google/protobuf/telemetry.proto\"A\n\010Pos" +
"ition\022\020\n\010latitude\030\001 \001(\002\022\021\n\tlongitude\030\002 \001" +
"(\002\022\020\n\010altitude\030\003 \001(\002\"\246\001\n\006Sensor\022\'\n\013senso" +
"r_type\030\001 \002(\0162\022.Sensor.SensorType\022\r\n\002id\030\002" +
" \001(\r:\0011\022\r\n\005value\030\003 \001(\002\"U\n\nSensorType\022\027\n\023" +
"AMBIENT_TEMPERATURE\020\000\022\t\n\005LIGHT\020\001\022\014\n\010PRES" +
"SURE\020\002\022\025\n\021RELATIVE_HUMIDITY\020\003\"\235\002\n\017ThreeA" +
"xisSensor\0220\n\013sensor_type\030\001 \002(\0162\033.ThreeAx" +
"isSensor.SensorType\022\r\n\002id\030\002 \001(\r:\0011\022\t\n\001x\030" +
"\003 \001(\002\022\t\n\001y\030\004 \001(\002\022\t\n\001z\030\005 \001(\002\"\247\001\n\nSensorTy",
"pe\022\021\n\rACCELEROMETER\020\000\022\013\n\007GRAVITY\020\001\022\r\n\tGY" +
"ROSCOPE\020\002\022\027\n\023LINEAR_ACCELERATION\020\003\022\022\n\016MA" +
"GNETIC_FIELD\020\004\022\017\n\013ORIENTATION\020\005\022\023\n\017ROTAT" +
"ION_VECTOR\020\006\022\027\n\023CORRECTED_GYROSCOPE\020\024\"\247\001" +
"\n\nDataPacket\022\021\n\tsender_id\030\001 \001(\t\022\020\n\010seque" +
"nce\030\002 \001(\r\022\021\n\ttimestamp\030\003 \001(\004\022\033\n\010position" +
"\030\024 \001(\0132\t.Position\022\027\n\006sensor\030\025 \003(\0132\007.Sens" +
"or\022+\n\021three_axis_sensor\030\026 \003(\0132\020.ThreeAxi" +
"sSensor\"\323\003\n\rIridiumPacket\022,\n\006header\030\001 \001(" +
"\0132\034.IridiumPacket.IridiumHeader\022\017\n\007paylo",
"ad\030\002 \001(\014\0220\n\010location\030\003 \001(\0132\036.IridiumPack" +
"et.IridiumLocation\032\237\001\n\rIridiumHeader\022\025\n\r" +
"cdr_reference\030\001 \001(\r\022\014\n\004imei\030\002 \001(\t\022\016\n\006sta" +
"tus\030\003 \001(\r\022\"\n\032mo_message_sequence_number\030" +
"\004 \001(\r\022\"\n\032mt_message_sequence_number\030\005 \001(" +
"\r\022\021\n\ttimestamp\030\006 \001(\004\032\256\001\n\017IridiumLocation" +
"\022\016\n\006format\030\001 \001(\r\022\023\n\013lat_degrees\030\002 \001(\r\022\023\n" +
"\013lat_decimal\030\003 \001(\r\022\023\n\013lon_degrees\030\004 \001(\r\022" +
"\023\n\013lon_decimal\030\005 \001(\r\022\022\n\ncep_radius\030\006 \001(\r" +
"\022\020\n\010latitude\030\024 \001(\002\022\021\n\tlongitude\030\025 \001(\002\"K\n",
"\rCommandPacket\022\021\n\tsender_id\030\001 \001(\t\022\024\n\014rec" +
"ipient_id\030\002 \001(\t\022\021\n\ttimestamp\030\003 \001(\004"
};
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_Position_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Position_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_Position_descriptor,
new java.lang.String[] { "Latitude", "Longitude", "Altitude", });
internal_static_Sensor_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Sensor_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_Sensor_descriptor,
new java.lang.String[] { "SensorType", "Id", "Value", });
internal_static_ThreeAxisSensor_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_ThreeAxisSensor_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ThreeAxisSensor_descriptor,
new java.lang.String[] { "SensorType", "Id", "X", "Y", "Z", });
internal_static_DataPacket_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_DataPacket_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_DataPacket_descriptor,
new java.lang.String[] { "SenderId", "Sequence", "Timestamp", "Position", "Sensor", "ThreeAxisSensor", });
internal_static_IridiumPacket_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_IridiumPacket_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_IridiumPacket_descriptor,
new java.lang.String[] { "Header", "Payload", "Location", });
internal_static_IridiumPacket_IridiumHeader_descriptor =
internal_static_IridiumPacket_descriptor.getNestedTypes().get(0);
internal_static_IridiumPacket_IridiumHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_IridiumPacket_IridiumHeader_descriptor,
new java.lang.String[] { "CdrReference", "Imei", "Status", "MoMessageSequenceNumber", "MtMessageSequenceNumber", "Timestamp", });
internal_static_IridiumPacket_IridiumLocation_descriptor =
internal_static_IridiumPacket_descriptor.getNestedTypes().get(1);
internal_static_IridiumPacket_IridiumLocation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_IridiumPacket_IridiumLocation_descriptor,
new java.lang.String[] { "Format", "LatDegrees", "LatDecimal", "LonDegrees", "LonDecimal", "CepRadius", "Latitude", "Longitude", });
internal_static_CommandPacket_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_CommandPacket_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_CommandPacket_descriptor,
new java.lang.String[] { "SenderId", "RecipientId", "Timestamp", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}