required string dateString = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - boolean hasDateString(); + java.util.List
required string dateString = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - java.lang.String getDateString(); + com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 getSgv(int index); /** - *
required string dateString = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - com.google.protobuf.ByteString - getDateStringBytes(); - - // required string sgv = 2; + int getSgvCount(); /** - *
required string sgv = 2;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - boolean hasSgv(); + java.util.List extends com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4OrBuilder> + getSgvOrBuilderList(); + /** + *
repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + *+ */ + com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4OrBuilder getSgvOrBuilder( + int index); + + // optional .ProposedCookieMonsterG4Download.Unit units = 2; /** - *
required string sgv = 2;
+ * optional .ProposedCookieMonsterG4Download.Unit units = 2;
+ *
+ * + * Units reported by the device + **/ - java.lang.String getSgv(); + boolean hasUnits(); /** - *
required string sgv = 2;
+ * optional .ProposedCookieMonsterG4Download.Unit units = 2;
+ *
+ * + * Units reported by the device + **/ - com.google.protobuf.ByteString - getSgvBytes(); + com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.Unit getUnits(); - // required uint32 date = 3; + // required uint64 download_timestamp = 3; /** - *
required uint32 date = 3;
+ * required uint64 download_timestamp = 3;
+ *
+ * + * Timestamp of the download - should be UTC + **/ - boolean hasDate(); + boolean hasDownloadTimestamp(); /** - *
required uint32 date = 3;
+ * required uint64 download_timestamp = 3;
+ *
+ * + * Timestamp of the download - should be UTC + **/ - int getDate(); + long getDownloadTimestamp(); - // optional string direction = 4; + // optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE]; /** - *
optional string direction = 4;
+ * optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE];
+ *
+ * + * Status of the download + **/ - boolean hasDirection(); + boolean hasDownloadStatus(); /** - *
optional string direction = 4;
+ * optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE];
+ *
+ * + * Status of the download + **/ - java.lang.String getDirection(); + com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.DownloadStatus getDownloadStatus(); + + // optional uint32 receiver_battery = 5; /** - *
optional string direction = 4;
+ * optional uint32 receiver_battery = 5;
+ *
+ * + * Battery level as reported by the receiver + **/ - com.google.protobuf.ByteString - getDirectionBytes(); - - // optional string device = 5; + boolean hasReceiverBattery(); /** - *
optional string device = 5;
+ * optional uint32 receiver_battery = 5;
+ *
+ * + * Battery level as reported by the receiver + **/ - boolean hasDevice(); + int getReceiverBattery(); + + // optional uint32 uploader_battery = 6; /** - *
optional string device = 5;
+ * optional uint32 uploader_battery = 6;
+ *
+ * + * Battery level as reported by the uploader + **/ - java.lang.String getDevice(); + boolean hasUploaderBattery(); /** - *
optional string device = 5;
+ * optional uint32 uploader_battery = 6;
+ *
+ * + * Battery level as reported by the uploader + **/ - com.google.protobuf.ByteString - getDeviceBytes(); + int getUploaderBattery(); } /** - * Protobuf type {@code SGVUsed} + * Protobuf type {@code ProposedCookieMonsterG4Download} */ - public static final class SGVUsed extends + public static final class ProposedCookieMonsterG4Download extends com.google.protobuf.GeneratedMessage - implements SGVUsedOrBuilder { - // Use SGVUsed.newBuilder() to construct. - private SGVUsed(com.google.protobuf.GeneratedMessage.Builder> builder) { + implements ProposedCookieMonsterG4DownloadOrBuilder { + // Use ProposedCookieMonsterG4Download.newBuilder() to construct. + private ProposedCookieMonsterG4Download(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - private SGVUsed(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private ProposedCookieMonsterG4Download(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private static final SGVUsed defaultInstance; - public static SGVUsed getDefaultInstance() { + private static final ProposedCookieMonsterG4Download defaultInstance; + public static ProposedCookieMonsterG4Download getDefaultInstance() { return defaultInstance; } - public SGVUsed getDefaultInstanceForType() { + public ProposedCookieMonsterG4Download getDefaultInstanceForType() { return defaultInstance; } @@ -109,7 +174,7 @@ public SGVUsed getDefaultInstanceForType() { getUnknownFields() { return this.unknownFields; } - private SGVUsed( + private ProposedCookieMonsterG4Download( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -133,28 +198,48 @@ private SGVUsed( break; } case 10: { - bitField0_ |= 0x00000001; - dateString_ = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + sgv_ = new java.util.ArrayList
required string dateString = 1;
+ * Protobuf enum {@code ProposedCookieMonsterG4Download.Unit}
*/
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ public enum Unit
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * MGDL = 0;
+ */
+ MGDL(0, 0),
+ /**
+ * MMOL = 1;
+ */
+ MMOL(1, 1),
+ ;
+
+ /**
+ * MGDL = 0;
+ */
+ public static final int MGDL_VALUE = 0;
+ /**
+ * MMOL = 1;
+ */
+ public static final int MMOL_VALUE = 1;
+
+
+ public final int getNumber() { return value; }
+
+ public static Unit valueOf(int value) {
+ switch (value) {
+ case 0: return MGDL;
+ case 1: return MMOL;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMaprequired string dateString = 1;
+ * Protobuf enum {@code ProposedCookieMonsterG4Download.DownloadStatus}
*/
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- 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()) {
- dateString_ = s;
+ public enum DownloadStatus
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * SUCCESS = 0;
+ */
+ SUCCESS(0, 0),
+ /**
+ * NO_DATA = 1;
+ */
+ NO_DATA(1, 1),
+ /**
+ * DEVICE_NOT_FOUND = 2;
+ */
+ DEVICE_NOT_FOUND(2, 2),
+ /**
+ * IO_ERROR = 3;
+ */
+ IO_ERROR(3, 3),
+ /**
+ * APPLICATION_ERROR = 4;
+ */
+ APPLICATION_ERROR(4, 4),
+ /**
+ * NONE = 6;
+ */
+ NONE(5, 6),
+ /**
+ * UNKNOWN = 7;
+ */
+ UNKNOWN(6, 7),
+ ;
+
+ /**
+ * SUCCESS = 0;
+ */
+ public static final int SUCCESS_VALUE = 0;
+ /**
+ * NO_DATA = 1;
+ */
+ public static final int NO_DATA_VALUE = 1;
+ /**
+ * DEVICE_NOT_FOUND = 2;
+ */
+ public static final int DEVICE_NOT_FOUND_VALUE = 2;
+ /**
+ * IO_ERROR = 3;
+ */
+ public static final int IO_ERROR_VALUE = 3;
+ /**
+ * APPLICATION_ERROR = 4;
+ */
+ public static final int APPLICATION_ERROR_VALUE = 4;
+ /**
+ * NONE = 6;
+ */
+ public static final int NONE_VALUE = 6;
+ /**
+ * UNKNOWN = 7;
+ */
+ public static final int UNKNOWN_VALUE = 7;
+
+
+ public final int getNumber() { return value; }
+
+ public static DownloadStatus valueOf(int value) {
+ switch (value) {
+ case 0: return SUCCESS;
+ case 1: return NO_DATA;
+ case 2: return DEVICE_NOT_FOUND;
+ case 3: return IO_ERROR;
+ case 4: return APPLICATION_ERROR;
+ case 6: return NONE;
+ case 7: return UNKNOWN;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMaprequired string dateString = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public com.google.protobuf.ByteString - getDateStringBytes() { - java.lang.Object ref = dateString_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dateString_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.util.List
required string sgv = 2;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public boolean hasSgv() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public java.util.List extends com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4OrBuilder> + getSgvOrBuilderList() { + return sgv_; } /** - *
required string sgv = 2;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public java.lang.String getSgv() { - java.lang.Object ref = sgv_; - 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()) { - sgv_ = s; - } - return s; - } + public int getSgvCount() { + return sgv_.size(); } /** - *
required string sgv = 2;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public com.google.protobuf.ByteString - getSgvBytes() { - java.lang.Object ref = sgv_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sgv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 getSgv(int index) { + return sgv_.get(index); + } + /** + *
repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + *+ */ + public com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4OrBuilder getSgvOrBuilder( + int index) { + return sgv_.get(index); } - // required uint32 date = 3; - public static final int DATE_FIELD_NUMBER = 3; - private int date_; + // optional .ProposedCookieMonsterG4Download.Unit units = 2; + public static final int UNITS_FIELD_NUMBER = 2; + private com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.Unit units_; /** - *
required uint32 date = 3;
+ * optional .ProposedCookieMonsterG4Download.Unit units = 2;
+ *
+ * + * Units reported by the device + **/ - public boolean hasDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public boolean hasUnits() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - *
required uint32 date = 3;
+ * optional .ProposedCookieMonsterG4Download.Unit units = 2;
+ *
+ * + * Units reported by the device + **/ - public int getDate() { - return date_; + public com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.Unit getUnits() { + return units_; } - // optional string direction = 4; - public static final int DIRECTION_FIELD_NUMBER = 4; - private java.lang.Object direction_; + // required uint64 download_timestamp = 3; + public static final int DOWNLOAD_TIMESTAMP_FIELD_NUMBER = 3; + private long downloadTimestamp_; /** - *
optional string direction = 4;
+ * required uint64 download_timestamp = 3;
+ *
+ * + * Timestamp of the download - should be UTC + **/ - public boolean hasDirection() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public boolean hasDownloadTimestamp() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - *
optional string direction = 4;
+ * required uint64 download_timestamp = 3;
+ *
+ * + * Timestamp of the download - should be UTC + **/ - public java.lang.String getDirection() { - java.lang.Object ref = direction_; - 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()) { - direction_ = s; - } - return s; - } + public long getDownloadTimestamp() { + return downloadTimestamp_; } + + // optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE]; + public static final int DOWNLOAD_STATUS_FIELD_NUMBER = 4; + private com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.DownloadStatus downloadStatus_; /** - *
optional string direction = 4;
+ * optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE];
+ *
+ * + * Status of the download + **/ - public com.google.protobuf.ByteString - getDirectionBytes() { - java.lang.Object ref = direction_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - direction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean hasDownloadStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE];
+ *
+ * + * Status of the download + *+ */ + public com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.DownloadStatus getDownloadStatus() { + return downloadStatus_; } - // optional string device = 5; - public static final int DEVICE_FIELD_NUMBER = 5; - private java.lang.Object device_; + // optional uint32 receiver_battery = 5; + public static final int RECEIVER_BATTERY_FIELD_NUMBER = 5; + private int receiverBattery_; /** - *
optional string device = 5;
+ * optional uint32 receiver_battery = 5;
+ *
+ * + * Battery level as reported by the receiver + **/ - public boolean hasDevice() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public boolean hasReceiverBattery() { + return ((bitField0_ & 0x00000008) == 0x00000008); } /** - *
optional string device = 5;
+ * optional uint32 receiver_battery = 5;
+ *
+ * + * Battery level as reported by the receiver + **/ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - 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()) { - device_ = s; - } - return s; - } + public int getReceiverBattery() { + return receiverBattery_; } + + // optional uint32 uploader_battery = 6; + public static final int UPLOADER_BATTERY_FIELD_NUMBER = 6; + private int uploaderBattery_; /** - *
optional string device = 5;
+ * optional uint32 uploader_battery = 6;
+ *
+ * + * Battery level as reported by the uploader + **/ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean hasUploaderBattery() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
optional uint32 uploader_battery = 6;
+ *
+ * + * Battery level as reported by the uploader + *+ */ + public int getUploaderBattery() { + return uploaderBattery_; } private void initFields() { - dateString_ = ""; - sgv_ = ""; - date_ = 0; - direction_ = ""; - device_ = ""; + sgv_ = java.util.Collections.emptyList(); + units_ = com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.Unit.MGDL; + downloadTimestamp_ = 0L; + downloadStatus_ = com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.DownloadStatus.NONE; + receiverBattery_ = 0; + uploaderBattery_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - if (!hasDateString()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasSgv()) { + if (!hasDownloadTimestamp()) { memoizedIsInitialized = 0; return false; } - if (!hasDate()) { - memoizedIsInitialized = 0; - return false; + for (int i = 0; i < getSgvCount(); i++) { + if (!getSgv(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } memoizedIsInitialized = 1; return true; @@ -416,20 +700,23 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); + for (int i = 0; i < sgv_.size(); i++) { + output.writeMessage(1, sgv_.get(i)); + } if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getDateStringBytes()); + output.writeEnum(2, units_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getSgvBytes()); + output.writeUInt64(3, downloadTimestamp_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(3, date_); + output.writeEnum(4, downloadStatus_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getDirectionBytes()); + output.writeUInt32(5, receiverBattery_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getDeviceBytes()); + output.writeUInt32(6, uploaderBattery_); } getUnknownFields().writeTo(output); } @@ -440,25 +727,29 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + for (int i = 0; i < sgv_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sgv_.get(i)); + } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getDateStringBytes()); + .computeEnumSize(2, units_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getSgvBytes()); + .computeUInt64Size(3, downloadTimestamp_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, date_); + .computeEnumSize(4, downloadStatus_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getDirectionBytes()); + .computeUInt32Size(5, receiverBattery_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getDeviceBytes()); + .computeUInt32Size(6, uploaderBattery_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -472,53 +763,53 @@ protected java.lang.Object writeReplace() return super.writeReplace(); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseFrom(byte[] data) + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseFrom(java.io.InputStream input) + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseDelimitedFrom(java.io.InputStream input) + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseDelimitedFrom( + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static com.ktind.cgm.bgscout.SGV.SGVUsed parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -527,7 +818,7 @@ public static com.ktind.cgm.bgscout.SGV.SGVUsed parseFrom( public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.ktind.cgm.bgscout.SGV.SGVUsed prototype) { + public static Builder newBuilder(com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @@ -539,24 +830,24 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code SGVUsed} + * Protobuf type {@code ProposedCookieMonsterG4Download} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
required string dateString = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public boolean hasDateString() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public java.util.List
required string dateString = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public java.lang.String getDateString() { - java.lang.Object ref = dateString_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - dateString_ = s; - return s; + public int getSgvCount() { + if (sgvBuilder_ == null) { + return sgv_.size(); } else { - return (java.lang.String) ref; + return sgvBuilder_.getCount(); } } /** - *
required string dateString = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public com.google.protobuf.ByteString - getDateStringBytes() { - java.lang.Object ref = dateString_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dateString_ = b; - return b; + public com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 getSgv(int index) { + if (sgvBuilder_ == null) { + return sgv_.get(index); } else { - return (com.google.protobuf.ByteString) ref; + return sgvBuilder_.getMessage(index); } } /** - *
required string dateString = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public Builder setDateString( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - dateString_ = value; - onChanged(); - return this; - } - /** - *
required string dateString = 1;
- */
- public Builder clearDateString() {
- bitField0_ = (bitField0_ & ~0x00000001);
- dateString_ = getDefaultInstance().getDateString();
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateStringBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
-
- // required string sgv = 2;
- private java.lang.Object sgv_ = "";
- /**
- * required string sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required string sgv = 2;
- */
- public java.lang.String getSgv() {
- java.lang.Object ref = sgv_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- sgv_ = s;
- return s;
+ public Builder setSgv(
+ int index, com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 value) {
+ if (sgvBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSgvIsMutable();
+ sgv_.set(index, value);
+ onChanged();
} else {
- return (java.lang.String) ref;
+ sgvBuilder_.setMessage(index, value);
}
+ return this;
}
/**
- * required string sgv = 2;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public com.google.protobuf.ByteString - getSgvBytes() { - java.lang.Object ref = sgv_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sgv_ = b; - return b; + public Builder setSgv( + int index, com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Builder builderForValue) { + if (sgvBuilder_ == null) { + ensureSgvIsMutable(); + sgv_.set(index, builderForValue.build()); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + sgvBuilder_.setMessage(index, builderForValue.build()); } - } - /** - *
required string sgv = 2;
- */
- public Builder setSgv(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * required string sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = getDefaultInstance().getSgv();
- onChanged();
- return this;
- }
- /**
- * required string sgv = 2;
- */
- public Builder setSgvBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
-
- // required uint32 date = 3;
- private int date_ ;
- /**
- * required uint32 date = 3;
- */
- public boolean hasDate() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required uint32 date = 3;
- */
- public int getDate() {
- return date_;
- }
- /**
- * required uint32 date = 3;
- */
- public Builder setDate(int value) {
- bitField0_ |= 0x00000004;
- date_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 date = 3;
- */
- public Builder clearDate() {
- bitField0_ = (bitField0_ & ~0x00000004);
- date_ = 0;
- onChanged();
return this;
}
-
- // optional string direction = 4;
- private java.lang.Object direction_ = "";
- /**
- * optional string direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
/**
- * optional string direction = 4;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public java.lang.String getDirection() { - java.lang.Object ref = direction_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - direction_ = s; - return s; + public Builder addSgv(com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 value) { + if (sgvBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSgvIsMutable(); + sgv_.add(value); + onChanged(); } else { - return (java.lang.String) ref; + sgvBuilder_.addMessage(value); } + return this; } /** - *
optional string direction = 4;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public com.google.protobuf.ByteString - getDirectionBytes() { - java.lang.Object ref = direction_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - direction_ = b; - return b; + public Builder addSgv( + int index, com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 value) { + if (sgvBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSgvIsMutable(); + sgv_.add(index, value); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + sgvBuilder_.addMessage(index, value); } - } - /** - *
optional string direction = 4;
- */
- public Builder setDirection(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000008);
- direction_ = getDefaultInstance().getDirection();
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder setDirectionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- direction_ = value;
- onChanged();
return this;
}
-
- // optional string device = 5;
- private java.lang.Object device_ = "";
- /**
- * optional string device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
/**
- * optional string device = 5;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - device_ = s; - return s; + public Builder addSgv( + com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Builder builderForValue) { + if (sgvBuilder_ == null) { + ensureSgvIsMutable(); + sgv_.add(builderForValue.build()); + onChanged(); } else { - return (java.lang.String) ref; + sgvBuilder_.addMessage(builderForValue.build()); } + return this; } /** - *
optional string device = 5;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; + public Builder addSgv( + int index, com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Builder builderForValue) { + if (sgvBuilder_ == null) { + ensureSgvIsMutable(); + sgv_.add(index, builderForValue.build()); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + sgvBuilder_.addMessage(index, builderForValue.build()); } - } - /** - *
optional string device = 5;
- */
- public Builder setDevice(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- device_ = value;
- onChanged();
return this;
}
/**
- * optional string device = 5;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public Builder clearDevice() { - bitField0_ = (bitField0_ & ~0x00000010); - device_ = getDefaultInstance().getDevice(); - onChanged(); + public Builder addAllSgv( + java.lang.Iterable extends com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4> values) { + if (sgvBuilder_ == null) { + ensureSgvIsMutable(); + super.addAll(values, sgv_); + onChanged(); + } else { + sgvBuilder_.addAllMessages(values); + } return this; } /** - *
optional string device = 5;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public Builder setDeviceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - device_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:SGVUsed) - } - - static { - defaultInstance = new SGVUsed(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:SGVUsed) - } - - public interface Practical8601OrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string timestamp = 1; - /** - *
optional string timestamp = 1;
- */
- boolean hasTimestamp();
- /**
- * optional string timestamp = 1;
- */
- java.lang.String getTimestamp();
- /**
- * optional string timestamp = 1;
- */
- com.google.protobuf.ByteString
- getTimestampBytes();
-
- // optional uint32 sgv = 2;
- /**
- * optional uint32 sgv = 2;
- */
- boolean hasSgv();
- /**
- * optional uint32 sgv = 2;
- */
- int getSgv();
-
- // optional .Practical8601.Direction direction = 3;
- /**
- * optional .Practical8601.Direction direction = 3;
- */
- boolean hasDirection();
- /**
- * optional .Practical8601.Direction direction = 3;
- */
- com.ktind.cgm.bgscout.SGV.Practical8601.Direction getDirection();
-
- // optional .Practical8601.Device device = 4;
- /**
- * optional .Practical8601.Device device = 4;
- */
- boolean hasDevice();
- /**
- * optional .Practical8601.Device device = 4;
- */
- com.ktind.cgm.bgscout.SGV.Practical8601.Device getDevice();
- }
- /**
- * Protobuf type {@code Practical8601}
- */
- public static final class Practical8601 extends
- com.google.protobuf.GeneratedMessage
- implements Practical8601OrBuilder {
- // Use Practical8601.newBuilder() to construct.
- private Practical8601(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Practical8601(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Practical8601 defaultInstance;
- public static Practical8601 getDefaultInstance() {
- return defaultInstance;
- }
-
- public Practical8601 getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Practical8601(
- 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;
- timestamp_ = input.readBytes();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readUInt32();
- break;
- }
- case 24: {
- int rawValue = input.readEnum();
- com.ktind.cgm.bgscout.SGV.Practical8601.Direction value = com.ktind.cgm.bgscout.SGV.Practical8601.Direction.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(3, rawValue);
- } else {
- bitField0_ |= 0x00000004;
- direction_ = value;
- }
- break;
- }
- case 32: {
- int rawValue = input.readEnum();
- com.ktind.cgm.bgscout.SGV.Practical8601.Device value = com.ktind.cgm.bgscout.SGV.Practical8601.Device.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(4, rawValue);
- } else {
- bitField0_ |= 0x00000008;
- device_ = value;
- }
- 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 com.ktind.cgm.bgscout.SGV.internal_static_Practical8601_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_Practical8601_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.Practical8601.class, com.ktind.cgm.bgscout.SGV.Practical8601.Builder.class);
- }
-
- public static com.google.protobuf.Parserdexcom = 1;
- */
- dexcom(0, 1),
- ;
-
- /**
- * dexcom = 1;
- */
- public static final int dexcom_VALUE = 1;
-
-
- public final int getNumber() { return value; }
-
- public static Device valueOf(int value) {
- switch (value) {
- case 1: return dexcom;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMapNONE = 0;
- */
- NONE(0, 0),
- /**
- * DoubleUp = 1;
- */
- DoubleUp(1, 1),
- /**
- * SingleUp = 2;
- */
- SingleUp(2, 2),
- /**
- * FortyFiveUp = 3;
- */
- FortyFiveUp(3, 3),
- /**
- * Flat = 4;
- */
- Flat(4, 4),
- /**
- * FortyFiveDown = 5;
- */
- FortyFiveDown(5, 5),
- /**
- * SingleDown = 6;
- */
- SingleDown(6, 6),
- /**
- * DoubleDown = 7;
- */
- DoubleDown(7, 7),
- /**
- * NOT_COMPUTABLE = 8;
- */
- NOT_COMPUTABLE(8, 8),
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- RATE_OUT_OF_RANGE(9, 9),
- ;
-
- /**
- * NONE = 0;
- */
- public static final int NONE_VALUE = 0;
- /**
- * DoubleUp = 1;
- */
- public static final int DoubleUp_VALUE = 1;
- /**
- * SingleUp = 2;
- */
- public static final int SingleUp_VALUE = 2;
- /**
- * FortyFiveUp = 3;
- */
- public static final int FortyFiveUp_VALUE = 3;
- /**
- * Flat = 4;
- */
- public static final int Flat_VALUE = 4;
- /**
- * FortyFiveDown = 5;
- */
- public static final int FortyFiveDown_VALUE = 5;
- /**
- * SingleDown = 6;
- */
- public static final int SingleDown_VALUE = 6;
- /**
- * DoubleDown = 7;
- */
- public static final int DoubleDown_VALUE = 7;
- /**
- * NOT_COMPUTABLE = 8;
- */
- public static final int NOT_COMPUTABLE_VALUE = 8;
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- public static final int RATE_OUT_OF_RANGE_VALUE = 9;
-
-
- public final int getNumber() { return value; }
-
- public static Direction valueOf(int value) {
- switch (value) {
- case 0: return NONE;
- case 1: return DoubleUp;
- case 2: return SingleUp;
- case 3: return FortyFiveUp;
- case 4: return Flat;
- case 5: return FortyFiveDown;
- case 6: return SingleDown;
- case 7: return DoubleDown;
- case 8: return NOT_COMPUTABLE;
- case 9: return RATE_OUT_OF_RANGE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMapoptional string timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional string timestamp = 1;
- */
- public java.lang.String getTimestamp() {
- java.lang.Object ref = timestamp_;
- 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()) {
- timestamp_ = s;
- }
- return s;
- }
- }
- /**
- * optional string timestamp = 1;
- */
- public com.google.protobuf.ByteString
- getTimestampBytes() {
- java.lang.Object ref = timestamp_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- timestamp_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional uint32 sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private int sgv_;
- /**
- * optional uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
-
- // optional .Practical8601.Direction direction = 3;
- public static final int DIRECTION_FIELD_NUMBER = 3;
- private com.ktind.cgm.bgscout.SGV.Practical8601.Direction direction_;
- /**
- * optional .Practical8601.Direction direction = 3;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .Practical8601.Direction direction = 3;
- */
- public com.ktind.cgm.bgscout.SGV.Practical8601.Direction getDirection() {
- return direction_;
- }
-
- // optional .Practical8601.Device device = 4;
- public static final int DEVICE_FIELD_NUMBER = 4;
- private com.ktind.cgm.bgscout.SGV.Practical8601.Device device_;
- /**
- * optional .Practical8601.Device device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .Practical8601.Device device = 4;
- */
- public com.ktind.cgm.bgscout.SGV.Practical8601.Device getDevice() {
- return device_;
- }
-
- private void initFields() {
- timestamp_ = "";
- sgv_ = 0;
- direction_ = com.ktind.cgm.bgscout.SGV.Practical8601.Direction.NONE;
- device_ = com.ktind.cgm.bgscout.SGV.Practical8601.Device.dexcom;
- }
- 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, getTimestampBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeUInt32(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(3, direction_.getNumber());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeEnum(4, device_.getNumber());
- }
- 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, getTimestampBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, direction_.getNumber());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(4, device_.getNumber());
- }
- 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 com.ktind.cgm.bgscout.SGV.Practical8601 parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.Practical8601 parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.Practical8601 parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.Practical8601 parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.Practical8601 parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.Practical8601 parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.Practical8601 parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.Practical8601 parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.Practical8601 parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.Practical8601 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(com.ktind.cgm.bgscout.SGV.Practical8601 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 Practical8601}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderoptional string timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional string timestamp = 1;
- */
- public java.lang.String getTimestamp() {
- java.lang.Object ref = timestamp_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- timestamp_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string timestamp = 1;
- */
- public com.google.protobuf.ByteString
- getTimestampBytes() {
- java.lang.Object ref = timestamp_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- timestamp_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string timestamp = 1;
- */
- public Builder setTimestamp(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- timestamp_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string timestamp = 1;
- */
- public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000001);
- timestamp_ = getDefaultInstance().getTimestamp();
- onChanged();
- return this;
- }
- /**
- * optional string timestamp = 1;
- */
- public Builder setTimestampBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- timestamp_ = value;
- onChanged();
- return this;
- }
-
- // optional uint32 sgv = 2;
- private int sgv_ ;
- /**
- * optional uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
- /**
- * optional uint32 sgv = 2;
- */
- public Builder setSgv(int value) {
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * optional uint32 sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = 0;
- onChanged();
- return this;
- }
-
- // optional .Practical8601.Direction direction = 3;
- private com.ktind.cgm.bgscout.SGV.Practical8601.Direction direction_ = com.ktind.cgm.bgscout.SGV.Practical8601.Direction.NONE;
- /**
- * optional .Practical8601.Direction direction = 3;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional .Practical8601.Direction direction = 3;
- */
- public com.ktind.cgm.bgscout.SGV.Practical8601.Direction getDirection() {
- return direction_;
- }
- /**
- * optional .Practical8601.Direction direction = 3;
- */
- public Builder setDirection(com.ktind.cgm.bgscout.SGV.Practical8601.Direction value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional .Practical8601.Direction direction = 3;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000004);
- direction_ = com.ktind.cgm.bgscout.SGV.Practical8601.Direction.NONE;
- onChanged();
- return this;
- }
-
- // optional .Practical8601.Device device = 4;
- private com.ktind.cgm.bgscout.SGV.Practical8601.Device device_ = com.ktind.cgm.bgscout.SGV.Practical8601.Device.dexcom;
- /**
- * optional .Practical8601.Device device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .Practical8601.Device device = 4;
- */
- public com.ktind.cgm.bgscout.SGV.Practical8601.Device getDevice() {
- return device_;
- }
- /**
- * optional .Practical8601.Device device = 4;
- */
- public Builder setDevice(com.ktind.cgm.bgscout.SGV.Practical8601.Device value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional .Practical8601.Device device = 4;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000008);
- device_ = com.ktind.cgm.bgscout.SGV.Practical8601.Device.dexcom;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:Practical8601)
- }
-
- static {
- defaultInstance = new Practical8601(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:Practical8601)
- }
-
- public interface propose_1OrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required string dateString = 1;
- /**
- * required string dateString = 1;
- */
- boolean hasDateString();
- /**
- * required string dateString = 1;
- */
- java.lang.String getDateString();
- /**
- * required string dateString = 1;
- */
- com.google.protobuf.ByteString
- getDateStringBytes();
-
- // required string sgv = 2;
- /**
- * required string sgv = 2;
- */
- boolean hasSgv();
- /**
- * required string sgv = 2;
- */
- java.lang.String getSgv();
- /**
- * required string sgv = 2;
- */
- com.google.protobuf.ByteString
- getSgvBytes();
-
- // optional string direction = 4;
- /**
- * optional string direction = 4;
- */
- boolean hasDirection();
- /**
- * optional string direction = 4;
- */
- java.lang.String getDirection();
- /**
- * optional string direction = 4;
- */
- com.google.protobuf.ByteString
- getDirectionBytes();
-
- // optional string device = 5;
- /**
- * optional string device = 5;
- */
- boolean hasDevice();
- /**
- * optional string device = 5;
- */
- java.lang.String getDevice();
- /**
- * optional string device = 5;
- */
- com.google.protobuf.ByteString
- getDeviceBytes();
- }
- /**
- * Protobuf type {@code propose_1}
- */
- public static final class propose_1 extends
- com.google.protobuf.GeneratedMessage
- implements propose_1OrBuilder {
- // Use propose_1.newBuilder() to construct.
- private propose_1(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private propose_1(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final propose_1 defaultInstance;
- public static propose_1 getDefaultInstance() {
- return defaultInstance;
- }
-
- public propose_1 getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private propose_1(
- 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;
- dateString_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readBytes();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000004;
- direction_ = input.readBytes();
- break;
- }
- case 42: {
- bitField0_ |= 0x00000008;
- device_ = input.readBytes();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_1_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_1_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.propose_1.class, com.ktind.cgm.bgscout.SGV.propose_1.Builder.class);
- }
-
- public static com.google.protobuf.Parserrequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- 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()) {
- dateString_ = s;
- }
- return s;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required string sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private java.lang.Object sgv_;
- /**
- * required string sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required string sgv = 2;
- */
- public java.lang.String getSgv() {
- java.lang.Object ref = sgv_;
- 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()) {
- sgv_ = s;
- }
- return s;
- }
- }
- /**
- * required string sgv = 2;
- */
- public com.google.protobuf.ByteString
- getSgvBytes() {
- java.lang.Object ref = sgv_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- sgv_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string direction = 4;
- public static final int DIRECTION_FIELD_NUMBER = 4;
- private java.lang.Object direction_;
- /**
- * optional string direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string direction = 4;
- */
- public java.lang.String getDirection() {
- java.lang.Object ref = direction_;
- 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()) {
- direction_ = s;
- }
- return s;
- }
- }
- /**
- * optional string direction = 4;
- */
- public com.google.protobuf.ByteString
- getDirectionBytes() {
- java.lang.Object ref = direction_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- direction_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string device = 5;
- public static final int DEVICE_FIELD_NUMBER = 5;
- private java.lang.Object device_;
- /**
- * optional string device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional string device = 5;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- 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()) {
- device_ = s;
- }
- return s;
- }
- }
- /**
- * optional string device = 5;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private void initFields() {
- dateString_ = "";
- sgv_ = "";
- direction_ = "";
- device_ = "";
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasDateString()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSgv()) {
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getSgvBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(4, getDirectionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(5, getDeviceBytes());
- }
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getSgvBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getDirectionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getDeviceBytes());
- }
- 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 com.ktind.cgm.bgscout.SGV.propose_1 parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_1 parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_1 parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_1 parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_1 parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_1 parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_1 parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_1 parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_1 parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_1 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(com.ktind.cgm.bgscout.SGV.propose_1 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 propose_1}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- dateString_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateString(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder clearDateString() {
- bitField0_ = (bitField0_ & ~0x00000001);
- dateString_ = getDefaultInstance().getDateString();
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateStringBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
-
- // required string sgv = 2;
- private java.lang.Object sgv_ = "";
- /**
- * required string sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required string sgv = 2;
- */
- public java.lang.String getSgv() {
- java.lang.Object ref = sgv_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- sgv_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string sgv = 2;
- */
- public com.google.protobuf.ByteString
- getSgvBytes() {
- java.lang.Object ref = sgv_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- sgv_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string sgv = 2;
- */
- public Builder setSgv(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * required string sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = getDefaultInstance().getSgv();
- onChanged();
- return this;
- }
- /**
- * required string sgv = 2;
- */
- public Builder setSgvBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
-
- // optional string direction = 4;
- private java.lang.Object direction_ = "";
- /**
- * optional string direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string direction = 4;
- */
- public java.lang.String getDirection() {
- java.lang.Object ref = direction_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- direction_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string direction = 4;
- */
- public com.google.protobuf.ByteString
- getDirectionBytes() {
- java.lang.Object ref = direction_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- direction_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string direction = 4;
- */
- public Builder setDirection(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000004);
- direction_ = getDefaultInstance().getDirection();
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder setDirectionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- direction_ = value;
- onChanged();
- return this;
- }
-
- // optional string device = 5;
- private java.lang.Object device_ = "";
- /**
- * optional string device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional string device = 5;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- device_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string device = 5;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string device = 5;
- */
- public Builder setDevice(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string device = 5;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000008);
- device_ = getDefaultInstance().getDevice();
- onChanged();
- return this;
- }
- /**
- * optional string device = 5;
- */
- public Builder setDeviceBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- device_ = value;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:propose_1)
- }
-
- static {
- defaultInstance = new propose_1(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:propose_1)
- }
-
- public interface propose_2_timestampOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required string timestamp = 1;
- /**
- * required string timestamp = 1;
- */
- boolean hasTimestamp();
- /**
- * required string timestamp = 1;
- */
- java.lang.String getTimestamp();
- /**
- * required string timestamp = 1;
- */
- com.google.protobuf.ByteString
- getTimestampBytes();
-
- // required uint32 sgv = 2;
- /**
- * required uint32 sgv = 2;
- */
- boolean hasSgv();
- /**
- * required uint32 sgv = 2;
- */
- int getSgv();
-
- // optional string direction = 4;
- /**
- * optional string direction = 4;
- */
- boolean hasDirection();
- /**
- * optional string direction = 4;
- */
- java.lang.String getDirection();
- /**
- * optional string direction = 4;
- */
- com.google.protobuf.ByteString
- getDirectionBytes();
-
- // optional string device = 5;
- /**
- * optional string device = 5;
- */
- boolean hasDevice();
- /**
- * optional string device = 5;
- */
- java.lang.String getDevice();
- /**
- * optional string device = 5;
- */
- com.google.protobuf.ByteString
- getDeviceBytes();
- }
- /**
- * Protobuf type {@code propose_2_timestamp}
- */
- public static final class propose_2_timestamp extends
- com.google.protobuf.GeneratedMessage
- implements propose_2_timestampOrBuilder {
- // Use propose_2_timestamp.newBuilder() to construct.
- private propose_2_timestamp(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private propose_2_timestamp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final propose_2_timestamp defaultInstance;
- public static propose_2_timestamp getDefaultInstance() {
- return defaultInstance;
- }
-
- public propose_2_timestamp getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private propose_2_timestamp(
- 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;
- timestamp_ = input.readBytes();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readUInt32();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000004;
- direction_ = input.readBytes();
- break;
- }
- case 42: {
- bitField0_ |= 0x00000008;
- device_ = input.readBytes();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_2_timestamp_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_2_timestamp_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.propose_2_timestamp.class, com.ktind.cgm.bgscout.SGV.propose_2_timestamp.Builder.class);
- }
-
- public static com.google.protobuf.Parserrequired string timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string timestamp = 1;
- */
- public java.lang.String getTimestamp() {
- java.lang.Object ref = timestamp_;
- 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()) {
- timestamp_ = s;
- }
- return s;
- }
- }
- /**
- * required string timestamp = 1;
- */
- public com.google.protobuf.ByteString
- getTimestampBytes() {
- java.lang.Object ref = timestamp_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- timestamp_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required uint32 sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private int sgv_;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
-
- // optional string direction = 4;
- public static final int DIRECTION_FIELD_NUMBER = 4;
- private java.lang.Object direction_;
- /**
- * optional string direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string direction = 4;
- */
- public java.lang.String getDirection() {
- java.lang.Object ref = direction_;
- 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()) {
- direction_ = s;
- }
- return s;
- }
- }
- /**
- * optional string direction = 4;
- */
- public com.google.protobuf.ByteString
- getDirectionBytes() {
- java.lang.Object ref = direction_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- direction_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string device = 5;
- public static final int DEVICE_FIELD_NUMBER = 5;
- private java.lang.Object device_;
- /**
- * optional string device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional string device = 5;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- 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()) {
- device_ = s;
- }
- return s;
- }
- }
- /**
- * optional string device = 5;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private void initFields() {
- timestamp_ = "";
- sgv_ = 0;
- direction_ = "";
- device_ = "";
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasTimestamp()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSgv()) {
- 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, getTimestampBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeUInt32(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(4, getDirectionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(5, getDeviceBytes());
- }
- 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, getTimestampBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getDirectionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getDeviceBytes());
- }
- 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 com.ktind.cgm.bgscout.SGV.propose_2_timestamp parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp 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(com.ktind.cgm.bgscout.SGV.propose_2_timestamp 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 propose_2_timestamp}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired string timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string timestamp = 1;
- */
- public java.lang.String getTimestamp() {
- java.lang.Object ref = timestamp_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- timestamp_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string timestamp = 1;
- */
- public com.google.protobuf.ByteString
- getTimestampBytes() {
- java.lang.Object ref = timestamp_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- timestamp_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string timestamp = 1;
- */
- public Builder setTimestamp(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- timestamp_ = value;
- onChanged();
- return this;
- }
- /**
- * required string timestamp = 1;
- */
- public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000001);
- timestamp_ = getDefaultInstance().getTimestamp();
- onChanged();
- return this;
- }
- /**
- * required string timestamp = 1;
- */
- public Builder setTimestampBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- timestamp_ = value;
- onChanged();
- return this;
- }
-
- // required uint32 sgv = 2;
- private int sgv_ ;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder setSgv(int value) {
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = 0;
- onChanged();
- return this;
- }
-
- // optional string direction = 4;
- private java.lang.Object direction_ = "";
- /**
- * optional string direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string direction = 4;
- */
- public java.lang.String getDirection() {
- java.lang.Object ref = direction_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- direction_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string direction = 4;
- */
- public com.google.protobuf.ByteString
- getDirectionBytes() {
- java.lang.Object ref = direction_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- direction_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string direction = 4;
- */
- public Builder setDirection(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000004);
- direction_ = getDefaultInstance().getDirection();
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder setDirectionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- direction_ = value;
- onChanged();
- return this;
- }
-
- // optional string device = 5;
- private java.lang.Object device_ = "";
- /**
- * optional string device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional string device = 5;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- device_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string device = 5;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string device = 5;
- */
- public Builder setDevice(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string device = 5;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000008);
- device_ = getDefaultInstance().getDevice();
- onChanged();
- return this;
- }
- /**
- * optional string device = 5;
- */
- public Builder setDeviceBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- device_ = value;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:propose_2_timestamp)
- }
-
- static {
- defaultInstance = new propose_2_timestamp(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:propose_2_timestamp)
- }
-
- public interface propose_2_timestamp_directionOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required string timestamp = 1;
- /**
- * required string timestamp = 1;
- */
- boolean hasTimestamp();
- /**
- * required string timestamp = 1;
- */
- java.lang.String getTimestamp();
- /**
- * required string timestamp = 1;
- */
- com.google.protobuf.ByteString
- getTimestampBytes();
-
- // required uint32 sgv = 2;
- /**
- * required uint32 sgv = 2;
- */
- boolean hasSgv();
- /**
- * required uint32 sgv = 2;
- */
- int getSgv();
-
- // optional string device = 4;
- /**
- * optional string device = 4;
- */
- boolean hasDevice();
- /**
- * optional string device = 4;
- */
- java.lang.String getDevice();
- /**
- * optional string device = 4;
- */
- com.google.protobuf.ByteString
- getDeviceBytes();
-
- // optional .propose_2_timestamp_direction.Direction direction = 3;
- /**
- * optional .propose_2_timestamp_direction.Direction direction = 3;
- */
- boolean hasDirection();
- /**
- * optional .propose_2_timestamp_direction.Direction direction = 3;
- */
- com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction getDirection();
- }
- /**
- * Protobuf type {@code propose_2_timestamp_direction}
- */
- public static final class propose_2_timestamp_direction extends
- com.google.protobuf.GeneratedMessage
- implements propose_2_timestamp_directionOrBuilder {
- // Use propose_2_timestamp_direction.newBuilder() to construct.
- private propose_2_timestamp_direction(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private propose_2_timestamp_direction(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final propose_2_timestamp_direction defaultInstance;
- public static propose_2_timestamp_direction getDefaultInstance() {
- return defaultInstance;
- }
-
- public propose_2_timestamp_direction getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private propose_2_timestamp_direction(
- 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;
- timestamp_ = input.readBytes();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readUInt32();
- break;
- }
- case 24: {
- int rawValue = input.readEnum();
- com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction value = com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(3, rawValue);
- } else {
- bitField0_ |= 0x00000008;
- direction_ = value;
- }
- break;
- }
- case 34: {
- bitField0_ |= 0x00000004;
- device_ = input.readBytes();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_2_timestamp_direction_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_2_timestamp_direction_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.class, com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Builder.class);
- }
-
- public static com.google.protobuf.ParserNONE = 0;
- */
- NONE(0, 0),
- /**
- * DoubleUp = 1;
- */
- DoubleUp(1, 1),
- /**
- * SingleUp = 2;
- */
- SingleUp(2, 2),
- /**
- * FortyFiveUp = 3;
- */
- FortyFiveUp(3, 3),
- /**
- * Flat = 4;
- */
- Flat(4, 4),
- /**
- * FortyFiveDown = 5;
- */
- FortyFiveDown(5, 5),
- /**
- * SingleDown = 6;
- */
- SingleDown(6, 6),
- /**
- * DoubleDown = 7;
- */
- DoubleDown(7, 7),
- /**
- * NOT_COMPUTABLE = 8;
- */
- NOT_COMPUTABLE(8, 8),
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- RATE_OUT_OF_RANGE(9, 9),
- ;
-
- /**
- * NONE = 0;
- */
- public static final int NONE_VALUE = 0;
- /**
- * DoubleUp = 1;
- */
- public static final int DoubleUp_VALUE = 1;
- /**
- * SingleUp = 2;
- */
- public static final int SingleUp_VALUE = 2;
- /**
- * FortyFiveUp = 3;
- */
- public static final int FortyFiveUp_VALUE = 3;
- /**
- * Flat = 4;
- */
- public static final int Flat_VALUE = 4;
- /**
- * FortyFiveDown = 5;
- */
- public static final int FortyFiveDown_VALUE = 5;
- /**
- * SingleDown = 6;
- */
- public static final int SingleDown_VALUE = 6;
- /**
- * DoubleDown = 7;
- */
- public static final int DoubleDown_VALUE = 7;
- /**
- * NOT_COMPUTABLE = 8;
- */
- public static final int NOT_COMPUTABLE_VALUE = 8;
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- public static final int RATE_OUT_OF_RANGE_VALUE = 9;
-
-
- public final int getNumber() { return value; }
-
- public static Direction valueOf(int value) {
- switch (value) {
- case 0: return NONE;
- case 1: return DoubleUp;
- case 2: return SingleUp;
- case 3: return FortyFiveUp;
- case 4: return Flat;
- case 5: return FortyFiveDown;
- case 6: return SingleDown;
- case 7: return DoubleDown;
- case 8: return NOT_COMPUTABLE;
- case 9: return RATE_OUT_OF_RANGE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMaprequired string timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string timestamp = 1;
- */
- public java.lang.String getTimestamp() {
- java.lang.Object ref = timestamp_;
- 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()) {
- timestamp_ = s;
- }
- return s;
- }
- }
- /**
- * required string timestamp = 1;
- */
- public com.google.protobuf.ByteString
- getTimestampBytes() {
- java.lang.Object ref = timestamp_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- timestamp_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required uint32 sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private int sgv_;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
-
- // optional string device = 4;
- public static final int DEVICE_FIELD_NUMBER = 4;
- private java.lang.Object device_;
- /**
- * optional string device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string device = 4;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- 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()) {
- device_ = s;
- }
- return s;
- }
- }
- /**
- * optional string device = 4;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional .propose_2_timestamp_direction.Direction direction = 3;
- public static final int DIRECTION_FIELD_NUMBER = 3;
- private com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction direction_;
- /**
- * optional .propose_2_timestamp_direction.Direction direction = 3;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .propose_2_timestamp_direction.Direction direction = 3;
- */
- public com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction getDirection() {
- return direction_;
- }
-
- private void initFields() {
- timestamp_ = "";
- sgv_ = 0;
- device_ = "";
- direction_ = com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction.NONE;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasTimestamp()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSgv()) {
- 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, getTimestampBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeUInt32(2, sgv_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeEnum(3, direction_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(4, getDeviceBytes());
- }
- 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, getTimestampBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(2, sgv_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, direction_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getDeviceBytes());
- }
- 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 com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction 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(com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction 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 propose_2_timestamp_direction}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired string timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string timestamp = 1;
- */
- public java.lang.String getTimestamp() {
- java.lang.Object ref = timestamp_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- timestamp_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string timestamp = 1;
- */
- public com.google.protobuf.ByteString
- getTimestampBytes() {
- java.lang.Object ref = timestamp_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- timestamp_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string timestamp = 1;
- */
- public Builder setTimestamp(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- timestamp_ = value;
- onChanged();
- return this;
- }
- /**
- * required string timestamp = 1;
- */
- public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000001);
- timestamp_ = getDefaultInstance().getTimestamp();
- onChanged();
- return this;
- }
- /**
- * required string timestamp = 1;
- */
- public Builder setTimestampBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- timestamp_ = value;
- onChanged();
- return this;
- }
-
- // required uint32 sgv = 2;
- private int sgv_ ;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder setSgv(int value) {
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = 0;
- onChanged();
- return this;
- }
-
- // optional string device = 4;
- private java.lang.Object device_ = "";
- /**
- * optional string device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string device = 4;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- device_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string device = 4;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string device = 4;
- */
- public Builder setDevice(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string device = 4;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000004);
- device_ = getDefaultInstance().getDevice();
- onChanged();
- return this;
- }
- /**
- * optional string device = 4;
- */
- public Builder setDeviceBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- device_ = value;
- onChanged();
- return this;
- }
-
- // optional .propose_2_timestamp_direction.Direction direction = 3;
- private com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction direction_ = com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction.NONE;
- /**
- * optional .propose_2_timestamp_direction.Direction direction = 3;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .propose_2_timestamp_direction.Direction direction = 3;
- */
- public com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction getDirection() {
- return direction_;
- }
- /**
- * optional .propose_2_timestamp_direction.Direction direction = 3;
- */
- public Builder setDirection(com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional .propose_2_timestamp_direction.Direction direction = 3;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000008);
- direction_ = com.ktind.cgm.bgscout.SGV.propose_2_timestamp_direction.Direction.NONE;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:propose_2_timestamp_direction)
- }
-
- static {
- defaultInstance = new propose_2_timestamp_direction(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:propose_2_timestamp_direction)
- }
-
- public interface SGVUsed_sgv_intOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required string dateString = 1;
- /**
- * required string dateString = 1;
- */
- boolean hasDateString();
- /**
- * required string dateString = 1;
- */
- java.lang.String getDateString();
- /**
- * required string dateString = 1;
- */
- com.google.protobuf.ByteString
- getDateStringBytes();
-
- // required uint32 sgv = 2;
- /**
- * required uint32 sgv = 2;
- */
- boolean hasSgv();
- /**
- * required uint32 sgv = 2;
- */
- int getSgv();
-
- // required uint32 date = 3;
- /**
- * required uint32 date = 3;
- */
- boolean hasDate();
- /**
- * required uint32 date = 3;
- */
- int getDate();
-
- // optional string direction = 4;
- /**
- * optional string direction = 4;
- */
- boolean hasDirection();
- /**
- * optional string direction = 4;
- */
- java.lang.String getDirection();
- /**
- * optional string direction = 4;
- */
- com.google.protobuf.ByteString
- getDirectionBytes();
-
- // optional string device = 5;
- /**
- * optional string device = 5;
- */
- boolean hasDevice();
- /**
- * optional string device = 5;
- */
- java.lang.String getDevice();
- /**
- * optional string device = 5;
- */
- com.google.protobuf.ByteString
- getDeviceBytes();
- }
- /**
- * Protobuf type {@code SGVUsed_sgv_int}
- */
- public static final class SGVUsed_sgv_int extends
- com.google.protobuf.GeneratedMessage
- implements SGVUsed_sgv_intOrBuilder {
- // Use SGVUsed_sgv_int.newBuilder() to construct.
- private SGVUsed_sgv_int(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private SGVUsed_sgv_int(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final SGVUsed_sgv_int defaultInstance;
- public static SGVUsed_sgv_int getDefaultInstance() {
- return defaultInstance;
- }
-
- public SGVUsed_sgv_int getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private SGVUsed_sgv_int(
- 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;
- dateString_ = input.readBytes();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readUInt32();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- date_ = input.readUInt32();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000008;
- direction_ = input.readBytes();
- break;
- }
- case 42: {
- bitField0_ |= 0x00000010;
- device_ = input.readBytes();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.ktind.cgm.bgscout.SGV.internal_static_SGVUsed_sgv_int_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_SGVUsed_sgv_int_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int.class, com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int.Builder.class);
- }
-
- public static com.google.protobuf.Parserrequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- 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()) {
- dateString_ = s;
- }
- return s;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required uint32 sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private int sgv_;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
-
- // required uint32 date = 3;
- public static final int DATE_FIELD_NUMBER = 3;
- private int date_;
- /**
- * required uint32 date = 3;
- */
- public boolean hasDate() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required uint32 date = 3;
- */
- public int getDate() {
- return date_;
- }
-
- // optional string direction = 4;
- public static final int DIRECTION_FIELD_NUMBER = 4;
- private java.lang.Object direction_;
- /**
- * optional string direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional string direction = 4;
- */
- public java.lang.String getDirection() {
- java.lang.Object ref = direction_;
- 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()) {
- direction_ = s;
- }
- return s;
- }
- }
- /**
- * optional string direction = 4;
- */
- public com.google.protobuf.ByteString
- getDirectionBytes() {
- java.lang.Object ref = direction_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- direction_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string device = 5;
- public static final int DEVICE_FIELD_NUMBER = 5;
- private java.lang.Object device_;
- /**
- * optional string device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * optional string device = 5;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- 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()) {
- device_ = s;
- }
- return s;
- }
- }
- /**
- * optional string device = 5;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private void initFields() {
- dateString_ = "";
- sgv_ = 0;
- date_ = 0;
- direction_ = "";
- device_ = "";
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasDateString()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSgv()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasDate()) {
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeUInt32(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeUInt32(3, date_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getDirectionBytes());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getDeviceBytes());
- }
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(3, date_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getDirectionBytes());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getDeviceBytes());
- }
- 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 com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int 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(com.ktind.cgm.bgscout.SGV.SGVUsed_sgv_int 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 SGVUsed_sgv_int}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- dateString_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateString(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder clearDateString() {
- bitField0_ = (bitField0_ & ~0x00000001);
- dateString_ = getDefaultInstance().getDateString();
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateStringBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
-
- // required uint32 sgv = 2;
- private int sgv_ ;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder setSgv(int value) {
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = 0;
- onChanged();
- return this;
- }
-
- // required uint32 date = 3;
- private int date_ ;
- /**
- * required uint32 date = 3;
- */
- public boolean hasDate() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required uint32 date = 3;
- */
- public int getDate() {
- return date_;
- }
- /**
- * required uint32 date = 3;
- */
- public Builder setDate(int value) {
- bitField0_ |= 0x00000004;
- date_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 date = 3;
- */
- public Builder clearDate() {
- bitField0_ = (bitField0_ & ~0x00000004);
- date_ = 0;
- onChanged();
- return this;
- }
-
- // optional string direction = 4;
- private java.lang.Object direction_ = "";
- /**
- * optional string direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional string direction = 4;
- */
- public java.lang.String getDirection() {
- java.lang.Object ref = direction_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- direction_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string direction = 4;
- */
- public com.google.protobuf.ByteString
- getDirectionBytes() {
- java.lang.Object ref = direction_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- direction_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string direction = 4;
- */
- public Builder setDirection(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000008);
- direction_ = getDefaultInstance().getDirection();
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder setDirectionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- direction_ = value;
- onChanged();
- return this;
- }
-
- // optional string device = 5;
- private java.lang.Object device_ = "";
- /**
- * optional string device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * optional string device = 5;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- device_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string device = 5;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string device = 5;
- */
- public Builder setDevice(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string device = 5;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000010);
- device_ = getDefaultInstance().getDevice();
- onChanged();
- return this;
- }
- /**
- * optional string device = 5;
- */
- public Builder setDeviceBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- device_ = value;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:SGVUsed_sgv_int)
- }
-
- static {
- defaultInstance = new SGVUsed_sgv_int(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:SGVUsed_sgv_int)
- }
-
- public interface propose_sgv_intOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required string dateString = 1;
- /**
- * required string dateString = 1;
- */
- boolean hasDateString();
- /**
- * required string dateString = 1;
- */
- java.lang.String getDateString();
- /**
- * required string dateString = 1;
- */
- com.google.protobuf.ByteString
- getDateStringBytes();
-
- // required uint32 sgv = 2;
- /**
- * required uint32 sgv = 2;
- */
- boolean hasSgv();
- /**
- * required uint32 sgv = 2;
- */
- int getSgv();
-
- // optional string direction = 4;
- /**
- * optional string direction = 4;
- */
- boolean hasDirection();
- /**
- * optional string direction = 4;
- */
- java.lang.String getDirection();
- /**
- * optional string direction = 4;
- */
- com.google.protobuf.ByteString
- getDirectionBytes();
-
- // optional string device = 5;
- /**
- * optional string device = 5;
- */
- boolean hasDevice();
- /**
- * optional string device = 5;
- */
- java.lang.String getDevice();
- /**
- * optional string device = 5;
- */
- com.google.protobuf.ByteString
- getDeviceBytes();
- }
- /**
- * Protobuf type {@code propose_sgv_int}
- */
- public static final class propose_sgv_int extends
- com.google.protobuf.GeneratedMessage
- implements propose_sgv_intOrBuilder {
- // Use propose_sgv_int.newBuilder() to construct.
- private propose_sgv_int(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private propose_sgv_int(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final propose_sgv_int defaultInstance;
- public static propose_sgv_int getDefaultInstance() {
- return defaultInstance;
- }
-
- public propose_sgv_int getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private propose_sgv_int(
- 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;
- dateString_ = input.readBytes();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readUInt32();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000004;
- direction_ = input.readBytes();
- break;
- }
- case 42: {
- bitField0_ |= 0x00000008;
- device_ = input.readBytes();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_sgv_int_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_sgv_int_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.propose_sgv_int.class, com.ktind.cgm.bgscout.SGV.propose_sgv_int.Builder.class);
- }
-
- public static com.google.protobuf.Parserrequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- 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()) {
- dateString_ = s;
- }
- return s;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required uint32 sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private int sgv_;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
-
- // optional string direction = 4;
- public static final int DIRECTION_FIELD_NUMBER = 4;
- private java.lang.Object direction_;
- /**
- * optional string direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string direction = 4;
- */
- public java.lang.String getDirection() {
- java.lang.Object ref = direction_;
- 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()) {
- direction_ = s;
- }
- return s;
- }
- }
- /**
- * optional string direction = 4;
- */
- public com.google.protobuf.ByteString
- getDirectionBytes() {
- java.lang.Object ref = direction_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- direction_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string device = 5;
- public static final int DEVICE_FIELD_NUMBER = 5;
- private java.lang.Object device_;
- /**
- * optional string device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional string device = 5;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- 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()) {
- device_ = s;
- }
- return s;
- }
- }
- /**
- * optional string device = 5;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private void initFields() {
- dateString_ = "";
- sgv_ = 0;
- direction_ = "";
- device_ = "";
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasDateString()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSgv()) {
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeUInt32(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(4, getDirectionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(5, getDeviceBytes());
- }
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getDirectionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getDeviceBytes());
- }
- 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 com.ktind.cgm.bgscout.SGV.propose_sgv_int parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_sgv_int parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_sgv_int parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_sgv_int parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_sgv_int parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_sgv_int parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_sgv_int parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_sgv_int parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_sgv_int parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_sgv_int 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(com.ktind.cgm.bgscout.SGV.propose_sgv_int 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 propose_sgv_int}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- dateString_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateString(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder clearDateString() {
- bitField0_ = (bitField0_ & ~0x00000001);
- dateString_ = getDefaultInstance().getDateString();
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateStringBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
-
- // required uint32 sgv = 2;
- private int sgv_ ;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder setSgv(int value) {
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = 0;
- onChanged();
- return this;
- }
-
- // optional string direction = 4;
- private java.lang.Object direction_ = "";
- /**
- * optional string direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string direction = 4;
- */
- public java.lang.String getDirection() {
- java.lang.Object ref = direction_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- direction_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string direction = 4;
- */
- public com.google.protobuf.ByteString
- getDirectionBytes() {
- java.lang.Object ref = direction_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- direction_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string direction = 4;
- */
- public Builder setDirection(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000004);
- direction_ = getDefaultInstance().getDirection();
- onChanged();
- return this;
- }
- /**
- * optional string direction = 4;
- */
- public Builder setDirectionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- direction_ = value;
- onChanged();
- return this;
- }
-
- // optional string device = 5;
- private java.lang.Object device_ = "";
- /**
- * optional string device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional string device = 5;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- device_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string device = 5;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string device = 5;
- */
- public Builder setDevice(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string device = 5;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000008);
- device_ = getDefaultInstance().getDevice();
- onChanged();
- return this;
- }
- /**
- * optional string device = 5;
- */
- public Builder setDeviceBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- device_ = value;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:propose_sgv_int)
- }
-
- static {
- defaultInstance = new propose_sgv_int(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:propose_sgv_int)
- }
-
- public interface propose_direction_enumOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required string dateString = 1;
- /**
- * required string dateString = 1;
- */
- boolean hasDateString();
- /**
- * required string dateString = 1;
- */
- java.lang.String getDateString();
- /**
- * required string dateString = 1;
- */
- com.google.protobuf.ByteString
- getDateStringBytes();
-
- // required string sgv = 2;
- /**
- * required string sgv = 2;
- */
- boolean hasSgv();
- /**
- * required string sgv = 2;
- */
- java.lang.String getSgv();
- /**
- * required string sgv = 2;
- */
- com.google.protobuf.ByteString
- getSgvBytes();
-
- // optional string device = 4;
- /**
- * optional string device = 4;
- */
- boolean hasDevice();
- /**
- * optional string device = 4;
- */
- java.lang.String getDevice();
- /**
- * optional string device = 4;
- */
- com.google.protobuf.ByteString
- getDeviceBytes();
-
- // optional .propose_direction_enum.Direction direction = 5;
- /**
- * optional .propose_direction_enum.Direction direction = 5;
- */
- boolean hasDirection();
- /**
- * optional .propose_direction_enum.Direction direction = 5;
- */
- com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction getDirection();
- }
- /**
- * Protobuf type {@code propose_direction_enum}
- */
- public static final class propose_direction_enum extends
- com.google.protobuf.GeneratedMessage
- implements propose_direction_enumOrBuilder {
- // Use propose_direction_enum.newBuilder() to construct.
- private propose_direction_enum(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private propose_direction_enum(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final propose_direction_enum defaultInstance;
- public static propose_direction_enum getDefaultInstance() {
- return defaultInstance;
- }
-
- public propose_direction_enum getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private propose_direction_enum(
- 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;
- dateString_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readBytes();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000004;
- device_ = input.readBytes();
- break;
- }
- case 40: {
- int rawValue = input.readEnum();
- com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction value = com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(5, rawValue);
- } else {
- bitField0_ |= 0x00000008;
- direction_ = value;
- }
- 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 com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_enum_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_enum_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.propose_direction_enum.class, com.ktind.cgm.bgscout.SGV.propose_direction_enum.Builder.class);
- }
-
- public static com.google.protobuf.ParserNONE = 0;
- */
- NONE(0, 0),
- /**
- * DoubleUp = 1;
- */
- DoubleUp(1, 1),
- /**
- * SingleUp = 2;
- */
- SingleUp(2, 2),
- /**
- * FortyFiveUp = 3;
- */
- FortyFiveUp(3, 3),
- /**
- * Flat = 4;
- */
- Flat(4, 4),
- /**
- * FortyFiveDown = 5;
- */
- FortyFiveDown(5, 5),
- /**
- * SingleDown = 6;
- */
- SingleDown(6, 6),
- /**
- * DoubleDown = 7;
- */
- DoubleDown(7, 7),
- /**
- * NOT_COMPUTABLE = 8;
- */
- NOT_COMPUTABLE(8, 8),
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- RATE_OUT_OF_RANGE(9, 9),
- ;
-
- /**
- * NONE = 0;
- */
- public static final int NONE_VALUE = 0;
- /**
- * DoubleUp = 1;
- */
- public static final int DoubleUp_VALUE = 1;
- /**
- * SingleUp = 2;
- */
- public static final int SingleUp_VALUE = 2;
- /**
- * FortyFiveUp = 3;
- */
- public static final int FortyFiveUp_VALUE = 3;
- /**
- * Flat = 4;
- */
- public static final int Flat_VALUE = 4;
- /**
- * FortyFiveDown = 5;
- */
- public static final int FortyFiveDown_VALUE = 5;
- /**
- * SingleDown = 6;
- */
- public static final int SingleDown_VALUE = 6;
- /**
- * DoubleDown = 7;
- */
- public static final int DoubleDown_VALUE = 7;
- /**
- * NOT_COMPUTABLE = 8;
- */
- public static final int NOT_COMPUTABLE_VALUE = 8;
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- public static final int RATE_OUT_OF_RANGE_VALUE = 9;
-
-
- public final int getNumber() { return value; }
-
- public static Direction valueOf(int value) {
- switch (value) {
- case 0: return NONE;
- case 1: return DoubleUp;
- case 2: return SingleUp;
- case 3: return FortyFiveUp;
- case 4: return Flat;
- case 5: return FortyFiveDown;
- case 6: return SingleDown;
- case 7: return DoubleDown;
- case 8: return NOT_COMPUTABLE;
- case 9: return RATE_OUT_OF_RANGE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMaprequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- 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()) {
- dateString_ = s;
- }
- return s;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required string sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private java.lang.Object sgv_;
- /**
- * required string sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required string sgv = 2;
- */
- public java.lang.String getSgv() {
- java.lang.Object ref = sgv_;
- 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()) {
- sgv_ = s;
- }
- return s;
- }
- }
- /**
- * required string sgv = 2;
- */
- public com.google.protobuf.ByteString
- getSgvBytes() {
- java.lang.Object ref = sgv_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- sgv_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional string device = 4;
- public static final int DEVICE_FIELD_NUMBER = 4;
- private java.lang.Object device_;
- /**
- * optional string device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string device = 4;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- 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()) {
- device_ = s;
- }
- return s;
- }
- }
- /**
- * optional string device = 4;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional .propose_direction_enum.Direction direction = 5;
- public static final int DIRECTION_FIELD_NUMBER = 5;
- private com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction direction_;
- /**
- * optional .propose_direction_enum.Direction direction = 5;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .propose_direction_enum.Direction direction = 5;
- */
- public com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction getDirection() {
- return direction_;
- }
-
- private void initFields() {
- dateString_ = "";
- sgv_ = "";
- device_ = "";
- direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction.NONE;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasDateString()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSgv()) {
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getSgvBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(4, getDeviceBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeEnum(5, direction_.getNumber());
- }
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getSgvBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getDeviceBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(5, direction_.getNumber());
- }
- 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 com.ktind.cgm.bgscout.SGV.propose_direction_enum parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_enum parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_enum parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_enum parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_enum parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_enum parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_enum parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_enum parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_enum parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_enum 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(com.ktind.cgm.bgscout.SGV.propose_direction_enum 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 propose_direction_enum}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- dateString_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateString(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder clearDateString() {
- bitField0_ = (bitField0_ & ~0x00000001);
- dateString_ = getDefaultInstance().getDateString();
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateStringBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
-
- // required string sgv = 2;
- private java.lang.Object sgv_ = "";
- /**
- * required string sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required string sgv = 2;
- */
- public java.lang.String getSgv() {
- java.lang.Object ref = sgv_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- sgv_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string sgv = 2;
- */
- public com.google.protobuf.ByteString
- getSgvBytes() {
- java.lang.Object ref = sgv_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- sgv_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string sgv = 2;
- */
- public Builder setSgv(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * required string sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = getDefaultInstance().getSgv();
- onChanged();
- return this;
- }
- /**
- * required string sgv = 2;
- */
- public Builder setSgvBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
-
- // optional string device = 4;
- private java.lang.Object device_ = "";
- /**
- * optional string device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string device = 4;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- device_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string device = 4;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string device = 4;
- */
- public Builder setDevice(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string device = 4;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000004);
- device_ = getDefaultInstance().getDevice();
- onChanged();
- return this;
- }
- /**
- * optional string device = 4;
- */
- public Builder setDeviceBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- device_ = value;
- onChanged();
- return this;
- }
-
- // optional .propose_direction_enum.Direction direction = 5;
- private com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction.NONE;
- /**
- * optional .propose_direction_enum.Direction direction = 5;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .propose_direction_enum.Direction direction = 5;
- */
- public com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction getDirection() {
- return direction_;
- }
- /**
- * optional .propose_direction_enum.Direction direction = 5;
- */
- public Builder setDirection(com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional .propose_direction_enum.Direction direction = 5;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000008);
- direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_enum.Direction.NONE;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:propose_direction_enum)
- }
-
- static {
- defaultInstance = new propose_direction_enum(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:propose_direction_enum)
- }
-
- public interface propose_direction_sgvOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required string dateString = 1;
- /**
- * required string dateString = 1;
- */
- boolean hasDateString();
- /**
- * required string dateString = 1;
- */
- java.lang.String getDateString();
- /**
- * required string dateString = 1;
- */
- com.google.protobuf.ByteString
- getDateStringBytes();
-
- // required uint32 sgv = 2;
- /**
- * required uint32 sgv = 2;
- */
- boolean hasSgv();
- /**
- * required uint32 sgv = 2;
- */
- int getSgv();
-
- // optional string device = 4;
- /**
- * optional string device = 4;
- */
- boolean hasDevice();
- /**
- * optional string device = 4;
- */
- java.lang.String getDevice();
- /**
- * optional string device = 4;
- */
- com.google.protobuf.ByteString
- getDeviceBytes();
-
- // optional .propose_direction_sgv.Direction direction = 5;
- /**
- * optional .propose_direction_sgv.Direction direction = 5;
- */
- boolean hasDirection();
- /**
- * optional .propose_direction_sgv.Direction direction = 5;
- */
- com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction getDirection();
- }
- /**
- * Protobuf type {@code propose_direction_sgv}
- */
- public static final class propose_direction_sgv extends
- com.google.protobuf.GeneratedMessage
- implements propose_direction_sgvOrBuilder {
- // Use propose_direction_sgv.newBuilder() to construct.
- private propose_direction_sgv(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private propose_direction_sgv(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final propose_direction_sgv defaultInstance;
- public static propose_direction_sgv getDefaultInstance() {
- return defaultInstance;
- }
-
- public propose_direction_sgv getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private propose_direction_sgv(
- 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;
- dateString_ = input.readBytes();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readUInt32();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000004;
- device_ = input.readBytes();
- break;
- }
- case 40: {
- int rawValue = input.readEnum();
- com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction value = com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(5, rawValue);
- } else {
- bitField0_ |= 0x00000008;
- direction_ = value;
- }
- 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 com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_sgv_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_sgv_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.propose_direction_sgv.class, com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Builder.class);
- }
-
- public static com.google.protobuf.ParserNONE = 0;
- */
- NONE(0, 0),
- /**
- * DoubleUp = 1;
- */
- DoubleUp(1, 1),
- /**
- * SingleUp = 2;
- */
- SingleUp(2, 2),
- /**
- * FortyFiveUp = 3;
- */
- FortyFiveUp(3, 3),
- /**
- * Flat = 4;
- */
- Flat(4, 4),
- /**
- * FortyFiveDown = 5;
- */
- FortyFiveDown(5, 5),
- /**
- * SingleDown = 6;
- */
- SingleDown(6, 6),
- /**
- * DoubleDown = 7;
- */
- DoubleDown(7, 7),
- /**
- * NOT_COMPUTABLE = 8;
- */
- NOT_COMPUTABLE(8, 8),
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- RATE_OUT_OF_RANGE(9, 9),
- ;
-
- /**
- * NONE = 0;
- */
- public static final int NONE_VALUE = 0;
- /**
- * DoubleUp = 1;
- */
- public static final int DoubleUp_VALUE = 1;
- /**
- * SingleUp = 2;
- */
- public static final int SingleUp_VALUE = 2;
- /**
- * FortyFiveUp = 3;
- */
- public static final int FortyFiveUp_VALUE = 3;
- /**
- * Flat = 4;
- */
- public static final int Flat_VALUE = 4;
- /**
- * FortyFiveDown = 5;
- */
- public static final int FortyFiveDown_VALUE = 5;
- /**
- * SingleDown = 6;
- */
- public static final int SingleDown_VALUE = 6;
- /**
- * DoubleDown = 7;
- */
- public static final int DoubleDown_VALUE = 7;
- /**
- * NOT_COMPUTABLE = 8;
- */
- public static final int NOT_COMPUTABLE_VALUE = 8;
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- public static final int RATE_OUT_OF_RANGE_VALUE = 9;
-
-
- public final int getNumber() { return value; }
-
- public static Direction valueOf(int value) {
- switch (value) {
- case 0: return NONE;
- case 1: return DoubleUp;
- case 2: return SingleUp;
- case 3: return FortyFiveUp;
- case 4: return Flat;
- case 5: return FortyFiveDown;
- case 6: return SingleDown;
- case 7: return DoubleDown;
- case 8: return NOT_COMPUTABLE;
- case 9: return RATE_OUT_OF_RANGE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMaprequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- 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()) {
- dateString_ = s;
- }
- return s;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required uint32 sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private int sgv_;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
-
- // optional string device = 4;
- public static final int DEVICE_FIELD_NUMBER = 4;
- private java.lang.Object device_;
- /**
- * optional string device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string device = 4;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- 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()) {
- device_ = s;
- }
- return s;
- }
- }
- /**
- * optional string device = 4;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional .propose_direction_sgv.Direction direction = 5;
- public static final int DIRECTION_FIELD_NUMBER = 5;
- private com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction direction_;
- /**
- * optional .propose_direction_sgv.Direction direction = 5;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .propose_direction_sgv.Direction direction = 5;
- */
- public com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction getDirection() {
- return direction_;
- }
-
- private void initFields() {
- dateString_ = "";
- sgv_ = 0;
- device_ = "";
- direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction.NONE;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasDateString()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSgv()) {
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeUInt32(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(4, getDeviceBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeEnum(5, direction_.getNumber());
- }
- 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, getDateStringBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getDeviceBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(5, direction_.getNumber());
- }
- 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 com.ktind.cgm.bgscout.SGV.propose_direction_sgv parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv 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(com.ktind.cgm.bgscout.SGV.propose_direction_sgv 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 propose_direction_sgv}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired string dateString = 1;
- */
- public boolean hasDateString() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string dateString = 1;
- */
- public java.lang.String getDateString() {
- java.lang.Object ref = dateString_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- dateString_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public com.google.protobuf.ByteString
- getDateStringBytes() {
- java.lang.Object ref = dateString_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- dateString_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateString(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder clearDateString() {
- bitField0_ = (bitField0_ & ~0x00000001);
- dateString_ = getDefaultInstance().getDateString();
- onChanged();
- return this;
- }
- /**
- * required string dateString = 1;
- */
- public Builder setDateStringBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- dateString_ = value;
- onChanged();
- return this;
- }
-
- // required uint32 sgv = 2;
- private int sgv_ ;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder setSgv(int value) {
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = 0;
- onChanged();
- return this;
- }
-
- // optional string device = 4;
- private java.lang.Object device_ = "";
- /**
- * optional string device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string device = 4;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- device_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string device = 4;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string device = 4;
- */
- public Builder setDevice(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string device = 4;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000004);
- device_ = getDefaultInstance().getDevice();
- onChanged();
- return this;
- }
- /**
- * optional string device = 4;
- */
- public Builder setDeviceBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- device_ = value;
- onChanged();
- return this;
- }
-
- // optional .propose_direction_sgv.Direction direction = 5;
- private com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction.NONE;
- /**
- * optional .propose_direction_sgv.Direction direction = 5;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .propose_direction_sgv.Direction direction = 5;
- */
- public com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction getDirection() {
- return direction_;
- }
- /**
- * optional .propose_direction_sgv.Direction direction = 5;
- */
- public Builder setDirection(com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional .propose_direction_sgv.Direction direction = 5;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000008);
- direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv.Direction.NONE;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:propose_direction_sgv)
- }
-
- static {
- defaultInstance = new propose_direction_sgv(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:propose_direction_sgv)
- }
-
- public interface propose_direction_sgv_time_offsetOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required uint32 timestamp = 1;
- /**
- * required uint32 timestamp = 1;
- */
- boolean hasTimestamp();
- /**
- * required uint32 timestamp = 1;
- */
- int getTimestamp();
-
- // required uint32 sgv = 2;
- /**
- * required uint32 sgv = 2;
- */
- boolean hasSgv();
- /**
- * required uint32 sgv = 2;
- */
- int getSgv();
-
- // optional string device = 4;
- /**
- * optional string device = 4;
- */
- boolean hasDevice();
- /**
- * optional string device = 4;
- */
- java.lang.String getDevice();
- /**
- * optional string device = 4;
- */
- com.google.protobuf.ByteString
- getDeviceBytes();
-
- // optional .propose_direction_sgv_time_offset.Direction direction = 5;
- /**
- * optional .propose_direction_sgv_time_offset.Direction direction = 5;
- */
- boolean hasDirection();
- /**
- * optional .propose_direction_sgv_time_offset.Direction direction = 5;
- */
- com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction getDirection();
-
- // required sint32 offset = 6;
- /**
- * required sint32 offset = 6;
- */
- boolean hasOffset();
- /**
- * required sint32 offset = 6;
- */
- int getOffset();
- }
- /**
- * Protobuf type {@code propose_direction_sgv_time_offset}
- */
- public static final class propose_direction_sgv_time_offset extends
- com.google.protobuf.GeneratedMessage
- implements propose_direction_sgv_time_offsetOrBuilder {
- // Use propose_direction_sgv_time_offset.newBuilder() to construct.
- private propose_direction_sgv_time_offset(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private propose_direction_sgv_time_offset(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final propose_direction_sgv_time_offset defaultInstance;
- public static propose_direction_sgv_time_offset getDefaultInstance() {
- return defaultInstance;
- }
-
- public propose_direction_sgv_time_offset getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private propose_direction_sgv_time_offset(
- 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;
- timestamp_ = input.readUInt32();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readUInt32();
- break;
- }
- case 34: {
- bitField0_ |= 0x00000004;
- device_ = input.readBytes();
- break;
- }
- case 40: {
- int rawValue = input.readEnum();
- com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction value = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(5, rawValue);
- } else {
- bitField0_ |= 0x00000008;
- direction_ = value;
- }
- break;
- }
- case 48: {
- bitField0_ |= 0x00000010;
- offset_ = input.readSInt32();
- 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 com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_sgv_time_offset_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_sgv_time_offset_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.class, com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Builder.class);
- }
-
- public static com.google.protobuf.ParserNONE = 0;
- */
- NONE(0, 0),
- /**
- * DoubleUp = 1;
- */
- DoubleUp(1, 1),
- /**
- * SingleUp = 2;
- */
- SingleUp(2, 2),
- /**
- * FortyFiveUp = 3;
- */
- FortyFiveUp(3, 3),
- /**
- * Flat = 4;
- */
- Flat(4, 4),
- /**
- * FortyFiveDown = 5;
- */
- FortyFiveDown(5, 5),
- /**
- * SingleDown = 6;
- */
- SingleDown(6, 6),
- /**
- * DoubleDown = 7;
- */
- DoubleDown(7, 7),
- /**
- * NOT_COMPUTABLE = 8;
- */
- NOT_COMPUTABLE(8, 8),
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- RATE_OUT_OF_RANGE(9, 9),
- ;
-
- /**
- * NONE = 0;
- */
- public static final int NONE_VALUE = 0;
- /**
- * DoubleUp = 1;
- */
- public static final int DoubleUp_VALUE = 1;
- /**
- * SingleUp = 2;
- */
- public static final int SingleUp_VALUE = 2;
- /**
- * FortyFiveUp = 3;
- */
- public static final int FortyFiveUp_VALUE = 3;
- /**
- * Flat = 4;
- */
- public static final int Flat_VALUE = 4;
- /**
- * FortyFiveDown = 5;
- */
- public static final int FortyFiveDown_VALUE = 5;
- /**
- * SingleDown = 6;
- */
- public static final int SingleDown_VALUE = 6;
- /**
- * DoubleDown = 7;
- */
- public static final int DoubleDown_VALUE = 7;
- /**
- * NOT_COMPUTABLE = 8;
- */
- public static final int NOT_COMPUTABLE_VALUE = 8;
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- public static final int RATE_OUT_OF_RANGE_VALUE = 9;
-
-
- public final int getNumber() { return value; }
-
- public static Direction valueOf(int value) {
- switch (value) {
- case 0: return NONE;
- case 1: return DoubleUp;
- case 2: return SingleUp;
- case 3: return FortyFiveUp;
- case 4: return Flat;
- case 5: return FortyFiveDown;
- case 6: return SingleDown;
- case 7: return DoubleDown;
- case 8: return NOT_COMPUTABLE;
- case 9: return RATE_OUT_OF_RANGE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMaprequired uint32 timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required uint32 timestamp = 1;
- */
- public int getTimestamp() {
- return timestamp_;
- }
-
- // required uint32 sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private int sgv_;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
-
- // optional string device = 4;
- public static final int DEVICE_FIELD_NUMBER = 4;
- private java.lang.Object device_;
- /**
- * optional string device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string device = 4;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- 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()) {
- device_ = s;
- }
- return s;
- }
- }
- /**
- * optional string device = 4;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional .propose_direction_sgv_time_offset.Direction direction = 5;
- public static final int DIRECTION_FIELD_NUMBER = 5;
- private com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction direction_;
- /**
- * optional .propose_direction_sgv_time_offset.Direction direction = 5;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .propose_direction_sgv_time_offset.Direction direction = 5;
- */
- public com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction getDirection() {
- return direction_;
- }
-
- // required sint32 offset = 6;
- public static final int OFFSET_FIELD_NUMBER = 6;
- private int offset_;
- /**
- * required sint32 offset = 6;
- */
- public boolean hasOffset() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required sint32 offset = 6;
- */
- public int getOffset() {
- return offset_;
- }
-
- private void initFields() {
- timestamp_ = 0;
- sgv_ = 0;
- device_ = "";
- direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction.NONE;
- offset_ = 0;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasTimestamp()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSgv()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasOffset()) {
- 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.writeUInt32(1, timestamp_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeUInt32(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(4, getDeviceBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeEnum(5, direction_.getNumber());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeSInt32(6, offset_);
- }
- 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, timestamp_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(2, sgv_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getDeviceBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(5, direction_.getNumber());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt32Size(6, offset_);
- }
- 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 com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset 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(com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset 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 propose_direction_sgv_time_offset}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired uint32 timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required uint32 timestamp = 1;
- */
- public int getTimestamp() {
- return timestamp_;
- }
- /**
- * required uint32 timestamp = 1;
- */
- public Builder setTimestamp(int value) {
- bitField0_ |= 0x00000001;
- timestamp_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 timestamp = 1;
- */
- public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000001);
- timestamp_ = 0;
- onChanged();
- return this;
- }
-
- // required uint32 sgv = 2;
- private int sgv_ ;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder setSgv(int value) {
- bitField0_ |= 0x00000002;
- sgv_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 sgv = 2;
- */
- public Builder clearSgv() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sgv_ = 0;
- onChanged();
- return this;
- }
-
- // optional string device = 4;
- private java.lang.Object device_ = "";
- /**
- * optional string device = 4;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional string device = 4;
- */
- public java.lang.String getDevice() {
- java.lang.Object ref = device_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- device_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string device = 4;
- */
- public com.google.protobuf.ByteString
- getDeviceBytes() {
- java.lang.Object ref = device_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- device_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string device = 4;
- */
- public Builder setDevice(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional string device = 4;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000004);
- device_ = getDefaultInstance().getDevice();
- onChanged();
- return this;
- }
- /**
- * optional string device = 4;
- */
- public Builder setDeviceBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- device_ = value;
- onChanged();
- return this;
- }
-
- // optional .propose_direction_sgv_time_offset.Direction direction = 5;
- private com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction.NONE;
- /**
- * optional .propose_direction_sgv_time_offset.Direction direction = 5;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional .propose_direction_sgv_time_offset.Direction direction = 5;
- */
- public com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction getDirection() {
- return direction_;
- }
- /**
- * optional .propose_direction_sgv_time_offset.Direction direction = 5;
- */
- public Builder setDirection(com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- direction_ = value;
- onChanged();
- return this;
- }
- /**
- * optional .propose_direction_sgv_time_offset.Direction direction = 5;
- */
- public Builder clearDirection() {
- bitField0_ = (bitField0_ & ~0x00000008);
- direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset.Direction.NONE;
- onChanged();
- return this;
- }
-
- // required sint32 offset = 6;
- private int offset_ ;
- /**
- * required sint32 offset = 6;
- */
- public boolean hasOffset() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required sint32 offset = 6;
- */
- public int getOffset() {
- return offset_;
- }
- /**
- * required sint32 offset = 6;
- */
- public Builder setOffset(int value) {
- bitField0_ |= 0x00000010;
- offset_ = value;
- onChanged();
- return this;
- }
- /**
- * required sint32 offset = 6;
- */
- public Builder clearOffset() {
- bitField0_ = (bitField0_ & ~0x00000010);
- offset_ = 0;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:propose_direction_sgv_time_offset)
- }
-
- static {
- defaultInstance = new propose_direction_sgv_time_offset(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:propose_direction_sgv_time_offset)
- }
-
- public interface propose_direction_sgv_time_offset_deviceOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required uint32 timestamp = 1;
- /**
- * required uint32 timestamp = 1;
- */
- boolean hasTimestamp();
- /**
- * required uint32 timestamp = 1;
- */
- int getTimestamp();
-
- // required uint32 sgv = 2;
- /**
- * required uint32 sgv = 2;
- */
- boolean hasSgv();
- /**
- * required uint32 sgv = 2;
- */
- int getSgv();
-
- // optional fixed32 devhead = 5;
- /**
- * optional fixed32 devhead = 5;
- */
- boolean hasDevhead();
- /**
- * optional fixed32 devhead = 5;
- */
- int getDevhead();
-
- // optional fixed32 devtail = 6;
- /**
- * optional fixed32 devtail = 6;
- */
- boolean hasDevtail();
- /**
- * optional fixed32 devtail = 6;
- */
- int getDevtail();
-
- // required sint32 offset = 3;
- /**
- * required sint32 offset = 3;
- */
- boolean hasOffset();
- /**
- * required sint32 offset = 3;
- */
- int getOffset();
-
- // optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
- /**
- * optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
- */
- boolean hasDirection();
- /**
- * optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
- */
- com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction getDirection();
- }
- /**
- * Protobuf type {@code propose_direction_sgv_time_offset_device}
- */
- public static final class propose_direction_sgv_time_offset_device extends
- com.google.protobuf.GeneratedMessage
- implements propose_direction_sgv_time_offset_deviceOrBuilder {
- // Use propose_direction_sgv_time_offset_device.newBuilder() to construct.
- private propose_direction_sgv_time_offset_device(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private propose_direction_sgv_time_offset_device(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final propose_direction_sgv_time_offset_device defaultInstance;
- public static propose_direction_sgv_time_offset_device getDefaultInstance() {
- return defaultInstance;
- }
-
- public propose_direction_sgv_time_offset_device getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private propose_direction_sgv_time_offset_device(
- 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;
- timestamp_ = input.readUInt32();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- sgv_ = input.readUInt32();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000010;
- offset_ = input.readSInt32();
- break;
- }
- case 32: {
- int rawValue = input.readEnum();
- com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction value = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(4, rawValue);
- } else {
- bitField0_ |= 0x00000020;
- direction_ = value;
- }
- break;
- }
- case 45: {
- bitField0_ |= 0x00000004;
- devhead_ = input.readFixed32();
- break;
- }
- case 53: {
- bitField0_ |= 0x00000008;
- devtail_ = input.readFixed32();
- 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 com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_sgv_time_offset_device_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_sgv_time_offset_device_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.class, com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Builder.class);
- }
-
- public static com.google.protobuf.ParserNONE = 0;
- */
- NONE(0, 0),
- /**
- * DoubleUp = 1;
- */
- DoubleUp(1, 1),
- /**
- * SingleUp = 2;
- */
- SingleUp(2, 2),
- /**
- * FortyFiveUp = 3;
- */
- FortyFiveUp(3, 3),
- /**
- * Flat = 4;
- */
- Flat(4, 4),
- /**
- * FortyFiveDown = 5;
- */
- FortyFiveDown(5, 5),
- /**
- * SingleDown = 6;
- */
- SingleDown(6, 6),
- /**
- * DoubleDown = 7;
- */
- DoubleDown(7, 7),
- /**
- * NOT_COMPUTABLE = 8;
- */
- NOT_COMPUTABLE(8, 8),
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- RATE_OUT_OF_RANGE(9, 9),
- ;
-
- /**
- * NONE = 0;
- */
- public static final int NONE_VALUE = 0;
- /**
- * DoubleUp = 1;
- */
- public static final int DoubleUp_VALUE = 1;
- /**
- * SingleUp = 2;
- */
- public static final int SingleUp_VALUE = 2;
- /**
- * FortyFiveUp = 3;
- */
- public static final int FortyFiveUp_VALUE = 3;
- /**
- * Flat = 4;
- */
- public static final int Flat_VALUE = 4;
- /**
- * FortyFiveDown = 5;
- */
- public static final int FortyFiveDown_VALUE = 5;
- /**
- * SingleDown = 6;
- */
- public static final int SingleDown_VALUE = 6;
- /**
- * DoubleDown = 7;
- */
- public static final int DoubleDown_VALUE = 7;
- /**
- * NOT_COMPUTABLE = 8;
- */
- public static final int NOT_COMPUTABLE_VALUE = 8;
- /**
- * RATE_OUT_OF_RANGE = 9;
- */
- public static final int RATE_OUT_OF_RANGE_VALUE = 9;
-
-
- public final int getNumber() { return value; }
-
- public static Direction valueOf(int value) {
- switch (value) {
- case 0: return NONE;
- case 1: return DoubleUp;
- case 2: return SingleUp;
- case 3: return FortyFiveUp;
- case 4: return Flat;
- case 5: return FortyFiveDown;
- case 6: return SingleDown;
- case 7: return DoubleDown;
- case 8: return NOT_COMPUTABLE;
- case 9: return RATE_OUT_OF_RANGE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMaprequired uint32 timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required uint32 timestamp = 1;
- */
- public int getTimestamp() {
- return timestamp_;
- }
-
- // required uint32 sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
- private int sgv_;
- /**
- * required uint32 sgv = 2;
- */
- public boolean hasSgv() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required uint32 sgv = 2;
- */
- public int getSgv() {
- return sgv_;
- }
-
- // optional fixed32 devhead = 5;
- public static final int DEVHEAD_FIELD_NUMBER = 5;
- private int devhead_;
- /**
- * optional fixed32 devhead = 5;
- */
- public boolean hasDevhead() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional fixed32 devhead = 5;
- */
- public int getDevhead() {
- return devhead_;
- }
-
- // optional fixed32 devtail = 6;
- public static final int DEVTAIL_FIELD_NUMBER = 6;
- private int devtail_;
- /**
- * optional fixed32 devtail = 6;
- */
- public boolean hasDevtail() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional fixed32 devtail = 6;
- */
- public int getDevtail() {
- return devtail_;
- }
-
- // required sint32 offset = 3;
- public static final int OFFSET_FIELD_NUMBER = 3;
- private int offset_;
- /**
- * required sint32 offset = 3;
- */
- public boolean hasOffset() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required sint32 offset = 3;
- */
- public int getOffset() {
- return offset_;
- }
-
- // optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
- public static final int DIRECTION_FIELD_NUMBER = 4;
- private com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction direction_;
- /**
- * optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
- */
- public boolean hasDirection() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
- */
- public com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction getDirection() {
- return direction_;
- }
-
- private void initFields() {
- timestamp_ = 0;
- sgv_ = 0;
- devhead_ = 0;
- devtail_ = 0;
- offset_ = 0;
- direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction.NONE;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasTimestamp()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasSgv()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasOffset()) {
- 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.writeUInt32(1, timestamp_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeUInt32(2, sgv_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeSInt32(3, offset_);
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeEnum(4, direction_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeFixed32(5, devhead_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeFixed32(6, devtail_);
- }
- 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, timestamp_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(2, sgv_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt32Size(3, offset_);
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(4, direction_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFixed32Size(5, devhead_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFixed32Size(6, devtail_);
- }
- 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 com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device 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(com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device 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 propose_direction_sgv_time_offset_device}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired uint32 timestamp = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public Builder removeSgv(int index) { + if (sgvBuilder_ == null) { + ensureSgvIsMutable(); + sgv_.remove(index); + onChanged(); + } else { + sgvBuilder_.remove(index); + } + return this; } /** - *
required uint32 timestamp = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public int getTimestamp() { - return timestamp_; + public com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Builder getSgvBuilder( + int index) { + return getSgvFieldBuilder().getBuilder(index); } /** - *
required uint32 timestamp = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public Builder setTimestamp(int value) { - bitField0_ |= 0x00000001; - timestamp_ = value; - onChanged(); - return this; + public com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4OrBuilder getSgvOrBuilder( + int index) { + if (sgvBuilder_ == null) { + return sgv_.get(index); } else { + return sgvBuilder_.getMessageOrBuilder(index); + } } /** - *
required uint32 timestamp = 1;
+ * repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + **/ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0; - onChanged(); - return this; + public java.util.List extends com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4OrBuilder> + getSgvOrBuilderList() { + if (sgvBuilder_ != null) { + return sgvBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sgv_); + } + } + /** + *
repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + *+ */ + public com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Builder addSgvBuilder() { + return getSgvFieldBuilder().addBuilder( + com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.getDefaultInstance()); + } + /** + *
repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + *+ */ + public com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Builder addSgvBuilder( + int index) { + return getSgvFieldBuilder().addBuilder( + index, com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.getDefaultInstance()); + } + /** + *
repeated .ProposeCookieMonsterSGVG4 sgv = 1;
+ *
+ * + * Glucose records as reported by the G4 + *+ */ + public java.util.List
required uint32 sgv = 2;
+ * optional .ProposedCookieMonsterG4Download.Unit units = 2;
+ *
+ * + * Units reported by the device + **/ - public boolean hasSgv() { + public boolean hasUnits() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - *
required uint32 sgv = 2;
+ * optional .ProposedCookieMonsterG4Download.Unit units = 2;
+ *
+ * + * Units reported by the device + **/ - public int getSgv() { - return sgv_; + public com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.Unit getUnits() { + return units_; } /** - *
required uint32 sgv = 2;
+ * optional .ProposedCookieMonsterG4Download.Unit units = 2;
+ *
+ * + * Units reported by the device + **/ - public Builder setSgv(int value) { + public Builder setUnits(com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.Unit value) { + if (value == null) { + throw new NullPointerException(); + } bitField0_ |= 0x00000002; - sgv_ = value; + units_ = value; onChanged(); return this; } /** - *
required uint32 sgv = 2;
+ * optional .ProposedCookieMonsterG4Download.Unit units = 2;
+ *
+ * + * Units reported by the device + **/ - public Builder clearSgv() { + public Builder clearUnits() { bitField0_ = (bitField0_ & ~0x00000002); - sgv_ = 0; + units_ = com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.Unit.MGDL; onChanged(); return this; } - // optional fixed32 devhead = 5; - private int devhead_ ; + // required uint64 download_timestamp = 3; + private long downloadTimestamp_ ; /** - *
optional fixed32 devhead = 5;
+ * required uint64 download_timestamp = 3;
+ *
+ * + * Timestamp of the download - should be UTC + **/ - public boolean hasDevhead() { + public boolean hasDownloadTimestamp() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - *
optional fixed32 devhead = 5;
+ * required uint64 download_timestamp = 3;
+ *
+ * + * Timestamp of the download - should be UTC + **/ - public int getDevhead() { - return devhead_; + public long getDownloadTimestamp() { + return downloadTimestamp_; } /** - *
optional fixed32 devhead = 5;
+ * required uint64 download_timestamp = 3;
+ *
+ * + * Timestamp of the download - should be UTC + **/ - public Builder setDevhead(int value) { + public Builder setDownloadTimestamp(long value) { bitField0_ |= 0x00000004; - devhead_ = value; + downloadTimestamp_ = value; onChanged(); return this; } /** - *
optional fixed32 devhead = 5;
+ * required uint64 download_timestamp = 3;
+ *
+ * + * Timestamp of the download - should be UTC + **/ - public Builder clearDevhead() { + public Builder clearDownloadTimestamp() { bitField0_ = (bitField0_ & ~0x00000004); - devhead_ = 0; + downloadTimestamp_ = 0L; onChanged(); return this; } - // optional fixed32 devtail = 6; - private int devtail_ ; + // optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE]; + private com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.DownloadStatus downloadStatus_ = com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.DownloadStatus.NONE; /** - *
optional fixed32 devtail = 6;
+ * optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE];
+ *
+ * + * Status of the download + **/ - public boolean hasDevtail() { + public boolean hasDownloadStatus() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** - *
optional fixed32 devtail = 6;
+ * optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE];
+ *
+ * + * Status of the download + **/ - public int getDevtail() { - return devtail_; + public com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.DownloadStatus getDownloadStatus() { + return downloadStatus_; } /** - *
optional fixed32 devtail = 6;
+ * optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE];
+ *
+ * + * Status of the download + **/ - public Builder setDevtail(int value) { + public Builder setDownloadStatus(com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.DownloadStatus value) { + if (value == null) { + throw new NullPointerException(); + } bitField0_ |= 0x00000008; - devtail_ = value; + downloadStatus_ = value; onChanged(); return this; } /** - *
optional fixed32 devtail = 6;
+ * optional .ProposedCookieMonsterG4Download.DownloadStatus download_status = 4 [default = NONE];
+ *
+ * + * Status of the download + **/ - public Builder clearDevtail() { + public Builder clearDownloadStatus() { bitField0_ = (bitField0_ & ~0x00000008); - devtail_ = 0; + downloadStatus_ = com.ktind.cgm.bgscout.SGV.ProposedCookieMonsterG4Download.DownloadStatus.NONE; onChanged(); return this; } - // required sint32 offset = 3; - private int offset_ ; + // optional uint32 receiver_battery = 5; + private int receiverBattery_ ; /** - *
required sint32 offset = 3;
+ * optional uint32 receiver_battery = 5;
+ *
+ * + * Battery level as reported by the receiver + **/ - public boolean hasOffset() { + public boolean hasReceiverBattery() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** - *
required sint32 offset = 3;
+ * optional uint32 receiver_battery = 5;
+ *
+ * + * Battery level as reported by the receiver + **/ - public int getOffset() { - return offset_; + public int getReceiverBattery() { + return receiverBattery_; } /** - *
required sint32 offset = 3;
+ * optional uint32 receiver_battery = 5;
+ *
+ * + * Battery level as reported by the receiver + **/ - public Builder setOffset(int value) { + public Builder setReceiverBattery(int value) { bitField0_ |= 0x00000010; - offset_ = value; + receiverBattery_ = value; onChanged(); return this; } /** - *
required sint32 offset = 3;
+ * optional uint32 receiver_battery = 5;
+ *
+ * + * Battery level as reported by the receiver + **/ - public Builder clearOffset() { + public Builder clearReceiverBattery() { bitField0_ = (bitField0_ & ~0x00000010); - offset_ = 0; + receiverBattery_ = 0; onChanged(); return this; } - // optional .propose_direction_sgv_time_offset_device.Direction direction = 4; - private com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction.NONE; + // optional uint32 uploader_battery = 6; + private int uploaderBattery_ ; /** - *
optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
+ * optional uint32 uploader_battery = 6;
+ *
+ * + * Battery level as reported by the uploader + **/ - public boolean hasDirection() { + public boolean hasUploaderBattery() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** - *
optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
+ * optional uint32 uploader_battery = 6;
+ *
+ * + * Battery level as reported by the uploader + **/ - public com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction getDirection() { - return direction_; + public int getUploaderBattery() { + return uploaderBattery_; } /** - *
optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
+ * optional uint32 uploader_battery = 6;
+ *
+ * + * Battery level as reported by the uploader + **/ - public Builder setDirection(com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploaderBattery(int value) { bitField0_ |= 0x00000020; - direction_ = value; + uploaderBattery_ = value; onChanged(); return this; } /** - *
optional .propose_direction_sgv_time_offset_device.Direction direction = 4;
+ * optional uint32 uploader_battery = 6;
+ *
+ * + * Battery level as reported by the uploader + **/ - public Builder clearDirection() { + public Builder clearUploaderBattery() { bitField0_ = (bitField0_ & ~0x00000020); - direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device.Direction.NONE; + uploaderBattery_ = 0; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:propose_direction_sgv_time_offset_device) + // @@protoc_insertion_point(builder_scope:ProposedCookieMonsterG4Download) } static { - defaultInstance = new propose_direction_sgv_time_offset_device(true); + defaultInstance = new ProposedCookieMonsterG4Download(true); defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:propose_direction_sgv_time_offset_device) + // @@protoc_insertion_point(class_scope:ProposedCookieMonsterG4Download) } - public interface propose_direction_sgv_time_offset_device_bOrBuilder + public interface ProposeCookieMonsterSGVG4OrBuilder extends com.google.protobuf.MessageOrBuilder { - // required uint32 timestamp = 1; - /** - *
required uint32 timestamp = 1;
- */
- boolean hasTimestamp();
- /**
- * required uint32 timestamp = 1;
- */
- int getTimestamp();
-
- // required uint32 sgv = 2;
+ // required uint32 sgv = 1;
/**
- * required uint32 sgv = 2;
+ * required uint32 sgv = 1;
+ *
+ * + * Glucose value + **/ boolean hasSgv(); /** - *
required uint32 sgv = 2;
+ * required uint32 sgv = 1;
+ *
+ * + * Glucose value + **/ int getSgv(); - // optional bytes device = 5; - /** - *
optional bytes device = 5;
- */
- boolean hasDevice();
- /**
- * optional bytes device = 5;
- */
- com.google.protobuf.ByteString getDevice();
-
- // required sint32 offset = 3;
+ // optional uint64 timestamp = 2;
/**
- * required sint32 offset = 3;
+ * optional uint64 timestamp = 2;
+ *
+ * + * timestamp of the record + **/ - boolean hasOffset(); + boolean hasTimestamp(); /** - *
required sint32 offset = 3;
+ * optional uint64 timestamp = 2;
+ *
+ * + * timestamp of the record + **/ - int getOffset(); + long getTimestamp(); - // optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4; + // optional .ProposeCookieMonsterSGVG4.Direction direction = 3; /** - *
optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4;
+ * optional .ProposeCookieMonsterSGVG4.Direction direction = 3;
+ *
+ * + * Trend arrow + **/ boolean hasDirection(); /** - *
optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4;
+ * optional .ProposeCookieMonsterSGVG4.Direction direction = 3;
+ *
+ * + * Trend arrow + **/ - com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction getDirection(); + com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction getDirection(); } /** - * Protobuf type {@code propose_direction_sgv_time_offset_device_b} + * Protobuf type {@code ProposeCookieMonsterSGVG4} */ - public static final class propose_direction_sgv_time_offset_device_b extends + public static final class ProposeCookieMonsterSGVG4 extends com.google.protobuf.GeneratedMessage - implements propose_direction_sgv_time_offset_device_bOrBuilder { - // Use propose_direction_sgv_time_offset_device_b.newBuilder() to construct. - private propose_direction_sgv_time_offset_device_b(com.google.protobuf.GeneratedMessage.Builder> builder) { + implements ProposeCookieMonsterSGVG4OrBuilder { + // Use ProposeCookieMonsterSGVG4.newBuilder() to construct. + private ProposeCookieMonsterSGVG4(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - private propose_direction_sgv_time_offset_device_b(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private ProposeCookieMonsterSGVG4(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private static final propose_direction_sgv_time_offset_device_b defaultInstance; - public static propose_direction_sgv_time_offset_device_b getDefaultInstance() { + private static final ProposeCookieMonsterSGVG4 defaultInstance; + public static ProposeCookieMonsterSGVG4 getDefaultInstance() { return defaultInstance; } - public propose_direction_sgv_time_offset_device_b getDefaultInstanceForType() { + public ProposeCookieMonsterSGVG4 getDefaultInstanceForType() { return defaultInstance; } @@ -10725,7 +1694,7 @@ public propose_direction_sgv_time_offset_device_b getDefaultInstanceForType() { getUnknownFields() { return this.unknownFields; } - private propose_direction_sgv_time_offset_device_b( + private ProposeCookieMonsterSGVG4( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10750,35 +1719,25 @@ private propose_direction_sgv_time_offset_device_b( } case 8: { bitField0_ |= 0x00000001; - timestamp_ = input.readUInt32(); + sgv_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; - sgv_ = input.readUInt32(); + timestamp_ = input.readUInt64(); break; } case 24: { - bitField0_ |= 0x00000008; - offset_ = input.readSInt32(); - break; - } - case 32: { int rawValue = input.readEnum(); - com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction value = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction.valueOf(rawValue); + com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction value = com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction.valueOf(rawValue); if (value == null) { - unknownFields.mergeVarintField(4, rawValue); + unknownFields.mergeVarintField(3, rawValue); } else { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; direction_ = value; } break; } - case 42: { - bitField0_ |= 0x00000004; - device_ = input.readBytes(); - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10793,33 +1752,33 @@ private propose_direction_sgv_time_offset_device_b( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_sgv_time_offset_device_b_descriptor; + return com.ktind.cgm.bgscout.SGV.internal_static_ProposeCookieMonsterSGVG4_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.ktind.cgm.bgscout.SGV.internal_static_propose_direction_sgv_time_offset_device_b_fieldAccessorTable + return com.ktind.cgm.bgscout.SGV.internal_static_ProposeCookieMonsterSGVG4_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.class, com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Builder.class); + com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.class, com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Builder.class); } - public static com.google.protobuf.Parser
DoubleUp = 1;
+ * DOUBLE_UP = 1;
*/
- DoubleUp(1, 1),
+ DOUBLE_UP(1, 1),
/**
- * SingleUp = 2;
+ * SINGLE_UP = 2;
*/
- SingleUp(2, 2),
+ SINGLE_UP(2, 2),
/**
- * FortyFiveUp = 3;
+ * FORTY_FIVE_UP = 3;
*/
- FortyFiveUp(3, 3),
+ FORTY_FIVE_UP(3, 3),
/**
- * Flat = 4;
+ * FLAT = 4;
*/
- Flat(4, 4),
+ FLAT(4, 4),
/**
- * FortyFiveDown = 5;
+ * FORTY_FIVE_DOWN = 5;
*/
- FortyFiveDown(5, 5),
+ FORTY_FIVE_DOWN(5, 5),
/**
- * SingleDown = 6;
+ * SINGLE_DOWN = 6;
*/
- SingleDown(6, 6),
+ SINGLE_DOWN(6, 6),
/**
- * DoubleDown = 7;
+ * DOUBLE_DOWN = 7;
*/
- DoubleDown(7, 7),
+ DOUBLE_DOWN(7, 7),
/**
* NOT_COMPUTABLE = 8;
*/
@@ -10870,33 +1829,33 @@ public enum Direction
*/
public static final int NONE_VALUE = 0;
/**
- * DoubleUp = 1;
+ * DOUBLE_UP = 1;
*/
- public static final int DoubleUp_VALUE = 1;
+ public static final int DOUBLE_UP_VALUE = 1;
/**
- * SingleUp = 2;
+ * SINGLE_UP = 2;
*/
- public static final int SingleUp_VALUE = 2;
+ public static final int SINGLE_UP_VALUE = 2;
/**
- * FortyFiveUp = 3;
+ * FORTY_FIVE_UP = 3;
*/
- public static final int FortyFiveUp_VALUE = 3;
+ public static final int FORTY_FIVE_UP_VALUE = 3;
/**
- * Flat = 4;
+ * FLAT = 4;
*/
- public static final int Flat_VALUE = 4;
+ public static final int FLAT_VALUE = 4;
/**
- * FortyFiveDown = 5;
+ * FORTY_FIVE_DOWN = 5;
*/
- public static final int FortyFiveDown_VALUE = 5;
+ public static final int FORTY_FIVE_DOWN_VALUE = 5;
/**
- * SingleDown = 6;
+ * SINGLE_DOWN = 6;
*/
- public static final int SingleDown_VALUE = 6;
+ public static final int SINGLE_DOWN_VALUE = 6;
/**
- * DoubleDown = 7;
+ * DOUBLE_DOWN = 7;
*/
- public static final int DoubleDown_VALUE = 7;
+ public static final int DOUBLE_DOWN_VALUE = 7;
/**
* NOT_COMPUTABLE = 8;
*/
@@ -10912,13 +1871,13 @@ public enum Direction
public static Direction valueOf(int value) {
switch (value) {
case 0: return NONE;
- case 1: return DoubleUp;
- case 2: return SingleUp;
- case 3: return FortyFiveUp;
- case 4: return Flat;
- case 5: return FortyFiveDown;
- case 6: return SingleDown;
- case 7: return DoubleDown;
+ case 1: return DOUBLE_UP;
+ case 2: return SINGLE_UP;
+ case 3: return FORTY_FIVE_UP;
+ case 4: return FLAT;
+ case 5: return FORTY_FIVE_DOWN;
+ case 6: return SINGLE_DOWN;
+ case 7: return DOUBLE_DOWN;
case 8: return NOT_COMPUTABLE;
case 9: return RATE_OUT_OF_RANGE;
default: return null;
@@ -10947,7 +1906,7 @@ public Direction findValueByNumber(int number) {
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.getDescriptor().getEnumTypes().get(0);
+ return com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.getDescriptor().getEnumTypes().get(0);
}
private static final Direction[] VALUES = values();
@@ -10969,114 +1928,96 @@ private Direction(int index, int value) {
this.value = value;
}
- // @@protoc_insertion_point(enum_scope:propose_direction_sgv_time_offset_device_b.Direction)
+ // @@protoc_insertion_point(enum_scope:ProposeCookieMonsterSGVG4.Direction)
}
private int bitField0_;
- // required uint32 timestamp = 1;
- public static final int TIMESTAMP_FIELD_NUMBER = 1;
- private int timestamp_;
- /**
- * required uint32 timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required uint32 timestamp = 1;
- */
- public int getTimestamp() {
- return timestamp_;
- }
-
- // required uint32 sgv = 2;
- public static final int SGV_FIELD_NUMBER = 2;
+ // required uint32 sgv = 1;
+ public static final int SGV_FIELD_NUMBER = 1;
private int sgv_;
/**
- * required uint32 sgv = 2;
+ * required uint32 sgv = 1;
+ *
+ * + * Glucose value + **/ public boolean hasSgv() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - *
required uint32 sgv = 2;
+ * required uint32 sgv = 1;
+ *
+ * + * Glucose value + **/ public int getSgv() { return sgv_; } - // optional bytes device = 5; - public static final int DEVICE_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString device_; - /** - *
optional bytes device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional bytes device = 5;
- */
- public com.google.protobuf.ByteString getDevice() {
- return device_;
- }
-
- // required sint32 offset = 3;
- public static final int OFFSET_FIELD_NUMBER = 3;
- private int offset_;
+ // optional uint64 timestamp = 2;
+ public static final int TIMESTAMP_FIELD_NUMBER = 2;
+ private long timestamp_;
/**
- * required sint32 offset = 3;
+ * optional uint64 timestamp = 2;
+ *
+ * + * timestamp of the record + **/ - public boolean hasOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - *
required sint32 offset = 3;
+ * optional uint64 timestamp = 2;
+ *
+ * + * timestamp of the record + **/ - public int getOffset() { - return offset_; + public long getTimestamp() { + return timestamp_; } - // optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4; - public static final int DIRECTION_FIELD_NUMBER = 4; - private com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction direction_; + // optional .ProposeCookieMonsterSGVG4.Direction direction = 3; + public static final int DIRECTION_FIELD_NUMBER = 3; + private com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction direction_; /** - *
optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4;
+ * optional .ProposeCookieMonsterSGVG4.Direction direction = 3;
+ *
+ * + * Trend arrow + **/ public boolean hasDirection() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - *
optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4;
+ * optional .ProposeCookieMonsterSGVG4.Direction direction = 3;
+ *
+ * + * Trend arrow + **/ - public com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction getDirection() { + public com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction getDirection() { return direction_; } private void initFields() { - timestamp_ = 0; sgv_ = 0; - device_ = com.google.protobuf.ByteString.EMPTY; - offset_ = 0; - direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction.NONE; + timestamp_ = 0L; + direction_ = com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction.NONE; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - if (!hasTimestamp()) { - memoizedIsInitialized = 0; - return false; - } if (!hasSgv()) { memoizedIsInitialized = 0; return false; } - if (!hasOffset()) { - memoizedIsInitialized = 0; - return false; - } memoizedIsInitialized = 1; return true; } @@ -11085,19 +2026,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt32(1, timestamp_); + output.writeUInt32(1, sgv_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, sgv_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeSInt32(3, offset_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(4, direction_.getNumber()); + output.writeUInt64(2, timestamp_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(5, device_); + output.writeEnum(3, direction_.getNumber()); } getUnknownFields().writeTo(output); } @@ -11110,23 +2045,15 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, timestamp_); + .computeUInt32Size(1, sgv_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, sgv_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(3, offset_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, direction_.getNumber()); + .computeUInt64Size(2, timestamp_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, device_); + .computeEnumSize(3, direction_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -11140,53 +2067,53 @@ protected java.lang.Object writeReplace() return super.writeReplace(); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseFrom(byte[] data) + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseFrom(java.io.InputStream input) + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseDelimitedFrom(java.io.InputStream input) + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseDelimitedFrom( + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b parseFrom( + public static com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -11195,7 +2122,7 @@ public static com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b prototype) { + public static Builder newBuilder(com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4 prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @@ -11207,24 +2134,24 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code propose_direction_sgv_time_offset_device_b} + * Protobuf type {@code ProposeCookieMonsterSGVG4} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
required uint32 timestamp = 1;
- */
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required uint32 timestamp = 1;
- */
- public int getTimestamp() {
- return timestamp_;
- }
- /**
- * required uint32 timestamp = 1;
- */
- public Builder setTimestamp(int value) {
- bitField0_ |= 0x00000001;
- timestamp_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint32 timestamp = 1;
- */
- public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000001);
- timestamp_ = 0;
- onChanged();
- return this;
- }
-
- // required uint32 sgv = 2;
+ // required uint32 sgv = 1;
private int sgv_ ;
/**
- * required uint32 sgv = 2;
+ * required uint32 sgv = 1;
+ *
+ * + * Glucose value + **/ public boolean hasSgv() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - *
required uint32 sgv = 2;
+ * required uint32 sgv = 1;
+ *
+ * + * Glucose value + **/ public int getSgv() { return sgv_; } /** - *
required uint32 sgv = 2;
+ * required uint32 sgv = 1;
+ *
+ * + * Glucose value + **/ public Builder setSgv(int value) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; sgv_ = value; onChanged(); return this; } /** - *
required uint32 sgv = 2;
+ * required uint32 sgv = 1;
+ *
+ * + * Glucose value + **/ public Builder clearSgv() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); sgv_ = 0; onChanged(); return this; } - // optional bytes device = 5; - private com.google.protobuf.ByteString device_ = com.google.protobuf.ByteString.EMPTY; - /** - *
optional bytes device = 5;
- */
- public boolean hasDevice() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional bytes device = 5;
- */
- public com.google.protobuf.ByteString getDevice() {
- return device_;
- }
- /**
- * optional bytes device = 5;
- */
- public Builder setDevice(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- device_ = value;
- onChanged();
- return this;
- }
- /**
- * optional bytes device = 5;
- */
- public Builder clearDevice() {
- bitField0_ = (bitField0_ & ~0x00000004);
- device_ = getDefaultInstance().getDevice();
- onChanged();
- return this;
- }
-
- // required sint32 offset = 3;
- private int offset_ ;
+ // optional uint64 timestamp = 2;
+ private long timestamp_ ;
/**
- * required sint32 offset = 3;
+ * optional uint64 timestamp = 2;
+ *
+ * + * timestamp of the record + **/ - public boolean hasOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - *
required sint32 offset = 3;
+ * optional uint64 timestamp = 2;
+ *
+ * + * timestamp of the record + **/ - public int getOffset() { - return offset_; + public long getTimestamp() { + return timestamp_; } /** - *
required sint32 offset = 3;
+ * optional uint64 timestamp = 2;
+ *
+ * + * timestamp of the record + **/ - public Builder setOffset(int value) { - bitField0_ |= 0x00000008; - offset_ = value; + public Builder setTimestamp(long value) { + bitField0_ |= 0x00000002; + timestamp_ = value; onChanged(); return this; } /** - *
required sint32 offset = 3;
+ * optional uint64 timestamp = 2;
+ *
+ * + * timestamp of the record + **/ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000008); - offset_ = 0; + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000002); + timestamp_ = 0L; onChanged(); return this; } - // optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4; - private com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction.NONE; + // optional .ProposeCookieMonsterSGVG4.Direction direction = 3; + private com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction direction_ = com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction.NONE; /** - *
optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4;
+ * optional .ProposeCookieMonsterSGVG4.Direction direction = 3;
+ *
+ * + * Trend arrow + **/ public boolean hasDirection() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - *
optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4;
+ * optional .ProposeCookieMonsterSGVG4.Direction direction = 3;
+ *
+ * + * Trend arrow + **/ - public com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction getDirection() { + public com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction getDirection() { return direction_; } /** - *
optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4;
+ * optional .ProposeCookieMonsterSGVG4.Direction direction = 3;
+ *
+ * + * Trend arrow + **/ - public Builder setDirection(com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction value) { + public Builder setDirection(com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; direction_ = value; onChanged(); return this; } /** - *
optional .propose_direction_sgv_time_offset_device_b.Direction direction = 4;
+ * optional .ProposeCookieMonsterSGVG4.Direction direction = 3;
+ *
+ * + * Trend arrow + **/ public Builder clearDirection() { - bitField0_ = (bitField0_ & ~0x00000010); - direction_ = com.ktind.cgm.bgscout.SGV.propose_direction_sgv_time_offset_device_b.Direction.NONE; + bitField0_ = (bitField0_ & ~0x00000004); + direction_ = com.ktind.cgm.bgscout.SGV.ProposeCookieMonsterSGVG4.Direction.NONE; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:propose_direction_sgv_time_offset_device_b) + // @@protoc_insertion_point(builder_scope:ProposeCookieMonsterSGVG4) } static { - defaultInstance = new propose_direction_sgv_time_offset_device_b(true); + defaultInstance = new ProposeCookieMonsterSGVG4(true); defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:propose_direction_sgv_time_offset_device_b) + // @@protoc_insertion_point(class_scope:ProposeCookieMonsterSGVG4) } private static com.google.protobuf.Descriptors.Descriptor - internal_static_SGVUsed_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_SGVUsed_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Practical8601_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Practical8601_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_propose_1_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_propose_1_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_propose_2_timestamp_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_propose_2_timestamp_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_propose_2_timestamp_direction_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_propose_2_timestamp_direction_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_SGVUsed_sgv_int_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_SGVUsed_sgv_int_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_propose_sgv_int_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_propose_sgv_int_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_propose_direction_enum_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_propose_direction_enum_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_propose_direction_sgv_descriptor; + internal_static_ProposedCookieMonsterG4Download_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_propose_direction_sgv_fieldAccessorTable; + internal_static_ProposedCookieMonsterG4Download_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor - internal_static_propose_direction_sgv_time_offset_descriptor; + internal_static_ProposeCookieMonsterSGVG4_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_propose_direction_sgv_time_offset_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_propose_direction_sgv_time_offset_device_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_propose_direction_sgv_time_offset_device_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_propose_direction_sgv_time_offset_device_b_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_propose_direction_sgv_time_offset_device_b_fieldAccessorTable; + internal_static_ProposeCookieMonsterSGVG4_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -11623,155 +2453,44 @@ public Builder clearDirection() { descriptor; static { java.lang.String[] descriptorData = { - "\n\tSGV.proto\"[\n\007SGVUsed\022\022\n\ndateString\030\001 \002" + - "(\t\022\013\n\003sgv\030\002 \002(\t\022\014\n\004date\030\003 \002(\r\022\021\n\tdirecti" + - "on\030\004 \001(\t\022\016\n\006device\030\005 \001(\t\"\306\002\n\rPractical86" + - "01\022\021\n\ttimestamp\030\001 \001(\t\022\013\n\003sgv\030\002 \001(\r\022+\n\tdi" + - "rection\030\003 \001(\0162\030.Practical8601.Direction\022" + - "%\n\006device\030\004 \001(\0162\025.Practical8601.Device\"\024" + - "\n\006Device\022\n\n\006dexcom\020\001\"\252\001\n\tDirection\022\010\n\004NO" + - "NE\020\000\022\014\n\010DoubleUp\020\001\022\014\n\010SingleUp\020\002\022\017\n\013Fort" + - "yFiveUp\020\003\022\010\n\004Flat\020\004\022\021\n\rFortyFiveDown\020\005\022\016" + - "\n\nSingleDown\020\006\022\016\n\nDoubleDown\020\007\022\022\n\016NOT_CO", - "MPUTABLE\020\010\022\025\n\021RATE_OUT_OF_RANGE\020\t\"O\n\tpro" + - "pose_1\022\022\n\ndateString\030\001 \002(\t\022\013\n\003sgv\030\002 \002(\t\022" + - "\021\n\tdirection\030\004 \001(\t\022\016\n\006device\030\005 \001(\t\"X\n\023pr" + - "opose_2_timestamp\022\021\n\ttimestamp\030\001 \002(\t\022\013\n\003" + - "sgv\030\002 \002(\r\022\021\n\tdirection\030\004 \001(\t\022\016\n\006device\030\005" + - " \001(\t\"\271\002\n\035propose_2_timestamp_direction\022\021" + - "\n\ttimestamp\030\001 \002(\t\022\013\n\003sgv\030\002 \002(\r\022\016\n\006device" + - "\030\004 \001(\t\022;\n\tdirection\030\003 \001(\0162(.propose_2_ti" + - "mestamp_direction.Direction\"\252\001\n\tDirectio" + - "n\022\010\n\004NONE\020\000\022\014\n\010DoubleUp\020\001\022\014\n\010SingleUp\020\002\022", - "\017\n\013FortyFiveUp\020\003\022\010\n\004Flat\020\004\022\021\n\rFortyFiveD" + - "own\020\005\022\016\n\nSingleDown\020\006\022\016\n\nDoubleDown\020\007\022\022\n" + - "\016NOT_COMPUTABLE\020\010\022\025\n\021RATE_OUT_OF_RANGE\020\t" + - "\"c\n\017SGVUsed_sgv_int\022\022\n\ndateString\030\001 \002(\t\022" + - "\013\n\003sgv\030\002 \002(\r\022\014\n\004date\030\003 \002(\r\022\021\n\tdirection\030" + - "\004 \001(\t\022\016\n\006device\030\005 \001(\t\"U\n\017propose_sgv_int" + - "\022\022\n\ndateString\030\001 \002(\t\022\013\n\003sgv\030\002 \002(\r\022\021\n\tdir" + - "ection\030\004 \001(\t\022\016\n\006device\030\005 \001(\t\"\254\002\n\026propose" + - "_direction_enum\022\022\n\ndateString\030\001 \002(\t\022\013\n\003s" + - "gv\030\002 \002(\t\022\016\n\006device\030\004 \001(\t\0224\n\tdirection\030\005 ", - "\001(\0162!.propose_direction_enum.Direction\"\252" + - "\001\n\tDirection\022\010\n\004NONE\020\000\022\014\n\010DoubleUp\020\001\022\014\n\010" + - "SingleUp\020\002\022\017\n\013FortyFiveUp\020\003\022\010\n\004Flat\020\004\022\021\n" + - "\rFortyFiveDown\020\005\022\016\n\nSingleDown\020\006\022\016\n\nDoub" + - "leDown\020\007\022\022\n\016NOT_COMPUTABLE\020\010\022\025\n\021RATE_OUT" + - "_OF_RANGE\020\t\"\252\002\n\025propose_direction_sgv\022\022\n" + - "\ndateString\030\001 \002(\t\022\013\n\003sgv\030\002 \002(\r\022\016\n\006device" + - "\030\004 \001(\t\0223\n\tdirection\030\005 \001(\0162 .propose_dire" + - "ction_sgv.Direction\"\252\001\n\tDirection\022\010\n\004NON" + - "E\020\000\022\014\n\010DoubleUp\020\001\022\014\n\010SingleUp\020\002\022\017\n\013Forty", - "FiveUp\020\003\022\010\n\004Flat\020\004\022\021\n\rFortyFiveDown\020\005\022\016\n" + - "\nSingleDown\020\006\022\016\n\nDoubleDown\020\007\022\022\n\016NOT_COM" + - "PUTABLE\020\010\022\025\n\021RATE_OUT_OF_RANGE\020\t\"\321\002\n!pro" + - "pose_direction_sgv_time_offset\022\021\n\ttimest" + - "amp\030\001 \002(\r\022\013\n\003sgv\030\002 \002(\r\022\016\n\006device\030\004 \001(\t\022?" + - "\n\tdirection\030\005 \001(\0162,.propose_direction_sg" + - "v_time_offset.Direction\022\016\n\006offset\030\006 \002(\021\"" + - "\252\001\n\tDirection\022\010\n\004NONE\020\000\022\014\n\010DoubleUp\020\001\022\014\n" + - "\010SingleUp\020\002\022\017\n\013FortyFiveUp\020\003\022\010\n\004Flat\020\004\022\021" + - "\n\rFortyFiveDown\020\005\022\016\n\nSingleDown\020\006\022\016\n\nDou", - "bleDown\020\007\022\022\n\016NOT_COMPUTABLE\020\010\022\025\n\021RATE_OU" + - "T_OF_RANGE\020\t\"\361\002\n(propose_direction_sgv_t" + - "ime_offset_device\022\021\n\ttimestamp\030\001 \002(\r\022\013\n\003" + - "sgv\030\002 \002(\r\022\017\n\007devhead\030\005 \001(\007\022\017\n\007devtail\030\006 " + - "\001(\007\022\016\n\006offset\030\003 \002(\021\022F\n\tdirection\030\004 \001(\01623" + - ".propose_direction_sgv_time_offset_devic" + - "e.Direction\"\252\001\n\tDirection\022\010\n\004NONE\020\000\022\014\n\010D" + - "oubleUp\020\001\022\014\n\010SingleUp\020\002\022\017\n\013FortyFiveUp\020\003" + - "\022\010\n\004Flat\020\004\022\021\n\rFortyFiveDown\020\005\022\016\n\nSingleD" + - "own\020\006\022\016\n\nDoubleDown\020\007\022\022\n\016NOT_COMPUTABLE\020", - "\010\022\025\n\021RATE_OUT_OF_RANGE\020\t\"\343\002\n*propose_dir" + - "ection_sgv_time_offset_device_b\022\021\n\ttimes" + - "tamp\030\001 \002(\r\022\013\n\003sgv\030\002 \002(\r\022\016\n\006device\030\005 \001(\014\022" + - "\016\n\006offset\030\003 \002(\021\022H\n\tdirection\030\004 \001(\01625.pro" + - "pose_direction_sgv_time_offset_device_b." + - "Direction\"\252\001\n\tDirection\022\010\n\004NONE\020\000\022\014\n\010Dou" + - "bleUp\020\001\022\014\n\010SingleUp\020\002\022\017\n\013FortyFiveUp\020\003\022\010" + - "\n\004Flat\020\004\022\021\n\rFortyFiveDown\020\005\022\016\n\nSingleDow" + - "n\020\006\022\016\n\nDoubleDown\020\007\022\022\n\016NOT_COMPUTABLE\020\010\022" + - "\025\n\021RATE_OUT_OF_RANGE\020\tB\034\n\025com.ktind.cgm.", - "bgscoutB\003SGV" + "\n\tSGV.proto\"\272\003\n\037ProposedCookieMonsterG4D" + + "ownload\022\'\n\003sgv\030\001 \003(\0132\032.ProposeCookieMons" + + "terSGVG4\0224\n\005units\030\002 \001(\0162%.ProposedCookie" + + "MonsterG4Download.Unit\022\032\n\022download_times" + + "tamp\030\003 \002(\004\022N\n\017download_status\030\004 \001(\0162/.Pr" + + "oposedCookieMonsterG4Download.DownloadSt" + + "atus:\004NONE\022\030\n\020receiver_battery\030\005 \001(\r\022\030\n\020" + + "uploader_battery\030\006 \001(\r\"\032\n\004Unit\022\010\n\004MGDL\020\000" + + "\022\010\n\004MMOL\020\001\"|\n\016DownloadStatus\022\013\n\007SUCCESS\020" + + "\000\022\013\n\007NO_DATA\020\001\022\024\n\020DEVICE_NOT_FOUND\020\002\022\014\n\010", + "IO_ERROR\020\003\022\025\n\021APPLICATION_ERROR\020\004\022\010\n\004NON" + + "E\020\006\022\013\n\007UNKNOWN\020\007\"\251\002\n\031ProposeCookieMonste" + + "rSGVG4\022\013\n\003sgv\030\001 \002(\r\022\021\n\ttimestamp\030\002 \001(\004\0227" + + "\n\tdirection\030\003 \001(\0162$.ProposeCookieMonster" + + "SGVG4.Direction\"\262\001\n\tDirection\022\010\n\004NONE\020\000\022" + + "\r\n\tDOUBLE_UP\020\001\022\r\n\tSINGLE_UP\020\002\022\021\n\rFORTY_F" + + "IVE_UP\020\003\022\010\n\004FLAT\020\004\022\023\n\017FORTY_FIVE_DOWN\020\005\022" + + "\017\n\013SINGLE_DOWN\020\006\022\017\n\013DOUBLE_DOWN\020\007\022\022\n\016NOT" + + "_COMPUTABLE\020\010\022\025\n\021RATE_OUT_OF_RANGE\020\tB\034\n\025" + + "com.ktind.cgm.bgscoutB\003SGV" }; 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_SGVUsed_descriptor = + internal_static_ProposedCookieMonsterG4Download_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_SGVUsed_fieldAccessorTable = new + internal_static_ProposedCookieMonsterG4Download_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_SGVUsed_descriptor, - new java.lang.String[] { "DateString", "Sgv", "Date", "Direction", "Device", }); - internal_static_Practical8601_descriptor = + internal_static_ProposedCookieMonsterG4Download_descriptor, + new java.lang.String[] { "Sgv", "Units", "DownloadTimestamp", "DownloadStatus", "ReceiverBattery", "UploaderBattery", }); + internal_static_ProposeCookieMonsterSGVG4_descriptor = getDescriptor().getMessageTypes().get(1); - internal_static_Practical8601_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Practical8601_descriptor, - new java.lang.String[] { "Timestamp", "Sgv", "Direction", "Device", }); - internal_static_propose_1_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_propose_1_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_propose_1_descriptor, - new java.lang.String[] { "DateString", "Sgv", "Direction", "Device", }); - internal_static_propose_2_timestamp_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_propose_2_timestamp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_propose_2_timestamp_descriptor, - new java.lang.String[] { "Timestamp", "Sgv", "Direction", "Device", }); - internal_static_propose_2_timestamp_direction_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_propose_2_timestamp_direction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_propose_2_timestamp_direction_descriptor, - new java.lang.String[] { "Timestamp", "Sgv", "Device", "Direction", }); - internal_static_SGVUsed_sgv_int_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_SGVUsed_sgv_int_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_SGVUsed_sgv_int_descriptor, - new java.lang.String[] { "DateString", "Sgv", "Date", "Direction", "Device", }); - internal_static_propose_sgv_int_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_propose_sgv_int_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_propose_sgv_int_descriptor, - new java.lang.String[] { "DateString", "Sgv", "Direction", "Device", }); - internal_static_propose_direction_enum_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_propose_direction_enum_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_propose_direction_enum_descriptor, - new java.lang.String[] { "DateString", "Sgv", "Device", "Direction", }); - internal_static_propose_direction_sgv_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_propose_direction_sgv_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_propose_direction_sgv_descriptor, - new java.lang.String[] { "DateString", "Sgv", "Device", "Direction", }); - internal_static_propose_direction_sgv_time_offset_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_propose_direction_sgv_time_offset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_propose_direction_sgv_time_offset_descriptor, - new java.lang.String[] { "Timestamp", "Sgv", "Device", "Direction", "Offset", }); - internal_static_propose_direction_sgv_time_offset_device_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_propose_direction_sgv_time_offset_device_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_propose_direction_sgv_time_offset_device_descriptor, - new java.lang.String[] { "Timestamp", "Sgv", "Devhead", "Devtail", "Offset", "Direction", }); - internal_static_propose_direction_sgv_time_offset_device_b_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_propose_direction_sgv_time_offset_device_b_fieldAccessorTable = new + internal_static_ProposeCookieMonsterSGVG4_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_propose_direction_sgv_time_offset_device_b_descriptor, - new java.lang.String[] { "Timestamp", "Sgv", "Device", "Offset", "Direction", }); + internal_static_ProposeCookieMonsterSGVG4_descriptor, + new java.lang.String[] { "Sgv", "Timestamp", "Direction", }); return null; } }; diff --git a/mobile/src/main/java/com/ktind/cgm/bgscout/SGV.proto b/mobile/src/main/java/com/ktind/cgm/bgscout/SGV.proto index 95610a4..69e9416 100644 --- a/mobile/src/main/java/com/ktind/cgm/bgscout/SGV.proto +++ b/mobile/src/main/java/com/ktind/cgm/bgscout/SGV.proto @@ -1,212 +1,48 @@ -//package bgscout; - option java_package = "com.ktind.cgm.bgscout"; option java_outer_classname = "SGV"; -message SGVUsed { - required string dateString = 1; - required string sgv = 2; - required uint32 date = 3; - optional string direction = 4; - optional string device = 5; - -} - -message Practical8601 { - optional string timestamp = 1; - optional uint32 sgv = 2; - - enum Device { - dexcom = 1; - } - - enum Direction { - NONE = 0; - DoubleUp = 1; - SingleUp = 2; - FortyFiveUp = 3; - Flat = 4; - FortyFiveDown = 5; - SingleDown = 6; - DoubleDown = 7; - NOT_COMPUTABLE = 8; - RATE_OUT_OF_RANGE = 9; - } - - optional Direction direction = 3; - optional Device device = 4; - -} - -// in no particular order - -message propose_1 { - required string dateString = 1; - required string sgv = 2; - optional string direction = 4; - optional string device = 5; - -} - -message propose_2_timestamp { - required string timestamp = 1; - required uint32 sgv = 2; - optional string direction = 4; - optional string device = 5; - -} - -message propose_2_timestamp_direction { - required string timestamp = 1; - required uint32 sgv = 2; - optional string device = 4; - - enum Direction { - NONE = 0; - DoubleUp = 1; - SingleUp = 2; - FortyFiveUp = 3; - Flat = 4; - FortyFiveDown = 5; - SingleDown = 6; - DoubleDown = 7; - NOT_COMPUTABLE = 8; - RATE_OUT_OF_RANGE = 9; - } - - optional Direction direction = 3; - -} - - -message SGVUsed_sgv_int { - required string dateString = 1; - required uint32 sgv = 2; - required uint32 date = 3; - optional string direction = 4; - optional string device = 5; - -} - -message propose_sgv_int { - required string dateString = 1; - required uint32 sgv = 2; - optional string direction = 4; - optional string device = 5; -} - - -message propose_direction_enum { - required string dateString = 1; - required string sgv = 2; - optional string device = 4; - - enum Direction { - NONE = 0; - DoubleUp = 1; - SingleUp = 2; - FortyFiveUp = 3; - Flat = 4; - FortyFiveDown = 5; - SingleDown = 6; - DoubleDown = 7; - NOT_COMPUTABLE = 8; - RATE_OUT_OF_RANGE = 9; - } - - optional Direction direction = 5; - -} - -message propose_direction_sgv { - required string dateString = 1; - required uint32 sgv = 2; - optional string device = 4; - - enum Direction { - NONE = 0; - DoubleUp = 1; - SingleUp = 2; - FortyFiveUp = 3; - Flat = 4; - FortyFiveDown = 5; - SingleDown = 6; - DoubleDown = 7; - NOT_COMPUTABLE = 8; - RATE_OUT_OF_RANGE = 9; - } - - optional Direction direction = 5; -} - -message propose_direction_sgv_time_offset { - required uint32 timestamp = 1; - required uint32 sgv = 2; - optional string device = 4; - - enum Direction { - NONE = 0; - DoubleUp = 1; - SingleUp = 2; - FortyFiveUp = 3; - Flat = 4; - FortyFiveDown = 5; - SingleDown = 6; - DoubleDown = 7; - NOT_COMPUTABLE = 8; - RATE_OUT_OF_RANGE = 9; - } - - optional Direction direction = 5; - required sint32 offset = 6; - -} - -message propose_direction_sgv_time_offset_device { - required uint32 timestamp = 1; - required uint32 sgv = 2; - optional fixed32 devhead = 5; - optional fixed32 devtail = 6; - - enum Direction { - NONE = 0; - DoubleUp = 1; - SingleUp = 2; - FortyFiveUp = 3; - Flat = 4; - FortyFiveDown = 5; - SingleDown = 6; - DoubleDown = 7; - NOT_COMPUTABLE = 8; - RATE_OUT_OF_RANGE = 9; - } - - required sint32 offset = 3; - optional Direction direction = 4; - -} - -message propose_direction_sgv_time_offset_device_b { - required uint32 timestamp = 1; - required uint32 sgv = 2; - optional bytes device = 5; - - enum Direction { - NONE = 0; - DoubleUp = 1; - SingleUp = 2; - FortyFiveUp = 3; - Flat = 4; - FortyFiveDown = 5; - SingleDown = 6; - DoubleDown = 7; - NOT_COMPUTABLE = 8; - RATE_OUT_OF_RANGE = 9; - } - - required sint32 offset = 3; - optional Direction direction = 4; - -} - -//~/Desktop/protobuf-2.5.0/src/protoc -I=/Users/klee24/Desktop/BGScout/mobile/src/main/java/com/ktind/cgm/bgscout/ --java_out=/Users/klee24/Desktop/BGScout/mobile/src/main/java/com/ktind/cgm/bgscout/ /Users/klee24/Desktop/BGScout/mobile/src/main/java/com/ktind/cgm/bgscout/SGVUsed.proto \ No newline at end of file +message ProposedCookieMonsterG4Download { + repeated ProposeCookieMonsterSGVG4 sgv = 1; // Glucose records as reported by the G4 + enum Unit { + MGDL = 0; + MMOL = 1; + } + optional Unit units = 2; // Units reported by the device + required uint64 download_timestamp = 3; // Timestamp of the download - should be UTC + enum DownloadStatus { + SUCCESS = 0; + NO_DATA = 1; + DEVICE_NOT_FOUND = 2; + IO_ERROR = 3; + APPLICATION_ERROR = 4; + NONE = 6; + UNKNOWN = 7; + } + optional DownloadStatus download_status = 4 [default = NONE]; // Status of the download + optional uint32 receiver_battery = 5; // Battery level as reported by the receiver + optional uint32 uploader_battery = 6; // Battery level as reported by the uploader + optional uint32 isig = 7; // Insterstitial Signal + optional uint32 rssi = 8; // Received Signal Strength Indication +} + + +message ProposeCookieMonsterSGVG4 { + required uint32 sgv = 1; // Glucose value + optional uint64 timestamp = 2; // timestamp of the record + enum Direction { + NONE = 0; + DOUBLE_UP = 1; + SINGLE_UP = 2; + FORTY_FIVE_UP = 3; + FLAT = 4; + FORTY_FIVE_DOWN = 5; + SINGLE_DOWN = 6; + DOUBLE_DOWN = 7; + NOT_COMPUTABLE = 8; + RATE_OUT_OF_RANGE = 9; + } + optional Direction direction = 3; // Trend arrow +} + + +//~/Desktop/protobuf-2.5.0/src/protoc -I=/Users/klee24/Desktop/BGScout/mobile/src/main/java/com/ktind/cgm/bgscout/ --java_out=/Users/klee24/Desktop/BGScout/mobile/src/main/java/com/ktind/cgm/bgscout/ /Users/klee24/Desktop/BGScout/mobile/src/main/java/com/ktind/cgm/bgscout/SGV.proto diff --git a/mobile/src/main/res/xml/device_filter.xml b/mobile/src/main/res/xml/device_filter.xml index ea07578..8380f1f 100644 --- a/mobile/src/main/res/xml/device_filter.xml +++ b/mobile/src/main/res/xml/device_filter.xml @@ -15,4 +15,5 @@ -->