mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-15 10:18:45 +00:00
bug6059: generated protobuf sources for Igtimi Windbot protocol; added protobuf 4.28.3 to target platform
This commit is contained in:
Binary file not shown.
@@ -3,5 +3,6 @@
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="protobuf_generated"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
||||
@@ -18,7 +18,8 @@ Require-Bundle: org.json.simple;bundle-version="1.1.0",
|
||||
com.sap.sse.common,
|
||||
com.sap.sse,
|
||||
com.sap.sse.security,
|
||||
com.sap.sse.security.common
|
||||
com.sap.sse.security.common,
|
||||
com.google.protobuf;bundle-version="2.4.1"
|
||||
Import-Package: com.sap.sse.security.shared,
|
||||
javax.xml.bind,
|
||||
org.apache.commons.lang,
|
||||
@@ -41,7 +42,9 @@ Import-Package: com.sap.sse.security.shared,
|
||||
org.osgi.framework;version="1.7.0",
|
||||
org.osgi.util.tracker;version="1.5.1"
|
||||
Bundle-Activator: com.sap.sailing.domain.igtimiadapter.impl.Activator
|
||||
Export-Package: com.sap.sailing.domain.igtimiadapter,
|
||||
Export-Package: com.igtimi,
|
||||
com.igtimi.timesync.proto,
|
||||
com.sap.sailing.domain.igtimiadapter,
|
||||
com.sap.sailing.domain.igtimiadapter.datatypes,
|
||||
com.sap.sailing.domain.igtimiadapter.impl;x-friends:="com.sap.sailing.domain.igtimiadapter.gateway",
|
||||
com.sap.sailing.domain.igtimiadapter.shared
|
||||
|
||||
+38971
File diff suppressed because it is too large
Load Diff
+41104
File diff suppressed because it is too large
Load Diff
+5054
File diff suppressed because it is too large
Load Diff
+14194
File diff suppressed because it is too large
Load Diff
+1565
File diff suppressed because it is too large
Load Diff
+139
@@ -0,0 +1,139 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// NO CHECKED-IN PROTOBUF GENCODE
|
||||
// source: com/igtimi/IgtimiTimeSync.proto
|
||||
// Protobuf Java Version: 4.28.3
|
||||
|
||||
package com.igtimi.timesync.proto;
|
||||
|
||||
public interface NTPResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:com.igtimi.NTPResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 leap_indicator = 1 [json_name = "leapIndicator"];</code>
|
||||
* @return The leapIndicator.
|
||||
*/
|
||||
int getLeapIndicator();
|
||||
|
||||
/**
|
||||
* <code>uint32 version = 2 [json_name = "version"];</code>
|
||||
* @return The version.
|
||||
*/
|
||||
int getVersion();
|
||||
|
||||
/**
|
||||
* <code>uint32 mode = 3 [json_name = "mode"];</code>
|
||||
* @return The mode.
|
||||
*/
|
||||
int getMode();
|
||||
|
||||
/**
|
||||
* <code>uint32 stratum = 4 [json_name = "stratum"];</code>
|
||||
* @return The stratum.
|
||||
*/
|
||||
int getStratum();
|
||||
|
||||
/**
|
||||
* <code>uint32 poll_interval = 5 [json_name = "pollInterval"];</code>
|
||||
* @return The pollInterval.
|
||||
*/
|
||||
int getPollInterval();
|
||||
|
||||
/**
|
||||
* <code>int32 precision = 6 [json_name = "precision"];</code>
|
||||
* @return The precision.
|
||||
*/
|
||||
int getPrecision();
|
||||
|
||||
/**
|
||||
* <code>double root_delay = 7 [json_name = "rootDelay"];</code>
|
||||
* @return The rootDelay.
|
||||
*/
|
||||
double getRootDelay();
|
||||
|
||||
/**
|
||||
* <code>double root_dispersion = 8 [json_name = "rootDispersion"];</code>
|
||||
* @return The rootDispersion.
|
||||
*/
|
||||
double getRootDispersion();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* in seconds since 1900
|
||||
* </pre>
|
||||
*
|
||||
* <code>double reference_timestamp = 9 [json_name = "referenceTimestamp"];</code>
|
||||
* @return The referenceTimestamp.
|
||||
*/
|
||||
double getReferenceTimestamp();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* in seconds since 1900
|
||||
* </pre>
|
||||
*
|
||||
* <code>double originate_timestamp = 10 [json_name = "originateTimestamp"];</code>
|
||||
* @return The originateTimestamp.
|
||||
*/
|
||||
double getOriginateTimestamp();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* in seconds since 1900
|
||||
* </pre>
|
||||
*
|
||||
* <code>double receive_timestamp = 11 [json_name = "receiveTimestamp"];</code>
|
||||
* @return The receiveTimestamp.
|
||||
*/
|
||||
double getReceiveTimestamp();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* in seconds since 1900
|
||||
* </pre>
|
||||
*
|
||||
* <code>double transmit_timestamp = 12 [json_name = "transmitTimestamp"];</code>
|
||||
* @return The transmitTimestamp.
|
||||
*/
|
||||
double getTransmitTimestamp();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* These fields are not part of the standard message
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 reference_timestamp_ms_since_1970 = 13 [json_name = "referenceTimestampMs1970"];</code>
|
||||
* @return The referenceTimestampMsSince1970.
|
||||
*/
|
||||
long getReferenceTimestampMsSince1970();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* in ms since 1970
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 originate_timestamp_ms_since_1970 = 14 [json_name = "originateTimestampMs1970"];</code>
|
||||
* @return The originateTimestampMsSince1970.
|
||||
*/
|
||||
long getOriginateTimestampMsSince1970();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* in ms since 1970
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 receive_timestamp_ms_since_1970 = 15 [json_name = "receiveTimestampMs1970"];</code>
|
||||
* @return The receiveTimestampMsSince1970.
|
||||
*/
|
||||
long getReceiveTimestampMsSince1970();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* in ms since 1970
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 transmit_timestamp_ms_since_1970 = 16 [json_name = "transmitTimestampMs1970"];</code>
|
||||
* @return The transmitTimestampMsSince1970.
|
||||
*/
|
||||
long getTransmitTimestampMsSince1970();
|
||||
}
|
||||
+625
@@ -0,0 +1,625 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// NO CHECKED-IN PROTOBUF GENCODE
|
||||
// source: com/igtimi/IgtimiTimeSync.proto
|
||||
// Protobuf Java Version: 4.28.3
|
||||
|
||||
package com.igtimi.timesync.proto;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code com.igtimi.SNTPRequest}
|
||||
*/
|
||||
public final class SNTPRequest extends
|
||||
com.google.protobuf.GeneratedMessage implements
|
||||
// @@protoc_insertion_point(message_implements:com.igtimi.SNTPRequest)
|
||||
SNTPRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
static {
|
||||
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
|
||||
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
|
||||
/* major= */ 4,
|
||||
/* minor= */ 28,
|
||||
/* patch= */ 3,
|
||||
/* suffix= */ "",
|
||||
SNTPRequest.class.getName());
|
||||
}
|
||||
// Use SNTPRequest.newBuilder() to construct.
|
||||
private SNTPRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private SNTPRequest() {
|
||||
}
|
||||
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.igtimi.timesync.proto.TimeSyncProto.internal_static_com_igtimi_SNTPRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.igtimi.timesync.proto.TimeSyncProto.internal_static_com_igtimi_SNTPRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.igtimi.timesync.proto.SNTPRequest.class, com.igtimi.timesync.proto.SNTPRequest.Builder.class);
|
||||
}
|
||||
|
||||
private int sendTimestampCase_ = 0;
|
||||
@SuppressWarnings("serial")
|
||||
private java.lang.Object sendTimestamp_;
|
||||
public enum SendTimestampCase
|
||||
implements com.google.protobuf.Internal.EnumLite,
|
||||
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
|
||||
SECONDS_SINCE_1900(1),
|
||||
MS_SINCE_1970(2),
|
||||
SENDTIMESTAMP_NOT_SET(0);
|
||||
private final int value;
|
||||
private SendTimestampCase(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
/**
|
||||
* @param value The number of the enum to look for.
|
||||
* @return The enum associated with the given number.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static SendTimestampCase valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
public static SendTimestampCase forNumber(int value) {
|
||||
switch (value) {
|
||||
case 1: return SECONDS_SINCE_1900;
|
||||
case 2: return MS_SINCE_1970;
|
||||
case 0: return SENDTIMESTAMP_NOT_SET;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
public int getNumber() {
|
||||
return this.value;
|
||||
}
|
||||
};
|
||||
|
||||
public SendTimestampCase
|
||||
getSendTimestampCase() {
|
||||
return SendTimestampCase.forNumber(
|
||||
sendTimestampCase_);
|
||||
}
|
||||
|
||||
public static final int SECONDS_SINCE_1900_FIELD_NUMBER = 1;
|
||||
/**
|
||||
* <code>double seconds_since_1900 = 1 [json_name = "secondsSince1900"];</code>
|
||||
* @return Whether the secondsSince1900 field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasSecondsSince1900() {
|
||||
return sendTimestampCase_ == 1;
|
||||
}
|
||||
/**
|
||||
* <code>double seconds_since_1900 = 1 [json_name = "secondsSince1900"];</code>
|
||||
* @return The secondsSince1900.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public double getSecondsSince1900() {
|
||||
if (sendTimestampCase_ == 1) {
|
||||
return (java.lang.Double) sendTimestamp_;
|
||||
}
|
||||
return 0D;
|
||||
}
|
||||
|
||||
public static final int MS_SINCE_1970_FIELD_NUMBER = 2;
|
||||
/**
|
||||
* <code>uint64 ms_since_1970 = 2 [json_name = "msSince1970"];</code>
|
||||
* @return Whether the msSince1970 field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasMsSince1970() {
|
||||
return sendTimestampCase_ == 2;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 ms_since_1970 = 2 [json_name = "msSince1970"];</code>
|
||||
* @return The msSince1970.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public long getMsSince1970() {
|
||||
if (sendTimestampCase_ == 2) {
|
||||
return (java.lang.Long) sendTimestamp_;
|
||||
}
|
||||
return 0L;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (sendTimestampCase_ == 1) {
|
||||
output.writeDouble(
|
||||
1, (double)((java.lang.Double) sendTimestamp_));
|
||||
}
|
||||
if (sendTimestampCase_ == 2) {
|
||||
output.writeUInt64(
|
||||
2, (long)((java.lang.Long) sendTimestamp_));
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (sendTimestampCase_ == 1) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeDoubleSize(
|
||||
1, (double)((java.lang.Double) sendTimestamp_));
|
||||
}
|
||||
if (sendTimestampCase_ == 2) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(
|
||||
2, (long)((java.lang.Long) sendTimestamp_));
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.igtimi.timesync.proto.SNTPRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.igtimi.timesync.proto.SNTPRequest other = (com.igtimi.timesync.proto.SNTPRequest) obj;
|
||||
|
||||
if (!getSendTimestampCase().equals(other.getSendTimestampCase())) return false;
|
||||
switch (sendTimestampCase_) {
|
||||
case 1:
|
||||
if (java.lang.Double.doubleToLongBits(getSecondsSince1900())
|
||||
!= java.lang.Double.doubleToLongBits(
|
||||
other.getSecondsSince1900())) return false;
|
||||
break;
|
||||
case 2:
|
||||
if (getMsSince1970()
|
||||
!= other.getMsSince1970()) return false;
|
||||
break;
|
||||
case 0:
|
||||
default:
|
||||
}
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
switch (sendTimestampCase_) {
|
||||
case 1:
|
||||
hash = (37 * hash) + SECONDS_SINCE_1900_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
java.lang.Double.doubleToLongBits(getSecondsSince1900()));
|
||||
break;
|
||||
case 2:
|
||||
hash = (37 * hash) + MS_SINCE_1970_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getMsSince1970());
|
||||
break;
|
||||
case 0:
|
||||
default:
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessage
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessage
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessage
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessage
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessage
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.igtimi.timesync.proto.SNTPRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessage
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.igtimi.timesync.proto.SNTPRequest prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code com.igtimi.SNTPRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:com.igtimi.SNTPRequest)
|
||||
com.igtimi.timesync.proto.SNTPRequestOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.igtimi.timesync.proto.TimeSyncProto.internal_static_com_igtimi_SNTPRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.igtimi.timesync.proto.TimeSyncProto.internal_static_com_igtimi_SNTPRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.igtimi.timesync.proto.SNTPRequest.class, com.igtimi.timesync.proto.SNTPRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.igtimi.timesync.proto.SNTPRequest.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
sendTimestampCase_ = 0;
|
||||
sendTimestamp_ = null;
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.igtimi.timesync.proto.TimeSyncProto.internal_static_com_igtimi_SNTPRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.igtimi.timesync.proto.SNTPRequest getDefaultInstanceForType() {
|
||||
return com.igtimi.timesync.proto.SNTPRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.igtimi.timesync.proto.SNTPRequest build() {
|
||||
com.igtimi.timesync.proto.SNTPRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.igtimi.timesync.proto.SNTPRequest buildPartial() {
|
||||
com.igtimi.timesync.proto.SNTPRequest result = new com.igtimi.timesync.proto.SNTPRequest(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
buildPartialOneofs(result);
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.igtimi.timesync.proto.SNTPRequest result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
}
|
||||
|
||||
private void buildPartialOneofs(com.igtimi.timesync.proto.SNTPRequest result) {
|
||||
result.sendTimestampCase_ = sendTimestampCase_;
|
||||
result.sendTimestamp_ = this.sendTimestamp_;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.igtimi.timesync.proto.SNTPRequest) {
|
||||
return mergeFrom((com.igtimi.timesync.proto.SNTPRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.igtimi.timesync.proto.SNTPRequest other) {
|
||||
if (other == com.igtimi.timesync.proto.SNTPRequest.getDefaultInstance()) return this;
|
||||
switch (other.getSendTimestampCase()) {
|
||||
case SECONDS_SINCE_1900: {
|
||||
setSecondsSince1900(other.getSecondsSince1900());
|
||||
break;
|
||||
}
|
||||
case MS_SINCE_1970: {
|
||||
setMsSince1970(other.getMsSince1970());
|
||||
break;
|
||||
}
|
||||
case SENDTIMESTAMP_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 9: {
|
||||
sendTimestamp_ = input.readDouble();
|
||||
sendTimestampCase_ = 1;
|
||||
break;
|
||||
} // case 9
|
||||
case 16: {
|
||||
sendTimestamp_ = input.readUInt64();
|
||||
sendTimestampCase_ = 2;
|
||||
break;
|
||||
} // case 16
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int sendTimestampCase_ = 0;
|
||||
private java.lang.Object sendTimestamp_;
|
||||
public SendTimestampCase
|
||||
getSendTimestampCase() {
|
||||
return SendTimestampCase.forNumber(
|
||||
sendTimestampCase_);
|
||||
}
|
||||
|
||||
public Builder clearSendTimestamp() {
|
||||
sendTimestampCase_ = 0;
|
||||
sendTimestamp_ = null;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int bitField0_;
|
||||
|
||||
/**
|
||||
* <code>double seconds_since_1900 = 1 [json_name = "secondsSince1900"];</code>
|
||||
* @return Whether the secondsSince1900 field is set.
|
||||
*/
|
||||
public boolean hasSecondsSince1900() {
|
||||
return sendTimestampCase_ == 1;
|
||||
}
|
||||
/**
|
||||
* <code>double seconds_since_1900 = 1 [json_name = "secondsSince1900"];</code>
|
||||
* @return The secondsSince1900.
|
||||
*/
|
||||
public double getSecondsSince1900() {
|
||||
if (sendTimestampCase_ == 1) {
|
||||
return (java.lang.Double) sendTimestamp_;
|
||||
}
|
||||
return 0D;
|
||||
}
|
||||
/**
|
||||
* <code>double seconds_since_1900 = 1 [json_name = "secondsSince1900"];</code>
|
||||
* @param value The secondsSince1900 to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setSecondsSince1900(double value) {
|
||||
|
||||
sendTimestampCase_ = 1;
|
||||
sendTimestamp_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>double seconds_since_1900 = 1 [json_name = "secondsSince1900"];</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearSecondsSince1900() {
|
||||
if (sendTimestampCase_ == 1) {
|
||||
sendTimestampCase_ = 0;
|
||||
sendTimestamp_ = null;
|
||||
onChanged();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>uint64 ms_since_1970 = 2 [json_name = "msSince1970"];</code>
|
||||
* @return Whether the msSince1970 field is set.
|
||||
*/
|
||||
public boolean hasMsSince1970() {
|
||||
return sendTimestampCase_ == 2;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 ms_since_1970 = 2 [json_name = "msSince1970"];</code>
|
||||
* @return The msSince1970.
|
||||
*/
|
||||
public long getMsSince1970() {
|
||||
if (sendTimestampCase_ == 2) {
|
||||
return (java.lang.Long) sendTimestamp_;
|
||||
}
|
||||
return 0L;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 ms_since_1970 = 2 [json_name = "msSince1970"];</code>
|
||||
* @param value The msSince1970 to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setMsSince1970(long value) {
|
||||
|
||||
sendTimestampCase_ = 2;
|
||||
sendTimestamp_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 ms_since_1970 = 2 [json_name = "msSince1970"];</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearMsSince1970() {
|
||||
if (sendTimestampCase_ == 2) {
|
||||
sendTimestampCase_ = 0;
|
||||
sendTimestamp_ = null;
|
||||
onChanged();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:com.igtimi.SNTPRequest)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:com.igtimi.SNTPRequest)
|
||||
private static final com.igtimi.timesync.proto.SNTPRequest DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.igtimi.timesync.proto.SNTPRequest();
|
||||
}
|
||||
|
||||
public static com.igtimi.timesync.proto.SNTPRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<SNTPRequest>
|
||||
PARSER = new com.google.protobuf.AbstractParser<SNTPRequest>() {
|
||||
@java.lang.Override
|
||||
public SNTPRequest parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<SNTPRequest> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<SNTPRequest> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.igtimi.timesync.proto.SNTPRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// NO CHECKED-IN PROTOBUF GENCODE
|
||||
// source: com/igtimi/IgtimiTimeSync.proto
|
||||
// Protobuf Java Version: 4.28.3
|
||||
|
||||
package com.igtimi.timesync.proto;
|
||||
|
||||
public interface SNTPRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:com.igtimi.SNTPRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>double seconds_since_1900 = 1 [json_name = "secondsSince1900"];</code>
|
||||
* @return Whether the secondsSince1900 field is set.
|
||||
*/
|
||||
boolean hasSecondsSince1900();
|
||||
/**
|
||||
* <code>double seconds_since_1900 = 1 [json_name = "secondsSince1900"];</code>
|
||||
* @return The secondsSince1900.
|
||||
*/
|
||||
double getSecondsSince1900();
|
||||
|
||||
/**
|
||||
* <code>uint64 ms_since_1970 = 2 [json_name = "msSince1970"];</code>
|
||||
* @return Whether the msSince1970 field is set.
|
||||
*/
|
||||
boolean hasMsSince1970();
|
||||
/**
|
||||
* <code>uint64 ms_since_1970 = 2 [json_name = "msSince1970"];</code>
|
||||
* @return The msSince1970.
|
||||
*/
|
||||
long getMsSince1970();
|
||||
|
||||
com.igtimi.timesync.proto.SNTPRequest.SendTimestampCase getSendTimestampCase();
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// NO CHECKED-IN PROTOBUF GENCODE
|
||||
// source: com/igtimi/IgtimiTimeSync.proto
|
||||
// Protobuf Java Version: 4.28.3
|
||||
|
||||
package com.igtimi.timesync.proto;
|
||||
|
||||
public final class TimeSyncProto {
|
||||
private TimeSyncProto() {}
|
||||
static {
|
||||
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
|
||||
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
|
||||
/* major= */ 4,
|
||||
/* minor= */ 28,
|
||||
/* patch= */ 3,
|
||||
/* suffix= */ "",
|
||||
TimeSyncProto.class.getName());
|
||||
}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_com_igtimi_SNTPRequest_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_com_igtimi_SNTPRequest_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_com_igtimi_NTPResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
||||
internal_static_com_igtimi_NTPResponse_fieldAccessorTable;
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\037com/igtimi/IgtimiTimeSync.proto\022\ncom.i" +
|
||||
"gtimi\"u\n\013SNTPRequest\022.\n\022seconds_since_19" +
|
||||
"00\030\001 \001(\001H\000R\020secondsSince1900\022$\n\rms_since" +
|
||||
"_1970\030\002 \001(\004H\000R\013msSince1970B\020\n\016send_times" +
|
||||
"tamp\"\323\005\n\013NTPResponse\022%\n\016leap_indicator\030\001" +
|
||||
" \001(\rR\rleapIndicator\022\030\n\007version\030\002 \001(\rR\007ve" +
|
||||
"rsion\022\022\n\004mode\030\003 \001(\rR\004mode\022\030\n\007stratum\030\004 \001" +
|
||||
"(\rR\007stratum\022#\n\rpoll_interval\030\005 \001(\rR\014poll" +
|
||||
"Interval\022\034\n\tprecision\030\006 \001(\005R\tprecision\022\035" +
|
||||
"\n\nroot_delay\030\007 \001(\001R\trootDelay\022\'\n\017root_di" +
|
||||
"spersion\030\010 \001(\001R\016rootDispersion\022/\n\023refere" +
|
||||
"nce_timestamp\030\t \001(\001R\022referenceTimestamp\022" +
|
||||
"/\n\023originate_timestamp\030\n \001(\001R\022originateT" +
|
||||
"imestamp\022+\n\021receive_timestamp\030\013 \001(\001R\020rec" +
|
||||
"eiveTimestamp\022-\n\022transmit_timestamp\030\014 \001(" +
|
||||
"\001R\021transmitTimestamp\022C\n!reference_timest" +
|
||||
"amp_ms_since_1970\030\r \001(\004R\030referenceTimest" +
|
||||
"ampMs1970\022C\n!originate_timestamp_ms_sinc" +
|
||||
"e_1970\030\016 \001(\004R\030originateTimestampMs1970\022?" +
|
||||
"\n\037receive_timestamp_ms_since_1970\030\017 \001(\004R" +
|
||||
"\026receiveTimestampMs1970\022A\n transmit_time" +
|
||||
"stamp_ms_since_1970\030\020 \001(\004R\027transmitTimes" +
|
||||
"tampMs19702N\n\014SNTPTimeSync\022>\n\010SyncTime\022\027" +
|
||||
".com.igtimi.SNTPRequest\032\027.com.igtimi.NTP" +
|
||||
"Response\"\000B.\n\031com.igtimi.timesync.protoB" +
|
||||
"\rTimeSyncProtoH\001P\001b\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_com_igtimi_SNTPRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_com_igtimi_SNTPRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
internal_static_com_igtimi_SNTPRequest_descriptor,
|
||||
new java.lang.String[] { "SecondsSince1900", "MsSince1970", "SendTimestamp", });
|
||||
internal_static_com_igtimi_NTPResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(1);
|
||||
internal_static_com_igtimi_NTPResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
||||
internal_static_com_igtimi_NTPResponse_descriptor,
|
||||
new java.lang.String[] { "LeapIndicator", "Version", "Mode", "Stratum", "PollInterval", "Precision", "RootDelay", "RootDispersion", "ReferenceTimestamp", "OriginateTimestamp", "ReceiveTimestamp", "TransmitTimestamp", "ReferenceTimestampMsSince1970", "OriginateTimestampMsSince1970", "ReceiveTimestampMsSince1970", "TransmitTimestampMsSince1970", });
|
||||
descriptor.resolveAllFeaturesImmutable();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
||||
@@ -482,4 +482,20 @@
|
||||
version="1.0.0"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="com.google.protobuf"
|
||||
feature="true"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="4.28.3"
|
||||
unpack="false"/>
|
||||
|
||||
<plugin
|
||||
id="com.google.protobuf.source"
|
||||
feature="true"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="4.28.3"
|
||||
unpack="false"/>
|
||||
|
||||
</feature>
|
||||
|
||||
BIN
Binary file not shown.
Binary file not shown.
@@ -420,6 +420,8 @@
|
||||
<plugin id="com.amazonaws.aws-lambda-java-core"/>
|
||||
<plugin id="com.amazonaws.aws-lambda-java-core.source"/>
|
||||
<plugin id="javax.cache.api"/>
|
||||
<plugin id="com.google.protobuf"/>
|
||||
<plugin id="com.google.protobuf.source"/>
|
||||
</includeBundles>
|
||||
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
</target>
|
||||
</target>
|
||||
|
||||
Reference in New Issue
Block a user