Skip to content

Package: KuraPayloadProto$KuraPayload$KuraPosition

KuraPayloadProto$KuraPayload$KuraPosition

nameinstructionbranchcomplexitylinemethod
KuraPayloadProto.KuraPayload.KuraPosition()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
KuraPayloadProto.KuraPayload.KuraPosition(GeneratedMessageV3.Builder)
M: 7 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
equals(Object)
M: 197 C: 0
0%
M: 60 C: 0
0%
M: 31 C: 0
0%
M: 49 C: 0
0%
M: 1 C: 0
0%
getAltitude()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getDefaultInstance()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getDefaultInstanceForType()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getDescriptor()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getHeading()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getLatitude()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getLongitude()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getParserForType()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPrecision()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getSatellites()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getSerializedSize()
M: 129 C: 0
0%
M: 20 C: 0
0%
M: 11 C: 0
0%
M: 33 C: 0
0%
M: 1 C: 0
0%
getSpeed()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getStatus()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getTimestamp()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getUnknownFields()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasAltitude()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasHeading()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasLatitude()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasLongitude()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasPrecision()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasSatellites()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasSpeed()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasStatus()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hasTimestamp()
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hashCode()
M: 185 C: 0
0%
M: 20 C: 0
0%
M: 11 C: 0
0%
M: 41 C: 0
0%
M: 1 C: 0
0%
internalGetFieldAccessorTable()
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
isInitialized()
M: 33 C: 0
0%
M: 8 C: 0
0%
M: 5 C: 0
0%
M: 11 C: 0
0%
M: 1 C: 0
0%
newBuilder()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
newBuilder(KuraPayloadProto.KuraPayload.KuraPosition)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
newBuilderForType()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
newBuilderForType(GeneratedMessageV3.BuilderParent)
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
newInstance(GeneratedMessageV3.UnusedPrivateParameter)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
parseDelimitedFrom(InputStream)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
parseDelimitedFrom(InputStream, ExtensionRegistryLite)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
parseFrom(ByteBuffer)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
parseFrom(ByteBuffer, ExtensionRegistryLite)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
parseFrom(ByteString)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
parseFrom(ByteString, ExtensionRegistryLite)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
parseFrom(CodedInputStream)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
parseFrom(CodedInputStream, ExtensionRegistryLite)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
parseFrom(InputStream)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
parseFrom(InputStream, ExtensionRegistryLite)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
parseFrom(byte[])
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
parseFrom(byte[], ExtensionRegistryLite)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
parser()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
toBuilder()
M: 15 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
writeTo(CodedOutputStream)
M: 95 C: 0
0%
M: 18 C: 0
0%
M: 10 C: 0
0%
M: 20 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2023 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13:
14: // Generated by the protocol buffer compiler. DO NOT EDIT!
15: // source: kurapayload.proto
16:
17: package org.eclipse.kapua.kura.simulator.proto;
18:
19: public final class KuraPayloadProto {
20: private KuraPayloadProto() {}
21: public static void registerAllExtensions(
22: com.google.protobuf.ExtensionRegistryLite registry) {
23: }
24:
25: public static void registerAllExtensions(
26: com.google.protobuf.ExtensionRegistry registry) {
27: registerAllExtensions(
28: (com.google.protobuf.ExtensionRegistryLite) registry);
29: }
30: public interface KuraPayloadOrBuilder extends
31: // @@protoc_insertion_point(interface_extends:kuradatatypes.KuraPayload)
32: com.google.protobuf.GeneratedMessageV3.
33: ExtendableMessageOrBuilder<KuraPayload> {
34:
35: /**
36: * <code>optional int64 timestamp = 1;</code>
37: * @return Whether the timestamp field is set.
38: */
39: boolean hasTimestamp();
40: /**
41: * <code>optional int64 timestamp = 1;</code>
42: * @return The timestamp.
43: */
44: long getTimestamp();
45:
46: /**
47: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
48: * @return Whether the position field is set.
49: */
50: boolean hasPosition();
51: /**
52: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
53: * @return The position.
54: */
55: KuraPayloadProto.KuraPayload.KuraPosition getPosition();
56: /**
57: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
58: */
59: KuraPayloadProto.KuraPayload.KuraPositionOrBuilder getPositionOrBuilder();
60:
61: /**
62: * <pre>
63: * can be zero, so optional
64: * </pre>
65: *
66: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
67: */
68: java.util.List<KuraPayloadProto.KuraPayload.KuraMetric>
69: getMetricList();
70: /**
71: * <pre>
72: * can be zero, so optional
73: * </pre>
74: *
75: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
76: */
77: KuraPayloadProto.KuraPayload.KuraMetric getMetric(int index);
78: /**
79: * <pre>
80: * can be zero, so optional
81: * </pre>
82: *
83: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
84: */
85: int getMetricCount();
86: /**
87: * <pre>
88: * can be zero, so optional
89: * </pre>
90: *
91: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
92: */
93: java.util.List<? extends KuraPayloadProto.KuraPayload.KuraMetricOrBuilder>
94: getMetricOrBuilderList();
95: /**
96: * <pre>
97: * can be zero, so optional
98: * </pre>
99: *
100: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
101: */
102: KuraPayloadProto.KuraPayload.KuraMetricOrBuilder getMetricOrBuilder(
103: int index);
104:
105: /**
106: * <code>optional bytes body = 5001;</code>
107: * @return Whether the body field is set.
108: */
109: boolean hasBody();
110: /**
111: * <code>optional bytes body = 5001;</code>
112: * @return The body.
113: */
114: com.google.protobuf.ByteString getBody();
115: }
116: /**
117: * Protobuf type {@code kuradatatypes.KuraPayload}
118: */
119: public static final class KuraPayload extends
120: com.google.protobuf.GeneratedMessageV3.ExtendableMessage<
121: KuraPayload> implements
122: // @@protoc_insertion_point(message_implements:kuradatatypes.KuraPayload)
123: KuraPayloadOrBuilder {
124: private static final long serialVersionUID = 0L;
125: // Use KuraPayload.newBuilder() to construct.
126: private KuraPayload(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<KuraPayloadProto.KuraPayload, ?> builder) {
127: super(builder);
128: }
129: private KuraPayload() {
130: metric_ = java.util.Collections.emptyList();
131: body_ = com.google.protobuf.ByteString.EMPTY;
132: }
133:
134: @java.lang.Override
135: @SuppressWarnings({"unused"})
136: protected java.lang.Object newInstance(
137: UnusedPrivateParameter unused) {
138: return new KuraPayload();
139: }
140:
141: @java.lang.Override
142: public final com.google.protobuf.UnknownFieldSet
143: getUnknownFields() {
144: return this.unknownFields;
145: }
146: public static final com.google.protobuf.Descriptors.Descriptor
147: getDescriptor() {
148: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_descriptor;
149: }
150:
151: @java.lang.Override
152: protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
153: internalGetFieldAccessorTable() {
154: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_fieldAccessorTable
155: .ensureFieldAccessorsInitialized(
156: KuraPayloadProto.KuraPayload.class, KuraPayloadProto.KuraPayload.Builder.class);
157: }
158:
159: public interface KuraMetricOrBuilder extends
160: // @@protoc_insertion_point(interface_extends:kuradatatypes.KuraPayload.KuraMetric)
161: com.google.protobuf.MessageOrBuilder {
162:
163: /**
164: * <code>required string name = 1;</code>
165: * @return Whether the name field is set.
166: */
167: boolean hasName();
168: /**
169: * <code>required string name = 1;</code>
170: * @return The name.
171: */
172: java.lang.String getName();
173: /**
174: * <code>required string name = 1;</code>
175: * @return The bytes for name.
176: */
177: com.google.protobuf.ByteString
178: getNameBytes();
179:
180: /**
181: * <code>required .kuradatatypes.KuraPayload.KuraMetric.ValueType type = 2;</code>
182: * @return Whether the type field is set.
183: */
184: boolean hasType();
185: /**
186: * <code>required .kuradatatypes.KuraPayload.KuraMetric.ValueType type = 2;</code>
187: * @return The type.
188: */
189: KuraPayloadProto.KuraPayload.KuraMetric.ValueType getType();
190:
191: /**
192: * <code>optional double double_value = 3;</code>
193: * @return Whether the doubleValue field is set.
194: */
195: boolean hasDoubleValue();
196: /**
197: * <code>optional double double_value = 3;</code>
198: * @return The doubleValue.
199: */
200: double getDoubleValue();
201:
202: /**
203: * <code>optional float float_value = 4;</code>
204: * @return Whether the floatValue field is set.
205: */
206: boolean hasFloatValue();
207: /**
208: * <code>optional float float_value = 4;</code>
209: * @return The floatValue.
210: */
211: float getFloatValue();
212:
213: /**
214: * <code>optional int64 long_value = 5;</code>
215: * @return Whether the longValue field is set.
216: */
217: boolean hasLongValue();
218: /**
219: * <code>optional int64 long_value = 5;</code>
220: * @return The longValue.
221: */
222: long getLongValue();
223:
224: /**
225: * <code>optional int32 int_value = 6;</code>
226: * @return Whether the intValue field is set.
227: */
228: boolean hasIntValue();
229: /**
230: * <code>optional int32 int_value = 6;</code>
231: * @return The intValue.
232: */
233: int getIntValue();
234:
235: /**
236: * <code>optional bool bool_value = 7;</code>
237: * @return Whether the boolValue field is set.
238: */
239: boolean hasBoolValue();
240: /**
241: * <code>optional bool bool_value = 7;</code>
242: * @return The boolValue.
243: */
244: boolean getBoolValue();
245:
246: /**
247: * <code>optional string string_value = 8;</code>
248: * @return Whether the stringValue field is set.
249: */
250: boolean hasStringValue();
251: /**
252: * <code>optional string string_value = 8;</code>
253: * @return The stringValue.
254: */
255: java.lang.String getStringValue();
256: /**
257: * <code>optional string string_value = 8;</code>
258: * @return The bytes for stringValue.
259: */
260: com.google.protobuf.ByteString
261: getStringValueBytes();
262:
263: /**
264: * <code>optional bytes bytes_value = 9;</code>
265: * @return Whether the bytesValue field is set.
266: */
267: boolean hasBytesValue();
268: /**
269: * <code>optional bytes bytes_value = 9;</code>
270: * @return The bytesValue.
271: */
272: com.google.protobuf.ByteString getBytesValue();
273: }
274: /**
275: * Protobuf type {@code kuradatatypes.KuraPayload.KuraMetric}
276: */
277: public static final class KuraMetric extends
278: com.google.protobuf.GeneratedMessageV3 implements
279: // @@protoc_insertion_point(message_implements:kuradatatypes.KuraPayload.KuraMetric)
280: KuraMetricOrBuilder {
281: private static final long serialVersionUID = 0L;
282: // Use KuraMetric.newBuilder() to construct.
283: private KuraMetric(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
284: super(builder);
285: }
286: private KuraMetric() {
287: name_ = "";
288: type_ = 0;
289: stringValue_ = "";
290: bytesValue_ = com.google.protobuf.ByteString.EMPTY;
291: }
292:
293: @java.lang.Override
294: @SuppressWarnings({"unused"})
295: protected java.lang.Object newInstance(
296: UnusedPrivateParameter unused) {
297: return new KuraMetric();
298: }
299:
300: @java.lang.Override
301: public final com.google.protobuf.UnknownFieldSet
302: getUnknownFields() {
303: return this.unknownFields;
304: }
305: public static final com.google.protobuf.Descriptors.Descriptor
306: getDescriptor() {
307: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraMetric_descriptor;
308: }
309:
310: @java.lang.Override
311: protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
312: internalGetFieldAccessorTable() {
313: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraMetric_fieldAccessorTable
314: .ensureFieldAccessorsInitialized(
315: KuraPayloadProto.KuraPayload.KuraMetric.class, KuraPayloadProto.KuraPayload.KuraMetric.Builder.class);
316: }
317:
318: /**
319: * Protobuf enum {@code kuradatatypes.KuraPayload.KuraMetric.ValueType}
320: */
321: public enum ValueType
322: implements com.google.protobuf.ProtocolMessageEnum {
323: /**
324: * <code>DOUBLE = 0;</code>
325: */
326: DOUBLE(0),
327: /**
328: * <code>FLOAT = 1;</code>
329: */
330: FLOAT(1),
331: /**
332: * <code>INT64 = 2;</code>
333: */
334: INT64(2),
335: /**
336: * <code>INT32 = 3;</code>
337: */
338: INT32(3),
339: /**
340: * <code>BOOL = 4;</code>
341: */
342: BOOL(4),
343: /**
344: * <code>STRING = 5;</code>
345: */
346: STRING(5),
347: /**
348: * <code>BYTES = 6;</code>
349: */
350: BYTES(6),
351: ;
352:
353: /**
354: * <code>DOUBLE = 0;</code>
355: */
356: public static final int DOUBLE_VALUE = 0;
357: /**
358: * <code>FLOAT = 1;</code>
359: */
360: public static final int FLOAT_VALUE = 1;
361: /**
362: * <code>INT64 = 2;</code>
363: */
364: public static final int INT64_VALUE = 2;
365: /**
366: * <code>INT32 = 3;</code>
367: */
368: public static final int INT32_VALUE = 3;
369: /**
370: * <code>BOOL = 4;</code>
371: */
372: public static final int BOOL_VALUE = 4;
373: /**
374: * <code>STRING = 5;</code>
375: */
376: public static final int STRING_VALUE = 5;
377: /**
378: * <code>BYTES = 6;</code>
379: */
380: public static final int BYTES_VALUE = 6;
381:
382:
383: public final int getNumber() {
384: return value;
385: }
386:
387: /**
388: * @param value The numeric wire value of the corresponding enum entry.
389: * @return The enum associated with the given numeric wire value.
390: * @deprecated Use {@link #forNumber(int)} instead.
391: */
392: @java.lang.Deprecated
393: public static ValueType valueOf(int value) {
394: return forNumber(value);
395: }
396:
397: /**
398: * @param value The numeric wire value of the corresponding enum entry.
399: * @return The enum associated with the given numeric wire value.
400: */
401: public static ValueType forNumber(int value) {
402: switch (value) {
403: case 0: return DOUBLE;
404: case 1: return FLOAT;
405: case 2: return INT64;
406: case 3: return INT32;
407: case 4: return BOOL;
408: case 5: return STRING;
409: case 6: return BYTES;
410: default: return null;
411: }
412: }
413:
414: public static com.google.protobuf.Internal.EnumLiteMap<ValueType>
415: internalGetValueMap() {
416: return internalValueMap;
417: }
418: private static final com.google.protobuf.Internal.EnumLiteMap<
419: ValueType> internalValueMap =
420: new com.google.protobuf.Internal.EnumLiteMap<ValueType>() {
421: public ValueType findValueByNumber(int number) {
422: return ValueType.forNumber(number);
423: }
424: };
425:
426: public final com.google.protobuf.Descriptors.EnumValueDescriptor
427: getValueDescriptor() {
428: return getDescriptor().getValues().get(ordinal());
429: }
430: public final com.google.protobuf.Descriptors.EnumDescriptor
431: getDescriptorForType() {
432: return getDescriptor();
433: }
434: public static final com.google.protobuf.Descriptors.EnumDescriptor
435: getDescriptor() {
436: return KuraPayloadProto.KuraPayload.KuraMetric.getDescriptor().getEnumTypes().get(0);
437: }
438:
439: private static final ValueType[] VALUES = values();
440:
441: public static ValueType valueOf(
442: com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
443: if (desc.getType() != getDescriptor()) {
444: throw new java.lang.IllegalArgumentException(
445: "EnumValueDescriptor is not for this type.");
446: }
447: return VALUES[desc.getIndex()];
448: }
449:
450: private final int value;
451:
452: private ValueType(int value) {
453: this.value = value;
454: }
455:
456: // @@protoc_insertion_point(enum_scope:kuradatatypes.KuraPayload.KuraMetric.ValueType)
457: }
458:
459: private int bitField0_;
460: public static final int NAME_FIELD_NUMBER = 1;
461: private volatile java.lang.Object name_;
462: /**
463: * <code>required string name = 1;</code>
464: * @return Whether the name field is set.
465: */
466: @java.lang.Override
467: public boolean hasName() {
468: return ((bitField0_ & 0x00000001) != 0);
469: }
470: /**
471: * <code>required string name = 1;</code>
472: * @return The name.
473: */
474: @java.lang.Override
475: public java.lang.String getName() {
476: java.lang.Object ref = name_;
477: if (ref instanceof java.lang.String) {
478: return (java.lang.String) ref;
479: } else {
480: com.google.protobuf.ByteString bs =
481: (com.google.protobuf.ByteString) ref;
482: java.lang.String s = bs.toStringUtf8();
483: if (bs.isValidUtf8()) {
484: name_ = s;
485: }
486: return s;
487: }
488: }
489: /**
490: * <code>required string name = 1;</code>
491: * @return The bytes for name.
492: */
493: @java.lang.Override
494: public com.google.protobuf.ByteString
495: getNameBytes() {
496: java.lang.Object ref = name_;
497: if (ref instanceof java.lang.String) {
498: com.google.protobuf.ByteString b =
499: com.google.protobuf.ByteString.copyFromUtf8(
500: (java.lang.String) ref);
501: name_ = b;
502: return b;
503: } else {
504: return (com.google.protobuf.ByteString) ref;
505: }
506: }
507:
508: public static final int TYPE_FIELD_NUMBER = 2;
509: private int type_;
510: /**
511: * <code>required .kuradatatypes.KuraPayload.KuraMetric.ValueType type = 2;</code>
512: * @return Whether the type field is set.
513: */
514: @java.lang.Override public boolean hasType() {
515: return ((bitField0_ & 0x00000002) != 0);
516: }
517: /**
518: * <code>required .kuradatatypes.KuraPayload.KuraMetric.ValueType type = 2;</code>
519: * @return The type.
520: */
521: @java.lang.Override public KuraPayloadProto.KuraPayload.KuraMetric.ValueType getType() {
522: @SuppressWarnings("deprecation")
523: KuraPayloadProto.KuraPayload.KuraMetric.ValueType result = KuraPayloadProto.KuraPayload.KuraMetric.ValueType.valueOf(type_);
524: return result == null ? KuraPayloadProto.KuraPayload.KuraMetric.ValueType.DOUBLE : result;
525: }
526:
527: public static final int DOUBLE_VALUE_FIELD_NUMBER = 3;
528: private double doubleValue_;
529: /**
530: * <code>optional double double_value = 3;</code>
531: * @return Whether the doubleValue field is set.
532: */
533: @java.lang.Override
534: public boolean hasDoubleValue() {
535: return ((bitField0_ & 0x00000004) != 0);
536: }
537: /**
538: * <code>optional double double_value = 3;</code>
539: * @return The doubleValue.
540: */
541: @java.lang.Override
542: public double getDoubleValue() {
543: return doubleValue_;
544: }
545:
546: public static final int FLOAT_VALUE_FIELD_NUMBER = 4;
547: private float floatValue_;
548: /**
549: * <code>optional float float_value = 4;</code>
550: * @return Whether the floatValue field is set.
551: */
552: @java.lang.Override
553: public boolean hasFloatValue() {
554: return ((bitField0_ & 0x00000008) != 0);
555: }
556: /**
557: * <code>optional float float_value = 4;</code>
558: * @return The floatValue.
559: */
560: @java.lang.Override
561: public float getFloatValue() {
562: return floatValue_;
563: }
564:
565: public static final int LONG_VALUE_FIELD_NUMBER = 5;
566: private long longValue_;
567: /**
568: * <code>optional int64 long_value = 5;</code>
569: * @return Whether the longValue field is set.
570: */
571: @java.lang.Override
572: public boolean hasLongValue() {
573: return ((bitField0_ & 0x00000010) != 0);
574: }
575: /**
576: * <code>optional int64 long_value = 5;</code>
577: * @return The longValue.
578: */
579: @java.lang.Override
580: public long getLongValue() {
581: return longValue_;
582: }
583:
584: public static final int INT_VALUE_FIELD_NUMBER = 6;
585: private int intValue_;
586: /**
587: * <code>optional int32 int_value = 6;</code>
588: * @return Whether the intValue field is set.
589: */
590: @java.lang.Override
591: public boolean hasIntValue() {
592: return ((bitField0_ & 0x00000020) != 0);
593: }
594: /**
595: * <code>optional int32 int_value = 6;</code>
596: * @return The intValue.
597: */
598: @java.lang.Override
599: public int getIntValue() {
600: return intValue_;
601: }
602:
603: public static final int BOOL_VALUE_FIELD_NUMBER = 7;
604: private boolean boolValue_;
605: /**
606: * <code>optional bool bool_value = 7;</code>
607: * @return Whether the boolValue field is set.
608: */
609: @java.lang.Override
610: public boolean hasBoolValue() {
611: return ((bitField0_ & 0x00000040) != 0);
612: }
613: /**
614: * <code>optional bool bool_value = 7;</code>
615: * @return The boolValue.
616: */
617: @java.lang.Override
618: public boolean getBoolValue() {
619: return boolValue_;
620: }
621:
622: public static final int STRING_VALUE_FIELD_NUMBER = 8;
623: private volatile java.lang.Object stringValue_;
624: /**
625: * <code>optional string string_value = 8;</code>
626: * @return Whether the stringValue field is set.
627: */
628: @java.lang.Override
629: public boolean hasStringValue() {
630: return ((bitField0_ & 0x00000080) != 0);
631: }
632: /**
633: * <code>optional string string_value = 8;</code>
634: * @return The stringValue.
635: */
636: @java.lang.Override
637: public java.lang.String getStringValue() {
638: java.lang.Object ref = stringValue_;
639: if (ref instanceof java.lang.String) {
640: return (java.lang.String) ref;
641: } else {
642: com.google.protobuf.ByteString bs =
643: (com.google.protobuf.ByteString) ref;
644: java.lang.String s = bs.toStringUtf8();
645: if (bs.isValidUtf8()) {
646: stringValue_ = s;
647: }
648: return s;
649: }
650: }
651: /**
652: * <code>optional string string_value = 8;</code>
653: * @return The bytes for stringValue.
654: */
655: @java.lang.Override
656: public com.google.protobuf.ByteString
657: getStringValueBytes() {
658: java.lang.Object ref = stringValue_;
659: if (ref instanceof java.lang.String) {
660: com.google.protobuf.ByteString b =
661: com.google.protobuf.ByteString.copyFromUtf8(
662: (java.lang.String) ref);
663: stringValue_ = b;
664: return b;
665: } else {
666: return (com.google.protobuf.ByteString) ref;
667: }
668: }
669:
670: public static final int BYTES_VALUE_FIELD_NUMBER = 9;
671: private com.google.protobuf.ByteString bytesValue_;
672: /**
673: * <code>optional bytes bytes_value = 9;</code>
674: * @return Whether the bytesValue field is set.
675: */
676: @java.lang.Override
677: public boolean hasBytesValue() {
678: return ((bitField0_ & 0x00000100) != 0);
679: }
680: /**
681: * <code>optional bytes bytes_value = 9;</code>
682: * @return The bytesValue.
683: */
684: @java.lang.Override
685: public com.google.protobuf.ByteString getBytesValue() {
686: return bytesValue_;
687: }
688:
689: private byte memoizedIsInitialized = -1;
690: @java.lang.Override
691: public final boolean isInitialized() {
692: byte isInitialized = memoizedIsInitialized;
693: if (isInitialized == 1) return true;
694: if (isInitialized == 0) return false;
695:
696: if (!hasName()) {
697: memoizedIsInitialized = 0;
698: return false;
699: }
700: if (!hasType()) {
701: memoizedIsInitialized = 0;
702: return false;
703: }
704: memoizedIsInitialized = 1;
705: return true;
706: }
707:
708: @java.lang.Override
709: public void writeTo(com.google.protobuf.CodedOutputStream output)
710: throws java.io.IOException {
711: if (((bitField0_ & 0x00000001) != 0)) {
712: com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
713: }
714: if (((bitField0_ & 0x00000002) != 0)) {
715: output.writeEnum(2, type_);
716: }
717: if (((bitField0_ & 0x00000004) != 0)) {
718: output.writeDouble(3, doubleValue_);
719: }
720: if (((bitField0_ & 0x00000008) != 0)) {
721: output.writeFloat(4, floatValue_);
722: }
723: if (((bitField0_ & 0x00000010) != 0)) {
724: output.writeInt64(5, longValue_);
725: }
726: if (((bitField0_ & 0x00000020) != 0)) {
727: output.writeInt32(6, intValue_);
728: }
729: if (((bitField0_ & 0x00000040) != 0)) {
730: output.writeBool(7, boolValue_);
731: }
732: if (((bitField0_ & 0x00000080) != 0)) {
733: com.google.protobuf.GeneratedMessageV3.writeString(output, 8, stringValue_);
734: }
735: if (((bitField0_ & 0x00000100) != 0)) {
736: output.writeBytes(9, bytesValue_);
737: }
738: getUnknownFields().writeTo(output);
739: }
740:
741: @java.lang.Override
742: public int getSerializedSize() {
743: int size = memoizedSize;
744: if (size != -1) return size;
745:
746: size = 0;
747: if (((bitField0_ & 0x00000001) != 0)) {
748: size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
749: }
750: if (((bitField0_ & 0x00000002) != 0)) {
751: size += com.google.protobuf.CodedOutputStream
752: .computeEnumSize(2, type_);
753: }
754: if (((bitField0_ & 0x00000004) != 0)) {
755: size += com.google.protobuf.CodedOutputStream
756: .computeDoubleSize(3, doubleValue_);
757: }
758: if (((bitField0_ & 0x00000008) != 0)) {
759: size += com.google.protobuf.CodedOutputStream
760: .computeFloatSize(4, floatValue_);
761: }
762: if (((bitField0_ & 0x00000010) != 0)) {
763: size += com.google.protobuf.CodedOutputStream
764: .computeInt64Size(5, longValue_);
765: }
766: if (((bitField0_ & 0x00000020) != 0)) {
767: size += com.google.protobuf.CodedOutputStream
768: .computeInt32Size(6, intValue_);
769: }
770: if (((bitField0_ & 0x00000040) != 0)) {
771: size += com.google.protobuf.CodedOutputStream
772: .computeBoolSize(7, boolValue_);
773: }
774: if (((bitField0_ & 0x00000080) != 0)) {
775: size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, stringValue_);
776: }
777: if (((bitField0_ & 0x00000100) != 0)) {
778: size += com.google.protobuf.CodedOutputStream
779: .computeBytesSize(9, bytesValue_);
780: }
781: size += getUnknownFields().getSerializedSize();
782: memoizedSize = size;
783: return size;
784: }
785:
786: @java.lang.Override
787: public boolean equals(final java.lang.Object obj) {
788: if (obj == this) {
789: return true;
790: }
791: if (!(obj instanceof KuraPayloadProto.KuraPayload.KuraMetric)) {
792: return super.equals(obj);
793: }
794: KuraPayloadProto.KuraPayload.KuraMetric other = (KuraPayloadProto.KuraPayload.KuraMetric) obj;
795:
796: if (hasName() != other.hasName()) return false;
797: if (hasName()) {
798: if (!getName()
799: .equals(other.getName())) return false;
800: }
801: if (hasType() != other.hasType()) return false;
802: if (hasType()) {
803: if (type_ != other.type_) return false;
804: }
805: if (hasDoubleValue() != other.hasDoubleValue()) return false;
806: if (hasDoubleValue()) {
807: if (java.lang.Double.doubleToLongBits(getDoubleValue())
808: != java.lang.Double.doubleToLongBits(
809: other.getDoubleValue())) return false;
810: }
811: if (hasFloatValue() != other.hasFloatValue()) return false;
812: if (hasFloatValue()) {
813: if (java.lang.Float.floatToIntBits(getFloatValue())
814: != java.lang.Float.floatToIntBits(
815: other.getFloatValue())) return false;
816: }
817: if (hasLongValue() != other.hasLongValue()) return false;
818: if (hasLongValue()) {
819: if (getLongValue()
820: != other.getLongValue()) return false;
821: }
822: if (hasIntValue() != other.hasIntValue()) return false;
823: if (hasIntValue()) {
824: if (getIntValue()
825: != other.getIntValue()) return false;
826: }
827: if (hasBoolValue() != other.hasBoolValue()) return false;
828: if (hasBoolValue()) {
829: if (getBoolValue()
830: != other.getBoolValue()) return false;
831: }
832: if (hasStringValue() != other.hasStringValue()) return false;
833: if (hasStringValue()) {
834: if (!getStringValue()
835: .equals(other.getStringValue())) return false;
836: }
837: if (hasBytesValue() != other.hasBytesValue()) return false;
838: if (hasBytesValue()) {
839: if (!getBytesValue()
840: .equals(other.getBytesValue())) return false;
841: }
842: if (!getUnknownFields().equals(other.getUnknownFields())) return false;
843: return true;
844: }
845:
846: @java.lang.Override
847: public int hashCode() {
848: if (memoizedHashCode != 0) {
849: return memoizedHashCode;
850: }
851: int hash = 41;
852: hash = (19 * hash) + getDescriptor().hashCode();
853: if (hasName()) {
854: hash = (37 * hash) + NAME_FIELD_NUMBER;
855: hash = (53 * hash) + getName().hashCode();
856: }
857: if (hasType()) {
858: hash = (37 * hash) + TYPE_FIELD_NUMBER;
859: hash = (53 * hash) + type_;
860: }
861: if (hasDoubleValue()) {
862: hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
863: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
864: java.lang.Double.doubleToLongBits(getDoubleValue()));
865: }
866: if (hasFloatValue()) {
867: hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER;
868: hash = (53 * hash) + java.lang.Float.floatToIntBits(
869: getFloatValue());
870: }
871: if (hasLongValue()) {
872: hash = (37 * hash) + LONG_VALUE_FIELD_NUMBER;
873: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
874: getLongValue());
875: }
876: if (hasIntValue()) {
877: hash = (37 * hash) + INT_VALUE_FIELD_NUMBER;
878: hash = (53 * hash) + getIntValue();
879: }
880: if (hasBoolValue()) {
881: hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
882: hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
883: getBoolValue());
884: }
885: if (hasStringValue()) {
886: hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
887: hash = (53 * hash) + getStringValue().hashCode();
888: }
889: if (hasBytesValue()) {
890: hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER;
891: hash = (53 * hash) + getBytesValue().hashCode();
892: }
893: hash = (29 * hash) + getUnknownFields().hashCode();
894: memoizedHashCode = hash;
895: return hash;
896: }
897:
898: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(
899: java.nio.ByteBuffer data)
900: throws com.google.protobuf.InvalidProtocolBufferException {
901: return PARSER.parseFrom(data);
902: }
903: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(
904: java.nio.ByteBuffer data,
905: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
906: throws com.google.protobuf.InvalidProtocolBufferException {
907: return PARSER.parseFrom(data, extensionRegistry);
908: }
909: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(
910: com.google.protobuf.ByteString data)
911: throws com.google.protobuf.InvalidProtocolBufferException {
912: return PARSER.parseFrom(data);
913: }
914: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(
915: com.google.protobuf.ByteString data,
916: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
917: throws com.google.protobuf.InvalidProtocolBufferException {
918: return PARSER.parseFrom(data, extensionRegistry);
919: }
920: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(byte[] data)
921: throws com.google.protobuf.InvalidProtocolBufferException {
922: return PARSER.parseFrom(data);
923: }
924: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(
925: byte[] data,
926: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
927: throws com.google.protobuf.InvalidProtocolBufferException {
928: return PARSER.parseFrom(data, extensionRegistry);
929: }
930: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(java.io.InputStream input)
931: throws java.io.IOException {
932: return com.google.protobuf.GeneratedMessageV3
933: .parseWithIOException(PARSER, input);
934: }
935: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(
936: java.io.InputStream input,
937: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
938: throws java.io.IOException {
939: return com.google.protobuf.GeneratedMessageV3
940: .parseWithIOException(PARSER, input, extensionRegistry);
941: }
942: public static KuraPayloadProto.KuraPayload.KuraMetric parseDelimitedFrom(java.io.InputStream input)
943: throws java.io.IOException {
944: return com.google.protobuf.GeneratedMessageV3
945: .parseDelimitedWithIOException(PARSER, input);
946: }
947: public static KuraPayloadProto.KuraPayload.KuraMetric parseDelimitedFrom(
948: java.io.InputStream input,
949: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
950: throws java.io.IOException {
951: return com.google.protobuf.GeneratedMessageV3
952: .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
953: }
954: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(
955: com.google.protobuf.CodedInputStream input)
956: throws java.io.IOException {
957: return com.google.protobuf.GeneratedMessageV3
958: .parseWithIOException(PARSER, input);
959: }
960: public static KuraPayloadProto.KuraPayload.KuraMetric parseFrom(
961: com.google.protobuf.CodedInputStream input,
962: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
963: throws java.io.IOException {
964: return com.google.protobuf.GeneratedMessageV3
965: .parseWithIOException(PARSER, input, extensionRegistry);
966: }
967:
968: @java.lang.Override
969: public Builder newBuilderForType() { return newBuilder(); }
970: public static Builder newBuilder() {
971: return DEFAULT_INSTANCE.toBuilder();
972: }
973: public static Builder newBuilder(KuraPayloadProto.KuraPayload.KuraMetric prototype) {
974: return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
975: }
976: @java.lang.Override
977: public Builder toBuilder() {
978: return this == DEFAULT_INSTANCE
979: ? new Builder() : new Builder().mergeFrom(this);
980: }
981:
982: @java.lang.Override
983: protected Builder newBuilderForType(
984: com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
985: Builder builder = new Builder(parent);
986: return builder;
987: }
988: /**
989: * Protobuf type {@code kuradatatypes.KuraPayload.KuraMetric}
990: */
991: public static final class Builder extends
992: com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
993: // @@protoc_insertion_point(builder_implements:kuradatatypes.KuraPayload.KuraMetric)
994: KuraPayloadProto.KuraPayload.KuraMetricOrBuilder {
995: public static final com.google.protobuf.Descriptors.Descriptor
996: getDescriptor() {
997: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraMetric_descriptor;
998: }
999:
1000: @java.lang.Override
1001: protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1002: internalGetFieldAccessorTable() {
1003: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraMetric_fieldAccessorTable
1004: .ensureFieldAccessorsInitialized(
1005: KuraPayloadProto.KuraPayload.KuraMetric.class, KuraPayloadProto.KuraPayload.KuraMetric.Builder.class);
1006: }
1007:
1008: // Construct using org.eclipse.kapua.kura.simulator.proto.KuraPayloadProto.KuraPayload.KuraMetric.newBuilder()
1009: private Builder() {
1010:
1011: }
1012:
1013: private Builder(
1014: com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1015: super(parent);
1016:
1017: }
1018: @java.lang.Override
1019: public Builder clear() {
1020: super.clear();
1021: name_ = "";
1022: bitField0_ = (bitField0_ & ~0x00000001);
1023: type_ = 0;
1024: bitField0_ = (bitField0_ & ~0x00000002);
1025: doubleValue_ = 0D;
1026: bitField0_ = (bitField0_ & ~0x00000004);
1027: floatValue_ = 0F;
1028: bitField0_ = (bitField0_ & ~0x00000008);
1029: longValue_ = 0L;
1030: bitField0_ = (bitField0_ & ~0x00000010);
1031: intValue_ = 0;
1032: bitField0_ = (bitField0_ & ~0x00000020);
1033: boolValue_ = false;
1034: bitField0_ = (bitField0_ & ~0x00000040);
1035: stringValue_ = "";
1036: bitField0_ = (bitField0_ & ~0x00000080);
1037: bytesValue_ = com.google.protobuf.ByteString.EMPTY;
1038: bitField0_ = (bitField0_ & ~0x00000100);
1039: return this;
1040: }
1041:
1042: @java.lang.Override
1043: public com.google.protobuf.Descriptors.Descriptor
1044: getDescriptorForType() {
1045: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraMetric_descriptor;
1046: }
1047:
1048: @java.lang.Override
1049: public KuraPayloadProto.KuraPayload.KuraMetric getDefaultInstanceForType() {
1050: return KuraPayloadProto.KuraPayload.KuraMetric.getDefaultInstance();
1051: }
1052:
1053: @java.lang.Override
1054: public KuraPayloadProto.KuraPayload.KuraMetric build() {
1055: KuraPayloadProto.KuraPayload.KuraMetric result = buildPartial();
1056: if (!result.isInitialized()) {
1057: throw newUninitializedMessageException(result);
1058: }
1059: return result;
1060: }
1061:
1062: @java.lang.Override
1063: public KuraPayloadProto.KuraPayload.KuraMetric buildPartial() {
1064: KuraPayloadProto.KuraPayload.KuraMetric result = new KuraPayloadProto.KuraPayload.KuraMetric(this);
1065: int from_bitField0_ = bitField0_;
1066: int to_bitField0_ = 0;
1067: if (((from_bitField0_ & 0x00000001) != 0)) {
1068: to_bitField0_ |= 0x00000001;
1069: }
1070: result.name_ = name_;
1071: if (((from_bitField0_ & 0x00000002) != 0)) {
1072: to_bitField0_ |= 0x00000002;
1073: }
1074: result.type_ = type_;
1075: if (((from_bitField0_ & 0x00000004) != 0)) {
1076: result.doubleValue_ = doubleValue_;
1077: to_bitField0_ |= 0x00000004;
1078: }
1079: if (((from_bitField0_ & 0x00000008) != 0)) {
1080: result.floatValue_ = floatValue_;
1081: to_bitField0_ |= 0x00000008;
1082: }
1083: if (((from_bitField0_ & 0x00000010) != 0)) {
1084: result.longValue_ = longValue_;
1085: to_bitField0_ |= 0x00000010;
1086: }
1087: if (((from_bitField0_ & 0x00000020) != 0)) {
1088: result.intValue_ = intValue_;
1089: to_bitField0_ |= 0x00000020;
1090: }
1091: if (((from_bitField0_ & 0x00000040) != 0)) {
1092: result.boolValue_ = boolValue_;
1093: to_bitField0_ |= 0x00000040;
1094: }
1095: if (((from_bitField0_ & 0x00000080) != 0)) {
1096: to_bitField0_ |= 0x00000080;
1097: }
1098: result.stringValue_ = stringValue_;
1099: if (((from_bitField0_ & 0x00000100) != 0)) {
1100: to_bitField0_ |= 0x00000100;
1101: }
1102: result.bytesValue_ = bytesValue_;
1103: result.bitField0_ = to_bitField0_;
1104: onBuilt();
1105: return result;
1106: }
1107:
1108: @java.lang.Override
1109: public Builder clone() {
1110: return super.clone();
1111: }
1112: @java.lang.Override
1113: public Builder setField(
1114: com.google.protobuf.Descriptors.FieldDescriptor field,
1115: java.lang.Object value) {
1116: return super.setField(field, value);
1117: }
1118: @java.lang.Override
1119: public Builder clearField(
1120: com.google.protobuf.Descriptors.FieldDescriptor field) {
1121: return super.clearField(field);
1122: }
1123: @java.lang.Override
1124: public Builder clearOneof(
1125: com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1126: return super.clearOneof(oneof);
1127: }
1128: @java.lang.Override
1129: public Builder setRepeatedField(
1130: com.google.protobuf.Descriptors.FieldDescriptor field,
1131: int index, java.lang.Object value) {
1132: return super.setRepeatedField(field, index, value);
1133: }
1134: @java.lang.Override
1135: public Builder addRepeatedField(
1136: com.google.protobuf.Descriptors.FieldDescriptor field,
1137: java.lang.Object value) {
1138: return super.addRepeatedField(field, value);
1139: }
1140: @java.lang.Override
1141: public Builder mergeFrom(com.google.protobuf.Message other) {
1142: if (other instanceof KuraPayloadProto.KuraPayload.KuraMetric) {
1143: return mergeFrom((KuraPayloadProto.KuraPayload.KuraMetric)other);
1144: } else {
1145: super.mergeFrom(other);
1146: return this;
1147: }
1148: }
1149:
1150: public Builder mergeFrom(KuraPayloadProto.KuraPayload.KuraMetric other) {
1151: if (other == KuraPayloadProto.KuraPayload.KuraMetric.getDefaultInstance()) return this;
1152: if (other.hasName()) {
1153: bitField0_ |= 0x00000001;
1154: name_ = other.name_;
1155: onChanged();
1156: }
1157: if (other.hasType()) {
1158: setType(other.getType());
1159: }
1160: if (other.hasDoubleValue()) {
1161: setDoubleValue(other.getDoubleValue());
1162: }
1163: if (other.hasFloatValue()) {
1164: setFloatValue(other.getFloatValue());
1165: }
1166: if (other.hasLongValue()) {
1167: setLongValue(other.getLongValue());
1168: }
1169: if (other.hasIntValue()) {
1170: setIntValue(other.getIntValue());
1171: }
1172: if (other.hasBoolValue()) {
1173: setBoolValue(other.getBoolValue());
1174: }
1175: if (other.hasStringValue()) {
1176: bitField0_ |= 0x00000080;
1177: stringValue_ = other.stringValue_;
1178: onChanged();
1179: }
1180: if (other.hasBytesValue()) {
1181: setBytesValue(other.getBytesValue());
1182: }
1183: this.mergeUnknownFields(other.getUnknownFields());
1184: onChanged();
1185: return this;
1186: }
1187:
1188: @java.lang.Override
1189: public final boolean isInitialized() {
1190: if (!hasName()) {
1191: return false;
1192: }
1193: if (!hasType()) {
1194: return false;
1195: }
1196: return true;
1197: }
1198:
1199: @java.lang.Override
1200: public Builder mergeFrom(
1201: com.google.protobuf.CodedInputStream input,
1202: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1203: throws java.io.IOException {
1204: if (extensionRegistry == null) {
1205: throw new java.lang.NullPointerException();
1206: }
1207: try {
1208: boolean done = false;
1209: while (!done) {
1210: int tag = input.readTag();
1211: switch (tag) {
1212: case 0:
1213: done = true;
1214: break;
1215: case 10: {
1216: name_ = input.readBytes();
1217: bitField0_ |= 0x00000001;
1218: break;
1219: } // case 10
1220: case 16: {
1221: int tmpRaw = input.readEnum();
1222: KuraPayloadProto.KuraPayload.KuraMetric.ValueType tmpValue =
1223: KuraPayloadProto.KuraPayload.KuraMetric.ValueType.forNumber(tmpRaw);
1224: if (tmpValue == null) {
1225: mergeUnknownVarintField(2, tmpRaw);
1226: } else {
1227: type_ = tmpRaw;
1228: bitField0_ |= 0x00000002;
1229: }
1230: break;
1231: } // case 16
1232: case 25: {
1233: doubleValue_ = input.readDouble();
1234: bitField0_ |= 0x00000004;
1235: break;
1236: } // case 25
1237: case 37: {
1238: floatValue_ = input.readFloat();
1239: bitField0_ |= 0x00000008;
1240: break;
1241: } // case 37
1242: case 40: {
1243: longValue_ = input.readInt64();
1244: bitField0_ |= 0x00000010;
1245: break;
1246: } // case 40
1247: case 48: {
1248: intValue_ = input.readInt32();
1249: bitField0_ |= 0x00000020;
1250: break;
1251: } // case 48
1252: case 56: {
1253: boolValue_ = input.readBool();
1254: bitField0_ |= 0x00000040;
1255: break;
1256: } // case 56
1257: case 66: {
1258: stringValue_ = input.readBytes();
1259: bitField0_ |= 0x00000080;
1260: break;
1261: } // case 66
1262: case 74: {
1263: bytesValue_ = input.readBytes();
1264: bitField0_ |= 0x00000100;
1265: break;
1266: } // case 74
1267: default: {
1268: if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1269: done = true; // was an endgroup tag
1270: }
1271: break;
1272: } // default:
1273: } // switch (tag)
1274: } // while (!done)
1275: } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1276: throw e.unwrapIOException();
1277: } finally {
1278: onChanged();
1279: } // finally
1280: return this;
1281: }
1282: private int bitField0_;
1283:
1284: private java.lang.Object name_ = "";
1285: /**
1286: * <code>required string name = 1;</code>
1287: * @return Whether the name field is set.
1288: */
1289: public boolean hasName() {
1290: return ((bitField0_ & 0x00000001) != 0);
1291: }
1292: /**
1293: * <code>required string name = 1;</code>
1294: * @return The name.
1295: */
1296: public java.lang.String getName() {
1297: java.lang.Object ref = name_;
1298: if (!(ref instanceof java.lang.String)) {
1299: com.google.protobuf.ByteString bs =
1300: (com.google.protobuf.ByteString) ref;
1301: java.lang.String s = bs.toStringUtf8();
1302: if (bs.isValidUtf8()) {
1303: name_ = s;
1304: }
1305: return s;
1306: } else {
1307: return (java.lang.String) ref;
1308: }
1309: }
1310: /**
1311: * <code>required string name = 1;</code>
1312: * @return The bytes for name.
1313: */
1314: public com.google.protobuf.ByteString
1315: getNameBytes() {
1316: java.lang.Object ref = name_;
1317: if (ref instanceof String) {
1318: com.google.protobuf.ByteString b =
1319: com.google.protobuf.ByteString.copyFromUtf8(
1320: (java.lang.String) ref);
1321: name_ = b;
1322: return b;
1323: } else {
1324: return (com.google.protobuf.ByteString) ref;
1325: }
1326: }
1327: /**
1328: * <code>required string name = 1;</code>
1329: * @param value The name to set.
1330: * @return This builder for chaining.
1331: */
1332: public Builder setName(
1333: java.lang.String value) {
1334: if (value == null) {
1335: throw new NullPointerException();
1336: }
1337: bitField0_ |= 0x00000001;
1338: name_ = value;
1339: onChanged();
1340: return this;
1341: }
1342: /**
1343: * <code>required string name = 1;</code>
1344: * @return This builder for chaining.
1345: */
1346: public Builder clearName() {
1347: bitField0_ = (bitField0_ & ~0x00000001);
1348: name_ = getDefaultInstance().getName();
1349: onChanged();
1350: return this;
1351: }
1352: /**
1353: * <code>required string name = 1;</code>
1354: * @param value The bytes for name to set.
1355: * @return This builder for chaining.
1356: */
1357: public Builder setNameBytes(
1358: com.google.protobuf.ByteString value) {
1359: if (value == null) {
1360: throw new NullPointerException();
1361: }
1362: bitField0_ |= 0x00000001;
1363: name_ = value;
1364: onChanged();
1365: return this;
1366: }
1367:
1368: private int type_ = 0;
1369: /**
1370: * <code>required .kuradatatypes.KuraPayload.KuraMetric.ValueType type = 2;</code>
1371: * @return Whether the type field is set.
1372: */
1373: @java.lang.Override public boolean hasType() {
1374: return ((bitField0_ & 0x00000002) != 0);
1375: }
1376: /**
1377: * <code>required .kuradatatypes.KuraPayload.KuraMetric.ValueType type = 2;</code>
1378: * @return The type.
1379: */
1380: @java.lang.Override
1381: public KuraPayloadProto.KuraPayload.KuraMetric.ValueType getType() {
1382: @SuppressWarnings("deprecation")
1383: KuraPayloadProto.KuraPayload.KuraMetric.ValueType result = KuraPayloadProto.KuraPayload.KuraMetric.ValueType.valueOf(type_);
1384: return result == null ? KuraPayloadProto.KuraPayload.KuraMetric.ValueType.DOUBLE : result;
1385: }
1386: /**
1387: * <code>required .kuradatatypes.KuraPayload.KuraMetric.ValueType type = 2;</code>
1388: * @param value The type to set.
1389: * @return This builder for chaining.
1390: */
1391: public Builder setType(KuraPayloadProto.KuraPayload.KuraMetric.ValueType value) {
1392: if (value == null) {
1393: throw new NullPointerException();
1394: }
1395: bitField0_ |= 0x00000002;
1396: type_ = value.getNumber();
1397: onChanged();
1398: return this;
1399: }
1400: /**
1401: * <code>required .kuradatatypes.KuraPayload.KuraMetric.ValueType type = 2;</code>
1402: * @return This builder for chaining.
1403: */
1404: public Builder clearType() {
1405: bitField0_ = (bitField0_ & ~0x00000002);
1406: type_ = 0;
1407: onChanged();
1408: return this;
1409: }
1410:
1411: private double doubleValue_ ;
1412: /**
1413: * <code>optional double double_value = 3;</code>
1414: * @return Whether the doubleValue field is set.
1415: */
1416: @java.lang.Override
1417: public boolean hasDoubleValue() {
1418: return ((bitField0_ & 0x00000004) != 0);
1419: }
1420: /**
1421: * <code>optional double double_value = 3;</code>
1422: * @return The doubleValue.
1423: */
1424: @java.lang.Override
1425: public double getDoubleValue() {
1426: return doubleValue_;
1427: }
1428: /**
1429: * <code>optional double double_value = 3;</code>
1430: * @param value The doubleValue to set.
1431: * @return This builder for chaining.
1432: */
1433: public Builder setDoubleValue(double value) {
1434: bitField0_ |= 0x00000004;
1435: doubleValue_ = value;
1436: onChanged();
1437: return this;
1438: }
1439: /**
1440: * <code>optional double double_value = 3;</code>
1441: * @return This builder for chaining.
1442: */
1443: public Builder clearDoubleValue() {
1444: bitField0_ = (bitField0_ & ~0x00000004);
1445: doubleValue_ = 0D;
1446: onChanged();
1447: return this;
1448: }
1449:
1450: private float floatValue_ ;
1451: /**
1452: * <code>optional float float_value = 4;</code>
1453: * @return Whether the floatValue field is set.
1454: */
1455: @java.lang.Override
1456: public boolean hasFloatValue() {
1457: return ((bitField0_ & 0x00000008) != 0);
1458: }
1459: /**
1460: * <code>optional float float_value = 4;</code>
1461: * @return The floatValue.
1462: */
1463: @java.lang.Override
1464: public float getFloatValue() {
1465: return floatValue_;
1466: }
1467: /**
1468: * <code>optional float float_value = 4;</code>
1469: * @param value The floatValue to set.
1470: * @return This builder for chaining.
1471: */
1472: public Builder setFloatValue(float value) {
1473: bitField0_ |= 0x00000008;
1474: floatValue_ = value;
1475: onChanged();
1476: return this;
1477: }
1478: /**
1479: * <code>optional float float_value = 4;</code>
1480: * @return This builder for chaining.
1481: */
1482: public Builder clearFloatValue() {
1483: bitField0_ = (bitField0_ & ~0x00000008);
1484: floatValue_ = 0F;
1485: onChanged();
1486: return this;
1487: }
1488:
1489: private long longValue_ ;
1490: /**
1491: * <code>optional int64 long_value = 5;</code>
1492: * @return Whether the longValue field is set.
1493: */
1494: @java.lang.Override
1495: public boolean hasLongValue() {
1496: return ((bitField0_ & 0x00000010) != 0);
1497: }
1498: /**
1499: * <code>optional int64 long_value = 5;</code>
1500: * @return The longValue.
1501: */
1502: @java.lang.Override
1503: public long getLongValue() {
1504: return longValue_;
1505: }
1506: /**
1507: * <code>optional int64 long_value = 5;</code>
1508: * @param value The longValue to set.
1509: * @return This builder for chaining.
1510: */
1511: public Builder setLongValue(long value) {
1512: bitField0_ |= 0x00000010;
1513: longValue_ = value;
1514: onChanged();
1515: return this;
1516: }
1517: /**
1518: * <code>optional int64 long_value = 5;</code>
1519: * @return This builder for chaining.
1520: */
1521: public Builder clearLongValue() {
1522: bitField0_ = (bitField0_ & ~0x00000010);
1523: longValue_ = 0L;
1524: onChanged();
1525: return this;
1526: }
1527:
1528: private int intValue_ ;
1529: /**
1530: * <code>optional int32 int_value = 6;</code>
1531: * @return Whether the intValue field is set.
1532: */
1533: @java.lang.Override
1534: public boolean hasIntValue() {
1535: return ((bitField0_ & 0x00000020) != 0);
1536: }
1537: /**
1538: * <code>optional int32 int_value = 6;</code>
1539: * @return The intValue.
1540: */
1541: @java.lang.Override
1542: public int getIntValue() {
1543: return intValue_;
1544: }
1545: /**
1546: * <code>optional int32 int_value = 6;</code>
1547: * @param value The intValue to set.
1548: * @return This builder for chaining.
1549: */
1550: public Builder setIntValue(int value) {
1551: bitField0_ |= 0x00000020;
1552: intValue_ = value;
1553: onChanged();
1554: return this;
1555: }
1556: /**
1557: * <code>optional int32 int_value = 6;</code>
1558: * @return This builder for chaining.
1559: */
1560: public Builder clearIntValue() {
1561: bitField0_ = (bitField0_ & ~0x00000020);
1562: intValue_ = 0;
1563: onChanged();
1564: return this;
1565: }
1566:
1567: private boolean boolValue_ ;
1568: /**
1569: * <code>optional bool bool_value = 7;</code>
1570: * @return Whether the boolValue field is set.
1571: */
1572: @java.lang.Override
1573: public boolean hasBoolValue() {
1574: return ((bitField0_ & 0x00000040) != 0);
1575: }
1576: /**
1577: * <code>optional bool bool_value = 7;</code>
1578: * @return The boolValue.
1579: */
1580: @java.lang.Override
1581: public boolean getBoolValue() {
1582: return boolValue_;
1583: }
1584: /**
1585: * <code>optional bool bool_value = 7;</code>
1586: * @param value The boolValue to set.
1587: * @return This builder for chaining.
1588: */
1589: public Builder setBoolValue(boolean value) {
1590: bitField0_ |= 0x00000040;
1591: boolValue_ = value;
1592: onChanged();
1593: return this;
1594: }
1595: /**
1596: * <code>optional bool bool_value = 7;</code>
1597: * @return This builder for chaining.
1598: */
1599: public Builder clearBoolValue() {
1600: bitField0_ = (bitField0_ & ~0x00000040);
1601: boolValue_ = false;
1602: onChanged();
1603: return this;
1604: }
1605:
1606: private java.lang.Object stringValue_ = "";
1607: /**
1608: * <code>optional string string_value = 8;</code>
1609: * @return Whether the stringValue field is set.
1610: */
1611: public boolean hasStringValue() {
1612: return ((bitField0_ & 0x00000080) != 0);
1613: }
1614: /**
1615: * <code>optional string string_value = 8;</code>
1616: * @return The stringValue.
1617: */
1618: public java.lang.String getStringValue() {
1619: java.lang.Object ref = stringValue_;
1620: if (!(ref instanceof java.lang.String)) {
1621: com.google.protobuf.ByteString bs =
1622: (com.google.protobuf.ByteString) ref;
1623: java.lang.String s = bs.toStringUtf8();
1624: if (bs.isValidUtf8()) {
1625: stringValue_ = s;
1626: }
1627: return s;
1628: } else {
1629: return (java.lang.String) ref;
1630: }
1631: }
1632: /**
1633: * <code>optional string string_value = 8;</code>
1634: * @return The bytes for stringValue.
1635: */
1636: public com.google.protobuf.ByteString
1637: getStringValueBytes() {
1638: java.lang.Object ref = stringValue_;
1639: if (ref instanceof String) {
1640: com.google.protobuf.ByteString b =
1641: com.google.protobuf.ByteString.copyFromUtf8(
1642: (java.lang.String) ref);
1643: stringValue_ = b;
1644: return b;
1645: } else {
1646: return (com.google.protobuf.ByteString) ref;
1647: }
1648: }
1649: /**
1650: * <code>optional string string_value = 8;</code>
1651: * @param value The stringValue to set.
1652: * @return This builder for chaining.
1653: */
1654: public Builder setStringValue(
1655: java.lang.String value) {
1656: if (value == null) {
1657: throw new NullPointerException();
1658: }
1659: bitField0_ |= 0x00000080;
1660: stringValue_ = value;
1661: onChanged();
1662: return this;
1663: }
1664: /**
1665: * <code>optional string string_value = 8;</code>
1666: * @return This builder for chaining.
1667: */
1668: public Builder clearStringValue() {
1669: bitField0_ = (bitField0_ & ~0x00000080);
1670: stringValue_ = getDefaultInstance().getStringValue();
1671: onChanged();
1672: return this;
1673: }
1674: /**
1675: * <code>optional string string_value = 8;</code>
1676: * @param value The bytes for stringValue to set.
1677: * @return This builder for chaining.
1678: */
1679: public Builder setStringValueBytes(
1680: com.google.protobuf.ByteString value) {
1681: if (value == null) {
1682: throw new NullPointerException();
1683: }
1684: bitField0_ |= 0x00000080;
1685: stringValue_ = value;
1686: onChanged();
1687: return this;
1688: }
1689:
1690: private com.google.protobuf.ByteString bytesValue_ = com.google.protobuf.ByteString.EMPTY;
1691: /**
1692: * <code>optional bytes bytes_value = 9;</code>
1693: * @return Whether the bytesValue field is set.
1694: */
1695: @java.lang.Override
1696: public boolean hasBytesValue() {
1697: return ((bitField0_ & 0x00000100) != 0);
1698: }
1699: /**
1700: * <code>optional bytes bytes_value = 9;</code>
1701: * @return The bytesValue.
1702: */
1703: @java.lang.Override
1704: public com.google.protobuf.ByteString getBytesValue() {
1705: return bytesValue_;
1706: }
1707: /**
1708: * <code>optional bytes bytes_value = 9;</code>
1709: * @param value The bytesValue to set.
1710: * @return This builder for chaining.
1711: */
1712: public Builder setBytesValue(com.google.protobuf.ByteString value) {
1713: if (value == null) {
1714: throw new NullPointerException();
1715: }
1716: bitField0_ |= 0x00000100;
1717: bytesValue_ = value;
1718: onChanged();
1719: return this;
1720: }
1721: /**
1722: * <code>optional bytes bytes_value = 9;</code>
1723: * @return This builder for chaining.
1724: */
1725: public Builder clearBytesValue() {
1726: bitField0_ = (bitField0_ & ~0x00000100);
1727: bytesValue_ = getDefaultInstance().getBytesValue();
1728: onChanged();
1729: return this;
1730: }
1731: @java.lang.Override
1732: public final Builder setUnknownFields(
1733: final com.google.protobuf.UnknownFieldSet unknownFields) {
1734: return super.setUnknownFields(unknownFields);
1735: }
1736:
1737: @java.lang.Override
1738: public final Builder mergeUnknownFields(
1739: final com.google.protobuf.UnknownFieldSet unknownFields) {
1740: return super.mergeUnknownFields(unknownFields);
1741: }
1742:
1743:
1744: // @@protoc_insertion_point(builder_scope:kuradatatypes.KuraPayload.KuraMetric)
1745: }
1746:
1747: // @@protoc_insertion_point(class_scope:kuradatatypes.KuraPayload.KuraMetric)
1748: private static final KuraPayloadProto.KuraPayload.KuraMetric DEFAULT_INSTANCE;
1749: static {
1750: DEFAULT_INSTANCE = new KuraPayloadProto.KuraPayload.KuraMetric();
1751: }
1752:
1753: public static KuraPayloadProto.KuraPayload.KuraMetric getDefaultInstance() {
1754: return DEFAULT_INSTANCE;
1755: }
1756:
1757: @java.lang.Deprecated public static final com.google.protobuf.Parser<KuraMetric>
1758: PARSER = new com.google.protobuf.AbstractParser<KuraMetric>() {
1759: @java.lang.Override
1760: public KuraMetric parsePartialFrom(
1761: com.google.protobuf.CodedInputStream input,
1762: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1763: throws com.google.protobuf.InvalidProtocolBufferException {
1764: Builder builder = newBuilder();
1765: try {
1766: builder.mergeFrom(input, extensionRegistry);
1767: } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1768: throw e.setUnfinishedMessage(builder.buildPartial());
1769: } catch (com.google.protobuf.UninitializedMessageException e) {
1770: throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1771: } catch (java.io.IOException e) {
1772: throw new com.google.protobuf.InvalidProtocolBufferException(e)
1773: .setUnfinishedMessage(builder.buildPartial());
1774: }
1775: return builder.buildPartial();
1776: }
1777: };
1778:
1779: public static com.google.protobuf.Parser<KuraMetric> parser() {
1780: return PARSER;
1781: }
1782:
1783: @java.lang.Override
1784: public com.google.protobuf.Parser<KuraMetric> getParserForType() {
1785: return PARSER;
1786: }
1787:
1788: @java.lang.Override
1789: public KuraPayloadProto.KuraPayload.KuraMetric getDefaultInstanceForType() {
1790: return DEFAULT_INSTANCE;
1791: }
1792:
1793: }
1794:
1795: public interface KuraPositionOrBuilder extends
1796: // @@protoc_insertion_point(interface_extends:kuradatatypes.KuraPayload.KuraPosition)
1797: com.google.protobuf.MessageOrBuilder {
1798:
1799: /**
1800: * <code>required double latitude = 1;</code>
1801: * @return Whether the latitude field is set.
1802: */
1803: boolean hasLatitude();
1804: /**
1805: * <code>required double latitude = 1;</code>
1806: * @return The latitude.
1807: */
1808: double getLatitude();
1809:
1810: /**
1811: * <code>required double longitude = 2;</code>
1812: * @return Whether the longitude field is set.
1813: */
1814: boolean hasLongitude();
1815: /**
1816: * <code>required double longitude = 2;</code>
1817: * @return The longitude.
1818: */
1819: double getLongitude();
1820:
1821: /**
1822: * <code>optional double altitude = 3;</code>
1823: * @return Whether the altitude field is set.
1824: */
1825: boolean hasAltitude();
1826: /**
1827: * <code>optional double altitude = 3;</code>
1828: * @return The altitude.
1829: */
1830: double getAltitude();
1831:
1832: /**
1833: * <pre>
1834: * dilution of precision of the current satellite fix.
1835: * </pre>
1836: *
1837: * <code>optional double precision = 4;</code>
1838: * @return Whether the precision field is set.
1839: */
1840: boolean hasPrecision();
1841: /**
1842: * <pre>
1843: * dilution of precision of the current satellite fix.
1844: * </pre>
1845: *
1846: * <code>optional double precision = 4;</code>
1847: * @return The precision.
1848: */
1849: double getPrecision();
1850:
1851: /**
1852: * <pre>
1853: * heading in degrees
1854: * </pre>
1855: *
1856: * <code>optional double heading = 5;</code>
1857: * @return Whether the heading field is set.
1858: */
1859: boolean hasHeading();
1860: /**
1861: * <pre>
1862: * heading in degrees
1863: * </pre>
1864: *
1865: * <code>optional double heading = 5;</code>
1866: * @return The heading.
1867: */
1868: double getHeading();
1869:
1870: /**
1871: * <pre>
1872: * meters per second
1873: * </pre>
1874: *
1875: * <code>optional double speed = 6;</code>
1876: * @return Whether the speed field is set.
1877: */
1878: boolean hasSpeed();
1879: /**
1880: * <pre>
1881: * meters per second
1882: * </pre>
1883: *
1884: * <code>optional double speed = 6;</code>
1885: * @return The speed.
1886: */
1887: double getSpeed();
1888:
1889: /**
1890: * <code>optional int64 timestamp = 7;</code>
1891: * @return Whether the timestamp field is set.
1892: */
1893: boolean hasTimestamp();
1894: /**
1895: * <code>optional int64 timestamp = 7;</code>
1896: * @return The timestamp.
1897: */
1898: long getTimestamp();
1899:
1900: /**
1901: * <pre>
1902: * number satellites locked by the GPS device
1903: * </pre>
1904: *
1905: * <code>optional int32 satellites = 8;</code>
1906: * @return Whether the satellites field is set.
1907: */
1908: boolean hasSatellites();
1909: /**
1910: * <pre>
1911: * number satellites locked by the GPS device
1912: * </pre>
1913: *
1914: * <code>optional int32 satellites = 8;</code>
1915: * @return The satellites.
1916: */
1917: int getSatellites();
1918:
1919: /**
1920: * <pre>
1921: * status indicator for the GPS data: 1 = no GPS response; 2 = error in response; 4 = valid.
1922: * </pre>
1923: *
1924: * <code>optional int32 status = 9;</code>
1925: * @return Whether the status field is set.
1926: */
1927: boolean hasStatus();
1928: /**
1929: * <pre>
1930: * status indicator for the GPS data: 1 = no GPS response; 2 = error in response; 4 = valid.
1931: * </pre>
1932: *
1933: * <code>optional int32 status = 9;</code>
1934: * @return The status.
1935: */
1936: int getStatus();
1937: }
1938: /**
1939: * Protobuf type {@code kuradatatypes.KuraPayload.KuraPosition}
1940: */
1941: public static final class KuraPosition extends
1942: com.google.protobuf.GeneratedMessageV3 implements
1943: // @@protoc_insertion_point(message_implements:kuradatatypes.KuraPayload.KuraPosition)
1944: KuraPositionOrBuilder {
1945: private static final long serialVersionUID = 0L;
1946: // Use KuraPosition.newBuilder() to construct.
1947: private KuraPosition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
1948: super(builder);
1949: }
1950: private KuraPosition() {
1951: }
1952:
1953: @java.lang.Override
1954: @SuppressWarnings({"unused"})
1955: protected java.lang.Object newInstance(
1956: UnusedPrivateParameter unused) {
1957: return new KuraPosition();
1958: }
1959:
1960: @java.lang.Override
1961: public final com.google.protobuf.UnknownFieldSet
1962: getUnknownFields() {
1963: return this.unknownFields;
1964: }
1965: public static final com.google.protobuf.Descriptors.Descriptor
1966: getDescriptor() {
1967: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraPosition_descriptor;
1968: }
1969:
1970: @java.lang.Override
1971: protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1972: internalGetFieldAccessorTable() {
1973: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraPosition_fieldAccessorTable
1974: .ensureFieldAccessorsInitialized(
1975: KuraPayloadProto.KuraPayload.KuraPosition.class, KuraPayloadProto.KuraPayload.KuraPosition.Builder.class);
1976: }
1977:
1978: private int bitField0_;
1979: public static final int LATITUDE_FIELD_NUMBER = 1;
1980: private double latitude_;
1981: /**
1982: * <code>required double latitude = 1;</code>
1983: * @return Whether the latitude field is set.
1984: */
1985: @java.lang.Override
1986: public boolean hasLatitude() {
1987:• return ((bitField0_ & 0x00000001) != 0);
1988: }
1989: /**
1990: * <code>required double latitude = 1;</code>
1991: * @return The latitude.
1992: */
1993: @java.lang.Override
1994: public double getLatitude() {
1995: return latitude_;
1996: }
1997:
1998: public static final int LONGITUDE_FIELD_NUMBER = 2;
1999: private double longitude_;
2000: /**
2001: * <code>required double longitude = 2;</code>
2002: * @return Whether the longitude field is set.
2003: */
2004: @java.lang.Override
2005: public boolean hasLongitude() {
2006:• return ((bitField0_ & 0x00000002) != 0);
2007: }
2008: /**
2009: * <code>required double longitude = 2;</code>
2010: * @return The longitude.
2011: */
2012: @java.lang.Override
2013: public double getLongitude() {
2014: return longitude_;
2015: }
2016:
2017: public static final int ALTITUDE_FIELD_NUMBER = 3;
2018: private double altitude_;
2019: /**
2020: * <code>optional double altitude = 3;</code>
2021: * @return Whether the altitude field is set.
2022: */
2023: @java.lang.Override
2024: public boolean hasAltitude() {
2025:• return ((bitField0_ & 0x00000004) != 0);
2026: }
2027: /**
2028: * <code>optional double altitude = 3;</code>
2029: * @return The altitude.
2030: */
2031: @java.lang.Override
2032: public double getAltitude() {
2033: return altitude_;
2034: }
2035:
2036: public static final int PRECISION_FIELD_NUMBER = 4;
2037: private double precision_;
2038: /**
2039: * <pre>
2040: * dilution of precision of the current satellite fix.
2041: * </pre>
2042: *
2043: * <code>optional double precision = 4;</code>
2044: * @return Whether the precision field is set.
2045: */
2046: @java.lang.Override
2047: public boolean hasPrecision() {
2048:• return ((bitField0_ & 0x00000008) != 0);
2049: }
2050: /**
2051: * <pre>
2052: * dilution of precision of the current satellite fix.
2053: * </pre>
2054: *
2055: * <code>optional double precision = 4;</code>
2056: * @return The precision.
2057: */
2058: @java.lang.Override
2059: public double getPrecision() {
2060: return precision_;
2061: }
2062:
2063: public static final int HEADING_FIELD_NUMBER = 5;
2064: private double heading_;
2065: /**
2066: * <pre>
2067: * heading in degrees
2068: * </pre>
2069: *
2070: * <code>optional double heading = 5;</code>
2071: * @return Whether the heading field is set.
2072: */
2073: @java.lang.Override
2074: public boolean hasHeading() {
2075:• return ((bitField0_ & 0x00000010) != 0);
2076: }
2077: /**
2078: * <pre>
2079: * heading in degrees
2080: * </pre>
2081: *
2082: * <code>optional double heading = 5;</code>
2083: * @return The heading.
2084: */
2085: @java.lang.Override
2086: public double getHeading() {
2087: return heading_;
2088: }
2089:
2090: public static final int SPEED_FIELD_NUMBER = 6;
2091: private double speed_;
2092: /**
2093: * <pre>
2094: * meters per second
2095: * </pre>
2096: *
2097: * <code>optional double speed = 6;</code>
2098: * @return Whether the speed field is set.
2099: */
2100: @java.lang.Override
2101: public boolean hasSpeed() {
2102:• return ((bitField0_ & 0x00000020) != 0);
2103: }
2104: /**
2105: * <pre>
2106: * meters per second
2107: * </pre>
2108: *
2109: * <code>optional double speed = 6;</code>
2110: * @return The speed.
2111: */
2112: @java.lang.Override
2113: public double getSpeed() {
2114: return speed_;
2115: }
2116:
2117: public static final int TIMESTAMP_FIELD_NUMBER = 7;
2118: private long timestamp_;
2119: /**
2120: * <code>optional int64 timestamp = 7;</code>
2121: * @return Whether the timestamp field is set.
2122: */
2123: @java.lang.Override
2124: public boolean hasTimestamp() {
2125:• return ((bitField0_ & 0x00000040) != 0);
2126: }
2127: /**
2128: * <code>optional int64 timestamp = 7;</code>
2129: * @return The timestamp.
2130: */
2131: @java.lang.Override
2132: public long getTimestamp() {
2133: return timestamp_;
2134: }
2135:
2136: public static final int SATELLITES_FIELD_NUMBER = 8;
2137: private int satellites_;
2138: /**
2139: * <pre>
2140: * number satellites locked by the GPS device
2141: * </pre>
2142: *
2143: * <code>optional int32 satellites = 8;</code>
2144: * @return Whether the satellites field is set.
2145: */
2146: @java.lang.Override
2147: public boolean hasSatellites() {
2148:• return ((bitField0_ & 0x00000080) != 0);
2149: }
2150: /**
2151: * <pre>
2152: * number satellites locked by the GPS device
2153: * </pre>
2154: *
2155: * <code>optional int32 satellites = 8;</code>
2156: * @return The satellites.
2157: */
2158: @java.lang.Override
2159: public int getSatellites() {
2160: return satellites_;
2161: }
2162:
2163: public static final int STATUS_FIELD_NUMBER = 9;
2164: private int status_;
2165: /**
2166: * <pre>
2167: * status indicator for the GPS data: 1 = no GPS response; 2 = error in response; 4 = valid.
2168: * </pre>
2169: *
2170: * <code>optional int32 status = 9;</code>
2171: * @return Whether the status field is set.
2172: */
2173: @java.lang.Override
2174: public boolean hasStatus() {
2175:• return ((bitField0_ & 0x00000100) != 0);
2176: }
2177: /**
2178: * <pre>
2179: * status indicator for the GPS data: 1 = no GPS response; 2 = error in response; 4 = valid.
2180: * </pre>
2181: *
2182: * <code>optional int32 status = 9;</code>
2183: * @return The status.
2184: */
2185: @java.lang.Override
2186: public int getStatus() {
2187: return status_;
2188: }
2189:
2190: private byte memoizedIsInitialized = -1;
2191: @java.lang.Override
2192: public final boolean isInitialized() {
2193: byte isInitialized = memoizedIsInitialized;
2194:• if (isInitialized == 1) return true;
2195:• if (isInitialized == 0) return false;
2196:
2197:• if (!hasLatitude()) {
2198: memoizedIsInitialized = 0;
2199: return false;
2200: }
2201:• if (!hasLongitude()) {
2202: memoizedIsInitialized = 0;
2203: return false;
2204: }
2205: memoizedIsInitialized = 1;
2206: return true;
2207: }
2208:
2209: @java.lang.Override
2210: public void writeTo(com.google.protobuf.CodedOutputStream output)
2211: throws java.io.IOException {
2212:• if (((bitField0_ & 0x00000001) != 0)) {
2213: output.writeDouble(1, latitude_);
2214: }
2215:• if (((bitField0_ & 0x00000002) != 0)) {
2216: output.writeDouble(2, longitude_);
2217: }
2218:• if (((bitField0_ & 0x00000004) != 0)) {
2219: output.writeDouble(3, altitude_);
2220: }
2221:• if (((bitField0_ & 0x00000008) != 0)) {
2222: output.writeDouble(4, precision_);
2223: }
2224:• if (((bitField0_ & 0x00000010) != 0)) {
2225: output.writeDouble(5, heading_);
2226: }
2227:• if (((bitField0_ & 0x00000020) != 0)) {
2228: output.writeDouble(6, speed_);
2229: }
2230:• if (((bitField0_ & 0x00000040) != 0)) {
2231: output.writeInt64(7, timestamp_);
2232: }
2233:• if (((bitField0_ & 0x00000080) != 0)) {
2234: output.writeInt32(8, satellites_);
2235: }
2236:• if (((bitField0_ & 0x00000100) != 0)) {
2237: output.writeInt32(9, status_);
2238: }
2239: getUnknownFields().writeTo(output);
2240: }
2241:
2242: @java.lang.Override
2243: public int getSerializedSize() {
2244: int size = memoizedSize;
2245:• if (size != -1) return size;
2246:
2247: size = 0;
2248:• if (((bitField0_ & 0x00000001) != 0)) {
2249: size += com.google.protobuf.CodedOutputStream
2250: .computeDoubleSize(1, latitude_);
2251: }
2252:• if (((bitField0_ & 0x00000002) != 0)) {
2253: size += com.google.protobuf.CodedOutputStream
2254: .computeDoubleSize(2, longitude_);
2255: }
2256:• if (((bitField0_ & 0x00000004) != 0)) {
2257: size += com.google.protobuf.CodedOutputStream
2258: .computeDoubleSize(3, altitude_);
2259: }
2260:• if (((bitField0_ & 0x00000008) != 0)) {
2261: size += com.google.protobuf.CodedOutputStream
2262: .computeDoubleSize(4, precision_);
2263: }
2264:• if (((bitField0_ & 0x00000010) != 0)) {
2265: size += com.google.protobuf.CodedOutputStream
2266: .computeDoubleSize(5, heading_);
2267: }
2268:• if (((bitField0_ & 0x00000020) != 0)) {
2269: size += com.google.protobuf.CodedOutputStream
2270: .computeDoubleSize(6, speed_);
2271: }
2272:• if (((bitField0_ & 0x00000040) != 0)) {
2273: size += com.google.protobuf.CodedOutputStream
2274: .computeInt64Size(7, timestamp_);
2275: }
2276:• if (((bitField0_ & 0x00000080) != 0)) {
2277: size += com.google.protobuf.CodedOutputStream
2278: .computeInt32Size(8, satellites_);
2279: }
2280:• if (((bitField0_ & 0x00000100) != 0)) {
2281: size += com.google.protobuf.CodedOutputStream
2282: .computeInt32Size(9, status_);
2283: }
2284: size += getUnknownFields().getSerializedSize();
2285: memoizedSize = size;
2286: return size;
2287: }
2288:
2289: @java.lang.Override
2290: public boolean equals(final java.lang.Object obj) {
2291:• if (obj == this) {
2292: return true;
2293: }
2294:• if (!(obj instanceof KuraPayloadProto.KuraPayload.KuraPosition)) {
2295: return super.equals(obj);
2296: }
2297: KuraPayloadProto.KuraPayload.KuraPosition other = (KuraPayloadProto.KuraPayload.KuraPosition) obj;
2298:
2299:• if (hasLatitude() != other.hasLatitude()) return false;
2300:• if (hasLatitude()) {
2301: if (java.lang.Double.doubleToLongBits(getLatitude())
2302:• != java.lang.Double.doubleToLongBits(
2303: other.getLatitude())) return false;
2304: }
2305:• if (hasLongitude() != other.hasLongitude()) return false;
2306:• if (hasLongitude()) {
2307: if (java.lang.Double.doubleToLongBits(getLongitude())
2308:• != java.lang.Double.doubleToLongBits(
2309: other.getLongitude())) return false;
2310: }
2311:• if (hasAltitude() != other.hasAltitude()) return false;
2312:• if (hasAltitude()) {
2313: if (java.lang.Double.doubleToLongBits(getAltitude())
2314:• != java.lang.Double.doubleToLongBits(
2315: other.getAltitude())) return false;
2316: }
2317:• if (hasPrecision() != other.hasPrecision()) return false;
2318:• if (hasPrecision()) {
2319: if (java.lang.Double.doubleToLongBits(getPrecision())
2320:• != java.lang.Double.doubleToLongBits(
2321: other.getPrecision())) return false;
2322: }
2323:• if (hasHeading() != other.hasHeading()) return false;
2324:• if (hasHeading()) {
2325: if (java.lang.Double.doubleToLongBits(getHeading())
2326:• != java.lang.Double.doubleToLongBits(
2327: other.getHeading())) return false;
2328: }
2329:• if (hasSpeed() != other.hasSpeed()) return false;
2330:• if (hasSpeed()) {
2331: if (java.lang.Double.doubleToLongBits(getSpeed())
2332:• != java.lang.Double.doubleToLongBits(
2333: other.getSpeed())) return false;
2334: }
2335:• if (hasTimestamp() != other.hasTimestamp()) return false;
2336:• if (hasTimestamp()) {
2337: if (getTimestamp()
2338:• != other.getTimestamp()) return false;
2339: }
2340:• if (hasSatellites() != other.hasSatellites()) return false;
2341:• if (hasSatellites()) {
2342: if (getSatellites()
2343:• != other.getSatellites()) return false;
2344: }
2345:• if (hasStatus() != other.hasStatus()) return false;
2346:• if (hasStatus()) {
2347: if (getStatus()
2348:• != other.getStatus()) return false;
2349: }
2350:• if (!getUnknownFields().equals(other.getUnknownFields())) return false;
2351: return true;
2352: }
2353:
2354: @java.lang.Override
2355: public int hashCode() {
2356:• if (memoizedHashCode != 0) {
2357: return memoizedHashCode;
2358: }
2359: int hash = 41;
2360: hash = (19 * hash) + getDescriptor().hashCode();
2361:• if (hasLatitude()) {
2362: hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
2363: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2364: java.lang.Double.doubleToLongBits(getLatitude()));
2365: }
2366:• if (hasLongitude()) {
2367: hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
2368: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2369: java.lang.Double.doubleToLongBits(getLongitude()));
2370: }
2371:• if (hasAltitude()) {
2372: hash = (37 * hash) + ALTITUDE_FIELD_NUMBER;
2373: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2374: java.lang.Double.doubleToLongBits(getAltitude()));
2375: }
2376:• if (hasPrecision()) {
2377: hash = (37 * hash) + PRECISION_FIELD_NUMBER;
2378: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2379: java.lang.Double.doubleToLongBits(getPrecision()));
2380: }
2381:• if (hasHeading()) {
2382: hash = (37 * hash) + HEADING_FIELD_NUMBER;
2383: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2384: java.lang.Double.doubleToLongBits(getHeading()));
2385: }
2386:• if (hasSpeed()) {
2387: hash = (37 * hash) + SPEED_FIELD_NUMBER;
2388: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2389: java.lang.Double.doubleToLongBits(getSpeed()));
2390: }
2391:• if (hasTimestamp()) {
2392: hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
2393: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2394: getTimestamp());
2395: }
2396:• if (hasSatellites()) {
2397: hash = (37 * hash) + SATELLITES_FIELD_NUMBER;
2398: hash = (53 * hash) + getSatellites();
2399: }
2400:• if (hasStatus()) {
2401: hash = (37 * hash) + STATUS_FIELD_NUMBER;
2402: hash = (53 * hash) + getStatus();
2403: }
2404: hash = (29 * hash) + getUnknownFields().hashCode();
2405: memoizedHashCode = hash;
2406: return hash;
2407: }
2408:
2409: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(
2410: java.nio.ByteBuffer data)
2411: throws com.google.protobuf.InvalidProtocolBufferException {
2412: return PARSER.parseFrom(data);
2413: }
2414: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(
2415: java.nio.ByteBuffer data,
2416: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2417: throws com.google.protobuf.InvalidProtocolBufferException {
2418: return PARSER.parseFrom(data, extensionRegistry);
2419: }
2420: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(
2421: com.google.protobuf.ByteString data)
2422: throws com.google.protobuf.InvalidProtocolBufferException {
2423: return PARSER.parseFrom(data);
2424: }
2425: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(
2426: com.google.protobuf.ByteString data,
2427: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2428: throws com.google.protobuf.InvalidProtocolBufferException {
2429: return PARSER.parseFrom(data, extensionRegistry);
2430: }
2431: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(byte[] data)
2432: throws com.google.protobuf.InvalidProtocolBufferException {
2433: return PARSER.parseFrom(data);
2434: }
2435: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(
2436: byte[] data,
2437: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2438: throws com.google.protobuf.InvalidProtocolBufferException {
2439: return PARSER.parseFrom(data, extensionRegistry);
2440: }
2441: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(java.io.InputStream input)
2442: throws java.io.IOException {
2443: return com.google.protobuf.GeneratedMessageV3
2444: .parseWithIOException(PARSER, input);
2445: }
2446: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(
2447: java.io.InputStream input,
2448: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2449: throws java.io.IOException {
2450: return com.google.protobuf.GeneratedMessageV3
2451: .parseWithIOException(PARSER, input, extensionRegistry);
2452: }
2453: public static KuraPayloadProto.KuraPayload.KuraPosition parseDelimitedFrom(java.io.InputStream input)
2454: throws java.io.IOException {
2455: return com.google.protobuf.GeneratedMessageV3
2456: .parseDelimitedWithIOException(PARSER, input);
2457: }
2458: public static KuraPayloadProto.KuraPayload.KuraPosition parseDelimitedFrom(
2459: java.io.InputStream input,
2460: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2461: throws java.io.IOException {
2462: return com.google.protobuf.GeneratedMessageV3
2463: .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2464: }
2465: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(
2466: com.google.protobuf.CodedInputStream input)
2467: throws java.io.IOException {
2468: return com.google.protobuf.GeneratedMessageV3
2469: .parseWithIOException(PARSER, input);
2470: }
2471: public static KuraPayloadProto.KuraPayload.KuraPosition parseFrom(
2472: com.google.protobuf.CodedInputStream input,
2473: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2474: throws java.io.IOException {
2475: return com.google.protobuf.GeneratedMessageV3
2476: .parseWithIOException(PARSER, input, extensionRegistry);
2477: }
2478:
2479: @java.lang.Override
2480: public Builder newBuilderForType() { return newBuilder(); }
2481: public static Builder newBuilder() {
2482: return DEFAULT_INSTANCE.toBuilder();
2483: }
2484: public static Builder newBuilder(KuraPayloadProto.KuraPayload.KuraPosition prototype) {
2485: return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2486: }
2487: @java.lang.Override
2488: public Builder toBuilder() {
2489:• return this == DEFAULT_INSTANCE
2490: ? new Builder() : new Builder().mergeFrom(this);
2491: }
2492:
2493: @java.lang.Override
2494: protected Builder newBuilderForType(
2495: com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2496: Builder builder = new Builder(parent);
2497: return builder;
2498: }
2499: /**
2500: * Protobuf type {@code kuradatatypes.KuraPayload.KuraPosition}
2501: */
2502: public static final class Builder extends
2503: com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
2504: // @@protoc_insertion_point(builder_implements:kuradatatypes.KuraPayload.KuraPosition)
2505: KuraPayloadProto.KuraPayload.KuraPositionOrBuilder {
2506: public static final com.google.protobuf.Descriptors.Descriptor
2507: getDescriptor() {
2508: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraPosition_descriptor;
2509: }
2510:
2511: @java.lang.Override
2512: protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
2513: internalGetFieldAccessorTable() {
2514: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraPosition_fieldAccessorTable
2515: .ensureFieldAccessorsInitialized(
2516: KuraPayloadProto.KuraPayload.KuraPosition.class, KuraPayloadProto.KuraPayload.KuraPosition.Builder.class);
2517: }
2518:
2519: // Construct using org.eclipse.kapua.kura.simulator.proto.KuraPayloadProto.KuraPayload.KuraPosition.newBuilder()
2520: private Builder() {
2521:
2522: }
2523:
2524: private Builder(
2525: com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2526: super(parent);
2527:
2528: }
2529: @java.lang.Override
2530: public Builder clear() {
2531: super.clear();
2532: latitude_ = 0D;
2533: bitField0_ = (bitField0_ & ~0x00000001);
2534: longitude_ = 0D;
2535: bitField0_ = (bitField0_ & ~0x00000002);
2536: altitude_ = 0D;
2537: bitField0_ = (bitField0_ & ~0x00000004);
2538: precision_ = 0D;
2539: bitField0_ = (bitField0_ & ~0x00000008);
2540: heading_ = 0D;
2541: bitField0_ = (bitField0_ & ~0x00000010);
2542: speed_ = 0D;
2543: bitField0_ = (bitField0_ & ~0x00000020);
2544: timestamp_ = 0L;
2545: bitField0_ = (bitField0_ & ~0x00000040);
2546: satellites_ = 0;
2547: bitField0_ = (bitField0_ & ~0x00000080);
2548: status_ = 0;
2549: bitField0_ = (bitField0_ & ~0x00000100);
2550: return this;
2551: }
2552:
2553: @java.lang.Override
2554: public com.google.protobuf.Descriptors.Descriptor
2555: getDescriptorForType() {
2556: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_KuraPosition_descriptor;
2557: }
2558:
2559: @java.lang.Override
2560: public KuraPayloadProto.KuraPayload.KuraPosition getDefaultInstanceForType() {
2561: return KuraPayloadProto.KuraPayload.KuraPosition.getDefaultInstance();
2562: }
2563:
2564: @java.lang.Override
2565: public KuraPayloadProto.KuraPayload.KuraPosition build() {
2566: KuraPayloadProto.KuraPayload.KuraPosition result = buildPartial();
2567: if (!result.isInitialized()) {
2568: throw newUninitializedMessageException(result);
2569: }
2570: return result;
2571: }
2572:
2573: @java.lang.Override
2574: public KuraPayloadProto.KuraPayload.KuraPosition buildPartial() {
2575: KuraPayloadProto.KuraPayload.KuraPosition result = new KuraPayloadProto.KuraPayload.KuraPosition(this);
2576: int from_bitField0_ = bitField0_;
2577: int to_bitField0_ = 0;
2578: if (((from_bitField0_ & 0x00000001) != 0)) {
2579: result.latitude_ = latitude_;
2580: to_bitField0_ |= 0x00000001;
2581: }
2582: if (((from_bitField0_ & 0x00000002) != 0)) {
2583: result.longitude_ = longitude_;
2584: to_bitField0_ |= 0x00000002;
2585: }
2586: if (((from_bitField0_ & 0x00000004) != 0)) {
2587: result.altitude_ = altitude_;
2588: to_bitField0_ |= 0x00000004;
2589: }
2590: if (((from_bitField0_ & 0x00000008) != 0)) {
2591: result.precision_ = precision_;
2592: to_bitField0_ |= 0x00000008;
2593: }
2594: if (((from_bitField0_ & 0x00000010) != 0)) {
2595: result.heading_ = heading_;
2596: to_bitField0_ |= 0x00000010;
2597: }
2598: if (((from_bitField0_ & 0x00000020) != 0)) {
2599: result.speed_ = speed_;
2600: to_bitField0_ |= 0x00000020;
2601: }
2602: if (((from_bitField0_ & 0x00000040) != 0)) {
2603: result.timestamp_ = timestamp_;
2604: to_bitField0_ |= 0x00000040;
2605: }
2606: if (((from_bitField0_ & 0x00000080) != 0)) {
2607: result.satellites_ = satellites_;
2608: to_bitField0_ |= 0x00000080;
2609: }
2610: if (((from_bitField0_ & 0x00000100) != 0)) {
2611: result.status_ = status_;
2612: to_bitField0_ |= 0x00000100;
2613: }
2614: result.bitField0_ = to_bitField0_;
2615: onBuilt();
2616: return result;
2617: }
2618:
2619: @java.lang.Override
2620: public Builder clone() {
2621: return super.clone();
2622: }
2623: @java.lang.Override
2624: public Builder setField(
2625: com.google.protobuf.Descriptors.FieldDescriptor field,
2626: java.lang.Object value) {
2627: return super.setField(field, value);
2628: }
2629: @java.lang.Override
2630: public Builder clearField(
2631: com.google.protobuf.Descriptors.FieldDescriptor field) {
2632: return super.clearField(field);
2633: }
2634: @java.lang.Override
2635: public Builder clearOneof(
2636: com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2637: return super.clearOneof(oneof);
2638: }
2639: @java.lang.Override
2640: public Builder setRepeatedField(
2641: com.google.protobuf.Descriptors.FieldDescriptor field,
2642: int index, java.lang.Object value) {
2643: return super.setRepeatedField(field, index, value);
2644: }
2645: @java.lang.Override
2646: public Builder addRepeatedField(
2647: com.google.protobuf.Descriptors.FieldDescriptor field,
2648: java.lang.Object value) {
2649: return super.addRepeatedField(field, value);
2650: }
2651: @java.lang.Override
2652: public Builder mergeFrom(com.google.protobuf.Message other) {
2653: if (other instanceof KuraPayloadProto.KuraPayload.KuraPosition) {
2654: return mergeFrom((KuraPayloadProto.KuraPayload.KuraPosition)other);
2655: } else {
2656: super.mergeFrom(other);
2657: return this;
2658: }
2659: }
2660:
2661: public Builder mergeFrom(KuraPayloadProto.KuraPayload.KuraPosition other) {
2662: if (other == KuraPayloadProto.KuraPayload.KuraPosition.getDefaultInstance()) return this;
2663: if (other.hasLatitude()) {
2664: setLatitude(other.getLatitude());
2665: }
2666: if (other.hasLongitude()) {
2667: setLongitude(other.getLongitude());
2668: }
2669: if (other.hasAltitude()) {
2670: setAltitude(other.getAltitude());
2671: }
2672: if (other.hasPrecision()) {
2673: setPrecision(other.getPrecision());
2674: }
2675: if (other.hasHeading()) {
2676: setHeading(other.getHeading());
2677: }
2678: if (other.hasSpeed()) {
2679: setSpeed(other.getSpeed());
2680: }
2681: if (other.hasTimestamp()) {
2682: setTimestamp(other.getTimestamp());
2683: }
2684: if (other.hasSatellites()) {
2685: setSatellites(other.getSatellites());
2686: }
2687: if (other.hasStatus()) {
2688: setStatus(other.getStatus());
2689: }
2690: this.mergeUnknownFields(other.getUnknownFields());
2691: onChanged();
2692: return this;
2693: }
2694:
2695: @java.lang.Override
2696: public final boolean isInitialized() {
2697: if (!hasLatitude()) {
2698: return false;
2699: }
2700: if (!hasLongitude()) {
2701: return false;
2702: }
2703: return true;
2704: }
2705:
2706: @java.lang.Override
2707: public Builder mergeFrom(
2708: com.google.protobuf.CodedInputStream input,
2709: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2710: throws java.io.IOException {
2711: if (extensionRegistry == null) {
2712: throw new java.lang.NullPointerException();
2713: }
2714: try {
2715: boolean done = false;
2716: while (!done) {
2717: int tag = input.readTag();
2718: switch (tag) {
2719: case 0:
2720: done = true;
2721: break;
2722: case 9: {
2723: latitude_ = input.readDouble();
2724: bitField0_ |= 0x00000001;
2725: break;
2726: } // case 9
2727: case 17: {
2728: longitude_ = input.readDouble();
2729: bitField0_ |= 0x00000002;
2730: break;
2731: } // case 17
2732: case 25: {
2733: altitude_ = input.readDouble();
2734: bitField0_ |= 0x00000004;
2735: break;
2736: } // case 25
2737: case 33: {
2738: precision_ = input.readDouble();
2739: bitField0_ |= 0x00000008;
2740: break;
2741: } // case 33
2742: case 41: {
2743: heading_ = input.readDouble();
2744: bitField0_ |= 0x00000010;
2745: break;
2746: } // case 41
2747: case 49: {
2748: speed_ = input.readDouble();
2749: bitField0_ |= 0x00000020;
2750: break;
2751: } // case 49
2752: case 56: {
2753: timestamp_ = input.readInt64();
2754: bitField0_ |= 0x00000040;
2755: break;
2756: } // case 56
2757: case 64: {
2758: satellites_ = input.readInt32();
2759: bitField0_ |= 0x00000080;
2760: break;
2761: } // case 64
2762: case 72: {
2763: status_ = input.readInt32();
2764: bitField0_ |= 0x00000100;
2765: break;
2766: } // case 72
2767: default: {
2768: if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2769: done = true; // was an endgroup tag
2770: }
2771: break;
2772: } // default:
2773: } // switch (tag)
2774: } // while (!done)
2775: } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2776: throw e.unwrapIOException();
2777: } finally {
2778: onChanged();
2779: } // finally
2780: return this;
2781: }
2782: private int bitField0_;
2783:
2784: private double latitude_ ;
2785: /**
2786: * <code>required double latitude = 1;</code>
2787: * @return Whether the latitude field is set.
2788: */
2789: @java.lang.Override
2790: public boolean hasLatitude() {
2791: return ((bitField0_ & 0x00000001) != 0);
2792: }
2793: /**
2794: * <code>required double latitude = 1;</code>
2795: * @return The latitude.
2796: */
2797: @java.lang.Override
2798: public double getLatitude() {
2799: return latitude_;
2800: }
2801: /**
2802: * <code>required double latitude = 1;</code>
2803: * @param value The latitude to set.
2804: * @return This builder for chaining.
2805: */
2806: public Builder setLatitude(double value) {
2807: bitField0_ |= 0x00000001;
2808: latitude_ = value;
2809: onChanged();
2810: return this;
2811: }
2812: /**
2813: * <code>required double latitude = 1;</code>
2814: * @return This builder for chaining.
2815: */
2816: public Builder clearLatitude() {
2817: bitField0_ = (bitField0_ & ~0x00000001);
2818: latitude_ = 0D;
2819: onChanged();
2820: return this;
2821: }
2822:
2823: private double longitude_ ;
2824: /**
2825: * <code>required double longitude = 2;</code>
2826: * @return Whether the longitude field is set.
2827: */
2828: @java.lang.Override
2829: public boolean hasLongitude() {
2830: return ((bitField0_ & 0x00000002) != 0);
2831: }
2832: /**
2833: * <code>required double longitude = 2;</code>
2834: * @return The longitude.
2835: */
2836: @java.lang.Override
2837: public double getLongitude() {
2838: return longitude_;
2839: }
2840: /**
2841: * <code>required double longitude = 2;</code>
2842: * @param value The longitude to set.
2843: * @return This builder for chaining.
2844: */
2845: public Builder setLongitude(double value) {
2846: bitField0_ |= 0x00000002;
2847: longitude_ = value;
2848: onChanged();
2849: return this;
2850: }
2851: /**
2852: * <code>required double longitude = 2;</code>
2853: * @return This builder for chaining.
2854: */
2855: public Builder clearLongitude() {
2856: bitField0_ = (bitField0_ & ~0x00000002);
2857: longitude_ = 0D;
2858: onChanged();
2859: return this;
2860: }
2861:
2862: private double altitude_ ;
2863: /**
2864: * <code>optional double altitude = 3;</code>
2865: * @return Whether the altitude field is set.
2866: */
2867: @java.lang.Override
2868: public boolean hasAltitude() {
2869: return ((bitField0_ & 0x00000004) != 0);
2870: }
2871: /**
2872: * <code>optional double altitude = 3;</code>
2873: * @return The altitude.
2874: */
2875: @java.lang.Override
2876: public double getAltitude() {
2877: return altitude_;
2878: }
2879: /**
2880: * <code>optional double altitude = 3;</code>
2881: * @param value The altitude to set.
2882: * @return This builder for chaining.
2883: */
2884: public Builder setAltitude(double value) {
2885: bitField0_ |= 0x00000004;
2886: altitude_ = value;
2887: onChanged();
2888: return this;
2889: }
2890: /**
2891: * <code>optional double altitude = 3;</code>
2892: * @return This builder for chaining.
2893: */
2894: public Builder clearAltitude() {
2895: bitField0_ = (bitField0_ & ~0x00000004);
2896: altitude_ = 0D;
2897: onChanged();
2898: return this;
2899: }
2900:
2901: private double precision_ ;
2902: /**
2903: * <pre>
2904: * dilution of precision of the current satellite fix.
2905: * </pre>
2906: *
2907: * <code>optional double precision = 4;</code>
2908: * @return Whether the precision field is set.
2909: */
2910: @java.lang.Override
2911: public boolean hasPrecision() {
2912: return ((bitField0_ & 0x00000008) != 0);
2913: }
2914: /**
2915: * <pre>
2916: * dilution of precision of the current satellite fix.
2917: * </pre>
2918: *
2919: * <code>optional double precision = 4;</code>
2920: * @return The precision.
2921: */
2922: @java.lang.Override
2923: public double getPrecision() {
2924: return precision_;
2925: }
2926: /**
2927: * <pre>
2928: * dilution of precision of the current satellite fix.
2929: * </pre>
2930: *
2931: * <code>optional double precision = 4;</code>
2932: * @param value The precision to set.
2933: * @return This builder for chaining.
2934: */
2935: public Builder setPrecision(double value) {
2936: bitField0_ |= 0x00000008;
2937: precision_ = value;
2938: onChanged();
2939: return this;
2940: }
2941: /**
2942: * <pre>
2943: * dilution of precision of the current satellite fix.
2944: * </pre>
2945: *
2946: * <code>optional double precision = 4;</code>
2947: * @return This builder for chaining.
2948: */
2949: public Builder clearPrecision() {
2950: bitField0_ = (bitField0_ & ~0x00000008);
2951: precision_ = 0D;
2952: onChanged();
2953: return this;
2954: }
2955:
2956: private double heading_ ;
2957: /**
2958: * <pre>
2959: * heading in degrees
2960: * </pre>
2961: *
2962: * <code>optional double heading = 5;</code>
2963: * @return Whether the heading field is set.
2964: */
2965: @java.lang.Override
2966: public boolean hasHeading() {
2967: return ((bitField0_ & 0x00000010) != 0);
2968: }
2969: /**
2970: * <pre>
2971: * heading in degrees
2972: * </pre>
2973: *
2974: * <code>optional double heading = 5;</code>
2975: * @return The heading.
2976: */
2977: @java.lang.Override
2978: public double getHeading() {
2979: return heading_;
2980: }
2981: /**
2982: * <pre>
2983: * heading in degrees
2984: * </pre>
2985: *
2986: * <code>optional double heading = 5;</code>
2987: * @param value The heading to set.
2988: * @return This builder for chaining.
2989: */
2990: public Builder setHeading(double value) {
2991: bitField0_ |= 0x00000010;
2992: heading_ = value;
2993: onChanged();
2994: return this;
2995: }
2996: /**
2997: * <pre>
2998: * heading in degrees
2999: * </pre>
3000: *
3001: * <code>optional double heading = 5;</code>
3002: * @return This builder for chaining.
3003: */
3004: public Builder clearHeading() {
3005: bitField0_ = (bitField0_ & ~0x00000010);
3006: heading_ = 0D;
3007: onChanged();
3008: return this;
3009: }
3010:
3011: private double speed_ ;
3012: /**
3013: * <pre>
3014: * meters per second
3015: * </pre>
3016: *
3017: * <code>optional double speed = 6;</code>
3018: * @return Whether the speed field is set.
3019: */
3020: @java.lang.Override
3021: public boolean hasSpeed() {
3022: return ((bitField0_ & 0x00000020) != 0);
3023: }
3024: /**
3025: * <pre>
3026: * meters per second
3027: * </pre>
3028: *
3029: * <code>optional double speed = 6;</code>
3030: * @return The speed.
3031: */
3032: @java.lang.Override
3033: public double getSpeed() {
3034: return speed_;
3035: }
3036: /**
3037: * <pre>
3038: * meters per second
3039: * </pre>
3040: *
3041: * <code>optional double speed = 6;</code>
3042: * @param value The speed to set.
3043: * @return This builder for chaining.
3044: */
3045: public Builder setSpeed(double value) {
3046: bitField0_ |= 0x00000020;
3047: speed_ = value;
3048: onChanged();
3049: return this;
3050: }
3051: /**
3052: * <pre>
3053: * meters per second
3054: * </pre>
3055: *
3056: * <code>optional double speed = 6;</code>
3057: * @return This builder for chaining.
3058: */
3059: public Builder clearSpeed() {
3060: bitField0_ = (bitField0_ & ~0x00000020);
3061: speed_ = 0D;
3062: onChanged();
3063: return this;
3064: }
3065:
3066: private long timestamp_ ;
3067: /**
3068: * <code>optional int64 timestamp = 7;</code>
3069: * @return Whether the timestamp field is set.
3070: */
3071: @java.lang.Override
3072: public boolean hasTimestamp() {
3073: return ((bitField0_ & 0x00000040) != 0);
3074: }
3075: /**
3076: * <code>optional int64 timestamp = 7;</code>
3077: * @return The timestamp.
3078: */
3079: @java.lang.Override
3080: public long getTimestamp() {
3081: return timestamp_;
3082: }
3083: /**
3084: * <code>optional int64 timestamp = 7;</code>
3085: * @param value The timestamp to set.
3086: * @return This builder for chaining.
3087: */
3088: public Builder setTimestamp(long value) {
3089: bitField0_ |= 0x00000040;
3090: timestamp_ = value;
3091: onChanged();
3092: return this;
3093: }
3094: /**
3095: * <code>optional int64 timestamp = 7;</code>
3096: * @return This builder for chaining.
3097: */
3098: public Builder clearTimestamp() {
3099: bitField0_ = (bitField0_ & ~0x00000040);
3100: timestamp_ = 0L;
3101: onChanged();
3102: return this;
3103: }
3104:
3105: private int satellites_ ;
3106: /**
3107: * <pre>
3108: * number satellites locked by the GPS device
3109: * </pre>
3110: *
3111: * <code>optional int32 satellites = 8;</code>
3112: * @return Whether the satellites field is set.
3113: */
3114: @java.lang.Override
3115: public boolean hasSatellites() {
3116: return ((bitField0_ & 0x00000080) != 0);
3117: }
3118: /**
3119: * <pre>
3120: * number satellites locked by the GPS device
3121: * </pre>
3122: *
3123: * <code>optional int32 satellites = 8;</code>
3124: * @return The satellites.
3125: */
3126: @java.lang.Override
3127: public int getSatellites() {
3128: return satellites_;
3129: }
3130: /**
3131: * <pre>
3132: * number satellites locked by the GPS device
3133: * </pre>
3134: *
3135: * <code>optional int32 satellites = 8;</code>
3136: * @param value The satellites to set.
3137: * @return This builder for chaining.
3138: */
3139: public Builder setSatellites(int value) {
3140: bitField0_ |= 0x00000080;
3141: satellites_ = value;
3142: onChanged();
3143: return this;
3144: }
3145: /**
3146: * <pre>
3147: * number satellites locked by the GPS device
3148: * </pre>
3149: *
3150: * <code>optional int32 satellites = 8;</code>
3151: * @return This builder for chaining.
3152: */
3153: public Builder clearSatellites() {
3154: bitField0_ = (bitField0_ & ~0x00000080);
3155: satellites_ = 0;
3156: onChanged();
3157: return this;
3158: }
3159:
3160: private int status_ ;
3161: /**
3162: * <pre>
3163: * status indicator for the GPS data: 1 = no GPS response; 2 = error in response; 4 = valid.
3164: * </pre>
3165: *
3166: * <code>optional int32 status = 9;</code>
3167: * @return Whether the status field is set.
3168: */
3169: @java.lang.Override
3170: public boolean hasStatus() {
3171: return ((bitField0_ & 0x00000100) != 0);
3172: }
3173: /**
3174: * <pre>
3175: * status indicator for the GPS data: 1 = no GPS response; 2 = error in response; 4 = valid.
3176: * </pre>
3177: *
3178: * <code>optional int32 status = 9;</code>
3179: * @return The status.
3180: */
3181: @java.lang.Override
3182: public int getStatus() {
3183: return status_;
3184: }
3185: /**
3186: * <pre>
3187: * status indicator for the GPS data: 1 = no GPS response; 2 = error in response; 4 = valid.
3188: * </pre>
3189: *
3190: * <code>optional int32 status = 9;</code>
3191: * @param value The status to set.
3192: * @return This builder for chaining.
3193: */
3194: public Builder setStatus(int value) {
3195: bitField0_ |= 0x00000100;
3196: status_ = value;
3197: onChanged();
3198: return this;
3199: }
3200: /**
3201: * <pre>
3202: * status indicator for the GPS data: 1 = no GPS response; 2 = error in response; 4 = valid.
3203: * </pre>
3204: *
3205: * <code>optional int32 status = 9;</code>
3206: * @return This builder for chaining.
3207: */
3208: public Builder clearStatus() {
3209: bitField0_ = (bitField0_ & ~0x00000100);
3210: status_ = 0;
3211: onChanged();
3212: return this;
3213: }
3214: @java.lang.Override
3215: public final Builder setUnknownFields(
3216: final com.google.protobuf.UnknownFieldSet unknownFields) {
3217: return super.setUnknownFields(unknownFields);
3218: }
3219:
3220: @java.lang.Override
3221: public final Builder mergeUnknownFields(
3222: final com.google.protobuf.UnknownFieldSet unknownFields) {
3223: return super.mergeUnknownFields(unknownFields);
3224: }
3225:
3226:
3227: // @@protoc_insertion_point(builder_scope:kuradatatypes.KuraPayload.KuraPosition)
3228: }
3229:
3230: // @@protoc_insertion_point(class_scope:kuradatatypes.KuraPayload.KuraPosition)
3231: private static final KuraPayloadProto.KuraPayload.KuraPosition DEFAULT_INSTANCE;
3232: static {
3233: DEFAULT_INSTANCE = new KuraPayloadProto.KuraPayload.KuraPosition();
3234: }
3235:
3236: public static KuraPayloadProto.KuraPayload.KuraPosition getDefaultInstance() {
3237: return DEFAULT_INSTANCE;
3238: }
3239:
3240: @java.lang.Deprecated public static final com.google.protobuf.Parser<KuraPosition>
3241: PARSER = new com.google.protobuf.AbstractParser<KuraPosition>() {
3242: @java.lang.Override
3243: public KuraPosition parsePartialFrom(
3244: com.google.protobuf.CodedInputStream input,
3245: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3246: throws com.google.protobuf.InvalidProtocolBufferException {
3247: Builder builder = newBuilder();
3248: try {
3249: builder.mergeFrom(input, extensionRegistry);
3250: } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3251: throw e.setUnfinishedMessage(builder.buildPartial());
3252: } catch (com.google.protobuf.UninitializedMessageException e) {
3253: throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3254: } catch (java.io.IOException e) {
3255: throw new com.google.protobuf.InvalidProtocolBufferException(e)
3256: .setUnfinishedMessage(builder.buildPartial());
3257: }
3258: return builder.buildPartial();
3259: }
3260: };
3261:
3262: public static com.google.protobuf.Parser<KuraPosition> parser() {
3263: return PARSER;
3264: }
3265:
3266: @java.lang.Override
3267: public com.google.protobuf.Parser<KuraPosition> getParserForType() {
3268: return PARSER;
3269: }
3270:
3271: @java.lang.Override
3272: public KuraPayloadProto.KuraPayload.KuraPosition getDefaultInstanceForType() {
3273: return DEFAULT_INSTANCE;
3274: }
3275:
3276: }
3277:
3278: private int bitField0_;
3279: public static final int TIMESTAMP_FIELD_NUMBER = 1;
3280: private long timestamp_;
3281: /**
3282: * <code>optional int64 timestamp = 1;</code>
3283: * @return Whether the timestamp field is set.
3284: */
3285: @java.lang.Override
3286: public boolean hasTimestamp() {
3287: return ((bitField0_ & 0x00000001) != 0);
3288: }
3289: /**
3290: * <code>optional int64 timestamp = 1;</code>
3291: * @return The timestamp.
3292: */
3293: @java.lang.Override
3294: public long getTimestamp() {
3295: return timestamp_;
3296: }
3297:
3298: public static final int POSITION_FIELD_NUMBER = 2;
3299: private KuraPayloadProto.KuraPayload.KuraPosition position_;
3300: /**
3301: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
3302: * @return Whether the position field is set.
3303: */
3304: @java.lang.Override
3305: public boolean hasPosition() {
3306: return ((bitField0_ & 0x00000002) != 0);
3307: }
3308: /**
3309: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
3310: * @return The position.
3311: */
3312: @java.lang.Override
3313: public KuraPayloadProto.KuraPayload.KuraPosition getPosition() {
3314: return position_ == null ? KuraPayloadProto.KuraPayload.KuraPosition.getDefaultInstance() : position_;
3315: }
3316: /**
3317: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
3318: */
3319: @java.lang.Override
3320: public KuraPayloadProto.KuraPayload.KuraPositionOrBuilder getPositionOrBuilder() {
3321: return position_ == null ? KuraPayloadProto.KuraPayload.KuraPosition.getDefaultInstance() : position_;
3322: }
3323:
3324: public static final int METRIC_FIELD_NUMBER = 5000;
3325: private java.util.List<KuraPayloadProto.KuraPayload.KuraMetric> metric_;
3326: /**
3327: * <pre>
3328: * can be zero, so optional
3329: * </pre>
3330: *
3331: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
3332: */
3333: @java.lang.Override
3334: public java.util.List<KuraPayloadProto.KuraPayload.KuraMetric> getMetricList() {
3335: return metric_;
3336: }
3337: /**
3338: * <pre>
3339: * can be zero, so optional
3340: * </pre>
3341: *
3342: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
3343: */
3344: @java.lang.Override
3345: public java.util.List<? extends KuraPayloadProto.KuraPayload.KuraMetricOrBuilder>
3346: getMetricOrBuilderList() {
3347: return metric_;
3348: }
3349: /**
3350: * <pre>
3351: * can be zero, so optional
3352: * </pre>
3353: *
3354: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
3355: */
3356: @java.lang.Override
3357: public int getMetricCount() {
3358: return metric_.size();
3359: }
3360: /**
3361: * <pre>
3362: * can be zero, so optional
3363: * </pre>
3364: *
3365: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
3366: */
3367: @java.lang.Override
3368: public KuraPayloadProto.KuraPayload.KuraMetric getMetric(int index) {
3369: return metric_.get(index);
3370: }
3371: /**
3372: * <pre>
3373: * can be zero, so optional
3374: * </pre>
3375: *
3376: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
3377: */
3378: @java.lang.Override
3379: public KuraPayloadProto.KuraPayload.KuraMetricOrBuilder getMetricOrBuilder(
3380: int index) {
3381: return metric_.get(index);
3382: }
3383:
3384: public static final int BODY_FIELD_NUMBER = 5001;
3385: private com.google.protobuf.ByteString body_;
3386: /**
3387: * <code>optional bytes body = 5001;</code>
3388: * @return Whether the body field is set.
3389: */
3390: @java.lang.Override
3391: public boolean hasBody() {
3392: return ((bitField0_ & 0x00000004) != 0);
3393: }
3394: /**
3395: * <code>optional bytes body = 5001;</code>
3396: * @return The body.
3397: */
3398: @java.lang.Override
3399: public com.google.protobuf.ByteString getBody() {
3400: return body_;
3401: }
3402:
3403: private byte memoizedIsInitialized = -1;
3404: @java.lang.Override
3405: public final boolean isInitialized() {
3406: byte isInitialized = memoizedIsInitialized;
3407: if (isInitialized == 1) return true;
3408: if (isInitialized == 0) return false;
3409:
3410: if (hasPosition()) {
3411: if (!getPosition().isInitialized()) {
3412: memoizedIsInitialized = 0;
3413: return false;
3414: }
3415: }
3416: for (int i = 0; i < getMetricCount(); i++) {
3417: if (!getMetric(i).isInitialized()) {
3418: memoizedIsInitialized = 0;
3419: return false;
3420: }
3421: }
3422: if (!extensionsAreInitialized()) {
3423: memoizedIsInitialized = 0;
3424: return false;
3425: }
3426: memoizedIsInitialized = 1;
3427: return true;
3428: }
3429:
3430: @java.lang.Override
3431: public void writeTo(com.google.protobuf.CodedOutputStream output)
3432: throws java.io.IOException {
3433: com.google.protobuf.GeneratedMessageV3
3434: .ExtendableMessage<KuraPayloadProto.KuraPayload>.ExtensionWriter
3435: extensionWriter = newExtensionWriter();
3436: if (((bitField0_ & 0x00000001) != 0)) {
3437: output.writeInt64(1, timestamp_);
3438: }
3439: if (((bitField0_ & 0x00000002) != 0)) {
3440: output.writeMessage(2, getPosition());
3441: }
3442: extensionWriter.writeUntil(5000, output);
3443: for (int i = 0; i < metric_.size(); i++) {
3444: output.writeMessage(5000, metric_.get(i));
3445: }
3446: if (((bitField0_ & 0x00000004) != 0)) {
3447: output.writeBytes(5001, body_);
3448: }
3449: getUnknownFields().writeTo(output);
3450: }
3451:
3452: @java.lang.Override
3453: public int getSerializedSize() {
3454: int size = memoizedSize;
3455: if (size != -1) return size;
3456:
3457: size = 0;
3458: if (((bitField0_ & 0x00000001) != 0)) {
3459: size += com.google.protobuf.CodedOutputStream
3460: .computeInt64Size(1, timestamp_);
3461: }
3462: if (((bitField0_ & 0x00000002) != 0)) {
3463: size += com.google.protobuf.CodedOutputStream
3464: .computeMessageSize(2, getPosition());
3465: }
3466: for (int i = 0; i < metric_.size(); i++) {
3467: size += com.google.protobuf.CodedOutputStream
3468: .computeMessageSize(5000, metric_.get(i));
3469: }
3470: if (((bitField0_ & 0x00000004) != 0)) {
3471: size += com.google.protobuf.CodedOutputStream
3472: .computeBytesSize(5001, body_);
3473: }
3474: size += extensionsSerializedSize();
3475: size += getUnknownFields().getSerializedSize();
3476: memoizedSize = size;
3477: return size;
3478: }
3479:
3480: @java.lang.Override
3481: public boolean equals(final java.lang.Object obj) {
3482: if (obj == this) {
3483: return true;
3484: }
3485: if (!(obj instanceof KuraPayloadProto.KuraPayload)) {
3486: return super.equals(obj);
3487: }
3488: KuraPayloadProto.KuraPayload other = (KuraPayloadProto.KuraPayload) obj;
3489:
3490: if (hasTimestamp() != other.hasTimestamp()) return false;
3491: if (hasTimestamp()) {
3492: if (getTimestamp()
3493: != other.getTimestamp()) return false;
3494: }
3495: if (hasPosition() != other.hasPosition()) return false;
3496: if (hasPosition()) {
3497: if (!getPosition()
3498: .equals(other.getPosition())) return false;
3499: }
3500: if (!getMetricList()
3501: .equals(other.getMetricList())) return false;
3502: if (hasBody() != other.hasBody()) return false;
3503: if (hasBody()) {
3504: if (!getBody()
3505: .equals(other.getBody())) return false;
3506: }
3507: if (!getUnknownFields().equals(other.getUnknownFields())) return false;
3508: if (!getExtensionFields().equals(other.getExtensionFields()))
3509: return false;
3510: return true;
3511: }
3512:
3513: @java.lang.Override
3514: public int hashCode() {
3515: if (memoizedHashCode != 0) {
3516: return memoizedHashCode;
3517: }
3518: int hash = 41;
3519: hash = (19 * hash) + getDescriptor().hashCode();
3520: if (hasTimestamp()) {
3521: hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
3522: hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
3523: getTimestamp());
3524: }
3525: if (hasPosition()) {
3526: hash = (37 * hash) + POSITION_FIELD_NUMBER;
3527: hash = (53 * hash) + getPosition().hashCode();
3528: }
3529: if (getMetricCount() > 0) {
3530: hash = (37 * hash) + METRIC_FIELD_NUMBER;
3531: hash = (53 * hash) + getMetricList().hashCode();
3532: }
3533: if (hasBody()) {
3534: hash = (37 * hash) + BODY_FIELD_NUMBER;
3535: hash = (53 * hash) + getBody().hashCode();
3536: }
3537: hash = hashFields(hash, getExtensionFields());
3538: hash = (29 * hash) + getUnknownFields().hashCode();
3539: memoizedHashCode = hash;
3540: return hash;
3541: }
3542:
3543: public static KuraPayloadProto.KuraPayload parseFrom(
3544: java.nio.ByteBuffer data)
3545: throws com.google.protobuf.InvalidProtocolBufferException {
3546: return PARSER.parseFrom(data);
3547: }
3548: public static KuraPayloadProto.KuraPayload parseFrom(
3549: java.nio.ByteBuffer data,
3550: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3551: throws com.google.protobuf.InvalidProtocolBufferException {
3552: return PARSER.parseFrom(data, extensionRegistry);
3553: }
3554: public static KuraPayloadProto.KuraPayload parseFrom(
3555: com.google.protobuf.ByteString data)
3556: throws com.google.protobuf.InvalidProtocolBufferException {
3557: return PARSER.parseFrom(data);
3558: }
3559: public static KuraPayloadProto.KuraPayload parseFrom(
3560: com.google.protobuf.ByteString data,
3561: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3562: throws com.google.protobuf.InvalidProtocolBufferException {
3563: return PARSER.parseFrom(data, extensionRegistry);
3564: }
3565: public static KuraPayloadProto.KuraPayload parseFrom(byte[] data)
3566: throws com.google.protobuf.InvalidProtocolBufferException {
3567: return PARSER.parseFrom(data);
3568: }
3569: public static KuraPayloadProto.KuraPayload parseFrom(
3570: byte[] data,
3571: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3572: throws com.google.protobuf.InvalidProtocolBufferException {
3573: return PARSER.parseFrom(data, extensionRegistry);
3574: }
3575: public static KuraPayloadProto.KuraPayload parseFrom(java.io.InputStream input)
3576: throws java.io.IOException {
3577: return com.google.protobuf.GeneratedMessageV3
3578: .parseWithIOException(PARSER, input);
3579: }
3580: public static KuraPayloadProto.KuraPayload parseFrom(
3581: java.io.InputStream input,
3582: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3583: throws java.io.IOException {
3584: return com.google.protobuf.GeneratedMessageV3
3585: .parseWithIOException(PARSER, input, extensionRegistry);
3586: }
3587: public static KuraPayloadProto.KuraPayload parseDelimitedFrom(java.io.InputStream input)
3588: throws java.io.IOException {
3589: return com.google.protobuf.GeneratedMessageV3
3590: .parseDelimitedWithIOException(PARSER, input);
3591: }
3592: public static KuraPayloadProto.KuraPayload parseDelimitedFrom(
3593: java.io.InputStream input,
3594: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3595: throws java.io.IOException {
3596: return com.google.protobuf.GeneratedMessageV3
3597: .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
3598: }
3599: public static KuraPayloadProto.KuraPayload parseFrom(
3600: com.google.protobuf.CodedInputStream input)
3601: throws java.io.IOException {
3602: return com.google.protobuf.GeneratedMessageV3
3603: .parseWithIOException(PARSER, input);
3604: }
3605: public static KuraPayloadProto.KuraPayload parseFrom(
3606: com.google.protobuf.CodedInputStream input,
3607: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3608: throws java.io.IOException {
3609: return com.google.protobuf.GeneratedMessageV3
3610: .parseWithIOException(PARSER, input, extensionRegistry);
3611: }
3612:
3613: @java.lang.Override
3614: public Builder newBuilderForType() { return newBuilder(); }
3615: public static Builder newBuilder() {
3616: return DEFAULT_INSTANCE.toBuilder();
3617: }
3618: public static Builder newBuilder(KuraPayloadProto.KuraPayload prototype) {
3619: return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
3620: }
3621: @java.lang.Override
3622: public Builder toBuilder() {
3623: return this == DEFAULT_INSTANCE
3624: ? new Builder() : new Builder().mergeFrom(this);
3625: }
3626:
3627: @java.lang.Override
3628: protected Builder newBuilderForType(
3629: com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3630: Builder builder = new Builder(parent);
3631: return builder;
3632: }
3633: /**
3634: * Protobuf type {@code kuradatatypes.KuraPayload}
3635: */
3636: public static final class Builder extends
3637: com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<
3638: KuraPayloadProto.KuraPayload, Builder> implements
3639: // @@protoc_insertion_point(builder_implements:kuradatatypes.KuraPayload)
3640: KuraPayloadProto.KuraPayloadOrBuilder {
3641: public static final com.google.protobuf.Descriptors.Descriptor
3642: getDescriptor() {
3643: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_descriptor;
3644: }
3645:
3646: @java.lang.Override
3647: protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
3648: internalGetFieldAccessorTable() {
3649: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_fieldAccessorTable
3650: .ensureFieldAccessorsInitialized(
3651: KuraPayloadProto.KuraPayload.class, KuraPayloadProto.KuraPayload.Builder.class);
3652: }
3653:
3654: // Construct using org.eclipse.kapua.kura.simulator.proto.KuraPayloadProto.KuraPayload.newBuilder()
3655: private Builder() {
3656: maybeForceBuilderInitialization();
3657: }
3658:
3659: private Builder(
3660: com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3661: super(parent);
3662: maybeForceBuilderInitialization();
3663: }
3664: private void maybeForceBuilderInitialization() {
3665: if (com.google.protobuf.GeneratedMessageV3
3666: .alwaysUseFieldBuilders) {
3667: getPositionFieldBuilder();
3668: getMetricFieldBuilder();
3669: }
3670: }
3671: @java.lang.Override
3672: public Builder clear() {
3673: super.clear();
3674: timestamp_ = 0L;
3675: bitField0_ = (bitField0_ & ~0x00000001);
3676: if (positionBuilder_ == null) {
3677: position_ = null;
3678: } else {
3679: positionBuilder_.clear();
3680: }
3681: bitField0_ = (bitField0_ & ~0x00000002);
3682: if (metricBuilder_ == null) {
3683: metric_ = java.util.Collections.emptyList();
3684: } else {
3685: metric_ = null;
3686: metricBuilder_.clear();
3687: }
3688: bitField0_ = (bitField0_ & ~0x00000004);
3689: body_ = com.google.protobuf.ByteString.EMPTY;
3690: bitField0_ = (bitField0_ & ~0x00000008);
3691: return this;
3692: }
3693:
3694: @java.lang.Override
3695: public com.google.protobuf.Descriptors.Descriptor
3696: getDescriptorForType() {
3697: return KuraPayloadProto.internal_static_kuradatatypes_KuraPayload_descriptor;
3698: }
3699:
3700: @java.lang.Override
3701: public KuraPayloadProto.KuraPayload getDefaultInstanceForType() {
3702: return KuraPayloadProto.KuraPayload.getDefaultInstance();
3703: }
3704:
3705: @java.lang.Override
3706: public KuraPayloadProto.KuraPayload build() {
3707: KuraPayloadProto.KuraPayload result = buildPartial();
3708: if (!result.isInitialized()) {
3709: throw newUninitializedMessageException(result);
3710: }
3711: return result;
3712: }
3713:
3714: @java.lang.Override
3715: public KuraPayloadProto.KuraPayload buildPartial() {
3716: KuraPayloadProto.KuraPayload result = new KuraPayloadProto.KuraPayload(this);
3717: int from_bitField0_ = bitField0_;
3718: int to_bitField0_ = 0;
3719: if (((from_bitField0_ & 0x00000001) != 0)) {
3720: result.timestamp_ = timestamp_;
3721: to_bitField0_ |= 0x00000001;
3722: }
3723: if (((from_bitField0_ & 0x00000002) != 0)) {
3724: if (positionBuilder_ == null) {
3725: result.position_ = position_;
3726: } else {
3727: result.position_ = positionBuilder_.build();
3728: }
3729: to_bitField0_ |= 0x00000002;
3730: }
3731: if (metricBuilder_ == null) {
3732: if (((bitField0_ & 0x00000004) != 0)) {
3733: metric_ = java.util.Collections.unmodifiableList(metric_);
3734: bitField0_ = (bitField0_ & ~0x00000004);
3735: }
3736: result.metric_ = metric_;
3737: } else {
3738: result.metric_ = metricBuilder_.build();
3739: }
3740: if (((from_bitField0_ & 0x00000008) != 0)) {
3741: to_bitField0_ |= 0x00000004;
3742: }
3743: result.body_ = body_;
3744: result.bitField0_ = to_bitField0_;
3745: onBuilt();
3746: return result;
3747: }
3748:
3749: @java.lang.Override
3750: public Builder clone() {
3751: return super.clone();
3752: }
3753: @java.lang.Override
3754: public Builder setField(
3755: com.google.protobuf.Descriptors.FieldDescriptor field,
3756: java.lang.Object value) {
3757: return super.setField(field, value);
3758: }
3759: @java.lang.Override
3760: public Builder clearField(
3761: com.google.protobuf.Descriptors.FieldDescriptor field) {
3762: return super.clearField(field);
3763: }
3764: @java.lang.Override
3765: public Builder clearOneof(
3766: com.google.protobuf.Descriptors.OneofDescriptor oneof) {
3767: return super.clearOneof(oneof);
3768: }
3769: @java.lang.Override
3770: public Builder setRepeatedField(
3771: com.google.protobuf.Descriptors.FieldDescriptor field,
3772: int index, java.lang.Object value) {
3773: return super.setRepeatedField(field, index, value);
3774: }
3775: @java.lang.Override
3776: public Builder addRepeatedField(
3777: com.google.protobuf.Descriptors.FieldDescriptor field,
3778: java.lang.Object value) {
3779: return super.addRepeatedField(field, value);
3780: }
3781: @java.lang.Override
3782: public <Type> Builder setExtension(
3783: com.google.protobuf.GeneratedMessage.GeneratedExtension<
3784: KuraPayloadProto.KuraPayload, Type> extension,
3785: Type value) {
3786: return super.setExtension(extension, value);
3787: }
3788: @java.lang.Override
3789: public <Type> Builder setExtension(
3790: com.google.protobuf.GeneratedMessage.GeneratedExtension<
3791: KuraPayloadProto.KuraPayload, java.util.List<Type>> extension,
3792: int index, Type value) {
3793: return super.setExtension(extension, index, value);
3794: }
3795: @java.lang.Override
3796: public <Type> Builder addExtension(
3797: com.google.protobuf.GeneratedMessage.GeneratedExtension<
3798: KuraPayloadProto.KuraPayload, java.util.List<Type>> extension,
3799: Type value) {
3800: return super.addExtension(extension, value);
3801: }
3802: @java.lang.Override
3803: public <Type> Builder clearExtension(
3804: com.google.protobuf.GeneratedMessage.GeneratedExtension<
3805: KuraPayloadProto.KuraPayload, Type> extension) {
3806: return super.clearExtension(extension);
3807: }
3808: @java.lang.Override
3809: public Builder mergeFrom(com.google.protobuf.Message other) {
3810: if (other instanceof KuraPayloadProto.KuraPayload) {
3811: return mergeFrom((KuraPayloadProto.KuraPayload)other);
3812: } else {
3813: super.mergeFrom(other);
3814: return this;
3815: }
3816: }
3817:
3818: public Builder mergeFrom(KuraPayloadProto.KuraPayload other) {
3819: if (other == KuraPayloadProto.KuraPayload.getDefaultInstance()) return this;
3820: if (other.hasTimestamp()) {
3821: setTimestamp(other.getTimestamp());
3822: }
3823: if (other.hasPosition()) {
3824: mergePosition(other.getPosition());
3825: }
3826: if (metricBuilder_ == null) {
3827: if (!other.metric_.isEmpty()) {
3828: if (metric_.isEmpty()) {
3829: metric_ = other.metric_;
3830: bitField0_ = (bitField0_ & ~0x00000004);
3831: } else {
3832: ensureMetricIsMutable();
3833: metric_.addAll(other.metric_);
3834: }
3835: onChanged();
3836: }
3837: } else {
3838: if (!other.metric_.isEmpty()) {
3839: if (metricBuilder_.isEmpty()) {
3840: metricBuilder_.dispose();
3841: metricBuilder_ = null;
3842: metric_ = other.metric_;
3843: bitField0_ = (bitField0_ & ~0x00000004);
3844: metricBuilder_ =
3845: com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
3846: getMetricFieldBuilder() : null;
3847: } else {
3848: metricBuilder_.addAllMessages(other.metric_);
3849: }
3850: }
3851: }
3852: if (other.hasBody()) {
3853: setBody(other.getBody());
3854: }
3855: this.mergeExtensionFields(other);
3856: this.mergeUnknownFields(other.getUnknownFields());
3857: onChanged();
3858: return this;
3859: }
3860:
3861: @java.lang.Override
3862: public final boolean isInitialized() {
3863: if (hasPosition()) {
3864: if (!getPosition().isInitialized()) {
3865: return false;
3866: }
3867: }
3868: for (int i = 0; i < getMetricCount(); i++) {
3869: if (!getMetric(i).isInitialized()) {
3870: return false;
3871: }
3872: }
3873: if (!extensionsAreInitialized()) {
3874: return false;
3875: }
3876: return true;
3877: }
3878:
3879: @java.lang.Override
3880: public Builder mergeFrom(
3881: com.google.protobuf.CodedInputStream input,
3882: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3883: throws java.io.IOException {
3884: if (extensionRegistry == null) {
3885: throw new java.lang.NullPointerException();
3886: }
3887: try {
3888: boolean done = false;
3889: while (!done) {
3890: int tag = input.readTag();
3891: switch (tag) {
3892: case 0:
3893: done = true;
3894: break;
3895: case 8: {
3896: timestamp_ = input.readInt64();
3897: bitField0_ |= 0x00000001;
3898: break;
3899: } // case 8
3900: case 18: {
3901: input.readMessage(
3902: getPositionFieldBuilder().getBuilder(),
3903: extensionRegistry);
3904: bitField0_ |= 0x00000002;
3905: break;
3906: } // case 18
3907: case 40002: {
3908: KuraPayloadProto.KuraPayload.KuraMetric m =
3909: input.readMessage(
3910: KuraPayloadProto.KuraPayload.KuraMetric.PARSER,
3911: extensionRegistry);
3912: if (metricBuilder_ == null) {
3913: ensureMetricIsMutable();
3914: metric_.add(m);
3915: } else {
3916: metricBuilder_.addMessage(m);
3917: }
3918: break;
3919: } // case 40002
3920: case 40010: {
3921: body_ = input.readBytes();
3922: bitField0_ |= 0x00000008;
3923: break;
3924: } // case 40010
3925: default: {
3926: if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3927: done = true; // was an endgroup tag
3928: }
3929: break;
3930: } // default:
3931: } // switch (tag)
3932: } // while (!done)
3933: } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3934: throw e.unwrapIOException();
3935: } finally {
3936: onChanged();
3937: } // finally
3938: return this;
3939: }
3940: private int bitField0_;
3941:
3942: private long timestamp_ ;
3943: /**
3944: * <code>optional int64 timestamp = 1;</code>
3945: * @return Whether the timestamp field is set.
3946: */
3947: @java.lang.Override
3948: public boolean hasTimestamp() {
3949: return ((bitField0_ & 0x00000001) != 0);
3950: }
3951: /**
3952: * <code>optional int64 timestamp = 1;</code>
3953: * @return The timestamp.
3954: */
3955: @java.lang.Override
3956: public long getTimestamp() {
3957: return timestamp_;
3958: }
3959: /**
3960: * <code>optional int64 timestamp = 1;</code>
3961: * @param value The timestamp to set.
3962: * @return This builder for chaining.
3963: */
3964: public Builder setTimestamp(long value) {
3965: bitField0_ |= 0x00000001;
3966: timestamp_ = value;
3967: onChanged();
3968: return this;
3969: }
3970: /**
3971: * <code>optional int64 timestamp = 1;</code>
3972: * @return This builder for chaining.
3973: */
3974: public Builder clearTimestamp() {
3975: bitField0_ = (bitField0_ & ~0x00000001);
3976: timestamp_ = 0L;
3977: onChanged();
3978: return this;
3979: }
3980:
3981: private KuraPayloadProto.KuraPayload.KuraPosition position_;
3982: private com.google.protobuf.SingleFieldBuilderV3<
3983: KuraPayloadProto.KuraPayload.KuraPosition, KuraPayloadProto.KuraPayload.KuraPosition.Builder, KuraPayloadProto.KuraPayload.KuraPositionOrBuilder> positionBuilder_;
3984: /**
3985: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
3986: * @return Whether the position field is set.
3987: */
3988: public boolean hasPosition() {
3989: return ((bitField0_ & 0x00000002) != 0);
3990: }
3991: /**
3992: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
3993: * @return The position.
3994: */
3995: public KuraPayloadProto.KuraPayload.KuraPosition getPosition() {
3996: if (positionBuilder_ == null) {
3997: return position_ == null ? KuraPayloadProto.KuraPayload.KuraPosition.getDefaultInstance() : position_;
3998: } else {
3999: return positionBuilder_.getMessage();
4000: }
4001: }
4002: /**
4003: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
4004: */
4005: public Builder setPosition(KuraPayloadProto.KuraPayload.KuraPosition value) {
4006: if (positionBuilder_ == null) {
4007: if (value == null) {
4008: throw new NullPointerException();
4009: }
4010: position_ = value;
4011: onChanged();
4012: } else {
4013: positionBuilder_.setMessage(value);
4014: }
4015: bitField0_ |= 0x00000002;
4016: return this;
4017: }
4018: /**
4019: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
4020: */
4021: public Builder setPosition(
4022: KuraPayloadProto.KuraPayload.KuraPosition.Builder builderForValue) {
4023: if (positionBuilder_ == null) {
4024: position_ = builderForValue.build();
4025: onChanged();
4026: } else {
4027: positionBuilder_.setMessage(builderForValue.build());
4028: }
4029: bitField0_ |= 0x00000002;
4030: return this;
4031: }
4032: /**
4033: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
4034: */
4035: public Builder mergePosition(KuraPayloadProto.KuraPayload.KuraPosition value) {
4036: if (positionBuilder_ == null) {
4037: if (((bitField0_ & 0x00000002) != 0) &&
4038: position_ != null &&
4039: position_ != KuraPayloadProto.KuraPayload.KuraPosition.getDefaultInstance()) {
4040: position_ =
4041: KuraPayloadProto.KuraPayload.KuraPosition.newBuilder(position_).mergeFrom(value).buildPartial();
4042: } else {
4043: position_ = value;
4044: }
4045: onChanged();
4046: } else {
4047: positionBuilder_.mergeFrom(value);
4048: }
4049: bitField0_ |= 0x00000002;
4050: return this;
4051: }
4052: /**
4053: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
4054: */
4055: public Builder clearPosition() {
4056: if (positionBuilder_ == null) {
4057: position_ = null;
4058: onChanged();
4059: } else {
4060: positionBuilder_.clear();
4061: }
4062: bitField0_ = (bitField0_ & ~0x00000002);
4063: return this;
4064: }
4065: /**
4066: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
4067: */
4068: public KuraPayloadProto.KuraPayload.KuraPosition.Builder getPositionBuilder() {
4069: bitField0_ |= 0x00000002;
4070: onChanged();
4071: return getPositionFieldBuilder().getBuilder();
4072: }
4073: /**
4074: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
4075: */
4076: public KuraPayloadProto.KuraPayload.KuraPositionOrBuilder getPositionOrBuilder() {
4077: if (positionBuilder_ != null) {
4078: return positionBuilder_.getMessageOrBuilder();
4079: } else {
4080: return position_ == null ?
4081: KuraPayloadProto.KuraPayload.KuraPosition.getDefaultInstance() : position_;
4082: }
4083: }
4084: /**
4085: * <code>optional .kuradatatypes.KuraPayload.KuraPosition position = 2;</code>
4086: */
4087: private com.google.protobuf.SingleFieldBuilderV3<
4088: KuraPayloadProto.KuraPayload.KuraPosition, KuraPayloadProto.KuraPayload.KuraPosition.Builder, KuraPayloadProto.KuraPayload.KuraPositionOrBuilder>
4089: getPositionFieldBuilder() {
4090: if (positionBuilder_ == null) {
4091: positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
4092: KuraPayloadProto.KuraPayload.KuraPosition, KuraPayloadProto.KuraPayload.KuraPosition.Builder, KuraPayloadProto.KuraPayload.KuraPositionOrBuilder>(
4093: getPosition(),
4094: getParentForChildren(),
4095: isClean());
4096: position_ = null;
4097: }
4098: return positionBuilder_;
4099: }
4100:
4101: private java.util.List<KuraPayloadProto.KuraPayload.KuraMetric> metric_ =
4102: java.util.Collections.emptyList();
4103: private void ensureMetricIsMutable() {
4104: if (!((bitField0_ & 0x00000004) != 0)) {
4105: metric_ = new java.util.ArrayList<KuraPayloadProto.KuraPayload.KuraMetric>(metric_);
4106: bitField0_ |= 0x00000004;
4107: }
4108: }
4109:
4110: private com.google.protobuf.RepeatedFieldBuilderV3<
4111: KuraPayloadProto.KuraPayload.KuraMetric, KuraPayloadProto.KuraPayload.KuraMetric.Builder, KuraPayloadProto.KuraPayload.KuraMetricOrBuilder> metricBuilder_;
4112:
4113: /**
4114: * <pre>
4115: * can be zero, so optional
4116: * </pre>
4117: *
4118: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4119: */
4120: public java.util.List<KuraPayloadProto.KuraPayload.KuraMetric> getMetricList() {
4121: if (metricBuilder_ == null) {
4122: return java.util.Collections.unmodifiableList(metric_);
4123: } else {
4124: return metricBuilder_.getMessageList();
4125: }
4126: }
4127: /**
4128: * <pre>
4129: * can be zero, so optional
4130: * </pre>
4131: *
4132: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4133: */
4134: public int getMetricCount() {
4135: if (metricBuilder_ == null) {
4136: return metric_.size();
4137: } else {
4138: return metricBuilder_.getCount();
4139: }
4140: }
4141: /**
4142: * <pre>
4143: * can be zero, so optional
4144: * </pre>
4145: *
4146: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4147: */
4148: public KuraPayloadProto.KuraPayload.KuraMetric getMetric(int index) {
4149: if (metricBuilder_ == null) {
4150: return metric_.get(index);
4151: } else {
4152: return metricBuilder_.getMessage(index);
4153: }
4154: }
4155: /**
4156: * <pre>
4157: * can be zero, so optional
4158: * </pre>
4159: *
4160: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4161: */
4162: public Builder setMetric(
4163: int index, KuraPayloadProto.KuraPayload.KuraMetric value) {
4164: if (metricBuilder_ == null) {
4165: if (value == null) {
4166: throw new NullPointerException();
4167: }
4168: ensureMetricIsMutable();
4169: metric_.set(index, value);
4170: onChanged();
4171: } else {
4172: metricBuilder_.setMessage(index, value);
4173: }
4174: return this;
4175: }
4176: /**
4177: * <pre>
4178: * can be zero, so optional
4179: * </pre>
4180: *
4181: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4182: */
4183: public Builder setMetric(
4184: int index, KuraPayloadProto.KuraPayload.KuraMetric.Builder builderForValue) {
4185: if (metricBuilder_ == null) {
4186: ensureMetricIsMutable();
4187: metric_.set(index, builderForValue.build());
4188: onChanged();
4189: } else {
4190: metricBuilder_.setMessage(index, builderForValue.build());
4191: }
4192: return this;
4193: }
4194: /**
4195: * <pre>
4196: * can be zero, so optional
4197: * </pre>
4198: *
4199: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4200: */
4201: public Builder addMetric(KuraPayloadProto.KuraPayload.KuraMetric value) {
4202: if (metricBuilder_ == null) {
4203: if (value == null) {
4204: throw new NullPointerException();
4205: }
4206: ensureMetricIsMutable();
4207: metric_.add(value);
4208: onChanged();
4209: } else {
4210: metricBuilder_.addMessage(value);
4211: }
4212: return this;
4213: }
4214: /**
4215: * <pre>
4216: * can be zero, so optional
4217: * </pre>
4218: *
4219: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4220: */
4221: public Builder addMetric(
4222: int index, KuraPayloadProto.KuraPayload.KuraMetric value) {
4223: if (metricBuilder_ == null) {
4224: if (value == null) {
4225: throw new NullPointerException();
4226: }
4227: ensureMetricIsMutable();
4228: metric_.add(index, value);
4229: onChanged();
4230: } else {
4231: metricBuilder_.addMessage(index, value);
4232: }
4233: return this;
4234: }
4235: /**
4236: * <pre>
4237: * can be zero, so optional
4238: * </pre>
4239: *
4240: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4241: */
4242: public Builder addMetric(
4243: KuraPayloadProto.KuraPayload.KuraMetric.Builder builderForValue) {
4244: if (metricBuilder_ == null) {
4245: ensureMetricIsMutable();
4246: metric_.add(builderForValue.build());
4247: onChanged();
4248: } else {
4249: metricBuilder_.addMessage(builderForValue.build());
4250: }
4251: return this;
4252: }
4253: /**
4254: * <pre>
4255: * can be zero, so optional
4256: * </pre>
4257: *
4258: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4259: */
4260: public Builder addMetric(
4261: int index, KuraPayloadProto.KuraPayload.KuraMetric.Builder builderForValue) {
4262: if (metricBuilder_ == null) {
4263: ensureMetricIsMutable();
4264: metric_.add(index, builderForValue.build());
4265: onChanged();
4266: } else {
4267: metricBuilder_.addMessage(index, builderForValue.build());
4268: }
4269: return this;
4270: }
4271: /**
4272: * <pre>
4273: * can be zero, so optional
4274: * </pre>
4275: *
4276: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4277: */
4278: public Builder addAllMetric(
4279: java.lang.Iterable<? extends KuraPayloadProto.KuraPayload.KuraMetric> values) {
4280: if (metricBuilder_ == null) {
4281: ensureMetricIsMutable();
4282: com.google.protobuf.AbstractMessageLite.Builder.addAll(
4283: values, metric_);
4284: onChanged();
4285: } else {
4286: metricBuilder_.addAllMessages(values);
4287: }
4288: return this;
4289: }
4290: /**
4291: * <pre>
4292: * can be zero, so optional
4293: * </pre>
4294: *
4295: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4296: */
4297: public Builder clearMetric() {
4298: if (metricBuilder_ == null) {
4299: metric_ = java.util.Collections.emptyList();
4300: bitField0_ = (bitField0_ & ~0x00000004);
4301: onChanged();
4302: } else {
4303: metricBuilder_.clear();
4304: }
4305: return this;
4306: }
4307: /**
4308: * <pre>
4309: * can be zero, so optional
4310: * </pre>
4311: *
4312: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4313: */
4314: public Builder removeMetric(int index) {
4315: if (metricBuilder_ == null) {
4316: ensureMetricIsMutable();
4317: metric_.remove(index);
4318: onChanged();
4319: } else {
4320: metricBuilder_.remove(index);
4321: }
4322: return this;
4323: }
4324: /**
4325: * <pre>
4326: * can be zero, so optional
4327: * </pre>
4328: *
4329: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4330: */
4331: public KuraPayloadProto.KuraPayload.KuraMetric.Builder getMetricBuilder(
4332: int index) {
4333: return getMetricFieldBuilder().getBuilder(index);
4334: }
4335: /**
4336: * <pre>
4337: * can be zero, so optional
4338: * </pre>
4339: *
4340: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4341: */
4342: public KuraPayloadProto.KuraPayload.KuraMetricOrBuilder getMetricOrBuilder(
4343: int index) {
4344: if (metricBuilder_ == null) {
4345: return metric_.get(index); } else {
4346: return metricBuilder_.getMessageOrBuilder(index);
4347: }
4348: }
4349: /**
4350: * <pre>
4351: * can be zero, so optional
4352: * </pre>
4353: *
4354: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4355: */
4356: public java.util.List<? extends KuraPayloadProto.KuraPayload.KuraMetricOrBuilder>
4357: getMetricOrBuilderList() {
4358: if (metricBuilder_ != null) {
4359: return metricBuilder_.getMessageOrBuilderList();
4360: } else {
4361: return java.util.Collections.unmodifiableList(metric_);
4362: }
4363: }
4364: /**
4365: * <pre>
4366: * can be zero, so optional
4367: * </pre>
4368: *
4369: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4370: */
4371: public KuraPayloadProto.KuraPayload.KuraMetric.Builder addMetricBuilder() {
4372: return getMetricFieldBuilder().addBuilder(
4373: KuraPayloadProto.KuraPayload.KuraMetric.getDefaultInstance());
4374: }
4375: /**
4376: * <pre>
4377: * can be zero, so optional
4378: * </pre>
4379: *
4380: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4381: */
4382: public KuraPayloadProto.KuraPayload.KuraMetric.Builder addMetricBuilder(
4383: int index) {
4384: return getMetricFieldBuilder().addBuilder(
4385: index, KuraPayloadProto.KuraPayload.KuraMetric.getDefaultInstance());
4386: }
4387: /**
4388: * <pre>
4389: * can be zero, so optional
4390: * </pre>
4391: *
4392: * <code>repeated .kuradatatypes.KuraPayload.KuraMetric metric = 5000;</code>
4393: */
4394: public java.util.List<KuraPayloadProto.KuraPayload.KuraMetric.Builder>
4395: getMetricBuilderList() {
4396: return getMetricFieldBuilder().getBuilderList();
4397: }
4398: private com.google.protobuf.RepeatedFieldBuilderV3<
4399: KuraPayloadProto.KuraPayload.KuraMetric, KuraPayloadProto.KuraPayload.KuraMetric.Builder, KuraPayloadProto.KuraPayload.KuraMetricOrBuilder>
4400: getMetricFieldBuilder() {
4401: if (metricBuilder_ == null) {
4402: metricBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
4403: KuraPayloadProto.KuraPayload.KuraMetric, KuraPayloadProto.KuraPayload.KuraMetric.Builder, KuraPayloadProto.KuraPayload.KuraMetricOrBuilder>(
4404: metric_,
4405: ((bitField0_ & 0x00000004) != 0),
4406: getParentForChildren(),
4407: isClean());
4408: metric_ = null;
4409: }
4410: return metricBuilder_;
4411: }
4412:
4413: private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
4414: /**
4415: * <code>optional bytes body = 5001;</code>
4416: * @return Whether the body field is set.
4417: */
4418: @java.lang.Override
4419: public boolean hasBody() {
4420: return ((bitField0_ & 0x00000008) != 0);
4421: }
4422: /**
4423: * <code>optional bytes body = 5001;</code>
4424: * @return The body.
4425: */
4426: @java.lang.Override
4427: public com.google.protobuf.ByteString getBody() {
4428: return body_;
4429: }
4430: /**
4431: * <code>optional bytes body = 5001;</code>
4432: * @param value The body to set.
4433: * @return This builder for chaining.
4434: */
4435: public Builder setBody(com.google.protobuf.ByteString value) {
4436: if (value == null) {
4437: throw new NullPointerException();
4438: }
4439: bitField0_ |= 0x00000008;
4440: body_ = value;
4441: onChanged();
4442: return this;
4443: }
4444: /**
4445: * <code>optional bytes body = 5001;</code>
4446: * @return This builder for chaining.
4447: */
4448: public Builder clearBody() {
4449: bitField0_ = (bitField0_ & ~0x00000008);
4450: body_ = getDefaultInstance().getBody();
4451: onChanged();
4452: return this;
4453: }
4454: @java.lang.Override
4455: public final Builder setUnknownFields(
4456: final com.google.protobuf.UnknownFieldSet unknownFields) {
4457: return super.setUnknownFields(unknownFields);
4458: }
4459:
4460: @java.lang.Override
4461: public final Builder mergeUnknownFields(
4462: final com.google.protobuf.UnknownFieldSet unknownFields) {
4463: return super.mergeUnknownFields(unknownFields);
4464: }
4465:
4466:
4467: // @@protoc_insertion_point(builder_scope:kuradatatypes.KuraPayload)
4468: }
4469:
4470: // @@protoc_insertion_point(class_scope:kuradatatypes.KuraPayload)
4471: private static final KuraPayloadProto.KuraPayload DEFAULT_INSTANCE;
4472: static {
4473: DEFAULT_INSTANCE = new KuraPayloadProto.KuraPayload();
4474: }
4475:
4476: public static KuraPayloadProto.KuraPayload getDefaultInstance() {
4477: return DEFAULT_INSTANCE;
4478: }
4479:
4480: @java.lang.Deprecated public static final com.google.protobuf.Parser<KuraPayload>
4481: PARSER = new com.google.protobuf.AbstractParser<KuraPayload>() {
4482: @java.lang.Override
4483: public KuraPayload parsePartialFrom(
4484: com.google.protobuf.CodedInputStream input,
4485: com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4486: throws com.google.protobuf.InvalidProtocolBufferException {
4487: Builder builder = newBuilder();
4488: try {
4489: builder.mergeFrom(input, extensionRegistry);
4490: } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4491: throw e.setUnfinishedMessage(builder.buildPartial());
4492: } catch (com.google.protobuf.UninitializedMessageException e) {
4493: throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4494: } catch (java.io.IOException e) {
4495: throw new com.google.protobuf.InvalidProtocolBufferException(e)
4496: .setUnfinishedMessage(builder.buildPartial());
4497: }
4498: return builder.buildPartial();
4499: }
4500: };
4501:
4502: public static com.google.protobuf.Parser<KuraPayload> parser() {
4503: return PARSER;
4504: }
4505:
4506: @java.lang.Override
4507: public com.google.protobuf.Parser<KuraPayload> getParserForType() {
4508: return PARSER;
4509: }
4510:
4511: @java.lang.Override
4512: public KuraPayloadProto.KuraPayload getDefaultInstanceForType() {
4513: return DEFAULT_INSTANCE;
4514: }
4515:
4516: }
4517:
4518: private static final com.google.protobuf.Descriptors.Descriptor
4519: internal_static_kuradatatypes_KuraPayload_descriptor;
4520: private static final
4521: com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
4522: internal_static_kuradatatypes_KuraPayload_fieldAccessorTable;
4523: private static final com.google.protobuf.Descriptors.Descriptor
4524: internal_static_kuradatatypes_KuraPayload_KuraMetric_descriptor;
4525: private static final
4526: com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
4527: internal_static_kuradatatypes_KuraPayload_KuraMetric_fieldAccessorTable;
4528: private static final com.google.protobuf.Descriptors.Descriptor
4529: internal_static_kuradatatypes_KuraPayload_KuraPosition_descriptor;
4530: private static final
4531: com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
4532: internal_static_kuradatatypes_KuraPayload_KuraPosition_fieldAccessorTable;
4533:
4534: public static com.google.protobuf.Descriptors.FileDescriptor
4535: getDescriptor() {
4536: return descriptor;
4537: }
4538: private static com.google.protobuf.Descriptors.FileDescriptor
4539: descriptor;
4540: static {
4541: java.lang.String[] descriptorData = {
4542: "\n\021kurapayload.proto\022\rkuradatatypes\"\243\005\n\013K" +
4543: "uraPayload\022\021\n\ttimestamp\030\001 \001(\003\0229\n\010positio" +
4544: "n\030\002 \001(\0132\'.kuradatatypes.KuraPayload.Kura" +
4545: "Position\0226\n\006metric\030\210\' \003(\0132%.kuradatatype" +
4546: "s.KuraPayload.KuraMetric\022\r\n\004body\030\211\' \001(\014\032" +
4547: "\305\002\n\nKuraMetric\022\014\n\004name\030\001 \002(\t\022=\n\004type\030\002 \002" +
4548: "(\0162/.kuradatatypes.KuraPayload.KuraMetri" +
4549: "c.ValueType\022\024\n\014double_value\030\003 \001(\001\022\023\n\013flo" +
4550: "at_value\030\004 \001(\002\022\022\n\nlong_value\030\005 \001(\003\022\021\n\tin" +
4551: "t_value\030\006 \001(\005\022\022\n\nbool_value\030\007 \001(\010\022\024\n\014str" +
4552: "ing_value\030\010 \001(\t\022\023\n\013bytes_value\030\t \001(\014\"Y\n\t" +
4553: "ValueType\022\n\n\006DOUBLE\020\000\022\t\n\005FLOAT\020\001\022\t\n\005INT6" +
4554: "4\020\002\022\t\n\005INT32\020\003\022\010\n\004BOOL\020\004\022\n\n\006STRING\020\005\022\t\n\005" +
4555: "BYTES\020\006\032\257\001\n\014KuraPosition\022\020\n\010latitude\030\001 \002" +
4556: "(\001\022\021\n\tlongitude\030\002 \002(\001\022\020\n\010altitude\030\003 \001(\001\022" +
4557: "\021\n\tprecision\030\004 \001(\001\022\017\n\007heading\030\005 \001(\001\022\r\n\005s" +
4558: "peed\030\006 \001(\001\022\021\n\ttimestamp\030\007 \001(\003\022\022\n\nsatelli" +
4559: "tes\030\010 \001(\005\022\016\n\006status\030\t \001(\005*\005\010\003\020\210\'B:\n&org." +
4560: "eclipse.kura.core.message.protobufB\020Kura" +
4561: "PayloadProto"
4562: };
4563: descriptor = com.google.protobuf.Descriptors.FileDescriptor
4564: .internalBuildGeneratedFileFrom(descriptorData,
4565: new com.google.protobuf.Descriptors.FileDescriptor[] {
4566: });
4567: internal_static_kuradatatypes_KuraPayload_descriptor =
4568: getDescriptor().getMessageTypes().get(0);
4569: internal_static_kuradatatypes_KuraPayload_fieldAccessorTable = new
4570: com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
4571: internal_static_kuradatatypes_KuraPayload_descriptor,
4572: new java.lang.String[] { "Timestamp", "Position", "Metric", "Body", });
4573: internal_static_kuradatatypes_KuraPayload_KuraMetric_descriptor =
4574: internal_static_kuradatatypes_KuraPayload_descriptor.getNestedTypes().get(0);
4575: internal_static_kuradatatypes_KuraPayload_KuraMetric_fieldAccessorTable = new
4576: com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
4577: internal_static_kuradatatypes_KuraPayload_KuraMetric_descriptor,
4578: new java.lang.String[] { "Name", "Type", "DoubleValue", "FloatValue", "LongValue", "IntValue", "BoolValue", "StringValue", "BytesValue", });
4579: internal_static_kuradatatypes_KuraPayload_KuraPosition_descriptor =
4580: internal_static_kuradatatypes_KuraPayload_descriptor.getNestedTypes().get(1);
4581: internal_static_kuradatatypes_KuraPayload_KuraPosition_fieldAccessorTable = new
4582: com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
4583: internal_static_kuradatatypes_KuraPayload_KuraPosition_descriptor,
4584: new java.lang.String[] { "Latitude", "Longitude", "Altitude", "Precision", "Heading", "Speed", "Timestamp", "Satellites", "Status", });
4585: }
4586:
4587: // @@protoc_insertion_point(outer_class_scope)
4588: }