1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: openxc.proto
6 public final class BinaryMessages {
7 private BinaryMessages() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
11 public interface VehicleMessageOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
14 // optional .openxc.VehicleMessage.Type type = 1;
16 com.openxc.BinaryMessages.VehicleMessage.Type getType();
18 // optional .openxc.CanMessage can_message = 2;
19 boolean hasCanMessage();
20 com.openxc.BinaryMessages.CanMessage getCanMessage();
21 com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder();
23 // optional .openxc.SimpleMessage simple_message = 3;
24 boolean hasSimpleMessage();
25 com.openxc.BinaryMessages.SimpleMessage getSimpleMessage();
26 com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder();
28 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
29 boolean hasDiagnosticResponse();
30 com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse();
31 com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder();
33 // optional .openxc.ControlCommand control_command = 5;
34 boolean hasControlCommand();
35 com.openxc.BinaryMessages.ControlCommand getControlCommand();
36 com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder();
38 // optional .openxc.CommandResponse command_response = 6;
39 boolean hasCommandResponse();
40 com.openxc.BinaryMessages.CommandResponse getCommandResponse();
41 com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder();
43 // optional uint64 timestamp = 7;
44 boolean hasTimestamp();
47 public static final class VehicleMessage extends
48 com.google.protobuf.GeneratedMessage
49 implements VehicleMessageOrBuilder {
50 // Use VehicleMessage.newBuilder() to construct.
51 private VehicleMessage(Builder builder) {
54 private VehicleMessage(boolean noInit) {}
56 private static final VehicleMessage defaultInstance;
57 public static VehicleMessage getDefaultInstance() {
58 return defaultInstance;
61 public VehicleMessage getDefaultInstanceForType() {
62 return defaultInstance;
65 public static final com.google.protobuf.Descriptors.Descriptor
67 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
70 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
71 internalGetFieldAccessorTable() {
72 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable;
76 implements com.google.protobuf.ProtocolMessageEnum {
80 CONTROL_COMMAND(3, 4),
81 COMMAND_RESPONSE(4, 5),
84 public static final int CAN_VALUE = 1;
85 public static final int SIMPLE_VALUE = 2;
86 public static final int DIAGNOSTIC_VALUE = 3;
87 public static final int CONTROL_COMMAND_VALUE = 4;
88 public static final int COMMAND_RESPONSE_VALUE = 5;
91 public final int getNumber() { return value; }
93 public static Type valueOf(int value) {
96 case 2: return SIMPLE;
97 case 3: return DIAGNOSTIC;
98 case 4: return CONTROL_COMMAND;
99 case 5: return COMMAND_RESPONSE;
100 default: return null;
104 public static com.google.protobuf.Internal.EnumLiteMap<Type>
105 internalGetValueMap() {
106 return internalValueMap;
108 private static com.google.protobuf.Internal.EnumLiteMap<Type>
110 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
111 public Type findValueByNumber(int number) {
112 return Type.valueOf(number);
116 public final com.google.protobuf.Descriptors.EnumValueDescriptor
117 getValueDescriptor() {
118 return getDescriptor().getValues().get(index);
120 public final com.google.protobuf.Descriptors.EnumDescriptor
121 getDescriptorForType() {
122 return getDescriptor();
124 public static final com.google.protobuf.Descriptors.EnumDescriptor
126 return com.openxc.BinaryMessages.VehicleMessage.getDescriptor().getEnumTypes().get(0);
129 private static final Type[] VALUES = {
130 CAN, SIMPLE, DIAGNOSTIC, CONTROL_COMMAND, COMMAND_RESPONSE,
133 public static Type valueOf(
134 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
135 if (desc.getType() != getDescriptor()) {
136 throw new java.lang.IllegalArgumentException(
137 "EnumValueDescriptor is not for this type.");
139 return VALUES[desc.getIndex()];
142 private final int index;
143 private final int value;
145 private Type(int index, int value) {
150 // @@protoc_insertion_point(enum_scope:openxc.VehicleMessage.Type)
153 private int bitField0_;
154 // optional .openxc.VehicleMessage.Type type = 1;
155 public static final int TYPE_FIELD_NUMBER = 1;
156 private com.openxc.BinaryMessages.VehicleMessage.Type type_;
157 public boolean hasType() {
158 return ((bitField0_ & 0x00000001) == 0x00000001);
160 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
164 // optional .openxc.CanMessage can_message = 2;
165 public static final int CAN_MESSAGE_FIELD_NUMBER = 2;
166 private com.openxc.BinaryMessages.CanMessage canMessage_;
167 public boolean hasCanMessage() {
168 return ((bitField0_ & 0x00000002) == 0x00000002);
170 public com.openxc.BinaryMessages.CanMessage getCanMessage() {
173 public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() {
177 // optional .openxc.SimpleMessage simple_message = 3;
178 public static final int SIMPLE_MESSAGE_FIELD_NUMBER = 3;
179 private com.openxc.BinaryMessages.SimpleMessage simpleMessage_;
180 public boolean hasSimpleMessage() {
181 return ((bitField0_ & 0x00000004) == 0x00000004);
183 public com.openxc.BinaryMessages.SimpleMessage getSimpleMessage() {
184 return simpleMessage_;
186 public com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder() {
187 return simpleMessage_;
190 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
191 public static final int DIAGNOSTIC_RESPONSE_FIELD_NUMBER = 4;
192 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_;
193 public boolean hasDiagnosticResponse() {
194 return ((bitField0_ & 0x00000008) == 0x00000008);
196 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
197 return diagnosticResponse_;
199 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
200 return diagnosticResponse_;
203 // optional .openxc.ControlCommand control_command = 5;
204 public static final int CONTROL_COMMAND_FIELD_NUMBER = 5;
205 private com.openxc.BinaryMessages.ControlCommand controlCommand_;
206 public boolean hasControlCommand() {
207 return ((bitField0_ & 0x00000010) == 0x00000010);
209 public com.openxc.BinaryMessages.ControlCommand getControlCommand() {
210 return controlCommand_;
212 public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() {
213 return controlCommand_;
216 // optional .openxc.CommandResponse command_response = 6;
217 public static final int COMMAND_RESPONSE_FIELD_NUMBER = 6;
218 private com.openxc.BinaryMessages.CommandResponse commandResponse_;
219 public boolean hasCommandResponse() {
220 return ((bitField0_ & 0x00000020) == 0x00000020);
222 public com.openxc.BinaryMessages.CommandResponse getCommandResponse() {
223 return commandResponse_;
225 public com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder() {
226 return commandResponse_;
229 // optional uint64 timestamp = 7;
230 public static final int TIMESTAMP_FIELD_NUMBER = 7;
231 private long timestamp_;
232 public boolean hasTimestamp() {
233 return ((bitField0_ & 0x00000040) == 0x00000040);
235 public long getTimestamp() {
239 private void initFields() {
240 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
241 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
242 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
243 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
244 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
245 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
248 private byte memoizedIsInitialized = -1;
249 public final boolean isInitialized() {
250 byte isInitialized = memoizedIsInitialized;
251 if (isInitialized != -1) return isInitialized == 1;
253 memoizedIsInitialized = 1;
257 public void writeTo(com.google.protobuf.CodedOutputStream output)
258 throws java.io.IOException {
260 if (((bitField0_ & 0x00000001) == 0x00000001)) {
261 output.writeEnum(1, type_.getNumber());
263 if (((bitField0_ & 0x00000002) == 0x00000002)) {
264 output.writeMessage(2, canMessage_);
266 if (((bitField0_ & 0x00000004) == 0x00000004)) {
267 output.writeMessage(3, simpleMessage_);
269 if (((bitField0_ & 0x00000008) == 0x00000008)) {
270 output.writeMessage(4, diagnosticResponse_);
272 if (((bitField0_ & 0x00000010) == 0x00000010)) {
273 output.writeMessage(5, controlCommand_);
275 if (((bitField0_ & 0x00000020) == 0x00000020)) {
276 output.writeMessage(6, commandResponse_);
278 if (((bitField0_ & 0x00000040) == 0x00000040)) {
279 output.writeUInt64(7, timestamp_);
281 getUnknownFields().writeTo(output);
284 private int memoizedSerializedSize = -1;
285 public int getSerializedSize() {
286 int size = memoizedSerializedSize;
287 if (size != -1) return size;
290 if (((bitField0_ & 0x00000001) == 0x00000001)) {
291 size += com.google.protobuf.CodedOutputStream
292 .computeEnumSize(1, type_.getNumber());
294 if (((bitField0_ & 0x00000002) == 0x00000002)) {
295 size += com.google.protobuf.CodedOutputStream
296 .computeMessageSize(2, canMessage_);
298 if (((bitField0_ & 0x00000004) == 0x00000004)) {
299 size += com.google.protobuf.CodedOutputStream
300 .computeMessageSize(3, simpleMessage_);
302 if (((bitField0_ & 0x00000008) == 0x00000008)) {
303 size += com.google.protobuf.CodedOutputStream
304 .computeMessageSize(4, diagnosticResponse_);
306 if (((bitField0_ & 0x00000010) == 0x00000010)) {
307 size += com.google.protobuf.CodedOutputStream
308 .computeMessageSize(5, controlCommand_);
310 if (((bitField0_ & 0x00000020) == 0x00000020)) {
311 size += com.google.protobuf.CodedOutputStream
312 .computeMessageSize(6, commandResponse_);
314 if (((bitField0_ & 0x00000040) == 0x00000040)) {
315 size += com.google.protobuf.CodedOutputStream
316 .computeUInt64Size(7, timestamp_);
318 size += getUnknownFields().getSerializedSize();
319 memoizedSerializedSize = size;
323 private static final long serialVersionUID = 0L;
325 protected java.lang.Object writeReplace()
326 throws java.io.ObjectStreamException {
327 return super.writeReplace();
330 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
331 com.google.protobuf.ByteString data)
332 throws com.google.protobuf.InvalidProtocolBufferException {
333 return newBuilder().mergeFrom(data).buildParsed();
335 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
336 com.google.protobuf.ByteString data,
337 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
338 throws com.google.protobuf.InvalidProtocolBufferException {
339 return newBuilder().mergeFrom(data, extensionRegistry)
342 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(byte[] data)
343 throws com.google.protobuf.InvalidProtocolBufferException {
344 return newBuilder().mergeFrom(data).buildParsed();
346 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
348 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
349 throws com.google.protobuf.InvalidProtocolBufferException {
350 return newBuilder().mergeFrom(data, extensionRegistry)
353 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(java.io.InputStream input)
354 throws java.io.IOException {
355 return newBuilder().mergeFrom(input).buildParsed();
357 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
358 java.io.InputStream input,
359 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
360 throws java.io.IOException {
361 return newBuilder().mergeFrom(input, extensionRegistry)
364 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(java.io.InputStream input)
365 throws java.io.IOException {
366 Builder builder = newBuilder();
367 if (builder.mergeDelimitedFrom(input)) {
368 return builder.buildParsed();
373 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(
374 java.io.InputStream input,
375 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
376 throws java.io.IOException {
377 Builder builder = newBuilder();
378 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
379 return builder.buildParsed();
384 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
385 com.google.protobuf.CodedInputStream input)
386 throws java.io.IOException {
387 return newBuilder().mergeFrom(input).buildParsed();
389 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
390 com.google.protobuf.CodedInputStream input,
391 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
392 throws java.io.IOException {
393 return newBuilder().mergeFrom(input, extensionRegistry)
397 public static Builder newBuilder() { return Builder.create(); }
398 public Builder newBuilderForType() { return newBuilder(); }
399 public static Builder newBuilder(com.openxc.BinaryMessages.VehicleMessage prototype) {
400 return newBuilder().mergeFrom(prototype);
402 public Builder toBuilder() { return newBuilder(this); }
405 protected Builder newBuilderForType(
406 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
407 Builder builder = new Builder(parent);
410 public static final class Builder extends
411 com.google.protobuf.GeneratedMessage.Builder<Builder>
412 implements com.openxc.BinaryMessages.VehicleMessageOrBuilder {
413 public static final com.google.protobuf.Descriptors.Descriptor
415 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
418 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
419 internalGetFieldAccessorTable() {
420 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable;
423 // Construct using com.openxc.BinaryMessages.VehicleMessage.newBuilder()
425 maybeForceBuilderInitialization();
428 private Builder(BuilderParent parent) {
430 maybeForceBuilderInitialization();
432 private void maybeForceBuilderInitialization() {
433 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
434 getCanMessageFieldBuilder();
435 getSimpleMessageFieldBuilder();
436 getDiagnosticResponseFieldBuilder();
437 getControlCommandFieldBuilder();
438 getCommandResponseFieldBuilder();
441 private static Builder create() {
442 return new Builder();
445 public Builder clear() {
447 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
448 bitField0_ = (bitField0_ & ~0x00000001);
449 if (canMessageBuilder_ == null) {
450 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
452 canMessageBuilder_.clear();
454 bitField0_ = (bitField0_ & ~0x00000002);
455 if (simpleMessageBuilder_ == null) {
456 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
458 simpleMessageBuilder_.clear();
460 bitField0_ = (bitField0_ & ~0x00000004);
461 if (diagnosticResponseBuilder_ == null) {
462 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
464 diagnosticResponseBuilder_.clear();
466 bitField0_ = (bitField0_ & ~0x00000008);
467 if (controlCommandBuilder_ == null) {
468 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
470 controlCommandBuilder_.clear();
472 bitField0_ = (bitField0_ & ~0x00000010);
473 if (commandResponseBuilder_ == null) {
474 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
476 commandResponseBuilder_.clear();
478 bitField0_ = (bitField0_ & ~0x00000020);
480 bitField0_ = (bitField0_ & ~0x00000040);
484 public Builder clone() {
485 return create().mergeFrom(buildPartial());
488 public com.google.protobuf.Descriptors.Descriptor
489 getDescriptorForType() {
490 return com.openxc.BinaryMessages.VehicleMessage.getDescriptor();
493 public com.openxc.BinaryMessages.VehicleMessage getDefaultInstanceForType() {
494 return com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance();
497 public com.openxc.BinaryMessages.VehicleMessage build() {
498 com.openxc.BinaryMessages.VehicleMessage result = buildPartial();
499 if (!result.isInitialized()) {
500 throw newUninitializedMessageException(result);
505 private com.openxc.BinaryMessages.VehicleMessage buildParsed()
506 throws com.google.protobuf.InvalidProtocolBufferException {
507 com.openxc.BinaryMessages.VehicleMessage result = buildPartial();
508 if (!result.isInitialized()) {
509 throw newUninitializedMessageException(
510 result).asInvalidProtocolBufferException();
515 public com.openxc.BinaryMessages.VehicleMessage buildPartial() {
516 com.openxc.BinaryMessages.VehicleMessage result = new com.openxc.BinaryMessages.VehicleMessage(this);
517 int from_bitField0_ = bitField0_;
518 int to_bitField0_ = 0;
519 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
520 to_bitField0_ |= 0x00000001;
522 result.type_ = type_;
523 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
524 to_bitField0_ |= 0x00000002;
526 if (canMessageBuilder_ == null) {
527 result.canMessage_ = canMessage_;
529 result.canMessage_ = canMessageBuilder_.build();
531 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
532 to_bitField0_ |= 0x00000004;
534 if (simpleMessageBuilder_ == null) {
535 result.simpleMessage_ = simpleMessage_;
537 result.simpleMessage_ = simpleMessageBuilder_.build();
539 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
540 to_bitField0_ |= 0x00000008;
542 if (diagnosticResponseBuilder_ == null) {
543 result.diagnosticResponse_ = diagnosticResponse_;
545 result.diagnosticResponse_ = diagnosticResponseBuilder_.build();
547 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
548 to_bitField0_ |= 0x00000010;
550 if (controlCommandBuilder_ == null) {
551 result.controlCommand_ = controlCommand_;
553 result.controlCommand_ = controlCommandBuilder_.build();
555 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
556 to_bitField0_ |= 0x00000020;
558 if (commandResponseBuilder_ == null) {
559 result.commandResponse_ = commandResponse_;
561 result.commandResponse_ = commandResponseBuilder_.build();
563 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
564 to_bitField0_ |= 0x00000040;
566 result.timestamp_ = timestamp_;
567 result.bitField0_ = to_bitField0_;
572 public Builder mergeFrom(com.google.protobuf.Message other) {
573 if (other instanceof com.openxc.BinaryMessages.VehicleMessage) {
574 return mergeFrom((com.openxc.BinaryMessages.VehicleMessage)other);
576 super.mergeFrom(other);
581 public Builder mergeFrom(com.openxc.BinaryMessages.VehicleMessage other) {
582 if (other == com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance()) return this;
583 if (other.hasType()) {
584 setType(other.getType());
586 if (other.hasCanMessage()) {
587 mergeCanMessage(other.getCanMessage());
589 if (other.hasSimpleMessage()) {
590 mergeSimpleMessage(other.getSimpleMessage());
592 if (other.hasDiagnosticResponse()) {
593 mergeDiagnosticResponse(other.getDiagnosticResponse());
595 if (other.hasControlCommand()) {
596 mergeControlCommand(other.getControlCommand());
598 if (other.hasCommandResponse()) {
599 mergeCommandResponse(other.getCommandResponse());
601 if (other.hasTimestamp()) {
602 setTimestamp(other.getTimestamp());
604 this.mergeUnknownFields(other.getUnknownFields());
608 public final boolean isInitialized() {
612 public Builder mergeFrom(
613 com.google.protobuf.CodedInputStream input,
614 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
615 throws java.io.IOException {
616 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
617 com.google.protobuf.UnknownFieldSet.newBuilder(
618 this.getUnknownFields());
620 int tag = input.readTag();
623 this.setUnknownFields(unknownFields.build());
627 if (!parseUnknownField(input, unknownFields,
628 extensionRegistry, tag)) {
629 this.setUnknownFields(unknownFields.build());
636 int rawValue = input.readEnum();
637 com.openxc.BinaryMessages.VehicleMessage.Type value = com.openxc.BinaryMessages.VehicleMessage.Type.valueOf(rawValue);
639 unknownFields.mergeVarintField(1, rawValue);
641 bitField0_ |= 0x00000001;
647 com.openxc.BinaryMessages.CanMessage.Builder subBuilder = com.openxc.BinaryMessages.CanMessage.newBuilder();
648 if (hasCanMessage()) {
649 subBuilder.mergeFrom(getCanMessage());
651 input.readMessage(subBuilder, extensionRegistry);
652 setCanMessage(subBuilder.buildPartial());
656 com.openxc.BinaryMessages.SimpleMessage.Builder subBuilder = com.openxc.BinaryMessages.SimpleMessage.newBuilder();
657 if (hasSimpleMessage()) {
658 subBuilder.mergeFrom(getSimpleMessage());
660 input.readMessage(subBuilder, extensionRegistry);
661 setSimpleMessage(subBuilder.buildPartial());
665 com.openxc.BinaryMessages.DiagnosticResponse.Builder subBuilder = com.openxc.BinaryMessages.DiagnosticResponse.newBuilder();
666 if (hasDiagnosticResponse()) {
667 subBuilder.mergeFrom(getDiagnosticResponse());
669 input.readMessage(subBuilder, extensionRegistry);
670 setDiagnosticResponse(subBuilder.buildPartial());
674 com.openxc.BinaryMessages.ControlCommand.Builder subBuilder = com.openxc.BinaryMessages.ControlCommand.newBuilder();
675 if (hasControlCommand()) {
676 subBuilder.mergeFrom(getControlCommand());
678 input.readMessage(subBuilder, extensionRegistry);
679 setControlCommand(subBuilder.buildPartial());
683 com.openxc.BinaryMessages.CommandResponse.Builder subBuilder = com.openxc.BinaryMessages.CommandResponse.newBuilder();
684 if (hasCommandResponse()) {
685 subBuilder.mergeFrom(getCommandResponse());
687 input.readMessage(subBuilder, extensionRegistry);
688 setCommandResponse(subBuilder.buildPartial());
692 bitField0_ |= 0x00000040;
693 timestamp_ = input.readUInt64();
700 private int bitField0_;
702 // optional .openxc.VehicleMessage.Type type = 1;
703 private com.openxc.BinaryMessages.VehicleMessage.Type type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
704 public boolean hasType() {
705 return ((bitField0_ & 0x00000001) == 0x00000001);
707 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
710 public Builder setType(com.openxc.BinaryMessages.VehicleMessage.Type value) {
712 throw new NullPointerException();
714 bitField0_ |= 0x00000001;
719 public Builder clearType() {
720 bitField0_ = (bitField0_ & ~0x00000001);
721 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
726 // optional .openxc.CanMessage can_message = 2;
727 private com.openxc.BinaryMessages.CanMessage canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
728 private com.google.protobuf.SingleFieldBuilder<
729 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder> canMessageBuilder_;
730 public boolean hasCanMessage() {
731 return ((bitField0_ & 0x00000002) == 0x00000002);
733 public com.openxc.BinaryMessages.CanMessage getCanMessage() {
734 if (canMessageBuilder_ == null) {
737 return canMessageBuilder_.getMessage();
740 public Builder setCanMessage(com.openxc.BinaryMessages.CanMessage value) {
741 if (canMessageBuilder_ == null) {
743 throw new NullPointerException();
748 canMessageBuilder_.setMessage(value);
750 bitField0_ |= 0x00000002;
753 public Builder setCanMessage(
754 com.openxc.BinaryMessages.CanMessage.Builder builderForValue) {
755 if (canMessageBuilder_ == null) {
756 canMessage_ = builderForValue.build();
759 canMessageBuilder_.setMessage(builderForValue.build());
761 bitField0_ |= 0x00000002;
764 public Builder mergeCanMessage(com.openxc.BinaryMessages.CanMessage value) {
765 if (canMessageBuilder_ == null) {
766 if (((bitField0_ & 0x00000002) == 0x00000002) &&
767 canMessage_ != com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) {
769 com.openxc.BinaryMessages.CanMessage.newBuilder(canMessage_).mergeFrom(value).buildPartial();
775 canMessageBuilder_.mergeFrom(value);
777 bitField0_ |= 0x00000002;
780 public Builder clearCanMessage() {
781 if (canMessageBuilder_ == null) {
782 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
785 canMessageBuilder_.clear();
787 bitField0_ = (bitField0_ & ~0x00000002);
790 public com.openxc.BinaryMessages.CanMessage.Builder getCanMessageBuilder() {
791 bitField0_ |= 0x00000002;
793 return getCanMessageFieldBuilder().getBuilder();
795 public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() {
796 if (canMessageBuilder_ != null) {
797 return canMessageBuilder_.getMessageOrBuilder();
802 private com.google.protobuf.SingleFieldBuilder<
803 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder>
804 getCanMessageFieldBuilder() {
805 if (canMessageBuilder_ == null) {
806 canMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
807 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder>(
809 getParentForChildren(),
813 return canMessageBuilder_;
816 // optional .openxc.SimpleMessage simple_message = 3;
817 private com.openxc.BinaryMessages.SimpleMessage simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
818 private com.google.protobuf.SingleFieldBuilder<
819 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder> simpleMessageBuilder_;
820 public boolean hasSimpleMessage() {
821 return ((bitField0_ & 0x00000004) == 0x00000004);
823 public com.openxc.BinaryMessages.SimpleMessage getSimpleMessage() {
824 if (simpleMessageBuilder_ == null) {
825 return simpleMessage_;
827 return simpleMessageBuilder_.getMessage();
830 public Builder setSimpleMessage(com.openxc.BinaryMessages.SimpleMessage value) {
831 if (simpleMessageBuilder_ == null) {
833 throw new NullPointerException();
835 simpleMessage_ = value;
838 simpleMessageBuilder_.setMessage(value);
840 bitField0_ |= 0x00000004;
843 public Builder setSimpleMessage(
844 com.openxc.BinaryMessages.SimpleMessage.Builder builderForValue) {
845 if (simpleMessageBuilder_ == null) {
846 simpleMessage_ = builderForValue.build();
849 simpleMessageBuilder_.setMessage(builderForValue.build());
851 bitField0_ |= 0x00000004;
854 public Builder mergeSimpleMessage(com.openxc.BinaryMessages.SimpleMessage value) {
855 if (simpleMessageBuilder_ == null) {
856 if (((bitField0_ & 0x00000004) == 0x00000004) &&
857 simpleMessage_ != com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance()) {
859 com.openxc.BinaryMessages.SimpleMessage.newBuilder(simpleMessage_).mergeFrom(value).buildPartial();
861 simpleMessage_ = value;
865 simpleMessageBuilder_.mergeFrom(value);
867 bitField0_ |= 0x00000004;
870 public Builder clearSimpleMessage() {
871 if (simpleMessageBuilder_ == null) {
872 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
875 simpleMessageBuilder_.clear();
877 bitField0_ = (bitField0_ & ~0x00000004);
880 public com.openxc.BinaryMessages.SimpleMessage.Builder getSimpleMessageBuilder() {
881 bitField0_ |= 0x00000004;
883 return getSimpleMessageFieldBuilder().getBuilder();
885 public com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder() {
886 if (simpleMessageBuilder_ != null) {
887 return simpleMessageBuilder_.getMessageOrBuilder();
889 return simpleMessage_;
892 private com.google.protobuf.SingleFieldBuilder<
893 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder>
894 getSimpleMessageFieldBuilder() {
895 if (simpleMessageBuilder_ == null) {
896 simpleMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
897 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder>(
899 getParentForChildren(),
901 simpleMessage_ = null;
903 return simpleMessageBuilder_;
906 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
907 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
908 private com.google.protobuf.SingleFieldBuilder<
909 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder> diagnosticResponseBuilder_;
910 public boolean hasDiagnosticResponse() {
911 return ((bitField0_ & 0x00000008) == 0x00000008);
913 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
914 if (diagnosticResponseBuilder_ == null) {
915 return diagnosticResponse_;
917 return diagnosticResponseBuilder_.getMessage();
920 public Builder setDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
921 if (diagnosticResponseBuilder_ == null) {
923 throw new NullPointerException();
925 diagnosticResponse_ = value;
928 diagnosticResponseBuilder_.setMessage(value);
930 bitField0_ |= 0x00000008;
933 public Builder setDiagnosticResponse(
934 com.openxc.BinaryMessages.DiagnosticResponse.Builder builderForValue) {
935 if (diagnosticResponseBuilder_ == null) {
936 diagnosticResponse_ = builderForValue.build();
939 diagnosticResponseBuilder_.setMessage(builderForValue.build());
941 bitField0_ |= 0x00000008;
944 public Builder mergeDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
945 if (diagnosticResponseBuilder_ == null) {
946 if (((bitField0_ & 0x00000008) == 0x00000008) &&
947 diagnosticResponse_ != com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) {
948 diagnosticResponse_ =
949 com.openxc.BinaryMessages.DiagnosticResponse.newBuilder(diagnosticResponse_).mergeFrom(value).buildPartial();
951 diagnosticResponse_ = value;
955 diagnosticResponseBuilder_.mergeFrom(value);
957 bitField0_ |= 0x00000008;
960 public Builder clearDiagnosticResponse() {
961 if (diagnosticResponseBuilder_ == null) {
962 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
965 diagnosticResponseBuilder_.clear();
967 bitField0_ = (bitField0_ & ~0x00000008);
970 public com.openxc.BinaryMessages.DiagnosticResponse.Builder getDiagnosticResponseBuilder() {
971 bitField0_ |= 0x00000008;
973 return getDiagnosticResponseFieldBuilder().getBuilder();
975 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
976 if (diagnosticResponseBuilder_ != null) {
977 return diagnosticResponseBuilder_.getMessageOrBuilder();
979 return diagnosticResponse_;
982 private com.google.protobuf.SingleFieldBuilder<
983 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>
984 getDiagnosticResponseFieldBuilder() {
985 if (diagnosticResponseBuilder_ == null) {
986 diagnosticResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
987 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>(
989 getParentForChildren(),
991 diagnosticResponse_ = null;
993 return diagnosticResponseBuilder_;
996 // optional .openxc.ControlCommand control_command = 5;
997 private com.openxc.BinaryMessages.ControlCommand controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
998 private com.google.protobuf.SingleFieldBuilder<
999 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder> controlCommandBuilder_;
1000 public boolean hasControlCommand() {
1001 return ((bitField0_ & 0x00000010) == 0x00000010);
1003 public com.openxc.BinaryMessages.ControlCommand getControlCommand() {
1004 if (controlCommandBuilder_ == null) {
1005 return controlCommand_;
1007 return controlCommandBuilder_.getMessage();
1010 public Builder setControlCommand(com.openxc.BinaryMessages.ControlCommand value) {
1011 if (controlCommandBuilder_ == null) {
1012 if (value == null) {
1013 throw new NullPointerException();
1015 controlCommand_ = value;
1018 controlCommandBuilder_.setMessage(value);
1020 bitField0_ |= 0x00000010;
1023 public Builder setControlCommand(
1024 com.openxc.BinaryMessages.ControlCommand.Builder builderForValue) {
1025 if (controlCommandBuilder_ == null) {
1026 controlCommand_ = builderForValue.build();
1029 controlCommandBuilder_.setMessage(builderForValue.build());
1031 bitField0_ |= 0x00000010;
1034 public Builder mergeControlCommand(com.openxc.BinaryMessages.ControlCommand value) {
1035 if (controlCommandBuilder_ == null) {
1036 if (((bitField0_ & 0x00000010) == 0x00000010) &&
1037 controlCommand_ != com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) {
1039 com.openxc.BinaryMessages.ControlCommand.newBuilder(controlCommand_).mergeFrom(value).buildPartial();
1041 controlCommand_ = value;
1045 controlCommandBuilder_.mergeFrom(value);
1047 bitField0_ |= 0x00000010;
1050 public Builder clearControlCommand() {
1051 if (controlCommandBuilder_ == null) {
1052 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
1055 controlCommandBuilder_.clear();
1057 bitField0_ = (bitField0_ & ~0x00000010);
1060 public com.openxc.BinaryMessages.ControlCommand.Builder getControlCommandBuilder() {
1061 bitField0_ |= 0x00000010;
1063 return getControlCommandFieldBuilder().getBuilder();
1065 public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() {
1066 if (controlCommandBuilder_ != null) {
1067 return controlCommandBuilder_.getMessageOrBuilder();
1069 return controlCommand_;
1072 private com.google.protobuf.SingleFieldBuilder<
1073 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder>
1074 getControlCommandFieldBuilder() {
1075 if (controlCommandBuilder_ == null) {
1076 controlCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1077 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder>(
1079 getParentForChildren(),
1081 controlCommand_ = null;
1083 return controlCommandBuilder_;
1086 // optional .openxc.CommandResponse command_response = 6;
1087 private com.openxc.BinaryMessages.CommandResponse commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
1088 private com.google.protobuf.SingleFieldBuilder<
1089 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder> commandResponseBuilder_;
1090 public boolean hasCommandResponse() {
1091 return ((bitField0_ & 0x00000020) == 0x00000020);
1093 public com.openxc.BinaryMessages.CommandResponse getCommandResponse() {
1094 if (commandResponseBuilder_ == null) {
1095 return commandResponse_;
1097 return commandResponseBuilder_.getMessage();
1100 public Builder setCommandResponse(com.openxc.BinaryMessages.CommandResponse value) {
1101 if (commandResponseBuilder_ == null) {
1102 if (value == null) {
1103 throw new NullPointerException();
1105 commandResponse_ = value;
1108 commandResponseBuilder_.setMessage(value);
1110 bitField0_ |= 0x00000020;
1113 public Builder setCommandResponse(
1114 com.openxc.BinaryMessages.CommandResponse.Builder builderForValue) {
1115 if (commandResponseBuilder_ == null) {
1116 commandResponse_ = builderForValue.build();
1119 commandResponseBuilder_.setMessage(builderForValue.build());
1121 bitField0_ |= 0x00000020;
1124 public Builder mergeCommandResponse(com.openxc.BinaryMessages.CommandResponse value) {
1125 if (commandResponseBuilder_ == null) {
1126 if (((bitField0_ & 0x00000020) == 0x00000020) &&
1127 commandResponse_ != com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) {
1129 com.openxc.BinaryMessages.CommandResponse.newBuilder(commandResponse_).mergeFrom(value).buildPartial();
1131 commandResponse_ = value;
1135 commandResponseBuilder_.mergeFrom(value);
1137 bitField0_ |= 0x00000020;
1140 public Builder clearCommandResponse() {
1141 if (commandResponseBuilder_ == null) {
1142 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
1145 commandResponseBuilder_.clear();
1147 bitField0_ = (bitField0_ & ~0x00000020);
1150 public com.openxc.BinaryMessages.CommandResponse.Builder getCommandResponseBuilder() {
1151 bitField0_ |= 0x00000020;
1153 return getCommandResponseFieldBuilder().getBuilder();
1155 public com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder() {
1156 if (commandResponseBuilder_ != null) {
1157 return commandResponseBuilder_.getMessageOrBuilder();
1159 return commandResponse_;
1162 private com.google.protobuf.SingleFieldBuilder<
1163 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder>
1164 getCommandResponseFieldBuilder() {
1165 if (commandResponseBuilder_ == null) {
1166 commandResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1167 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder>(
1169 getParentForChildren(),
1171 commandResponse_ = null;
1173 return commandResponseBuilder_;
1176 // optional uint64 timestamp = 7;
1177 private long timestamp_ ;
1178 public boolean hasTimestamp() {
1179 return ((bitField0_ & 0x00000040) == 0x00000040);
1181 public long getTimestamp() {
1184 public Builder setTimestamp(long value) {
1185 bitField0_ |= 0x00000040;
1190 public Builder clearTimestamp() {
1191 bitField0_ = (bitField0_ & ~0x00000040);
1197 // @@protoc_insertion_point(builder_scope:openxc.VehicleMessage)
1201 defaultInstance = new VehicleMessage(true);
1202 defaultInstance.initFields();
1205 // @@protoc_insertion_point(class_scope:openxc.VehicleMessage)
1208 public interface CanMessageOrBuilder
1209 extends com.google.protobuf.MessageOrBuilder {
1211 // optional int32 bus = 1;
1215 // optional uint32 id = 2;
1219 // optional bytes data = 3;
1221 com.google.protobuf.ByteString getData();
1223 // optional .openxc.CanMessage.FrameFormat frame_format = 4;
1224 boolean hasFrameFormat();
1225 com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat();
1227 public static final class CanMessage extends
1228 com.google.protobuf.GeneratedMessage
1229 implements CanMessageOrBuilder {
1230 // Use CanMessage.newBuilder() to construct.
1231 private CanMessage(Builder builder) {
1234 private CanMessage(boolean noInit) {}
1236 private static final CanMessage defaultInstance;
1237 public static CanMessage getDefaultInstance() {
1238 return defaultInstance;
1241 public CanMessage getDefaultInstanceForType() {
1242 return defaultInstance;
1245 public static final com.google.protobuf.Descriptors.Descriptor
1247 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1250 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1251 internalGetFieldAccessorTable() {
1252 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_fieldAccessorTable;
1255 public enum FrameFormat
1256 implements com.google.protobuf.ProtocolMessageEnum {
1261 public static final int STANDARD_VALUE = 1;
1262 public static final int EXTENDED_VALUE = 2;
1265 public final int getNumber() { return value; }
1267 public static FrameFormat valueOf(int value) {
1269 case 1: return STANDARD;
1270 case 2: return EXTENDED;
1271 default: return null;
1275 public static com.google.protobuf.Internal.EnumLiteMap<FrameFormat>
1276 internalGetValueMap() {
1277 return internalValueMap;
1279 private static com.google.protobuf.Internal.EnumLiteMap<FrameFormat>
1281 new com.google.protobuf.Internal.EnumLiteMap<FrameFormat>() {
1282 public FrameFormat findValueByNumber(int number) {
1283 return FrameFormat.valueOf(number);
1287 public final com.google.protobuf.Descriptors.EnumValueDescriptor
1288 getValueDescriptor() {
1289 return getDescriptor().getValues().get(index);
1291 public final com.google.protobuf.Descriptors.EnumDescriptor
1292 getDescriptorForType() {
1293 return getDescriptor();
1295 public static final com.google.protobuf.Descriptors.EnumDescriptor
1297 return com.openxc.BinaryMessages.CanMessage.getDescriptor().getEnumTypes().get(0);
1300 private static final FrameFormat[] VALUES = {
1304 public static FrameFormat valueOf(
1305 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1306 if (desc.getType() != getDescriptor()) {
1307 throw new java.lang.IllegalArgumentException(
1308 "EnumValueDescriptor is not for this type.");
1310 return VALUES[desc.getIndex()];
1313 private final int index;
1314 private final int value;
1316 private FrameFormat(int index, int value) {
1321 // @@protoc_insertion_point(enum_scope:openxc.CanMessage.FrameFormat)
1324 private int bitField0_;
1325 // optional int32 bus = 1;
1326 public static final int BUS_FIELD_NUMBER = 1;
1328 public boolean hasBus() {
1329 return ((bitField0_ & 0x00000001) == 0x00000001);
1331 public int getBus() {
1335 // optional uint32 id = 2;
1336 public static final int ID_FIELD_NUMBER = 2;
1338 public boolean hasId() {
1339 return ((bitField0_ & 0x00000002) == 0x00000002);
1341 public int getId() {
1345 // optional bytes data = 3;
1346 public static final int DATA_FIELD_NUMBER = 3;
1347 private com.google.protobuf.ByteString data_;
1348 public boolean hasData() {
1349 return ((bitField0_ & 0x00000004) == 0x00000004);
1351 public com.google.protobuf.ByteString getData() {
1355 // optional .openxc.CanMessage.FrameFormat frame_format = 4;
1356 public static final int FRAME_FORMAT_FIELD_NUMBER = 4;
1357 private com.openxc.BinaryMessages.CanMessage.FrameFormat frameFormat_;
1358 public boolean hasFrameFormat() {
1359 return ((bitField0_ & 0x00000008) == 0x00000008);
1361 public com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat() {
1362 return frameFormat_;
1365 private void initFields() {
1368 data_ = com.google.protobuf.ByteString.EMPTY;
1369 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1371 private byte memoizedIsInitialized = -1;
1372 public final boolean isInitialized() {
1373 byte isInitialized = memoizedIsInitialized;
1374 if (isInitialized != -1) return isInitialized == 1;
1376 memoizedIsInitialized = 1;
1380 public void writeTo(com.google.protobuf.CodedOutputStream output)
1381 throws java.io.IOException {
1382 getSerializedSize();
1383 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1384 output.writeInt32(1, bus_);
1386 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1387 output.writeUInt32(2, id_);
1389 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1390 output.writeBytes(3, data_);
1392 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1393 output.writeEnum(4, frameFormat_.getNumber());
1395 getUnknownFields().writeTo(output);
1398 private int memoizedSerializedSize = -1;
1399 public int getSerializedSize() {
1400 int size = memoizedSerializedSize;
1401 if (size != -1) return size;
1404 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1405 size += com.google.protobuf.CodedOutputStream
1406 .computeInt32Size(1, bus_);
1408 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1409 size += com.google.protobuf.CodedOutputStream
1410 .computeUInt32Size(2, id_);
1412 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1413 size += com.google.protobuf.CodedOutputStream
1414 .computeBytesSize(3, data_);
1416 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1417 size += com.google.protobuf.CodedOutputStream
1418 .computeEnumSize(4, frameFormat_.getNumber());
1420 size += getUnknownFields().getSerializedSize();
1421 memoizedSerializedSize = size;
1425 private static final long serialVersionUID = 0L;
1427 protected java.lang.Object writeReplace()
1428 throws java.io.ObjectStreamException {
1429 return super.writeReplace();
1432 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1433 com.google.protobuf.ByteString data)
1434 throws com.google.protobuf.InvalidProtocolBufferException {
1435 return newBuilder().mergeFrom(data).buildParsed();
1437 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1438 com.google.protobuf.ByteString data,
1439 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1440 throws com.google.protobuf.InvalidProtocolBufferException {
1441 return newBuilder().mergeFrom(data, extensionRegistry)
1444 public static com.openxc.BinaryMessages.CanMessage parseFrom(byte[] data)
1445 throws com.google.protobuf.InvalidProtocolBufferException {
1446 return newBuilder().mergeFrom(data).buildParsed();
1448 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1450 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1451 throws com.google.protobuf.InvalidProtocolBufferException {
1452 return newBuilder().mergeFrom(data, extensionRegistry)
1455 public static com.openxc.BinaryMessages.CanMessage parseFrom(java.io.InputStream input)
1456 throws java.io.IOException {
1457 return newBuilder().mergeFrom(input).buildParsed();
1459 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1460 java.io.InputStream input,
1461 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1462 throws java.io.IOException {
1463 return newBuilder().mergeFrom(input, extensionRegistry)
1466 public static com.openxc.BinaryMessages.CanMessage parseDelimitedFrom(java.io.InputStream input)
1467 throws java.io.IOException {
1468 Builder builder = newBuilder();
1469 if (builder.mergeDelimitedFrom(input)) {
1470 return builder.buildParsed();
1475 public static com.openxc.BinaryMessages.CanMessage parseDelimitedFrom(
1476 java.io.InputStream input,
1477 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1478 throws java.io.IOException {
1479 Builder builder = newBuilder();
1480 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
1481 return builder.buildParsed();
1486 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1487 com.google.protobuf.CodedInputStream input)
1488 throws java.io.IOException {
1489 return newBuilder().mergeFrom(input).buildParsed();
1491 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1492 com.google.protobuf.CodedInputStream input,
1493 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1494 throws java.io.IOException {
1495 return newBuilder().mergeFrom(input, extensionRegistry)
1499 public static Builder newBuilder() { return Builder.create(); }
1500 public Builder newBuilderForType() { return newBuilder(); }
1501 public static Builder newBuilder(com.openxc.BinaryMessages.CanMessage prototype) {
1502 return newBuilder().mergeFrom(prototype);
1504 public Builder toBuilder() { return newBuilder(this); }
1507 protected Builder newBuilderForType(
1508 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1509 Builder builder = new Builder(parent);
1512 public static final class Builder extends
1513 com.google.protobuf.GeneratedMessage.Builder<Builder>
1514 implements com.openxc.BinaryMessages.CanMessageOrBuilder {
1515 public static final com.google.protobuf.Descriptors.Descriptor
1517 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1520 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1521 internalGetFieldAccessorTable() {
1522 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_fieldAccessorTable;
1525 // Construct using com.openxc.BinaryMessages.CanMessage.newBuilder()
1527 maybeForceBuilderInitialization();
1530 private Builder(BuilderParent parent) {
1532 maybeForceBuilderInitialization();
1534 private void maybeForceBuilderInitialization() {
1535 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1538 private static Builder create() {
1539 return new Builder();
1542 public Builder clear() {
1545 bitField0_ = (bitField0_ & ~0x00000001);
1547 bitField0_ = (bitField0_ & ~0x00000002);
1548 data_ = com.google.protobuf.ByteString.EMPTY;
1549 bitField0_ = (bitField0_ & ~0x00000004);
1550 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1551 bitField0_ = (bitField0_ & ~0x00000008);
1555 public Builder clone() {
1556 return create().mergeFrom(buildPartial());
1559 public com.google.protobuf.Descriptors.Descriptor
1560 getDescriptorForType() {
1561 return com.openxc.BinaryMessages.CanMessage.getDescriptor();
1564 public com.openxc.BinaryMessages.CanMessage getDefaultInstanceForType() {
1565 return com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
1568 public com.openxc.BinaryMessages.CanMessage build() {
1569 com.openxc.BinaryMessages.CanMessage result = buildPartial();
1570 if (!result.isInitialized()) {
1571 throw newUninitializedMessageException(result);
1576 private com.openxc.BinaryMessages.CanMessage buildParsed()
1577 throws com.google.protobuf.InvalidProtocolBufferException {
1578 com.openxc.BinaryMessages.CanMessage result = buildPartial();
1579 if (!result.isInitialized()) {
1580 throw newUninitializedMessageException(
1581 result).asInvalidProtocolBufferException();
1586 public com.openxc.BinaryMessages.CanMessage buildPartial() {
1587 com.openxc.BinaryMessages.CanMessage result = new com.openxc.BinaryMessages.CanMessage(this);
1588 int from_bitField0_ = bitField0_;
1589 int to_bitField0_ = 0;
1590 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1591 to_bitField0_ |= 0x00000001;
1594 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1595 to_bitField0_ |= 0x00000002;
1598 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1599 to_bitField0_ |= 0x00000004;
1601 result.data_ = data_;
1602 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1603 to_bitField0_ |= 0x00000008;
1605 result.frameFormat_ = frameFormat_;
1606 result.bitField0_ = to_bitField0_;
1611 public Builder mergeFrom(com.google.protobuf.Message other) {
1612 if (other instanceof com.openxc.BinaryMessages.CanMessage) {
1613 return mergeFrom((com.openxc.BinaryMessages.CanMessage)other);
1615 super.mergeFrom(other);
1620 public Builder mergeFrom(com.openxc.BinaryMessages.CanMessage other) {
1621 if (other == com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) return this;
1622 if (other.hasBus()) {
1623 setBus(other.getBus());
1625 if (other.hasId()) {
1626 setId(other.getId());
1628 if (other.hasData()) {
1629 setData(other.getData());
1631 if (other.hasFrameFormat()) {
1632 setFrameFormat(other.getFrameFormat());
1634 this.mergeUnknownFields(other.getUnknownFields());
1638 public final boolean isInitialized() {
1642 public Builder mergeFrom(
1643 com.google.protobuf.CodedInputStream input,
1644 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1645 throws java.io.IOException {
1646 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1647 com.google.protobuf.UnknownFieldSet.newBuilder(
1648 this.getUnknownFields());
1650 int tag = input.readTag();
1653 this.setUnknownFields(unknownFields.build());
1657 if (!parseUnknownField(input, unknownFields,
1658 extensionRegistry, tag)) {
1659 this.setUnknownFields(unknownFields.build());
1666 bitField0_ |= 0x00000001;
1667 bus_ = input.readInt32();
1671 bitField0_ |= 0x00000002;
1672 id_ = input.readUInt32();
1676 bitField0_ |= 0x00000004;
1677 data_ = input.readBytes();
1681 int rawValue = input.readEnum();
1682 com.openxc.BinaryMessages.CanMessage.FrameFormat value = com.openxc.BinaryMessages.CanMessage.FrameFormat.valueOf(rawValue);
1683 if (value == null) {
1684 unknownFields.mergeVarintField(4, rawValue);
1686 bitField0_ |= 0x00000008;
1687 frameFormat_ = value;
1695 private int bitField0_;
1697 // optional int32 bus = 1;
1699 public boolean hasBus() {
1700 return ((bitField0_ & 0x00000001) == 0x00000001);
1702 public int getBus() {
1705 public Builder setBus(int value) {
1706 bitField0_ |= 0x00000001;
1711 public Builder clearBus() {
1712 bitField0_ = (bitField0_ & ~0x00000001);
1718 // optional uint32 id = 2;
1720 public boolean hasId() {
1721 return ((bitField0_ & 0x00000002) == 0x00000002);
1723 public int getId() {
1726 public Builder setId(int value) {
1727 bitField0_ |= 0x00000002;
1732 public Builder clearId() {
1733 bitField0_ = (bitField0_ & ~0x00000002);
1739 // optional bytes data = 3;
1740 private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
1741 public boolean hasData() {
1742 return ((bitField0_ & 0x00000004) == 0x00000004);
1744 public com.google.protobuf.ByteString getData() {
1747 public Builder setData(com.google.protobuf.ByteString value) {
1748 if (value == null) {
1749 throw new NullPointerException();
1751 bitField0_ |= 0x00000004;
1756 public Builder clearData() {
1757 bitField0_ = (bitField0_ & ~0x00000004);
1758 data_ = getDefaultInstance().getData();
1763 // optional .openxc.CanMessage.FrameFormat frame_format = 4;
1764 private com.openxc.BinaryMessages.CanMessage.FrameFormat frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1765 public boolean hasFrameFormat() {
1766 return ((bitField0_ & 0x00000008) == 0x00000008);
1768 public com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat() {
1769 return frameFormat_;
1771 public Builder setFrameFormat(com.openxc.BinaryMessages.CanMessage.FrameFormat value) {
1772 if (value == null) {
1773 throw new NullPointerException();
1775 bitField0_ |= 0x00000008;
1776 frameFormat_ = value;
1780 public Builder clearFrameFormat() {
1781 bitField0_ = (bitField0_ & ~0x00000008);
1782 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1787 // @@protoc_insertion_point(builder_scope:openxc.CanMessage)
1791 defaultInstance = new CanMessage(true);
1792 defaultInstance.initFields();
1795 // @@protoc_insertion_point(class_scope:openxc.CanMessage)
1798 public interface ControlCommandOrBuilder
1799 extends com.google.protobuf.MessageOrBuilder {
1801 // optional .openxc.ControlCommand.Type type = 1;
1803 com.openxc.BinaryMessages.ControlCommand.Type getType();
1805 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
1806 boolean hasDiagnosticRequest();
1807 com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest();
1808 com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder();
1810 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
1811 boolean hasPassthroughModeRequest();
1812 com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest();
1813 com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder();
1815 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
1816 boolean hasAcceptanceFilterBypassCommand();
1817 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand();
1818 com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder();
1820 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
1821 boolean hasPayloadFormatCommand();
1822 com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand();
1823 com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder();
1825 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
1826 boolean hasPredefinedObd2RequestsCommand();
1827 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand();
1828 com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder();
1830 // optional .openxc.ModemConfigurationCommand modem_configuration_command = 7;
1831 boolean hasModemConfigurationCommand();
1832 com.openxc.BinaryMessages.ModemConfigurationCommand getModemConfigurationCommand();
1833 com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder getModemConfigurationCommandOrBuilder();
1835 // optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;
1836 boolean hasRtcConfigurationCommand();
1837 com.openxc.BinaryMessages.RTCConfigurationCommand getRtcConfigurationCommand();
1838 com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder getRtcConfigurationCommandOrBuilder();
1840 public static final class ControlCommand extends
1841 com.google.protobuf.GeneratedMessage
1842 implements ControlCommandOrBuilder {
1843 // Use ControlCommand.newBuilder() to construct.
1844 private ControlCommand(Builder builder) {
1847 private ControlCommand(boolean noInit) {}
1849 private static final ControlCommand defaultInstance;
1850 public static ControlCommand getDefaultInstance() {
1851 return defaultInstance;
1854 public ControlCommand getDefaultInstanceForType() {
1855 return defaultInstance;
1858 public static final com.google.protobuf.Descriptors.Descriptor
1860 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
1863 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1864 internalGetFieldAccessorTable() {
1865 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable;
1869 implements com.google.protobuf.ProtocolMessageEnum {
1874 ACCEPTANCE_FILTER_BYPASS(4, 5),
1875 PAYLOAD_FORMAT(5, 6),
1876 PREDEFINED_OBD2_REQUESTS(6, 7),
1877 MODEM_CONFIGURATION(7, 8),
1878 RTC_CONFIGURATION(8, 9),
1879 SD_MOUNT_STATUS(9, 10),
1883 public static final int VERSION_VALUE = 1;
1884 public static final int DEVICE_ID_VALUE = 2;
1885 public static final int DIAGNOSTIC_VALUE = 3;
1886 public static final int PASSTHROUGH_VALUE = 4;
1887 public static final int ACCEPTANCE_FILTER_BYPASS_VALUE = 5;
1888 public static final int PAYLOAD_FORMAT_VALUE = 6;
1889 public static final int PREDEFINED_OBD2_REQUESTS_VALUE = 7;
1890 public static final int MODEM_CONFIGURATION_VALUE = 8;
1891 public static final int RTC_CONFIGURATION_VALUE = 9;
1892 public static final int SD_MOUNT_STATUS_VALUE = 10;
1893 public static final int PLATFORM_VALUE = 11;
1896 public final int getNumber() { return value; }
1898 public static Type valueOf(int value) {
1900 case 1: return VERSION;
1901 case 2: return DEVICE_ID;
1902 case 3: return DIAGNOSTIC;
1903 case 4: return PASSTHROUGH;
1904 case 5: return ACCEPTANCE_FILTER_BYPASS;
1905 case 6: return PAYLOAD_FORMAT;
1906 case 7: return PREDEFINED_OBD2_REQUESTS;
1907 case 8: return MODEM_CONFIGURATION;
1908 case 9: return RTC_CONFIGURATION;
1909 case 10: return SD_MOUNT_STATUS;
1910 case 11: return PLATFORM;
1911 default: return null;
1915 public static com.google.protobuf.Internal.EnumLiteMap<Type>
1916 internalGetValueMap() {
1917 return internalValueMap;
1919 private static com.google.protobuf.Internal.EnumLiteMap<Type>
1921 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
1922 public Type findValueByNumber(int number) {
1923 return Type.valueOf(number);
1927 public final com.google.protobuf.Descriptors.EnumValueDescriptor
1928 getValueDescriptor() {
1929 return getDescriptor().getValues().get(index);
1931 public final com.google.protobuf.Descriptors.EnumDescriptor
1932 getDescriptorForType() {
1933 return getDescriptor();
1935 public static final com.google.protobuf.Descriptors.EnumDescriptor
1937 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
1940 private static final Type[] VALUES = {
1941 VERSION, DEVICE_ID, DIAGNOSTIC, PASSTHROUGH, ACCEPTANCE_FILTER_BYPASS, PAYLOAD_FORMAT, PREDEFINED_OBD2_REQUESTS, MODEM_CONFIGURATION, RTC_CONFIGURATION, SD_MOUNT_STATUS, PLATFORM,
1944 public static Type valueOf(
1945 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1946 if (desc.getType() != getDescriptor()) {
1947 throw new java.lang.IllegalArgumentException(
1948 "EnumValueDescriptor is not for this type.");
1950 return VALUES[desc.getIndex()];
1953 private final int index;
1954 private final int value;
1956 private Type(int index, int value) {
1961 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
1964 private int bitField0_;
1965 // optional .openxc.ControlCommand.Type type = 1;
1966 public static final int TYPE_FIELD_NUMBER = 1;
1967 private com.openxc.BinaryMessages.ControlCommand.Type type_;
1968 public boolean hasType() {
1969 return ((bitField0_ & 0x00000001) == 0x00000001);
1971 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
1975 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
1976 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
1977 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_;
1978 public boolean hasDiagnosticRequest() {
1979 return ((bitField0_ & 0x00000002) == 0x00000002);
1981 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
1982 return diagnosticRequest_;
1984 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
1985 return diagnosticRequest_;
1988 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
1989 public static final int PASSTHROUGH_MODE_REQUEST_FIELD_NUMBER = 3;
1990 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_;
1991 public boolean hasPassthroughModeRequest() {
1992 return ((bitField0_ & 0x00000004) == 0x00000004);
1994 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
1995 return passthroughModeRequest_;
1997 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
1998 return passthroughModeRequest_;
2001 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
2002 public static final int ACCEPTANCE_FILTER_BYPASS_COMMAND_FIELD_NUMBER = 4;
2003 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_;
2004 public boolean hasAcceptanceFilterBypassCommand() {
2005 return ((bitField0_ & 0x00000008) == 0x00000008);
2007 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2008 return acceptanceFilterBypassCommand_;
2010 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2011 return acceptanceFilterBypassCommand_;
2014 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2015 public static final int PAYLOAD_FORMAT_COMMAND_FIELD_NUMBER = 5;
2016 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_;
2017 public boolean hasPayloadFormatCommand() {
2018 return ((bitField0_ & 0x00000010) == 0x00000010);
2020 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
2021 return payloadFormatCommand_;
2023 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
2024 return payloadFormatCommand_;
2027 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2028 public static final int PREDEFINED_OBD2_REQUESTS_COMMAND_FIELD_NUMBER = 6;
2029 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_;
2030 public boolean hasPredefinedObd2RequestsCommand() {
2031 return ((bitField0_ & 0x00000020) == 0x00000020);
2033 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
2034 return predefinedObd2RequestsCommand_;
2036 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
2037 return predefinedObd2RequestsCommand_;
2040 // optional .openxc.ModemConfigurationCommand modem_configuration_command = 7;
2041 public static final int MODEM_CONFIGURATION_COMMAND_FIELD_NUMBER = 7;
2042 private com.openxc.BinaryMessages.ModemConfigurationCommand modemConfigurationCommand_;
2043 public boolean hasModemConfigurationCommand() {
2044 return ((bitField0_ & 0x00000040) == 0x00000040);
2046 public com.openxc.BinaryMessages.ModemConfigurationCommand getModemConfigurationCommand() {
2047 return modemConfigurationCommand_;
2049 public com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder getModemConfigurationCommandOrBuilder() {
2050 return modemConfigurationCommand_;
2053 // optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;
2054 public static final int RTC_CONFIGURATION_COMMAND_FIELD_NUMBER = 8;
2055 private com.openxc.BinaryMessages.RTCConfigurationCommand rtcConfigurationCommand_;
2056 public boolean hasRtcConfigurationCommand() {
2057 return ((bitField0_ & 0x00000080) == 0x00000080);
2059 public com.openxc.BinaryMessages.RTCConfigurationCommand getRtcConfigurationCommand() {
2060 return rtcConfigurationCommand_;
2062 public com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder getRtcConfigurationCommandOrBuilder() {
2063 return rtcConfigurationCommand_;
2066 private void initFields() {
2067 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2068 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2069 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2070 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2071 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2072 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2073 modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
2074 rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
2076 private byte memoizedIsInitialized = -1;
2077 public final boolean isInitialized() {
2078 byte isInitialized = memoizedIsInitialized;
2079 if (isInitialized != -1) return isInitialized == 1;
2081 memoizedIsInitialized = 1;
2085 public void writeTo(com.google.protobuf.CodedOutputStream output)
2086 throws java.io.IOException {
2087 getSerializedSize();
2088 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2089 output.writeEnum(1, type_.getNumber());
2091 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2092 output.writeMessage(2, diagnosticRequest_);
2094 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2095 output.writeMessage(3, passthroughModeRequest_);
2097 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2098 output.writeMessage(4, acceptanceFilterBypassCommand_);
2100 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2101 output.writeMessage(5, payloadFormatCommand_);
2103 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2104 output.writeMessage(6, predefinedObd2RequestsCommand_);
2106 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2107 output.writeMessage(7, modemConfigurationCommand_);
2109 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2110 output.writeMessage(8, rtcConfigurationCommand_);
2112 getUnknownFields().writeTo(output);
2115 private int memoizedSerializedSize = -1;
2116 public int getSerializedSize() {
2117 int size = memoizedSerializedSize;
2118 if (size != -1) return size;
2121 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2122 size += com.google.protobuf.CodedOutputStream
2123 .computeEnumSize(1, type_.getNumber());
2125 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2126 size += com.google.protobuf.CodedOutputStream
2127 .computeMessageSize(2, diagnosticRequest_);
2129 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2130 size += com.google.protobuf.CodedOutputStream
2131 .computeMessageSize(3, passthroughModeRequest_);
2133 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2134 size += com.google.protobuf.CodedOutputStream
2135 .computeMessageSize(4, acceptanceFilterBypassCommand_);
2137 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2138 size += com.google.protobuf.CodedOutputStream
2139 .computeMessageSize(5, payloadFormatCommand_);
2141 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2142 size += com.google.protobuf.CodedOutputStream
2143 .computeMessageSize(6, predefinedObd2RequestsCommand_);
2145 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2146 size += com.google.protobuf.CodedOutputStream
2147 .computeMessageSize(7, modemConfigurationCommand_);
2149 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2150 size += com.google.protobuf.CodedOutputStream
2151 .computeMessageSize(8, rtcConfigurationCommand_);
2153 size += getUnknownFields().getSerializedSize();
2154 memoizedSerializedSize = size;
2158 private static final long serialVersionUID = 0L;
2160 protected java.lang.Object writeReplace()
2161 throws java.io.ObjectStreamException {
2162 return super.writeReplace();
2165 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2166 com.google.protobuf.ByteString data)
2167 throws com.google.protobuf.InvalidProtocolBufferException {
2168 return newBuilder().mergeFrom(data).buildParsed();
2170 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2171 com.google.protobuf.ByteString data,
2172 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2173 throws com.google.protobuf.InvalidProtocolBufferException {
2174 return newBuilder().mergeFrom(data, extensionRegistry)
2177 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
2178 throws com.google.protobuf.InvalidProtocolBufferException {
2179 return newBuilder().mergeFrom(data).buildParsed();
2181 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2183 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2184 throws com.google.protobuf.InvalidProtocolBufferException {
2185 return newBuilder().mergeFrom(data, extensionRegistry)
2188 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
2189 throws java.io.IOException {
2190 return newBuilder().mergeFrom(input).buildParsed();
2192 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2193 java.io.InputStream input,
2194 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2195 throws java.io.IOException {
2196 return newBuilder().mergeFrom(input, extensionRegistry)
2199 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
2200 throws java.io.IOException {
2201 Builder builder = newBuilder();
2202 if (builder.mergeDelimitedFrom(input)) {
2203 return builder.buildParsed();
2208 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2209 java.io.InputStream input,
2210 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2211 throws java.io.IOException {
2212 Builder builder = newBuilder();
2213 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
2214 return builder.buildParsed();
2219 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2220 com.google.protobuf.CodedInputStream input)
2221 throws java.io.IOException {
2222 return newBuilder().mergeFrom(input).buildParsed();
2224 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2225 com.google.protobuf.CodedInputStream input,
2226 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2227 throws java.io.IOException {
2228 return newBuilder().mergeFrom(input, extensionRegistry)
2232 public static Builder newBuilder() { return Builder.create(); }
2233 public Builder newBuilderForType() { return newBuilder(); }
2234 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2235 return newBuilder().mergeFrom(prototype);
2237 public Builder toBuilder() { return newBuilder(this); }
2240 protected Builder newBuilderForType(
2241 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2242 Builder builder = new Builder(parent);
2245 public static final class Builder extends
2246 com.google.protobuf.GeneratedMessage.Builder<Builder>
2247 implements com.openxc.BinaryMessages.ControlCommandOrBuilder {
2248 public static final com.google.protobuf.Descriptors.Descriptor
2250 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2253 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2254 internalGetFieldAccessorTable() {
2255 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable;
2258 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2260 maybeForceBuilderInitialization();
2263 private Builder(BuilderParent parent) {
2265 maybeForceBuilderInitialization();
2267 private void maybeForceBuilderInitialization() {
2268 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2269 getDiagnosticRequestFieldBuilder();
2270 getPassthroughModeRequestFieldBuilder();
2271 getAcceptanceFilterBypassCommandFieldBuilder();
2272 getPayloadFormatCommandFieldBuilder();
2273 getPredefinedObd2RequestsCommandFieldBuilder();
2274 getModemConfigurationCommandFieldBuilder();
2275 getRtcConfigurationCommandFieldBuilder();
2278 private static Builder create() {
2279 return new Builder();
2282 public Builder clear() {
2284 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2285 bitField0_ = (bitField0_ & ~0x00000001);
2286 if (diagnosticRequestBuilder_ == null) {
2287 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2289 diagnosticRequestBuilder_.clear();
2291 bitField0_ = (bitField0_ & ~0x00000002);
2292 if (passthroughModeRequestBuilder_ == null) {
2293 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2295 passthroughModeRequestBuilder_.clear();
2297 bitField0_ = (bitField0_ & ~0x00000004);
2298 if (acceptanceFilterBypassCommandBuilder_ == null) {
2299 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2301 acceptanceFilterBypassCommandBuilder_.clear();
2303 bitField0_ = (bitField0_ & ~0x00000008);
2304 if (payloadFormatCommandBuilder_ == null) {
2305 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2307 payloadFormatCommandBuilder_.clear();
2309 bitField0_ = (bitField0_ & ~0x00000010);
2310 if (predefinedObd2RequestsCommandBuilder_ == null) {
2311 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2313 predefinedObd2RequestsCommandBuilder_.clear();
2315 bitField0_ = (bitField0_ & ~0x00000020);
2316 if (modemConfigurationCommandBuilder_ == null) {
2317 modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
2319 modemConfigurationCommandBuilder_.clear();
2321 bitField0_ = (bitField0_ & ~0x00000040);
2322 if (rtcConfigurationCommandBuilder_ == null) {
2323 rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
2325 rtcConfigurationCommandBuilder_.clear();
2327 bitField0_ = (bitField0_ & ~0x00000080);
2331 public Builder clone() {
2332 return create().mergeFrom(buildPartial());
2335 public com.google.protobuf.Descriptors.Descriptor
2336 getDescriptorForType() {
2337 return com.openxc.BinaryMessages.ControlCommand.getDescriptor();
2340 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2341 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2344 public com.openxc.BinaryMessages.ControlCommand build() {
2345 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2346 if (!result.isInitialized()) {
2347 throw newUninitializedMessageException(result);
2352 private com.openxc.BinaryMessages.ControlCommand buildParsed()
2353 throws com.google.protobuf.InvalidProtocolBufferException {
2354 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2355 if (!result.isInitialized()) {
2356 throw newUninitializedMessageException(
2357 result).asInvalidProtocolBufferException();
2362 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2363 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2364 int from_bitField0_ = bitField0_;
2365 int to_bitField0_ = 0;
2366 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2367 to_bitField0_ |= 0x00000001;
2369 result.type_ = type_;
2370 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2371 to_bitField0_ |= 0x00000002;
2373 if (diagnosticRequestBuilder_ == null) {
2374 result.diagnosticRequest_ = diagnosticRequest_;
2376 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2378 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2379 to_bitField0_ |= 0x00000004;
2381 if (passthroughModeRequestBuilder_ == null) {
2382 result.passthroughModeRequest_ = passthroughModeRequest_;
2384 result.passthroughModeRequest_ = passthroughModeRequestBuilder_.build();
2386 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2387 to_bitField0_ |= 0x00000008;
2389 if (acceptanceFilterBypassCommandBuilder_ == null) {
2390 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommand_;
2392 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommandBuilder_.build();
2394 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
2395 to_bitField0_ |= 0x00000010;
2397 if (payloadFormatCommandBuilder_ == null) {
2398 result.payloadFormatCommand_ = payloadFormatCommand_;
2400 result.payloadFormatCommand_ = payloadFormatCommandBuilder_.build();
2402 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
2403 to_bitField0_ |= 0x00000020;
2405 if (predefinedObd2RequestsCommandBuilder_ == null) {
2406 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommand_;
2408 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommandBuilder_.build();
2410 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
2411 to_bitField0_ |= 0x00000040;
2413 if (modemConfigurationCommandBuilder_ == null) {
2414 result.modemConfigurationCommand_ = modemConfigurationCommand_;
2416 result.modemConfigurationCommand_ = modemConfigurationCommandBuilder_.build();
2418 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
2419 to_bitField0_ |= 0x00000080;
2421 if (rtcConfigurationCommandBuilder_ == null) {
2422 result.rtcConfigurationCommand_ = rtcConfigurationCommand_;
2424 result.rtcConfigurationCommand_ = rtcConfigurationCommandBuilder_.build();
2426 result.bitField0_ = to_bitField0_;
2431 public Builder mergeFrom(com.google.protobuf.Message other) {
2432 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
2433 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
2435 super.mergeFrom(other);
2440 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
2441 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
2442 if (other.hasType()) {
2443 setType(other.getType());
2445 if (other.hasDiagnosticRequest()) {
2446 mergeDiagnosticRequest(other.getDiagnosticRequest());
2448 if (other.hasPassthroughModeRequest()) {
2449 mergePassthroughModeRequest(other.getPassthroughModeRequest());
2451 if (other.hasAcceptanceFilterBypassCommand()) {
2452 mergeAcceptanceFilterBypassCommand(other.getAcceptanceFilterBypassCommand());
2454 if (other.hasPayloadFormatCommand()) {
2455 mergePayloadFormatCommand(other.getPayloadFormatCommand());
2457 if (other.hasPredefinedObd2RequestsCommand()) {
2458 mergePredefinedObd2RequestsCommand(other.getPredefinedObd2RequestsCommand());
2460 if (other.hasModemConfigurationCommand()) {
2461 mergeModemConfigurationCommand(other.getModemConfigurationCommand());
2463 if (other.hasRtcConfigurationCommand()) {
2464 mergeRtcConfigurationCommand(other.getRtcConfigurationCommand());
2466 this.mergeUnknownFields(other.getUnknownFields());
2470 public final boolean isInitialized() {
2474 public Builder mergeFrom(
2475 com.google.protobuf.CodedInputStream input,
2476 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2477 throws java.io.IOException {
2478 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2479 com.google.protobuf.UnknownFieldSet.newBuilder(
2480 this.getUnknownFields());
2482 int tag = input.readTag();
2485 this.setUnknownFields(unknownFields.build());
2489 if (!parseUnknownField(input, unknownFields,
2490 extensionRegistry, tag)) {
2491 this.setUnknownFields(unknownFields.build());
2498 int rawValue = input.readEnum();
2499 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2500 if (value == null) {
2501 unknownFields.mergeVarintField(1, rawValue);
2503 bitField0_ |= 0x00000001;
2509 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder subBuilder = com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder();
2510 if (hasDiagnosticRequest()) {
2511 subBuilder.mergeFrom(getDiagnosticRequest());
2513 input.readMessage(subBuilder, extensionRegistry);
2514 setDiagnosticRequest(subBuilder.buildPartial());
2518 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder subBuilder = com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder();
2519 if (hasPassthroughModeRequest()) {
2520 subBuilder.mergeFrom(getPassthroughModeRequest());
2522 input.readMessage(subBuilder, extensionRegistry);
2523 setPassthroughModeRequest(subBuilder.buildPartial());
2527 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder subBuilder = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder();
2528 if (hasAcceptanceFilterBypassCommand()) {
2529 subBuilder.mergeFrom(getAcceptanceFilterBypassCommand());
2531 input.readMessage(subBuilder, extensionRegistry);
2532 setAcceptanceFilterBypassCommand(subBuilder.buildPartial());
2536 com.openxc.BinaryMessages.PayloadFormatCommand.Builder subBuilder = com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder();
2537 if (hasPayloadFormatCommand()) {
2538 subBuilder.mergeFrom(getPayloadFormatCommand());
2540 input.readMessage(subBuilder, extensionRegistry);
2541 setPayloadFormatCommand(subBuilder.buildPartial());
2545 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder subBuilder = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder();
2546 if (hasPredefinedObd2RequestsCommand()) {
2547 subBuilder.mergeFrom(getPredefinedObd2RequestsCommand());
2549 input.readMessage(subBuilder, extensionRegistry);
2550 setPredefinedObd2RequestsCommand(subBuilder.buildPartial());
2554 com.openxc.BinaryMessages.ModemConfigurationCommand.Builder subBuilder = com.openxc.BinaryMessages.ModemConfigurationCommand.newBuilder();
2555 if (hasModemConfigurationCommand()) {
2556 subBuilder.mergeFrom(getModemConfigurationCommand());
2558 input.readMessage(subBuilder, extensionRegistry);
2559 setModemConfigurationCommand(subBuilder.buildPartial());
2563 com.openxc.BinaryMessages.RTCConfigurationCommand.Builder subBuilder = com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder();
2564 if (hasRtcConfigurationCommand()) {
2565 subBuilder.mergeFrom(getRtcConfigurationCommand());
2567 input.readMessage(subBuilder, extensionRegistry);
2568 setRtcConfigurationCommand(subBuilder.buildPartial());
2575 private int bitField0_;
2577 // optional .openxc.ControlCommand.Type type = 1;
2578 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2579 public boolean hasType() {
2580 return ((bitField0_ & 0x00000001) == 0x00000001);
2582 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2585 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
2586 if (value == null) {
2587 throw new NullPointerException();
2589 bitField0_ |= 0x00000001;
2594 public Builder clearType() {
2595 bitField0_ = (bitField0_ & ~0x00000001);
2596 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2601 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2602 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2603 private com.google.protobuf.SingleFieldBuilder<
2604 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder> diagnosticRequestBuilder_;
2605 public boolean hasDiagnosticRequest() {
2606 return ((bitField0_ & 0x00000002) == 0x00000002);
2608 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
2609 if (diagnosticRequestBuilder_ == null) {
2610 return diagnosticRequest_;
2612 return diagnosticRequestBuilder_.getMessage();
2615 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2616 if (diagnosticRequestBuilder_ == null) {
2617 if (value == null) {
2618 throw new NullPointerException();
2620 diagnosticRequest_ = value;
2623 diagnosticRequestBuilder_.setMessage(value);
2625 bitField0_ |= 0x00000002;
2628 public Builder setDiagnosticRequest(
2629 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder builderForValue) {
2630 if (diagnosticRequestBuilder_ == null) {
2631 diagnosticRequest_ = builderForValue.build();
2634 diagnosticRequestBuilder_.setMessage(builderForValue.build());
2636 bitField0_ |= 0x00000002;
2639 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2640 if (diagnosticRequestBuilder_ == null) {
2641 if (((bitField0_ & 0x00000002) == 0x00000002) &&
2642 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) {
2643 diagnosticRequest_ =
2644 com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
2646 diagnosticRequest_ = value;
2650 diagnosticRequestBuilder_.mergeFrom(value);
2652 bitField0_ |= 0x00000002;
2655 public Builder clearDiagnosticRequest() {
2656 if (diagnosticRequestBuilder_ == null) {
2657 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2660 diagnosticRequestBuilder_.clear();
2662 bitField0_ = (bitField0_ & ~0x00000002);
2665 public com.openxc.BinaryMessages.DiagnosticControlCommand.Builder getDiagnosticRequestBuilder() {
2666 bitField0_ |= 0x00000002;
2668 return getDiagnosticRequestFieldBuilder().getBuilder();
2670 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
2671 if (diagnosticRequestBuilder_ != null) {
2672 return diagnosticRequestBuilder_.getMessageOrBuilder();
2674 return diagnosticRequest_;
2677 private com.google.protobuf.SingleFieldBuilder<
2678 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>
2679 getDiagnosticRequestFieldBuilder() {
2680 if (diagnosticRequestBuilder_ == null) {
2681 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2682 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>(
2684 getParentForChildren(),
2686 diagnosticRequest_ = null;
2688 return diagnosticRequestBuilder_;
2691 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
2692 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2693 private com.google.protobuf.SingleFieldBuilder<
2694 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder> passthroughModeRequestBuilder_;
2695 public boolean hasPassthroughModeRequest() {
2696 return ((bitField0_ & 0x00000004) == 0x00000004);
2698 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
2699 if (passthroughModeRequestBuilder_ == null) {
2700 return passthroughModeRequest_;
2702 return passthroughModeRequestBuilder_.getMessage();
2705 public Builder setPassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
2706 if (passthroughModeRequestBuilder_ == null) {
2707 if (value == null) {
2708 throw new NullPointerException();
2710 passthroughModeRequest_ = value;
2713 passthroughModeRequestBuilder_.setMessage(value);
2715 bitField0_ |= 0x00000004;
2718 public Builder setPassthroughModeRequest(
2719 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder builderForValue) {
2720 if (passthroughModeRequestBuilder_ == null) {
2721 passthroughModeRequest_ = builderForValue.build();
2724 passthroughModeRequestBuilder_.setMessage(builderForValue.build());
2726 bitField0_ |= 0x00000004;
2729 public Builder mergePassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
2730 if (passthroughModeRequestBuilder_ == null) {
2731 if (((bitField0_ & 0x00000004) == 0x00000004) &&
2732 passthroughModeRequest_ != com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) {
2733 passthroughModeRequest_ =
2734 com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder(passthroughModeRequest_).mergeFrom(value).buildPartial();
2736 passthroughModeRequest_ = value;
2740 passthroughModeRequestBuilder_.mergeFrom(value);
2742 bitField0_ |= 0x00000004;
2745 public Builder clearPassthroughModeRequest() {
2746 if (passthroughModeRequestBuilder_ == null) {
2747 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2750 passthroughModeRequestBuilder_.clear();
2752 bitField0_ = (bitField0_ & ~0x00000004);
2755 public com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder getPassthroughModeRequestBuilder() {
2756 bitField0_ |= 0x00000004;
2758 return getPassthroughModeRequestFieldBuilder().getBuilder();
2760 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
2761 if (passthroughModeRequestBuilder_ != null) {
2762 return passthroughModeRequestBuilder_.getMessageOrBuilder();
2764 return passthroughModeRequest_;
2767 private com.google.protobuf.SingleFieldBuilder<
2768 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>
2769 getPassthroughModeRequestFieldBuilder() {
2770 if (passthroughModeRequestBuilder_ == null) {
2771 passthroughModeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2772 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>(
2773 passthroughModeRequest_,
2774 getParentForChildren(),
2776 passthroughModeRequest_ = null;
2778 return passthroughModeRequestBuilder_;
2781 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
2782 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2783 private com.google.protobuf.SingleFieldBuilder<
2784 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder> acceptanceFilterBypassCommandBuilder_;
2785 public boolean hasAcceptanceFilterBypassCommand() {
2786 return ((bitField0_ & 0x00000008) == 0x00000008);
2788 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2789 if (acceptanceFilterBypassCommandBuilder_ == null) {
2790 return acceptanceFilterBypassCommand_;
2792 return acceptanceFilterBypassCommandBuilder_.getMessage();
2795 public Builder setAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
2796 if (acceptanceFilterBypassCommandBuilder_ == null) {
2797 if (value == null) {
2798 throw new NullPointerException();
2800 acceptanceFilterBypassCommand_ = value;
2803 acceptanceFilterBypassCommandBuilder_.setMessage(value);
2805 bitField0_ |= 0x00000008;
2808 public Builder setAcceptanceFilterBypassCommand(
2809 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder builderForValue) {
2810 if (acceptanceFilterBypassCommandBuilder_ == null) {
2811 acceptanceFilterBypassCommand_ = builderForValue.build();
2814 acceptanceFilterBypassCommandBuilder_.setMessage(builderForValue.build());
2816 bitField0_ |= 0x00000008;
2819 public Builder mergeAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
2820 if (acceptanceFilterBypassCommandBuilder_ == null) {
2821 if (((bitField0_ & 0x00000008) == 0x00000008) &&
2822 acceptanceFilterBypassCommand_ != com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) {
2823 acceptanceFilterBypassCommand_ =
2824 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder(acceptanceFilterBypassCommand_).mergeFrom(value).buildPartial();
2826 acceptanceFilterBypassCommand_ = value;
2830 acceptanceFilterBypassCommandBuilder_.mergeFrom(value);
2832 bitField0_ |= 0x00000008;
2835 public Builder clearAcceptanceFilterBypassCommand() {
2836 if (acceptanceFilterBypassCommandBuilder_ == null) {
2837 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2840 acceptanceFilterBypassCommandBuilder_.clear();
2842 bitField0_ = (bitField0_ & ~0x00000008);
2845 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder getAcceptanceFilterBypassCommandBuilder() {
2846 bitField0_ |= 0x00000008;
2848 return getAcceptanceFilterBypassCommandFieldBuilder().getBuilder();
2850 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2851 if (acceptanceFilterBypassCommandBuilder_ != null) {
2852 return acceptanceFilterBypassCommandBuilder_.getMessageOrBuilder();
2854 return acceptanceFilterBypassCommand_;
2857 private com.google.protobuf.SingleFieldBuilder<
2858 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>
2859 getAcceptanceFilterBypassCommandFieldBuilder() {
2860 if (acceptanceFilterBypassCommandBuilder_ == null) {
2861 acceptanceFilterBypassCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2862 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>(
2863 acceptanceFilterBypassCommand_,
2864 getParentForChildren(),
2866 acceptanceFilterBypassCommand_ = null;
2868 return acceptanceFilterBypassCommandBuilder_;
2871 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2872 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2873 private com.google.protobuf.SingleFieldBuilder<
2874 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder> payloadFormatCommandBuilder_;
2875 public boolean hasPayloadFormatCommand() {
2876 return ((bitField0_ & 0x00000010) == 0x00000010);
2878 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
2879 if (payloadFormatCommandBuilder_ == null) {
2880 return payloadFormatCommand_;
2882 return payloadFormatCommandBuilder_.getMessage();
2885 public Builder setPayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
2886 if (payloadFormatCommandBuilder_ == null) {
2887 if (value == null) {
2888 throw new NullPointerException();
2890 payloadFormatCommand_ = value;
2893 payloadFormatCommandBuilder_.setMessage(value);
2895 bitField0_ |= 0x00000010;
2898 public Builder setPayloadFormatCommand(
2899 com.openxc.BinaryMessages.PayloadFormatCommand.Builder builderForValue) {
2900 if (payloadFormatCommandBuilder_ == null) {
2901 payloadFormatCommand_ = builderForValue.build();
2904 payloadFormatCommandBuilder_.setMessage(builderForValue.build());
2906 bitField0_ |= 0x00000010;
2909 public Builder mergePayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
2910 if (payloadFormatCommandBuilder_ == null) {
2911 if (((bitField0_ & 0x00000010) == 0x00000010) &&
2912 payloadFormatCommand_ != com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) {
2913 payloadFormatCommand_ =
2914 com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder(payloadFormatCommand_).mergeFrom(value).buildPartial();
2916 payloadFormatCommand_ = value;
2920 payloadFormatCommandBuilder_.mergeFrom(value);
2922 bitField0_ |= 0x00000010;
2925 public Builder clearPayloadFormatCommand() {
2926 if (payloadFormatCommandBuilder_ == null) {
2927 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2930 payloadFormatCommandBuilder_.clear();
2932 bitField0_ = (bitField0_ & ~0x00000010);
2935 public com.openxc.BinaryMessages.PayloadFormatCommand.Builder getPayloadFormatCommandBuilder() {
2936 bitField0_ |= 0x00000010;
2938 return getPayloadFormatCommandFieldBuilder().getBuilder();
2940 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
2941 if (payloadFormatCommandBuilder_ != null) {
2942 return payloadFormatCommandBuilder_.getMessageOrBuilder();
2944 return payloadFormatCommand_;
2947 private com.google.protobuf.SingleFieldBuilder<
2948 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>
2949 getPayloadFormatCommandFieldBuilder() {
2950 if (payloadFormatCommandBuilder_ == null) {
2951 payloadFormatCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2952 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>(
2953 payloadFormatCommand_,
2954 getParentForChildren(),
2956 payloadFormatCommand_ = null;
2958 return payloadFormatCommandBuilder_;
2961 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2962 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2963 private com.google.protobuf.SingleFieldBuilder<
2964 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder> predefinedObd2RequestsCommandBuilder_;
2965 public boolean hasPredefinedObd2RequestsCommand() {
2966 return ((bitField0_ & 0x00000020) == 0x00000020);
2968 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
2969 if (predefinedObd2RequestsCommandBuilder_ == null) {
2970 return predefinedObd2RequestsCommand_;
2972 return predefinedObd2RequestsCommandBuilder_.getMessage();
2975 public Builder setPredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
2976 if (predefinedObd2RequestsCommandBuilder_ == null) {
2977 if (value == null) {
2978 throw new NullPointerException();
2980 predefinedObd2RequestsCommand_ = value;
2983 predefinedObd2RequestsCommandBuilder_.setMessage(value);
2985 bitField0_ |= 0x00000020;
2988 public Builder setPredefinedObd2RequestsCommand(
2989 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder builderForValue) {
2990 if (predefinedObd2RequestsCommandBuilder_ == null) {
2991 predefinedObd2RequestsCommand_ = builderForValue.build();
2994 predefinedObd2RequestsCommandBuilder_.setMessage(builderForValue.build());
2996 bitField0_ |= 0x00000020;
2999 public Builder mergePredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
3000 if (predefinedObd2RequestsCommandBuilder_ == null) {
3001 if (((bitField0_ & 0x00000020) == 0x00000020) &&
3002 predefinedObd2RequestsCommand_ != com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) {
3003 predefinedObd2RequestsCommand_ =
3004 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder(predefinedObd2RequestsCommand_).mergeFrom(value).buildPartial();
3006 predefinedObd2RequestsCommand_ = value;
3010 predefinedObd2RequestsCommandBuilder_.mergeFrom(value);
3012 bitField0_ |= 0x00000020;
3015 public Builder clearPredefinedObd2RequestsCommand() {
3016 if (predefinedObd2RequestsCommandBuilder_ == null) {
3017 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
3020 predefinedObd2RequestsCommandBuilder_.clear();
3022 bitField0_ = (bitField0_ & ~0x00000020);
3025 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder getPredefinedObd2RequestsCommandBuilder() {
3026 bitField0_ |= 0x00000020;
3028 return getPredefinedObd2RequestsCommandFieldBuilder().getBuilder();
3030 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
3031 if (predefinedObd2RequestsCommandBuilder_ != null) {
3032 return predefinedObd2RequestsCommandBuilder_.getMessageOrBuilder();
3034 return predefinedObd2RequestsCommand_;
3037 private com.google.protobuf.SingleFieldBuilder<
3038 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>
3039 getPredefinedObd2RequestsCommandFieldBuilder() {
3040 if (predefinedObd2RequestsCommandBuilder_ == null) {
3041 predefinedObd2RequestsCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3042 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>(
3043 predefinedObd2RequestsCommand_,
3044 getParentForChildren(),
3046 predefinedObd2RequestsCommand_ = null;
3048 return predefinedObd2RequestsCommandBuilder_;
3051 // optional .openxc.ModemConfigurationCommand modem_configuration_command = 7;
3052 private com.openxc.BinaryMessages.ModemConfigurationCommand modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
3053 private com.google.protobuf.SingleFieldBuilder<
3054 com.openxc.BinaryMessages.ModemConfigurationCommand, com.openxc.BinaryMessages.ModemConfigurationCommand.Builder, com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder> modemConfigurationCommandBuilder_;
3055 public boolean hasModemConfigurationCommand() {
3056 return ((bitField0_ & 0x00000040) == 0x00000040);
3058 public com.openxc.BinaryMessages.ModemConfigurationCommand getModemConfigurationCommand() {
3059 if (modemConfigurationCommandBuilder_ == null) {
3060 return modemConfigurationCommand_;
3062 return modemConfigurationCommandBuilder_.getMessage();
3065 public Builder setModemConfigurationCommand(com.openxc.BinaryMessages.ModemConfigurationCommand value) {
3066 if (modemConfigurationCommandBuilder_ == null) {
3067 if (value == null) {
3068 throw new NullPointerException();
3070 modemConfigurationCommand_ = value;
3073 modemConfigurationCommandBuilder_.setMessage(value);
3075 bitField0_ |= 0x00000040;
3078 public Builder setModemConfigurationCommand(
3079 com.openxc.BinaryMessages.ModemConfigurationCommand.Builder builderForValue) {
3080 if (modemConfigurationCommandBuilder_ == null) {
3081 modemConfigurationCommand_ = builderForValue.build();
3084 modemConfigurationCommandBuilder_.setMessage(builderForValue.build());
3086 bitField0_ |= 0x00000040;
3089 public Builder mergeModemConfigurationCommand(com.openxc.BinaryMessages.ModemConfigurationCommand value) {
3090 if (modemConfigurationCommandBuilder_ == null) {
3091 if (((bitField0_ & 0x00000040) == 0x00000040) &&
3092 modemConfigurationCommand_ != com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance()) {
3093 modemConfigurationCommand_ =
3094 com.openxc.BinaryMessages.ModemConfigurationCommand.newBuilder(modemConfigurationCommand_).mergeFrom(value).buildPartial();
3096 modemConfigurationCommand_ = value;
3100 modemConfigurationCommandBuilder_.mergeFrom(value);
3102 bitField0_ |= 0x00000040;
3105 public Builder clearModemConfigurationCommand() {
3106 if (modemConfigurationCommandBuilder_ == null) {
3107 modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
3110 modemConfigurationCommandBuilder_.clear();
3112 bitField0_ = (bitField0_ & ~0x00000040);
3115 public com.openxc.BinaryMessages.ModemConfigurationCommand.Builder getModemConfigurationCommandBuilder() {
3116 bitField0_ |= 0x00000040;
3118 return getModemConfigurationCommandFieldBuilder().getBuilder();
3120 public com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder getModemConfigurationCommandOrBuilder() {
3121 if (modemConfigurationCommandBuilder_ != null) {
3122 return modemConfigurationCommandBuilder_.getMessageOrBuilder();
3124 return modemConfigurationCommand_;
3127 private com.google.protobuf.SingleFieldBuilder<
3128 com.openxc.BinaryMessages.ModemConfigurationCommand, com.openxc.BinaryMessages.ModemConfigurationCommand.Builder, com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder>
3129 getModemConfigurationCommandFieldBuilder() {
3130 if (modemConfigurationCommandBuilder_ == null) {
3131 modemConfigurationCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3132 com.openxc.BinaryMessages.ModemConfigurationCommand, com.openxc.BinaryMessages.ModemConfigurationCommand.Builder, com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder>(
3133 modemConfigurationCommand_,
3134 getParentForChildren(),
3136 modemConfigurationCommand_ = null;
3138 return modemConfigurationCommandBuilder_;
3141 // optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;
3142 private com.openxc.BinaryMessages.RTCConfigurationCommand rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
3143 private com.google.protobuf.SingleFieldBuilder<
3144 com.openxc.BinaryMessages.RTCConfigurationCommand, com.openxc.BinaryMessages.RTCConfigurationCommand.Builder, com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder> rtcConfigurationCommandBuilder_;
3145 public boolean hasRtcConfigurationCommand() {
3146 return ((bitField0_ & 0x00000080) == 0x00000080);
3148 public com.openxc.BinaryMessages.RTCConfigurationCommand getRtcConfigurationCommand() {
3149 if (rtcConfigurationCommandBuilder_ == null) {
3150 return rtcConfigurationCommand_;
3152 return rtcConfigurationCommandBuilder_.getMessage();
3155 public Builder setRtcConfigurationCommand(com.openxc.BinaryMessages.RTCConfigurationCommand value) {
3156 if (rtcConfigurationCommandBuilder_ == null) {
3157 if (value == null) {
3158 throw new NullPointerException();
3160 rtcConfigurationCommand_ = value;
3163 rtcConfigurationCommandBuilder_.setMessage(value);
3165 bitField0_ |= 0x00000080;
3168 public Builder setRtcConfigurationCommand(
3169 com.openxc.BinaryMessages.RTCConfigurationCommand.Builder builderForValue) {
3170 if (rtcConfigurationCommandBuilder_ == null) {
3171 rtcConfigurationCommand_ = builderForValue.build();
3174 rtcConfigurationCommandBuilder_.setMessage(builderForValue.build());
3176 bitField0_ |= 0x00000080;
3179 public Builder mergeRtcConfigurationCommand(com.openxc.BinaryMessages.RTCConfigurationCommand value) {
3180 if (rtcConfigurationCommandBuilder_ == null) {
3181 if (((bitField0_ & 0x00000080) == 0x00000080) &&
3182 rtcConfigurationCommand_ != com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance()) {
3183 rtcConfigurationCommand_ =
3184 com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder(rtcConfigurationCommand_).mergeFrom(value).buildPartial();
3186 rtcConfigurationCommand_ = value;
3190 rtcConfigurationCommandBuilder_.mergeFrom(value);
3192 bitField0_ |= 0x00000080;
3195 public Builder clearRtcConfigurationCommand() {
3196 if (rtcConfigurationCommandBuilder_ == null) {
3197 rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
3200 rtcConfigurationCommandBuilder_.clear();
3202 bitField0_ = (bitField0_ & ~0x00000080);
3205 public com.openxc.BinaryMessages.RTCConfigurationCommand.Builder getRtcConfigurationCommandBuilder() {
3206 bitField0_ |= 0x00000080;
3208 return getRtcConfigurationCommandFieldBuilder().getBuilder();
3210 public com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder getRtcConfigurationCommandOrBuilder() {
3211 if (rtcConfigurationCommandBuilder_ != null) {
3212 return rtcConfigurationCommandBuilder_.getMessageOrBuilder();
3214 return rtcConfigurationCommand_;
3217 private com.google.protobuf.SingleFieldBuilder<
3218 com.openxc.BinaryMessages.RTCConfigurationCommand, com.openxc.BinaryMessages.RTCConfigurationCommand.Builder, com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder>
3219 getRtcConfigurationCommandFieldBuilder() {
3220 if (rtcConfigurationCommandBuilder_ == null) {
3221 rtcConfigurationCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3222 com.openxc.BinaryMessages.RTCConfigurationCommand, com.openxc.BinaryMessages.RTCConfigurationCommand.Builder, com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder>(
3223 rtcConfigurationCommand_,
3224 getParentForChildren(),
3226 rtcConfigurationCommand_ = null;
3228 return rtcConfigurationCommandBuilder_;
3231 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
3235 defaultInstance = new ControlCommand(true);
3236 defaultInstance.initFields();
3239 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
3242 public interface DiagnosticControlCommandOrBuilder
3243 extends com.google.protobuf.MessageOrBuilder {
3245 // optional .openxc.DiagnosticRequest request = 1;
3246 boolean hasRequest();
3247 com.openxc.BinaryMessages.DiagnosticRequest getRequest();
3248 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder();
3250 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3251 boolean hasAction();
3252 com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction();
3254 public static final class DiagnosticControlCommand extends
3255 com.google.protobuf.GeneratedMessage
3256 implements DiagnosticControlCommandOrBuilder {
3257 // Use DiagnosticControlCommand.newBuilder() to construct.
3258 private DiagnosticControlCommand(Builder builder) {
3261 private DiagnosticControlCommand(boolean noInit) {}
3263 private static final DiagnosticControlCommand defaultInstance;
3264 public static DiagnosticControlCommand getDefaultInstance() {
3265 return defaultInstance;
3268 public DiagnosticControlCommand getDefaultInstanceForType() {
3269 return defaultInstance;
3272 public static final com.google.protobuf.Descriptors.Descriptor
3274 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3277 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3278 internalGetFieldAccessorTable() {
3279 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
3283 implements com.google.protobuf.ProtocolMessageEnum {
3288 public static final int ADD_VALUE = 1;
3289 public static final int CANCEL_VALUE = 2;
3292 public final int getNumber() { return value; }
3294 public static Action valueOf(int value) {
3297 case 2: return CANCEL;
3298 default: return null;
3302 public static com.google.protobuf.Internal.EnumLiteMap<Action>
3303 internalGetValueMap() {
3304 return internalValueMap;
3306 private static com.google.protobuf.Internal.EnumLiteMap<Action>
3308 new com.google.protobuf.Internal.EnumLiteMap<Action>() {
3309 public Action findValueByNumber(int number) {
3310 return Action.valueOf(number);
3314 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3315 getValueDescriptor() {
3316 return getDescriptor().getValues().get(index);
3318 public final com.google.protobuf.Descriptors.EnumDescriptor
3319 getDescriptorForType() {
3320 return getDescriptor();
3322 public static final com.google.protobuf.Descriptors.EnumDescriptor
3324 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor().getEnumTypes().get(0);
3327 private static final Action[] VALUES = {
3331 public static Action valueOf(
3332 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3333 if (desc.getType() != getDescriptor()) {
3334 throw new java.lang.IllegalArgumentException(
3335 "EnumValueDescriptor is not for this type.");
3337 return VALUES[desc.getIndex()];
3340 private final int index;
3341 private final int value;
3343 private Action(int index, int value) {
3348 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticControlCommand.Action)
3351 private int bitField0_;
3352 // optional .openxc.DiagnosticRequest request = 1;
3353 public static final int REQUEST_FIELD_NUMBER = 1;
3354 private com.openxc.BinaryMessages.DiagnosticRequest request_;
3355 public boolean hasRequest() {
3356 return ((bitField0_ & 0x00000001) == 0x00000001);
3358 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3361 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3365 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3366 public static final int ACTION_FIELD_NUMBER = 2;
3367 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_;
3368 public boolean hasAction() {
3369 return ((bitField0_ & 0x00000002) == 0x00000002);
3371 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3375 private void initFields() {
3376 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3377 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3379 private byte memoizedIsInitialized = -1;
3380 public final boolean isInitialized() {
3381 byte isInitialized = memoizedIsInitialized;
3382 if (isInitialized != -1) return isInitialized == 1;
3384 memoizedIsInitialized = 1;
3388 public void writeTo(com.google.protobuf.CodedOutputStream output)
3389 throws java.io.IOException {
3390 getSerializedSize();
3391 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3392 output.writeMessage(1, request_);
3394 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3395 output.writeEnum(2, action_.getNumber());
3397 getUnknownFields().writeTo(output);
3400 private int memoizedSerializedSize = -1;
3401 public int getSerializedSize() {
3402 int size = memoizedSerializedSize;
3403 if (size != -1) return size;
3406 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3407 size += com.google.protobuf.CodedOutputStream
3408 .computeMessageSize(1, request_);
3410 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3411 size += com.google.protobuf.CodedOutputStream
3412 .computeEnumSize(2, action_.getNumber());
3414 size += getUnknownFields().getSerializedSize();
3415 memoizedSerializedSize = size;
3419 private static final long serialVersionUID = 0L;
3421 protected java.lang.Object writeReplace()
3422 throws java.io.ObjectStreamException {
3423 return super.writeReplace();
3426 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3427 com.google.protobuf.ByteString data)
3428 throws com.google.protobuf.InvalidProtocolBufferException {
3429 return newBuilder().mergeFrom(data).buildParsed();
3431 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3432 com.google.protobuf.ByteString data,
3433 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3434 throws com.google.protobuf.InvalidProtocolBufferException {
3435 return newBuilder().mergeFrom(data, extensionRegistry)
3438 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(byte[] data)
3439 throws com.google.protobuf.InvalidProtocolBufferException {
3440 return newBuilder().mergeFrom(data).buildParsed();
3442 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3444 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3445 throws com.google.protobuf.InvalidProtocolBufferException {
3446 return newBuilder().mergeFrom(data, extensionRegistry)
3449 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(java.io.InputStream input)
3450 throws java.io.IOException {
3451 return newBuilder().mergeFrom(input).buildParsed();
3453 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3454 java.io.InputStream input,
3455 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3456 throws java.io.IOException {
3457 return newBuilder().mergeFrom(input, extensionRegistry)
3460 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(java.io.InputStream input)
3461 throws java.io.IOException {
3462 Builder builder = newBuilder();
3463 if (builder.mergeDelimitedFrom(input)) {
3464 return builder.buildParsed();
3469 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(
3470 java.io.InputStream input,
3471 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3472 throws java.io.IOException {
3473 Builder builder = newBuilder();
3474 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
3475 return builder.buildParsed();
3480 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3481 com.google.protobuf.CodedInputStream input)
3482 throws java.io.IOException {
3483 return newBuilder().mergeFrom(input).buildParsed();
3485 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3486 com.google.protobuf.CodedInputStream input,
3487 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3488 throws java.io.IOException {
3489 return newBuilder().mergeFrom(input, extensionRegistry)
3493 public static Builder newBuilder() { return Builder.create(); }
3494 public Builder newBuilderForType() { return newBuilder(); }
3495 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticControlCommand prototype) {
3496 return newBuilder().mergeFrom(prototype);
3498 public Builder toBuilder() { return newBuilder(this); }
3501 protected Builder newBuilderForType(
3502 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3503 Builder builder = new Builder(parent);
3506 public static final class Builder extends
3507 com.google.protobuf.GeneratedMessage.Builder<Builder>
3508 implements com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder {
3509 public static final com.google.protobuf.Descriptors.Descriptor
3511 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3514 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3515 internalGetFieldAccessorTable() {
3516 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
3519 // Construct using com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder()
3521 maybeForceBuilderInitialization();
3524 private Builder(BuilderParent parent) {
3526 maybeForceBuilderInitialization();
3528 private void maybeForceBuilderInitialization() {
3529 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3530 getRequestFieldBuilder();
3533 private static Builder create() {
3534 return new Builder();
3537 public Builder clear() {
3539 if (requestBuilder_ == null) {
3540 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3542 requestBuilder_.clear();
3544 bitField0_ = (bitField0_ & ~0x00000001);
3545 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3546 bitField0_ = (bitField0_ & ~0x00000002);
3550 public Builder clone() {
3551 return create().mergeFrom(buildPartial());
3554 public com.google.protobuf.Descriptors.Descriptor
3555 getDescriptorForType() {
3556 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor();
3559 public com.openxc.BinaryMessages.DiagnosticControlCommand getDefaultInstanceForType() {
3560 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3563 public com.openxc.BinaryMessages.DiagnosticControlCommand build() {
3564 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
3565 if (!result.isInitialized()) {
3566 throw newUninitializedMessageException(result);
3571 private com.openxc.BinaryMessages.DiagnosticControlCommand buildParsed()
3572 throws com.google.protobuf.InvalidProtocolBufferException {
3573 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
3574 if (!result.isInitialized()) {
3575 throw newUninitializedMessageException(
3576 result).asInvalidProtocolBufferException();
3581 public com.openxc.BinaryMessages.DiagnosticControlCommand buildPartial() {
3582 com.openxc.BinaryMessages.DiagnosticControlCommand result = new com.openxc.BinaryMessages.DiagnosticControlCommand(this);
3583 int from_bitField0_ = bitField0_;
3584 int to_bitField0_ = 0;
3585 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3586 to_bitField0_ |= 0x00000001;
3588 if (requestBuilder_ == null) {
3589 result.request_ = request_;
3591 result.request_ = requestBuilder_.build();
3593 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
3594 to_bitField0_ |= 0x00000002;
3596 result.action_ = action_;
3597 result.bitField0_ = to_bitField0_;
3602 public Builder mergeFrom(com.google.protobuf.Message other) {
3603 if (other instanceof com.openxc.BinaryMessages.DiagnosticControlCommand) {
3604 return mergeFrom((com.openxc.BinaryMessages.DiagnosticControlCommand)other);
3606 super.mergeFrom(other);
3611 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticControlCommand other) {
3612 if (other == com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) return this;
3613 if (other.hasRequest()) {
3614 mergeRequest(other.getRequest());
3616 if (other.hasAction()) {
3617 setAction(other.getAction());
3619 this.mergeUnknownFields(other.getUnknownFields());
3623 public final boolean isInitialized() {
3627 public Builder mergeFrom(
3628 com.google.protobuf.CodedInputStream input,
3629 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3630 throws java.io.IOException {
3631 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3632 com.google.protobuf.UnknownFieldSet.newBuilder(
3633 this.getUnknownFields());
3635 int tag = input.readTag();
3638 this.setUnknownFields(unknownFields.build());
3642 if (!parseUnknownField(input, unknownFields,
3643 extensionRegistry, tag)) {
3644 this.setUnknownFields(unknownFields.build());
3651 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = com.openxc.BinaryMessages.DiagnosticRequest.newBuilder();
3653 subBuilder.mergeFrom(getRequest());
3655 input.readMessage(subBuilder, extensionRegistry);
3656 setRequest(subBuilder.buildPartial());
3660 int rawValue = input.readEnum();
3661 com.openxc.BinaryMessages.DiagnosticControlCommand.Action value = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.valueOf(rawValue);
3662 if (value == null) {
3663 unknownFields.mergeVarintField(2, rawValue);
3665 bitField0_ |= 0x00000002;
3674 private int bitField0_;
3676 // optional .openxc.DiagnosticRequest request = 1;
3677 private com.openxc.BinaryMessages.DiagnosticRequest request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3678 private com.google.protobuf.SingleFieldBuilder<
3679 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> requestBuilder_;
3680 public boolean hasRequest() {
3681 return ((bitField0_ & 0x00000001) == 0x00000001);
3683 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3684 if (requestBuilder_ == null) {
3687 return requestBuilder_.getMessage();
3690 public Builder setRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
3691 if (requestBuilder_ == null) {
3692 if (value == null) {
3693 throw new NullPointerException();
3698 requestBuilder_.setMessage(value);
3700 bitField0_ |= 0x00000001;
3703 public Builder setRequest(
3704 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
3705 if (requestBuilder_ == null) {
3706 request_ = builderForValue.build();
3709 requestBuilder_.setMessage(builderForValue.build());
3711 bitField0_ |= 0x00000001;
3714 public Builder mergeRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
3715 if (requestBuilder_ == null) {
3716 if (((bitField0_ & 0x00000001) == 0x00000001) &&
3717 request_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
3719 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(request_).mergeFrom(value).buildPartial();
3725 requestBuilder_.mergeFrom(value);
3727 bitField0_ |= 0x00000001;
3730 public Builder clearRequest() {
3731 if (requestBuilder_ == null) {
3732 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3735 requestBuilder_.clear();
3737 bitField0_ = (bitField0_ & ~0x00000001);
3740 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getRequestBuilder() {
3741 bitField0_ |= 0x00000001;
3743 return getRequestFieldBuilder().getBuilder();
3745 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3746 if (requestBuilder_ != null) {
3747 return requestBuilder_.getMessageOrBuilder();
3752 private com.google.protobuf.SingleFieldBuilder<
3753 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
3754 getRequestFieldBuilder() {
3755 if (requestBuilder_ == null) {
3756 requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3757 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
3759 getParentForChildren(),
3763 return requestBuilder_;
3766 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3767 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3768 public boolean hasAction() {
3769 return ((bitField0_ & 0x00000002) == 0x00000002);
3771 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3774 public Builder setAction(com.openxc.BinaryMessages.DiagnosticControlCommand.Action value) {
3775 if (value == null) {
3776 throw new NullPointerException();
3778 bitField0_ |= 0x00000002;
3783 public Builder clearAction() {
3784 bitField0_ = (bitField0_ & ~0x00000002);
3785 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3790 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticControlCommand)
3794 defaultInstance = new DiagnosticControlCommand(true);
3795 defaultInstance.initFields();
3798 // @@protoc_insertion_point(class_scope:openxc.DiagnosticControlCommand)
3801 public interface PassthroughModeControlCommandOrBuilder
3802 extends com.google.protobuf.MessageOrBuilder {
3804 // optional int32 bus = 1;
3808 // optional bool enabled = 2;
3809 boolean hasEnabled();
3810 boolean getEnabled();
3812 public static final class PassthroughModeControlCommand extends
3813 com.google.protobuf.GeneratedMessage
3814 implements PassthroughModeControlCommandOrBuilder {
3815 // Use PassthroughModeControlCommand.newBuilder() to construct.
3816 private PassthroughModeControlCommand(Builder builder) {
3819 private PassthroughModeControlCommand(boolean noInit) {}
3821 private static final PassthroughModeControlCommand defaultInstance;
3822 public static PassthroughModeControlCommand getDefaultInstance() {
3823 return defaultInstance;
3826 public PassthroughModeControlCommand getDefaultInstanceForType() {
3827 return defaultInstance;
3830 public static final com.google.protobuf.Descriptors.Descriptor
3832 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
3835 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3836 internalGetFieldAccessorTable() {
3837 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
3840 private int bitField0_;
3841 // optional int32 bus = 1;
3842 public static final int BUS_FIELD_NUMBER = 1;
3844 public boolean hasBus() {
3845 return ((bitField0_ & 0x00000001) == 0x00000001);
3847 public int getBus() {
3851 // optional bool enabled = 2;
3852 public static final int ENABLED_FIELD_NUMBER = 2;
3853 private boolean enabled_;
3854 public boolean hasEnabled() {
3855 return ((bitField0_ & 0x00000002) == 0x00000002);
3857 public boolean getEnabled() {
3861 private void initFields() {
3865 private byte memoizedIsInitialized = -1;
3866 public final boolean isInitialized() {
3867 byte isInitialized = memoizedIsInitialized;
3868 if (isInitialized != -1) return isInitialized == 1;
3870 memoizedIsInitialized = 1;
3874 public void writeTo(com.google.protobuf.CodedOutputStream output)
3875 throws java.io.IOException {
3876 getSerializedSize();
3877 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3878 output.writeInt32(1, bus_);
3880 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3881 output.writeBool(2, enabled_);
3883 getUnknownFields().writeTo(output);
3886 private int memoizedSerializedSize = -1;
3887 public int getSerializedSize() {
3888 int size = memoizedSerializedSize;
3889 if (size != -1) return size;
3892 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3893 size += com.google.protobuf.CodedOutputStream
3894 .computeInt32Size(1, bus_);
3896 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3897 size += com.google.protobuf.CodedOutputStream
3898 .computeBoolSize(2, enabled_);
3900 size += getUnknownFields().getSerializedSize();
3901 memoizedSerializedSize = size;
3905 private static final long serialVersionUID = 0L;
3907 protected java.lang.Object writeReplace()
3908 throws java.io.ObjectStreamException {
3909 return super.writeReplace();
3912 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3913 com.google.protobuf.ByteString data)
3914 throws com.google.protobuf.InvalidProtocolBufferException {
3915 return newBuilder().mergeFrom(data).buildParsed();
3917 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3918 com.google.protobuf.ByteString data,
3919 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3920 throws com.google.protobuf.InvalidProtocolBufferException {
3921 return newBuilder().mergeFrom(data, extensionRegistry)
3924 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(byte[] data)
3925 throws com.google.protobuf.InvalidProtocolBufferException {
3926 return newBuilder().mergeFrom(data).buildParsed();
3928 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3930 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3931 throws com.google.protobuf.InvalidProtocolBufferException {
3932 return newBuilder().mergeFrom(data, extensionRegistry)
3935 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(java.io.InputStream input)
3936 throws java.io.IOException {
3937 return newBuilder().mergeFrom(input).buildParsed();
3939 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3940 java.io.InputStream input,
3941 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3942 throws java.io.IOException {
3943 return newBuilder().mergeFrom(input, extensionRegistry)
3946 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(java.io.InputStream input)
3947 throws java.io.IOException {
3948 Builder builder = newBuilder();
3949 if (builder.mergeDelimitedFrom(input)) {
3950 return builder.buildParsed();
3955 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(
3956 java.io.InputStream input,
3957 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3958 throws java.io.IOException {
3959 Builder builder = newBuilder();
3960 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
3961 return builder.buildParsed();
3966 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3967 com.google.protobuf.CodedInputStream input)
3968 throws java.io.IOException {
3969 return newBuilder().mergeFrom(input).buildParsed();
3971 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3972 com.google.protobuf.CodedInputStream input,
3973 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3974 throws java.io.IOException {
3975 return newBuilder().mergeFrom(input, extensionRegistry)
3979 public static Builder newBuilder() { return Builder.create(); }
3980 public Builder newBuilderForType() { return newBuilder(); }
3981 public static Builder newBuilder(com.openxc.BinaryMessages.PassthroughModeControlCommand prototype) {
3982 return newBuilder().mergeFrom(prototype);
3984 public Builder toBuilder() { return newBuilder(this); }
3987 protected Builder newBuilderForType(
3988 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3989 Builder builder = new Builder(parent);
3992 public static final class Builder extends
3993 com.google.protobuf.GeneratedMessage.Builder<Builder>
3994 implements com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder {
3995 public static final com.google.protobuf.Descriptors.Descriptor
3997 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
4000 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4001 internalGetFieldAccessorTable() {
4002 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
4005 // Construct using com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder()
4007 maybeForceBuilderInitialization();
4010 private Builder(BuilderParent parent) {
4012 maybeForceBuilderInitialization();
4014 private void maybeForceBuilderInitialization() {
4015 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4018 private static Builder create() {
4019 return new Builder();
4022 public Builder clear() {
4025 bitField0_ = (bitField0_ & ~0x00000001);
4027 bitField0_ = (bitField0_ & ~0x00000002);
4031 public Builder clone() {
4032 return create().mergeFrom(buildPartial());
4035 public com.google.protobuf.Descriptors.Descriptor
4036 getDescriptorForType() {
4037 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDescriptor();
4040 public com.openxc.BinaryMessages.PassthroughModeControlCommand getDefaultInstanceForType() {
4041 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
4044 public com.openxc.BinaryMessages.PassthroughModeControlCommand build() {
4045 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4046 if (!result.isInitialized()) {
4047 throw newUninitializedMessageException(result);
4052 private com.openxc.BinaryMessages.PassthroughModeControlCommand buildParsed()
4053 throws com.google.protobuf.InvalidProtocolBufferException {
4054 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4055 if (!result.isInitialized()) {
4056 throw newUninitializedMessageException(
4057 result).asInvalidProtocolBufferException();
4062 public com.openxc.BinaryMessages.PassthroughModeControlCommand buildPartial() {
4063 com.openxc.BinaryMessages.PassthroughModeControlCommand result = new com.openxc.BinaryMessages.PassthroughModeControlCommand(this);
4064 int from_bitField0_ = bitField0_;
4065 int to_bitField0_ = 0;
4066 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4067 to_bitField0_ |= 0x00000001;
4070 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4071 to_bitField0_ |= 0x00000002;
4073 result.enabled_ = enabled_;
4074 result.bitField0_ = to_bitField0_;
4079 public Builder mergeFrom(com.google.protobuf.Message other) {
4080 if (other instanceof com.openxc.BinaryMessages.PassthroughModeControlCommand) {
4081 return mergeFrom((com.openxc.BinaryMessages.PassthroughModeControlCommand)other);
4083 super.mergeFrom(other);
4088 public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) {
4089 if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this;
4090 if (other.hasBus()) {
4091 setBus(other.getBus());
4093 if (other.hasEnabled()) {
4094 setEnabled(other.getEnabled());
4096 this.mergeUnknownFields(other.getUnknownFields());
4100 public final boolean isInitialized() {
4104 public Builder mergeFrom(
4105 com.google.protobuf.CodedInputStream input,
4106 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4107 throws java.io.IOException {
4108 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4109 com.google.protobuf.UnknownFieldSet.newBuilder(
4110 this.getUnknownFields());
4112 int tag = input.readTag();
4115 this.setUnknownFields(unknownFields.build());
4119 if (!parseUnknownField(input, unknownFields,
4120 extensionRegistry, tag)) {
4121 this.setUnknownFields(unknownFields.build());
4128 bitField0_ |= 0x00000001;
4129 bus_ = input.readInt32();
4133 bitField0_ |= 0x00000002;
4134 enabled_ = input.readBool();
4141 private int bitField0_;
4143 // optional int32 bus = 1;
4145 public boolean hasBus() {
4146 return ((bitField0_ & 0x00000001) == 0x00000001);
4148 public int getBus() {
4151 public Builder setBus(int value) {
4152 bitField0_ |= 0x00000001;
4157 public Builder clearBus() {
4158 bitField0_ = (bitField0_ & ~0x00000001);
4164 // optional bool enabled = 2;
4165 private boolean enabled_ ;
4166 public boolean hasEnabled() {
4167 return ((bitField0_ & 0x00000002) == 0x00000002);
4169 public boolean getEnabled() {
4172 public Builder setEnabled(boolean value) {
4173 bitField0_ |= 0x00000002;
4178 public Builder clearEnabled() {
4179 bitField0_ = (bitField0_ & ~0x00000002);
4185 // @@protoc_insertion_point(builder_scope:openxc.PassthroughModeControlCommand)
4189 defaultInstance = new PassthroughModeControlCommand(true);
4190 defaultInstance.initFields();
4193 // @@protoc_insertion_point(class_scope:openxc.PassthroughModeControlCommand)
4196 public interface AcceptanceFilterBypassCommandOrBuilder
4197 extends com.google.protobuf.MessageOrBuilder {
4199 // optional int32 bus = 1;
4203 // optional bool bypass = 2;
4204 boolean hasBypass();
4205 boolean getBypass();
4207 public static final class AcceptanceFilterBypassCommand extends
4208 com.google.protobuf.GeneratedMessage
4209 implements AcceptanceFilterBypassCommandOrBuilder {
4210 // Use AcceptanceFilterBypassCommand.newBuilder() to construct.
4211 private AcceptanceFilterBypassCommand(Builder builder) {
4214 private AcceptanceFilterBypassCommand(boolean noInit) {}
4216 private static final AcceptanceFilterBypassCommand defaultInstance;
4217 public static AcceptanceFilterBypassCommand getDefaultInstance() {
4218 return defaultInstance;
4221 public AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4222 return defaultInstance;
4225 public static final com.google.protobuf.Descriptors.Descriptor
4227 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4230 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4231 internalGetFieldAccessorTable() {
4232 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
4235 private int bitField0_;
4236 // optional int32 bus = 1;
4237 public static final int BUS_FIELD_NUMBER = 1;
4239 public boolean hasBus() {
4240 return ((bitField0_ & 0x00000001) == 0x00000001);
4242 public int getBus() {
4246 // optional bool bypass = 2;
4247 public static final int BYPASS_FIELD_NUMBER = 2;
4248 private boolean bypass_;
4249 public boolean hasBypass() {
4250 return ((bitField0_ & 0x00000002) == 0x00000002);
4252 public boolean getBypass() {
4256 private void initFields() {
4260 private byte memoizedIsInitialized = -1;
4261 public final boolean isInitialized() {
4262 byte isInitialized = memoizedIsInitialized;
4263 if (isInitialized != -1) return isInitialized == 1;
4265 memoizedIsInitialized = 1;
4269 public void writeTo(com.google.protobuf.CodedOutputStream output)
4270 throws java.io.IOException {
4271 getSerializedSize();
4272 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4273 output.writeInt32(1, bus_);
4275 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4276 output.writeBool(2, bypass_);
4278 getUnknownFields().writeTo(output);
4281 private int memoizedSerializedSize = -1;
4282 public int getSerializedSize() {
4283 int size = memoizedSerializedSize;
4284 if (size != -1) return size;
4287 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4288 size += com.google.protobuf.CodedOutputStream
4289 .computeInt32Size(1, bus_);
4291 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4292 size += com.google.protobuf.CodedOutputStream
4293 .computeBoolSize(2, bypass_);
4295 size += getUnknownFields().getSerializedSize();
4296 memoizedSerializedSize = size;
4300 private static final long serialVersionUID = 0L;
4302 protected java.lang.Object writeReplace()
4303 throws java.io.ObjectStreamException {
4304 return super.writeReplace();
4307 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4308 com.google.protobuf.ByteString data)
4309 throws com.google.protobuf.InvalidProtocolBufferException {
4310 return newBuilder().mergeFrom(data).buildParsed();
4312 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4313 com.google.protobuf.ByteString data,
4314 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4315 throws com.google.protobuf.InvalidProtocolBufferException {
4316 return newBuilder().mergeFrom(data, extensionRegistry)
4319 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(byte[] data)
4320 throws com.google.protobuf.InvalidProtocolBufferException {
4321 return newBuilder().mergeFrom(data).buildParsed();
4323 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4325 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4326 throws com.google.protobuf.InvalidProtocolBufferException {
4327 return newBuilder().mergeFrom(data, extensionRegistry)
4330 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(java.io.InputStream input)
4331 throws java.io.IOException {
4332 return newBuilder().mergeFrom(input).buildParsed();
4334 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4335 java.io.InputStream input,
4336 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4337 throws java.io.IOException {
4338 return newBuilder().mergeFrom(input, extensionRegistry)
4341 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(java.io.InputStream input)
4342 throws java.io.IOException {
4343 Builder builder = newBuilder();
4344 if (builder.mergeDelimitedFrom(input)) {
4345 return builder.buildParsed();
4350 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(
4351 java.io.InputStream input,
4352 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4353 throws java.io.IOException {
4354 Builder builder = newBuilder();
4355 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
4356 return builder.buildParsed();
4361 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4362 com.google.protobuf.CodedInputStream input)
4363 throws java.io.IOException {
4364 return newBuilder().mergeFrom(input).buildParsed();
4366 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4367 com.google.protobuf.CodedInputStream input,
4368 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4369 throws java.io.IOException {
4370 return newBuilder().mergeFrom(input, extensionRegistry)
4374 public static Builder newBuilder() { return Builder.create(); }
4375 public Builder newBuilderForType() { return newBuilder(); }
4376 public static Builder newBuilder(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand prototype) {
4377 return newBuilder().mergeFrom(prototype);
4379 public Builder toBuilder() { return newBuilder(this); }
4382 protected Builder newBuilderForType(
4383 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4384 Builder builder = new Builder(parent);
4387 public static final class Builder extends
4388 com.google.protobuf.GeneratedMessage.Builder<Builder>
4389 implements com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder {
4390 public static final com.google.protobuf.Descriptors.Descriptor
4392 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4395 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4396 internalGetFieldAccessorTable() {
4397 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
4400 // Construct using com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder()
4402 maybeForceBuilderInitialization();
4405 private Builder(BuilderParent parent) {
4407 maybeForceBuilderInitialization();
4409 private void maybeForceBuilderInitialization() {
4410 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4413 private static Builder create() {
4414 return new Builder();
4417 public Builder clear() {
4420 bitField0_ = (bitField0_ & ~0x00000001);
4422 bitField0_ = (bitField0_ & ~0x00000002);
4426 public Builder clone() {
4427 return create().mergeFrom(buildPartial());
4430 public com.google.protobuf.Descriptors.Descriptor
4431 getDescriptorForType() {
4432 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDescriptor();
4435 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4436 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
4439 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand build() {
4440 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
4441 if (!result.isInitialized()) {
4442 throw newUninitializedMessageException(result);
4447 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildParsed()
4448 throws com.google.protobuf.InvalidProtocolBufferException {
4449 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
4450 if (!result.isInitialized()) {
4451 throw newUninitializedMessageException(
4452 result).asInvalidProtocolBufferException();
4457 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildPartial() {
4458 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = new com.openxc.BinaryMessages.AcceptanceFilterBypassCommand(this);
4459 int from_bitField0_ = bitField0_;
4460 int to_bitField0_ = 0;
4461 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4462 to_bitField0_ |= 0x00000001;
4465 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4466 to_bitField0_ |= 0x00000002;
4468 result.bypass_ = bypass_;
4469 result.bitField0_ = to_bitField0_;
4474 public Builder mergeFrom(com.google.protobuf.Message other) {
4475 if (other instanceof com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) {
4476 return mergeFrom((com.openxc.BinaryMessages.AcceptanceFilterBypassCommand)other);
4478 super.mergeFrom(other);
4483 public Builder mergeFrom(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other) {
4484 if (other == com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) return this;
4485 if (other.hasBus()) {
4486 setBus(other.getBus());
4488 if (other.hasBypass()) {
4489 setBypass(other.getBypass());
4491 this.mergeUnknownFields(other.getUnknownFields());
4495 public final boolean isInitialized() {
4499 public Builder mergeFrom(
4500 com.google.protobuf.CodedInputStream input,
4501 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4502 throws java.io.IOException {
4503 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4504 com.google.protobuf.UnknownFieldSet.newBuilder(
4505 this.getUnknownFields());
4507 int tag = input.readTag();
4510 this.setUnknownFields(unknownFields.build());
4514 if (!parseUnknownField(input, unknownFields,
4515 extensionRegistry, tag)) {
4516 this.setUnknownFields(unknownFields.build());
4523 bitField0_ |= 0x00000001;
4524 bus_ = input.readInt32();
4528 bitField0_ |= 0x00000002;
4529 bypass_ = input.readBool();
4536 private int bitField0_;
4538 // optional int32 bus = 1;
4540 public boolean hasBus() {
4541 return ((bitField0_ & 0x00000001) == 0x00000001);
4543 public int getBus() {
4546 public Builder setBus(int value) {
4547 bitField0_ |= 0x00000001;
4552 public Builder clearBus() {
4553 bitField0_ = (bitField0_ & ~0x00000001);
4559 // optional bool bypass = 2;
4560 private boolean bypass_ ;
4561 public boolean hasBypass() {
4562 return ((bitField0_ & 0x00000002) == 0x00000002);
4564 public boolean getBypass() {
4567 public Builder setBypass(boolean value) {
4568 bitField0_ |= 0x00000002;
4573 public Builder clearBypass() {
4574 bitField0_ = (bitField0_ & ~0x00000002);
4580 // @@protoc_insertion_point(builder_scope:openxc.AcceptanceFilterBypassCommand)
4584 defaultInstance = new AcceptanceFilterBypassCommand(true);
4585 defaultInstance.initFields();
4588 // @@protoc_insertion_point(class_scope:openxc.AcceptanceFilterBypassCommand)
4591 public interface PayloadFormatCommandOrBuilder
4592 extends com.google.protobuf.MessageOrBuilder {
4594 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
4595 boolean hasFormat();
4596 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat();
4598 public static final class PayloadFormatCommand extends
4599 com.google.protobuf.GeneratedMessage
4600 implements PayloadFormatCommandOrBuilder {
4601 // Use PayloadFormatCommand.newBuilder() to construct.
4602 private PayloadFormatCommand(Builder builder) {
4605 private PayloadFormatCommand(boolean noInit) {}
4607 private static final PayloadFormatCommand defaultInstance;
4608 public static PayloadFormatCommand getDefaultInstance() {
4609 return defaultInstance;
4612 public PayloadFormatCommand getDefaultInstanceForType() {
4613 return defaultInstance;
4616 public static final com.google.protobuf.Descriptors.Descriptor
4618 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
4621 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4622 internalGetFieldAccessorTable() {
4623 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
4626 public enum PayloadFormat
4627 implements com.google.protobuf.ProtocolMessageEnum {
4633 public static final int JSON_VALUE = 1;
4634 public static final int PROTOBUF_VALUE = 2;
4635 public static final int MESSAGEPACK_VALUE = 3;
4638 public final int getNumber() { return value; }
4640 public static PayloadFormat valueOf(int value) {
4642 case 1: return JSON;
4643 case 2: return PROTOBUF;
4644 case 3: return MESSAGEPACK;
4645 default: return null;
4649 public static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
4650 internalGetValueMap() {
4651 return internalValueMap;
4653 private static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
4655 new com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>() {
4656 public PayloadFormat findValueByNumber(int number) {
4657 return PayloadFormat.valueOf(number);
4661 public final com.google.protobuf.Descriptors.EnumValueDescriptor
4662 getValueDescriptor() {
4663 return getDescriptor().getValues().get(index);
4665 public final com.google.protobuf.Descriptors.EnumDescriptor
4666 getDescriptorForType() {
4667 return getDescriptor();
4669 public static final com.google.protobuf.Descriptors.EnumDescriptor
4671 return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor().getEnumTypes().get(0);
4674 private static final PayloadFormat[] VALUES = {
4675 JSON, PROTOBUF, MESSAGEPACK,
4678 public static PayloadFormat valueOf(
4679 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
4680 if (desc.getType() != getDescriptor()) {
4681 throw new java.lang.IllegalArgumentException(
4682 "EnumValueDescriptor is not for this type.");
4684 return VALUES[desc.getIndex()];
4687 private final int index;
4688 private final int value;
4690 private PayloadFormat(int index, int value) {
4695 // @@protoc_insertion_point(enum_scope:openxc.PayloadFormatCommand.PayloadFormat)
4698 private int bitField0_;
4699 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
4700 public static final int FORMAT_FIELD_NUMBER = 1;
4701 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_;
4702 public boolean hasFormat() {
4703 return ((bitField0_ & 0x00000001) == 0x00000001);
4705 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
4709 private void initFields() {
4710 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4712 private byte memoizedIsInitialized = -1;
4713 public final boolean isInitialized() {
4714 byte isInitialized = memoizedIsInitialized;
4715 if (isInitialized != -1) return isInitialized == 1;
4717 memoizedIsInitialized = 1;
4721 public void writeTo(com.google.protobuf.CodedOutputStream output)
4722 throws java.io.IOException {
4723 getSerializedSize();
4724 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4725 output.writeEnum(1, format_.getNumber());
4727 getUnknownFields().writeTo(output);
4730 private int memoizedSerializedSize = -1;
4731 public int getSerializedSize() {
4732 int size = memoizedSerializedSize;
4733 if (size != -1) return size;
4736 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4737 size += com.google.protobuf.CodedOutputStream
4738 .computeEnumSize(1, format_.getNumber());
4740 size += getUnknownFields().getSerializedSize();
4741 memoizedSerializedSize = size;
4745 private static final long serialVersionUID = 0L;
4747 protected java.lang.Object writeReplace()
4748 throws java.io.ObjectStreamException {
4749 return super.writeReplace();
4752 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4753 com.google.protobuf.ByteString data)
4754 throws com.google.protobuf.InvalidProtocolBufferException {
4755 return newBuilder().mergeFrom(data).buildParsed();
4757 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4758 com.google.protobuf.ByteString data,
4759 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4760 throws com.google.protobuf.InvalidProtocolBufferException {
4761 return newBuilder().mergeFrom(data, extensionRegistry)
4764 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(byte[] data)
4765 throws com.google.protobuf.InvalidProtocolBufferException {
4766 return newBuilder().mergeFrom(data).buildParsed();
4768 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4770 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4771 throws com.google.protobuf.InvalidProtocolBufferException {
4772 return newBuilder().mergeFrom(data, extensionRegistry)
4775 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(java.io.InputStream input)
4776 throws java.io.IOException {
4777 return newBuilder().mergeFrom(input).buildParsed();
4779 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4780 java.io.InputStream input,
4781 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4782 throws java.io.IOException {
4783 return newBuilder().mergeFrom(input, extensionRegistry)
4786 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(java.io.InputStream input)
4787 throws java.io.IOException {
4788 Builder builder = newBuilder();
4789 if (builder.mergeDelimitedFrom(input)) {
4790 return builder.buildParsed();
4795 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(
4796 java.io.InputStream input,
4797 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4798 throws java.io.IOException {
4799 Builder builder = newBuilder();
4800 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
4801 return builder.buildParsed();
4806 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4807 com.google.protobuf.CodedInputStream input)
4808 throws java.io.IOException {
4809 return newBuilder().mergeFrom(input).buildParsed();
4811 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4812 com.google.protobuf.CodedInputStream input,
4813 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4814 throws java.io.IOException {
4815 return newBuilder().mergeFrom(input, extensionRegistry)
4819 public static Builder newBuilder() { return Builder.create(); }
4820 public Builder newBuilderForType() { return newBuilder(); }
4821 public static Builder newBuilder(com.openxc.BinaryMessages.PayloadFormatCommand prototype) {
4822 return newBuilder().mergeFrom(prototype);
4824 public Builder toBuilder() { return newBuilder(this); }
4827 protected Builder newBuilderForType(
4828 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4829 Builder builder = new Builder(parent);
4832 public static final class Builder extends
4833 com.google.protobuf.GeneratedMessage.Builder<Builder>
4834 implements com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder {
4835 public static final com.google.protobuf.Descriptors.Descriptor
4837 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
4840 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4841 internalGetFieldAccessorTable() {
4842 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
4845 // Construct using com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder()
4847 maybeForceBuilderInitialization();
4850 private Builder(BuilderParent parent) {
4852 maybeForceBuilderInitialization();
4854 private void maybeForceBuilderInitialization() {
4855 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4858 private static Builder create() {
4859 return new Builder();
4862 public Builder clear() {
4864 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4865 bitField0_ = (bitField0_ & ~0x00000001);
4869 public Builder clone() {
4870 return create().mergeFrom(buildPartial());
4873 public com.google.protobuf.Descriptors.Descriptor
4874 getDescriptorForType() {
4875 return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor();
4878 public com.openxc.BinaryMessages.PayloadFormatCommand getDefaultInstanceForType() {
4879 return com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
4882 public com.openxc.BinaryMessages.PayloadFormatCommand build() {
4883 com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial();
4884 if (!result.isInitialized()) {
4885 throw newUninitializedMessageException(result);
4890 private com.openxc.BinaryMessages.PayloadFormatCommand buildParsed()
4891 throws com.google.protobuf.InvalidProtocolBufferException {
4892 com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial();
4893 if (!result.isInitialized()) {
4894 throw newUninitializedMessageException(
4895 result).asInvalidProtocolBufferException();
4900 public com.openxc.BinaryMessages.PayloadFormatCommand buildPartial() {
4901 com.openxc.BinaryMessages.PayloadFormatCommand result = new com.openxc.BinaryMessages.PayloadFormatCommand(this);
4902 int from_bitField0_ = bitField0_;
4903 int to_bitField0_ = 0;
4904 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4905 to_bitField0_ |= 0x00000001;
4907 result.format_ = format_;
4908 result.bitField0_ = to_bitField0_;
4913 public Builder mergeFrom(com.google.protobuf.Message other) {
4914 if (other instanceof com.openxc.BinaryMessages.PayloadFormatCommand) {
4915 return mergeFrom((com.openxc.BinaryMessages.PayloadFormatCommand)other);
4917 super.mergeFrom(other);
4922 public Builder mergeFrom(com.openxc.BinaryMessages.PayloadFormatCommand other) {
4923 if (other == com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) return this;
4924 if (other.hasFormat()) {
4925 setFormat(other.getFormat());
4927 this.mergeUnknownFields(other.getUnknownFields());
4931 public final boolean isInitialized() {
4935 public Builder mergeFrom(
4936 com.google.protobuf.CodedInputStream input,
4937 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4938 throws java.io.IOException {
4939 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4940 com.google.protobuf.UnknownFieldSet.newBuilder(
4941 this.getUnknownFields());
4943 int tag = input.readTag();
4946 this.setUnknownFields(unknownFields.build());
4950 if (!parseUnknownField(input, unknownFields,
4951 extensionRegistry, tag)) {
4952 this.setUnknownFields(unknownFields.build());
4959 int rawValue = input.readEnum();
4960 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.valueOf(rawValue);
4961 if (value == null) {
4962 unknownFields.mergeVarintField(1, rawValue);
4964 bitField0_ |= 0x00000001;
4973 private int bitField0_;
4975 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
4976 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4977 public boolean hasFormat() {
4978 return ((bitField0_ & 0x00000001) == 0x00000001);
4980 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
4983 public Builder setFormat(com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value) {
4984 if (value == null) {
4985 throw new NullPointerException();
4987 bitField0_ |= 0x00000001;
4992 public Builder clearFormat() {
4993 bitField0_ = (bitField0_ & ~0x00000001);
4994 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4999 // @@protoc_insertion_point(builder_scope:openxc.PayloadFormatCommand)
5003 defaultInstance = new PayloadFormatCommand(true);
5004 defaultInstance.initFields();
5007 // @@protoc_insertion_point(class_scope:openxc.PayloadFormatCommand)
5010 public interface PredefinedObd2RequestsCommandOrBuilder
5011 extends com.google.protobuf.MessageOrBuilder {
5013 // optional bool enabled = 1;
5014 boolean hasEnabled();
5015 boolean getEnabled();
5017 public static final class PredefinedObd2RequestsCommand extends
5018 com.google.protobuf.GeneratedMessage
5019 implements PredefinedObd2RequestsCommandOrBuilder {
5020 // Use PredefinedObd2RequestsCommand.newBuilder() to construct.
5021 private PredefinedObd2RequestsCommand(Builder builder) {
5024 private PredefinedObd2RequestsCommand(boolean noInit) {}
5026 private static final PredefinedObd2RequestsCommand defaultInstance;
5027 public static PredefinedObd2RequestsCommand getDefaultInstance() {
5028 return defaultInstance;
5031 public PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5032 return defaultInstance;
5035 public static final com.google.protobuf.Descriptors.Descriptor
5037 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5040 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5041 internalGetFieldAccessorTable() {
5042 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
5045 private int bitField0_;
5046 // optional bool enabled = 1;
5047 public static final int ENABLED_FIELD_NUMBER = 1;
5048 private boolean enabled_;
5049 public boolean hasEnabled() {
5050 return ((bitField0_ & 0x00000001) == 0x00000001);
5052 public boolean getEnabled() {
5056 private void initFields() {
5059 private byte memoizedIsInitialized = -1;
5060 public final boolean isInitialized() {
5061 byte isInitialized = memoizedIsInitialized;
5062 if (isInitialized != -1) return isInitialized == 1;
5064 memoizedIsInitialized = 1;
5068 public void writeTo(com.google.protobuf.CodedOutputStream output)
5069 throws java.io.IOException {
5070 getSerializedSize();
5071 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5072 output.writeBool(1, enabled_);
5074 getUnknownFields().writeTo(output);
5077 private int memoizedSerializedSize = -1;
5078 public int getSerializedSize() {
5079 int size = memoizedSerializedSize;
5080 if (size != -1) return size;
5083 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5084 size += com.google.protobuf.CodedOutputStream
5085 .computeBoolSize(1, enabled_);
5087 size += getUnknownFields().getSerializedSize();
5088 memoizedSerializedSize = size;
5092 private static final long serialVersionUID = 0L;
5094 protected java.lang.Object writeReplace()
5095 throws java.io.ObjectStreamException {
5096 return super.writeReplace();
5099 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5100 com.google.protobuf.ByteString data)
5101 throws com.google.protobuf.InvalidProtocolBufferException {
5102 return newBuilder().mergeFrom(data).buildParsed();
5104 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5105 com.google.protobuf.ByteString data,
5106 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5107 throws com.google.protobuf.InvalidProtocolBufferException {
5108 return newBuilder().mergeFrom(data, extensionRegistry)
5111 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(byte[] data)
5112 throws com.google.protobuf.InvalidProtocolBufferException {
5113 return newBuilder().mergeFrom(data).buildParsed();
5115 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5117 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5118 throws com.google.protobuf.InvalidProtocolBufferException {
5119 return newBuilder().mergeFrom(data, extensionRegistry)
5122 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(java.io.InputStream input)
5123 throws java.io.IOException {
5124 return newBuilder().mergeFrom(input).buildParsed();
5126 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5127 java.io.InputStream input,
5128 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5129 throws java.io.IOException {
5130 return newBuilder().mergeFrom(input, extensionRegistry)
5133 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(java.io.InputStream input)
5134 throws java.io.IOException {
5135 Builder builder = newBuilder();
5136 if (builder.mergeDelimitedFrom(input)) {
5137 return builder.buildParsed();
5142 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(
5143 java.io.InputStream input,
5144 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5145 throws java.io.IOException {
5146 Builder builder = newBuilder();
5147 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
5148 return builder.buildParsed();
5153 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5154 com.google.protobuf.CodedInputStream input)
5155 throws java.io.IOException {
5156 return newBuilder().mergeFrom(input).buildParsed();
5158 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5159 com.google.protobuf.CodedInputStream input,
5160 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5161 throws java.io.IOException {
5162 return newBuilder().mergeFrom(input, extensionRegistry)
5166 public static Builder newBuilder() { return Builder.create(); }
5167 public Builder newBuilderForType() { return newBuilder(); }
5168 public static Builder newBuilder(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand prototype) {
5169 return newBuilder().mergeFrom(prototype);
5171 public Builder toBuilder() { return newBuilder(this); }
5174 protected Builder newBuilderForType(
5175 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5176 Builder builder = new Builder(parent);
5179 public static final class Builder extends
5180 com.google.protobuf.GeneratedMessage.Builder<Builder>
5181 implements com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder {
5182 public static final com.google.protobuf.Descriptors.Descriptor
5184 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5187 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5188 internalGetFieldAccessorTable() {
5189 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
5192 // Construct using com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder()
5194 maybeForceBuilderInitialization();
5197 private Builder(BuilderParent parent) {
5199 maybeForceBuilderInitialization();
5201 private void maybeForceBuilderInitialization() {
5202 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5205 private static Builder create() {
5206 return new Builder();
5209 public Builder clear() {
5212 bitField0_ = (bitField0_ & ~0x00000001);
5216 public Builder clone() {
5217 return create().mergeFrom(buildPartial());
5220 public com.google.protobuf.Descriptors.Descriptor
5221 getDescriptorForType() {
5222 return com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDescriptor();
5225 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5226 return com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
5229 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand build() {
5230 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial();
5231 if (!result.isInitialized()) {
5232 throw newUninitializedMessageException(result);
5237 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildParsed()
5238 throws com.google.protobuf.InvalidProtocolBufferException {
5239 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial();
5240 if (!result.isInitialized()) {
5241 throw newUninitializedMessageException(
5242 result).asInvalidProtocolBufferException();
5247 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildPartial() {
5248 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = new com.openxc.BinaryMessages.PredefinedObd2RequestsCommand(this);
5249 int from_bitField0_ = bitField0_;
5250 int to_bitField0_ = 0;
5251 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5252 to_bitField0_ |= 0x00000001;
5254 result.enabled_ = enabled_;
5255 result.bitField0_ = to_bitField0_;
5260 public Builder mergeFrom(com.google.protobuf.Message other) {
5261 if (other instanceof com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) {
5262 return mergeFrom((com.openxc.BinaryMessages.PredefinedObd2RequestsCommand)other);
5264 super.mergeFrom(other);
5269 public Builder mergeFrom(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand other) {
5270 if (other == com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) return this;
5271 if (other.hasEnabled()) {
5272 setEnabled(other.getEnabled());
5274 this.mergeUnknownFields(other.getUnknownFields());
5278 public final boolean isInitialized() {
5282 public Builder mergeFrom(
5283 com.google.protobuf.CodedInputStream input,
5284 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5285 throws java.io.IOException {
5286 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5287 com.google.protobuf.UnknownFieldSet.newBuilder(
5288 this.getUnknownFields());
5290 int tag = input.readTag();
5293 this.setUnknownFields(unknownFields.build());
5297 if (!parseUnknownField(input, unknownFields,
5298 extensionRegistry, tag)) {
5299 this.setUnknownFields(unknownFields.build());
5306 bitField0_ |= 0x00000001;
5307 enabled_ = input.readBool();
5314 private int bitField0_;
5316 // optional bool enabled = 1;
5317 private boolean enabled_ ;
5318 public boolean hasEnabled() {
5319 return ((bitField0_ & 0x00000001) == 0x00000001);
5321 public boolean getEnabled() {
5324 public Builder setEnabled(boolean value) {
5325 bitField0_ |= 0x00000001;
5330 public Builder clearEnabled() {
5331 bitField0_ = (bitField0_ & ~0x00000001);
5337 // @@protoc_insertion_point(builder_scope:openxc.PredefinedObd2RequestsCommand)
5341 defaultInstance = new PredefinedObd2RequestsCommand(true);
5342 defaultInstance.initFields();
5345 // @@protoc_insertion_point(class_scope:openxc.PredefinedObd2RequestsCommand)
5348 public interface NetworkOperatorSettingsOrBuilder
5349 extends com.google.protobuf.MessageOrBuilder {
5351 // optional bool allowDataRoaming = 1;
5352 boolean hasAllowDataRoaming();
5353 boolean getAllowDataRoaming();
5355 // optional .openxc.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode = 2;
5356 boolean hasOperatorSelectMode();
5357 com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode getOperatorSelectMode();
5359 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor networkDescriptor = 3;
5360 boolean hasNetworkDescriptor();
5361 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getNetworkDescriptor();
5362 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder getNetworkDescriptorOrBuilder();
5364 public static final class NetworkOperatorSettings extends
5365 com.google.protobuf.GeneratedMessage
5366 implements NetworkOperatorSettingsOrBuilder {
5367 // Use NetworkOperatorSettings.newBuilder() to construct.
5368 private NetworkOperatorSettings(Builder builder) {
5371 private NetworkOperatorSettings(boolean noInit) {}
5373 private static final NetworkOperatorSettings defaultInstance;
5374 public static NetworkOperatorSettings getDefaultInstance() {
5375 return defaultInstance;
5378 public NetworkOperatorSettings getDefaultInstanceForType() {
5379 return defaultInstance;
5382 public static final com.google.protobuf.Descriptors.Descriptor
5384 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_descriptor;
5387 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5388 internalGetFieldAccessorTable() {
5389 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable;
5392 public enum OperatorSelectMode
5393 implements com.google.protobuf.ProtocolMessageEnum {
5398 MANUAL_AUTOMATIC(4, 4),
5401 public static final int AUTOMATIC_VALUE = 0;
5402 public static final int MANUAL_VALUE = 1;
5403 public static final int DEREGISTER_VALUE = 2;
5404 public static final int SET_ONLY_VALUE = 3;
5405 public static final int MANUAL_AUTOMATIC_VALUE = 4;
5408 public final int getNumber() { return value; }
5410 public static OperatorSelectMode valueOf(int value) {
5412 case 0: return AUTOMATIC;
5413 case 1: return MANUAL;
5414 case 2: return DEREGISTER;
5415 case 3: return SET_ONLY;
5416 case 4: return MANUAL_AUTOMATIC;
5417 default: return null;
5421 public static com.google.protobuf.Internal.EnumLiteMap<OperatorSelectMode>
5422 internalGetValueMap() {
5423 return internalValueMap;
5425 private static com.google.protobuf.Internal.EnumLiteMap<OperatorSelectMode>
5427 new com.google.protobuf.Internal.EnumLiteMap<OperatorSelectMode>() {
5428 public OperatorSelectMode findValueByNumber(int number) {
5429 return OperatorSelectMode.valueOf(number);
5433 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5434 getValueDescriptor() {
5435 return getDescriptor().getValues().get(index);
5437 public final com.google.protobuf.Descriptors.EnumDescriptor
5438 getDescriptorForType() {
5439 return getDescriptor();
5441 public static final com.google.protobuf.Descriptors.EnumDescriptor
5443 return com.openxc.BinaryMessages.NetworkOperatorSettings.getDescriptor().getEnumTypes().get(0);
5446 private static final OperatorSelectMode[] VALUES = {
5447 AUTOMATIC, MANUAL, DEREGISTER, SET_ONLY, MANUAL_AUTOMATIC,
5450 public static OperatorSelectMode valueOf(
5451 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5452 if (desc.getType() != getDescriptor()) {
5453 throw new java.lang.IllegalArgumentException(
5454 "EnumValueDescriptor is not for this type.");
5456 return VALUES[desc.getIndex()];
5459 private final int index;
5460 private final int value;
5462 private OperatorSelectMode(int index, int value) {
5467 // @@protoc_insertion_point(enum_scope:openxc.NetworkOperatorSettings.OperatorSelectMode)
5470 public interface NetworkDescriptorOrBuilder
5471 extends com.google.protobuf.MessageOrBuilder {
5473 // optional uint32 PLMN = 1;
5477 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType = 2;
5478 boolean hasNetworkType();
5479 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType getNetworkType();
5481 public static final class NetworkDescriptor extends
5482 com.google.protobuf.GeneratedMessage
5483 implements NetworkDescriptorOrBuilder {
5484 // Use NetworkDescriptor.newBuilder() to construct.
5485 private NetworkDescriptor(Builder builder) {
5488 private NetworkDescriptor(boolean noInit) {}
5490 private static final NetworkDescriptor defaultInstance;
5491 public static NetworkDescriptor getDefaultInstance() {
5492 return defaultInstance;
5495 public NetworkDescriptor getDefaultInstanceForType() {
5496 return defaultInstance;
5499 public static final com.google.protobuf.Descriptors.Descriptor
5501 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor;
5504 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5505 internalGetFieldAccessorTable() {
5506 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable;
5509 public enum NetworkType
5510 implements com.google.protobuf.ProtocolMessageEnum {
5515 public static final int GSM_VALUE = 0;
5516 public static final int UTRAN_VALUE = 2;
5519 public final int getNumber() { return value; }
5521 public static NetworkType valueOf(int value) {
5524 case 2: return UTRAN;
5525 default: return null;
5529 public static com.google.protobuf.Internal.EnumLiteMap<NetworkType>
5530 internalGetValueMap() {
5531 return internalValueMap;
5533 private static com.google.protobuf.Internal.EnumLiteMap<NetworkType>
5535 new com.google.protobuf.Internal.EnumLiteMap<NetworkType>() {
5536 public NetworkType findValueByNumber(int number) {
5537 return NetworkType.valueOf(number);
5541 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5542 getValueDescriptor() {
5543 return getDescriptor().getValues().get(index);
5545 public final com.google.protobuf.Descriptors.EnumDescriptor
5546 getDescriptorForType() {
5547 return getDescriptor();
5549 public static final com.google.protobuf.Descriptors.EnumDescriptor
5551 return com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDescriptor().getEnumTypes().get(0);
5554 private static final NetworkType[] VALUES = {
5558 public static NetworkType valueOf(
5559 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5560 if (desc.getType() != getDescriptor()) {
5561 throw new java.lang.IllegalArgumentException(
5562 "EnumValueDescriptor is not for this type.");
5564 return VALUES[desc.getIndex()];
5567 private final int index;
5568 private final int value;
5570 private NetworkType(int index, int value) {
5575 // @@protoc_insertion_point(enum_scope:openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType)
5578 private int bitField0_;
5579 // optional uint32 PLMN = 1;
5580 public static final int PLMN_FIELD_NUMBER = 1;
5582 public boolean hasPLMN() {
5583 return ((bitField0_ & 0x00000001) == 0x00000001);
5585 public int getPLMN() {
5589 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType = 2;
5590 public static final int NETWORKTYPE_FIELD_NUMBER = 2;
5591 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType_;
5592 public boolean hasNetworkType() {
5593 return ((bitField0_ & 0x00000002) == 0x00000002);
5595 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType getNetworkType() {
5596 return networkType_;
5599 private void initFields() {
5601 networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5603 private byte memoizedIsInitialized = -1;
5604 public final boolean isInitialized() {
5605 byte isInitialized = memoizedIsInitialized;
5606 if (isInitialized != -1) return isInitialized == 1;
5608 memoizedIsInitialized = 1;
5612 public void writeTo(com.google.protobuf.CodedOutputStream output)
5613 throws java.io.IOException {
5614 getSerializedSize();
5615 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5616 output.writeUInt32(1, pLMN_);
5618 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5619 output.writeEnum(2, networkType_.getNumber());
5621 getUnknownFields().writeTo(output);
5624 private int memoizedSerializedSize = -1;
5625 public int getSerializedSize() {
5626 int size = memoizedSerializedSize;
5627 if (size != -1) return size;
5630 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5631 size += com.google.protobuf.CodedOutputStream
5632 .computeUInt32Size(1, pLMN_);
5634 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5635 size += com.google.protobuf.CodedOutputStream
5636 .computeEnumSize(2, networkType_.getNumber());
5638 size += getUnknownFields().getSerializedSize();
5639 memoizedSerializedSize = size;
5643 private static final long serialVersionUID = 0L;
5645 protected java.lang.Object writeReplace()
5646 throws java.io.ObjectStreamException {
5647 return super.writeReplace();
5650 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5651 com.google.protobuf.ByteString data)
5652 throws com.google.protobuf.InvalidProtocolBufferException {
5653 return newBuilder().mergeFrom(data).buildParsed();
5655 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5656 com.google.protobuf.ByteString data,
5657 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5658 throws com.google.protobuf.InvalidProtocolBufferException {
5659 return newBuilder().mergeFrom(data, extensionRegistry)
5662 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(byte[] data)
5663 throws com.google.protobuf.InvalidProtocolBufferException {
5664 return newBuilder().mergeFrom(data).buildParsed();
5666 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5668 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5669 throws com.google.protobuf.InvalidProtocolBufferException {
5670 return newBuilder().mergeFrom(data, extensionRegistry)
5673 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(java.io.InputStream input)
5674 throws java.io.IOException {
5675 return newBuilder().mergeFrom(input).buildParsed();
5677 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5678 java.io.InputStream input,
5679 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5680 throws java.io.IOException {
5681 return newBuilder().mergeFrom(input, extensionRegistry)
5684 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseDelimitedFrom(java.io.InputStream input)
5685 throws java.io.IOException {
5686 Builder builder = newBuilder();
5687 if (builder.mergeDelimitedFrom(input)) {
5688 return builder.buildParsed();
5693 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseDelimitedFrom(
5694 java.io.InputStream input,
5695 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5696 throws java.io.IOException {
5697 Builder builder = newBuilder();
5698 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
5699 return builder.buildParsed();
5704 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5705 com.google.protobuf.CodedInputStream input)
5706 throws java.io.IOException {
5707 return newBuilder().mergeFrom(input).buildParsed();
5709 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5710 com.google.protobuf.CodedInputStream input,
5711 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5712 throws java.io.IOException {
5713 return newBuilder().mergeFrom(input, extensionRegistry)
5717 public static Builder newBuilder() { return Builder.create(); }
5718 public Builder newBuilderForType() { return newBuilder(); }
5719 public static Builder newBuilder(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor prototype) {
5720 return newBuilder().mergeFrom(prototype);
5722 public Builder toBuilder() { return newBuilder(this); }
5725 protected Builder newBuilderForType(
5726 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5727 Builder builder = new Builder(parent);
5730 public static final class Builder extends
5731 com.google.protobuf.GeneratedMessage.Builder<Builder>
5732 implements com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder {
5733 public static final com.google.protobuf.Descriptors.Descriptor
5735 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor;
5738 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5739 internalGetFieldAccessorTable() {
5740 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable;
5743 // Construct using com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.newBuilder()
5745 maybeForceBuilderInitialization();
5748 private Builder(BuilderParent parent) {
5750 maybeForceBuilderInitialization();
5752 private void maybeForceBuilderInitialization() {
5753 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5756 private static Builder create() {
5757 return new Builder();
5760 public Builder clear() {
5763 bitField0_ = (bitField0_ & ~0x00000001);
5764 networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5765 bitField0_ = (bitField0_ & ~0x00000002);
5769 public Builder clone() {
5770 return create().mergeFrom(buildPartial());
5773 public com.google.protobuf.Descriptors.Descriptor
5774 getDescriptorForType() {
5775 return com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDescriptor();
5778 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getDefaultInstanceForType() {
5779 return com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
5782 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor build() {
5783 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor result = buildPartial();
5784 if (!result.isInitialized()) {
5785 throw newUninitializedMessageException(result);
5790 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor buildParsed()
5791 throws com.google.protobuf.InvalidProtocolBufferException {
5792 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor result = buildPartial();
5793 if (!result.isInitialized()) {
5794 throw newUninitializedMessageException(
5795 result).asInvalidProtocolBufferException();
5800 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor buildPartial() {
5801 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor result = new com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor(this);
5802 int from_bitField0_ = bitField0_;
5803 int to_bitField0_ = 0;
5804 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5805 to_bitField0_ |= 0x00000001;
5807 result.pLMN_ = pLMN_;
5808 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5809 to_bitField0_ |= 0x00000002;
5811 result.networkType_ = networkType_;
5812 result.bitField0_ = to_bitField0_;
5817 public Builder mergeFrom(com.google.protobuf.Message other) {
5818 if (other instanceof com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor) {
5819 return mergeFrom((com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor)other);
5821 super.mergeFrom(other);
5826 public Builder mergeFrom(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor other) {
5827 if (other == com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance()) return this;
5828 if (other.hasPLMN()) {
5829 setPLMN(other.getPLMN());
5831 if (other.hasNetworkType()) {
5832 setNetworkType(other.getNetworkType());
5834 this.mergeUnknownFields(other.getUnknownFields());
5838 public final boolean isInitialized() {
5842 public Builder mergeFrom(
5843 com.google.protobuf.CodedInputStream input,
5844 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5845 throws java.io.IOException {
5846 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5847 com.google.protobuf.UnknownFieldSet.newBuilder(
5848 this.getUnknownFields());
5850 int tag = input.readTag();
5853 this.setUnknownFields(unknownFields.build());
5857 if (!parseUnknownField(input, unknownFields,
5858 extensionRegistry, tag)) {
5859 this.setUnknownFields(unknownFields.build());
5866 bitField0_ |= 0x00000001;
5867 pLMN_ = input.readUInt32();
5871 int rawValue = input.readEnum();
5872 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType value = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.valueOf(rawValue);
5873 if (value == null) {
5874 unknownFields.mergeVarintField(2, rawValue);
5876 bitField0_ |= 0x00000002;
5877 networkType_ = value;
5885 private int bitField0_;
5887 // optional uint32 PLMN = 1;
5889 public boolean hasPLMN() {
5890 return ((bitField0_ & 0x00000001) == 0x00000001);
5892 public int getPLMN() {
5895 public Builder setPLMN(int value) {
5896 bitField0_ |= 0x00000001;
5901 public Builder clearPLMN() {
5902 bitField0_ = (bitField0_ & ~0x00000001);
5908 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType = 2;
5909 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5910 public boolean hasNetworkType() {
5911 return ((bitField0_ & 0x00000002) == 0x00000002);
5913 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType getNetworkType() {
5914 return networkType_;
5916 public Builder setNetworkType(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType value) {
5917 if (value == null) {
5918 throw new NullPointerException();
5920 bitField0_ |= 0x00000002;
5921 networkType_ = value;
5925 public Builder clearNetworkType() {
5926 bitField0_ = (bitField0_ & ~0x00000002);
5927 networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5932 // @@protoc_insertion_point(builder_scope:openxc.NetworkOperatorSettings.NetworkDescriptor)
5936 defaultInstance = new NetworkDescriptor(true);
5937 defaultInstance.initFields();
5940 // @@protoc_insertion_point(class_scope:openxc.NetworkOperatorSettings.NetworkDescriptor)
5943 private int bitField0_;
5944 // optional bool allowDataRoaming = 1;
5945 public static final int ALLOWDATAROAMING_FIELD_NUMBER = 1;
5946 private boolean allowDataRoaming_;
5947 public boolean hasAllowDataRoaming() {
5948 return ((bitField0_ & 0x00000001) == 0x00000001);
5950 public boolean getAllowDataRoaming() {
5951 return allowDataRoaming_;
5954 // optional .openxc.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode = 2;
5955 public static final int OPERATORSELECTMODE_FIELD_NUMBER = 2;
5956 private com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode_;
5957 public boolean hasOperatorSelectMode() {
5958 return ((bitField0_ & 0x00000002) == 0x00000002);
5960 public com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode getOperatorSelectMode() {
5961 return operatorSelectMode_;
5964 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor networkDescriptor = 3;
5965 public static final int NETWORKDESCRIPTOR_FIELD_NUMBER = 3;
5966 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor networkDescriptor_;
5967 public boolean hasNetworkDescriptor() {
5968 return ((bitField0_ & 0x00000004) == 0x00000004);
5970 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getNetworkDescriptor() {
5971 return networkDescriptor_;
5973 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder getNetworkDescriptorOrBuilder() {
5974 return networkDescriptor_;
5977 private void initFields() {
5978 allowDataRoaming_ = false;
5979 operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
5980 networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
5982 private byte memoizedIsInitialized = -1;
5983 public final boolean isInitialized() {
5984 byte isInitialized = memoizedIsInitialized;
5985 if (isInitialized != -1) return isInitialized == 1;
5987 memoizedIsInitialized = 1;
5991 public void writeTo(com.google.protobuf.CodedOutputStream output)
5992 throws java.io.IOException {
5993 getSerializedSize();
5994 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5995 output.writeBool(1, allowDataRoaming_);
5997 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5998 output.writeEnum(2, operatorSelectMode_.getNumber());
6000 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6001 output.writeMessage(3, networkDescriptor_);
6003 getUnknownFields().writeTo(output);
6006 private int memoizedSerializedSize = -1;
6007 public int getSerializedSize() {
6008 int size = memoizedSerializedSize;
6009 if (size != -1) return size;
6012 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6013 size += com.google.protobuf.CodedOutputStream
6014 .computeBoolSize(1, allowDataRoaming_);
6016 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6017 size += com.google.protobuf.CodedOutputStream
6018 .computeEnumSize(2, operatorSelectMode_.getNumber());
6020 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6021 size += com.google.protobuf.CodedOutputStream
6022 .computeMessageSize(3, networkDescriptor_);
6024 size += getUnknownFields().getSerializedSize();
6025 memoizedSerializedSize = size;
6029 private static final long serialVersionUID = 0L;
6031 protected java.lang.Object writeReplace()
6032 throws java.io.ObjectStreamException {
6033 return super.writeReplace();
6036 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6037 com.google.protobuf.ByteString data)
6038 throws com.google.protobuf.InvalidProtocolBufferException {
6039 return newBuilder().mergeFrom(data).buildParsed();
6041 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6042 com.google.protobuf.ByteString data,
6043 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6044 throws com.google.protobuf.InvalidProtocolBufferException {
6045 return newBuilder().mergeFrom(data, extensionRegistry)
6048 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(byte[] data)
6049 throws com.google.protobuf.InvalidProtocolBufferException {
6050 return newBuilder().mergeFrom(data).buildParsed();
6052 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6054 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6055 throws com.google.protobuf.InvalidProtocolBufferException {
6056 return newBuilder().mergeFrom(data, extensionRegistry)
6059 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(java.io.InputStream input)
6060 throws java.io.IOException {
6061 return newBuilder().mergeFrom(input).buildParsed();
6063 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6064 java.io.InputStream input,
6065 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6066 throws java.io.IOException {
6067 return newBuilder().mergeFrom(input, extensionRegistry)
6070 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseDelimitedFrom(java.io.InputStream input)
6071 throws java.io.IOException {
6072 Builder builder = newBuilder();
6073 if (builder.mergeDelimitedFrom(input)) {
6074 return builder.buildParsed();
6079 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseDelimitedFrom(
6080 java.io.InputStream input,
6081 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6082 throws java.io.IOException {
6083 Builder builder = newBuilder();
6084 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
6085 return builder.buildParsed();
6090 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6091 com.google.protobuf.CodedInputStream input)
6092 throws java.io.IOException {
6093 return newBuilder().mergeFrom(input).buildParsed();
6095 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6096 com.google.protobuf.CodedInputStream input,
6097 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6098 throws java.io.IOException {
6099 return newBuilder().mergeFrom(input, extensionRegistry)
6103 public static Builder newBuilder() { return Builder.create(); }
6104 public Builder newBuilderForType() { return newBuilder(); }
6105 public static Builder newBuilder(com.openxc.BinaryMessages.NetworkOperatorSettings prototype) {
6106 return newBuilder().mergeFrom(prototype);
6108 public Builder toBuilder() { return newBuilder(this); }
6111 protected Builder newBuilderForType(
6112 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6113 Builder builder = new Builder(parent);
6116 public static final class Builder extends
6117 com.google.protobuf.GeneratedMessage.Builder<Builder>
6118 implements com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder {
6119 public static final com.google.protobuf.Descriptors.Descriptor
6121 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_descriptor;
6124 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6125 internalGetFieldAccessorTable() {
6126 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable;
6129 // Construct using com.openxc.BinaryMessages.NetworkOperatorSettings.newBuilder()
6131 maybeForceBuilderInitialization();
6134 private Builder(BuilderParent parent) {
6136 maybeForceBuilderInitialization();
6138 private void maybeForceBuilderInitialization() {
6139 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6140 getNetworkDescriptorFieldBuilder();
6143 private static Builder create() {
6144 return new Builder();
6147 public Builder clear() {
6149 allowDataRoaming_ = false;
6150 bitField0_ = (bitField0_ & ~0x00000001);
6151 operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
6152 bitField0_ = (bitField0_ & ~0x00000002);
6153 if (networkDescriptorBuilder_ == null) {
6154 networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
6156 networkDescriptorBuilder_.clear();
6158 bitField0_ = (bitField0_ & ~0x00000004);
6162 public Builder clone() {
6163 return create().mergeFrom(buildPartial());
6166 public com.google.protobuf.Descriptors.Descriptor
6167 getDescriptorForType() {
6168 return com.openxc.BinaryMessages.NetworkOperatorSettings.getDescriptor();
6171 public com.openxc.BinaryMessages.NetworkOperatorSettings getDefaultInstanceForType() {
6172 return com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
6175 public com.openxc.BinaryMessages.NetworkOperatorSettings build() {
6176 com.openxc.BinaryMessages.NetworkOperatorSettings result = buildPartial();
6177 if (!result.isInitialized()) {
6178 throw newUninitializedMessageException(result);
6183 private com.openxc.BinaryMessages.NetworkOperatorSettings buildParsed()
6184 throws com.google.protobuf.InvalidProtocolBufferException {
6185 com.openxc.BinaryMessages.NetworkOperatorSettings result = buildPartial();
6186 if (!result.isInitialized()) {
6187 throw newUninitializedMessageException(
6188 result).asInvalidProtocolBufferException();
6193 public com.openxc.BinaryMessages.NetworkOperatorSettings buildPartial() {
6194 com.openxc.BinaryMessages.NetworkOperatorSettings result = new com.openxc.BinaryMessages.NetworkOperatorSettings(this);
6195 int from_bitField0_ = bitField0_;
6196 int to_bitField0_ = 0;
6197 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6198 to_bitField0_ |= 0x00000001;
6200 result.allowDataRoaming_ = allowDataRoaming_;
6201 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6202 to_bitField0_ |= 0x00000002;
6204 result.operatorSelectMode_ = operatorSelectMode_;
6205 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6206 to_bitField0_ |= 0x00000004;
6208 if (networkDescriptorBuilder_ == null) {
6209 result.networkDescriptor_ = networkDescriptor_;
6211 result.networkDescriptor_ = networkDescriptorBuilder_.build();
6213 result.bitField0_ = to_bitField0_;
6218 public Builder mergeFrom(com.google.protobuf.Message other) {
6219 if (other instanceof com.openxc.BinaryMessages.NetworkOperatorSettings) {
6220 return mergeFrom((com.openxc.BinaryMessages.NetworkOperatorSettings)other);
6222 super.mergeFrom(other);
6227 public Builder mergeFrom(com.openxc.BinaryMessages.NetworkOperatorSettings other) {
6228 if (other == com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance()) return this;
6229 if (other.hasAllowDataRoaming()) {
6230 setAllowDataRoaming(other.getAllowDataRoaming());
6232 if (other.hasOperatorSelectMode()) {
6233 setOperatorSelectMode(other.getOperatorSelectMode());
6235 if (other.hasNetworkDescriptor()) {
6236 mergeNetworkDescriptor(other.getNetworkDescriptor());
6238 this.mergeUnknownFields(other.getUnknownFields());
6242 public final boolean isInitialized() {
6246 public Builder mergeFrom(
6247 com.google.protobuf.CodedInputStream input,
6248 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6249 throws java.io.IOException {
6250 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6251 com.google.protobuf.UnknownFieldSet.newBuilder(
6252 this.getUnknownFields());
6254 int tag = input.readTag();
6257 this.setUnknownFields(unknownFields.build());
6261 if (!parseUnknownField(input, unknownFields,
6262 extensionRegistry, tag)) {
6263 this.setUnknownFields(unknownFields.build());
6270 bitField0_ |= 0x00000001;
6271 allowDataRoaming_ = input.readBool();
6275 int rawValue = input.readEnum();
6276 com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode value = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.valueOf(rawValue);
6277 if (value == null) {
6278 unknownFields.mergeVarintField(2, rawValue);
6280 bitField0_ |= 0x00000002;
6281 operatorSelectMode_ = value;
6286 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder subBuilder = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.newBuilder();
6287 if (hasNetworkDescriptor()) {
6288 subBuilder.mergeFrom(getNetworkDescriptor());
6290 input.readMessage(subBuilder, extensionRegistry);
6291 setNetworkDescriptor(subBuilder.buildPartial());
6298 private int bitField0_;
6300 // optional bool allowDataRoaming = 1;
6301 private boolean allowDataRoaming_ ;
6302 public boolean hasAllowDataRoaming() {
6303 return ((bitField0_ & 0x00000001) == 0x00000001);
6305 public boolean getAllowDataRoaming() {
6306 return allowDataRoaming_;
6308 public Builder setAllowDataRoaming(boolean value) {
6309 bitField0_ |= 0x00000001;
6310 allowDataRoaming_ = value;
6314 public Builder clearAllowDataRoaming() {
6315 bitField0_ = (bitField0_ & ~0x00000001);
6316 allowDataRoaming_ = false;
6321 // optional .openxc.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode = 2;
6322 private com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
6323 public boolean hasOperatorSelectMode() {
6324 return ((bitField0_ & 0x00000002) == 0x00000002);
6326 public com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode getOperatorSelectMode() {
6327 return operatorSelectMode_;
6329 public Builder setOperatorSelectMode(com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode value) {
6330 if (value == null) {
6331 throw new NullPointerException();
6333 bitField0_ |= 0x00000002;
6334 operatorSelectMode_ = value;
6338 public Builder clearOperatorSelectMode() {
6339 bitField0_ = (bitField0_ & ~0x00000002);
6340 operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
6345 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor networkDescriptor = 3;
6346 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
6347 private com.google.protobuf.SingleFieldBuilder<
6348 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder> networkDescriptorBuilder_;
6349 public boolean hasNetworkDescriptor() {
6350 return ((bitField0_ & 0x00000004) == 0x00000004);
6352 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getNetworkDescriptor() {
6353 if (networkDescriptorBuilder_ == null) {
6354 return networkDescriptor_;
6356 return networkDescriptorBuilder_.getMessage();
6359 public Builder setNetworkDescriptor(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor value) {
6360 if (networkDescriptorBuilder_ == null) {
6361 if (value == null) {
6362 throw new NullPointerException();
6364 networkDescriptor_ = value;
6367 networkDescriptorBuilder_.setMessage(value);
6369 bitField0_ |= 0x00000004;
6372 public Builder setNetworkDescriptor(
6373 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder builderForValue) {
6374 if (networkDescriptorBuilder_ == null) {
6375 networkDescriptor_ = builderForValue.build();
6378 networkDescriptorBuilder_.setMessage(builderForValue.build());
6380 bitField0_ |= 0x00000004;
6383 public Builder mergeNetworkDescriptor(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor value) {
6384 if (networkDescriptorBuilder_ == null) {
6385 if (((bitField0_ & 0x00000004) == 0x00000004) &&
6386 networkDescriptor_ != com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance()) {
6387 networkDescriptor_ =
6388 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.newBuilder(networkDescriptor_).mergeFrom(value).buildPartial();
6390 networkDescriptor_ = value;
6394 networkDescriptorBuilder_.mergeFrom(value);
6396 bitField0_ |= 0x00000004;
6399 public Builder clearNetworkDescriptor() {
6400 if (networkDescriptorBuilder_ == null) {
6401 networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
6404 networkDescriptorBuilder_.clear();
6406 bitField0_ = (bitField0_ & ~0x00000004);
6409 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder getNetworkDescriptorBuilder() {
6410 bitField0_ |= 0x00000004;
6412 return getNetworkDescriptorFieldBuilder().getBuilder();
6414 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder getNetworkDescriptorOrBuilder() {
6415 if (networkDescriptorBuilder_ != null) {
6416 return networkDescriptorBuilder_.getMessageOrBuilder();
6418 return networkDescriptor_;
6421 private com.google.protobuf.SingleFieldBuilder<
6422 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder>
6423 getNetworkDescriptorFieldBuilder() {
6424 if (networkDescriptorBuilder_ == null) {
6425 networkDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6426 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder>(
6428 getParentForChildren(),
6430 networkDescriptor_ = null;
6432 return networkDescriptorBuilder_;
6435 // @@protoc_insertion_point(builder_scope:openxc.NetworkOperatorSettings)
6439 defaultInstance = new NetworkOperatorSettings(true);
6440 defaultInstance.initFields();
6443 // @@protoc_insertion_point(class_scope:openxc.NetworkOperatorSettings)
6446 public interface NetworkDataSettingsOrBuilder
6447 extends com.google.protobuf.MessageOrBuilder {
6449 // optional string APN = 1;
6453 public static final class NetworkDataSettings extends
6454 com.google.protobuf.GeneratedMessage
6455 implements NetworkDataSettingsOrBuilder {
6456 // Use NetworkDataSettings.newBuilder() to construct.
6457 private NetworkDataSettings(Builder builder) {
6460 private NetworkDataSettings(boolean noInit) {}
6462 private static final NetworkDataSettings defaultInstance;
6463 public static NetworkDataSettings getDefaultInstance() {
6464 return defaultInstance;
6467 public NetworkDataSettings getDefaultInstanceForType() {
6468 return defaultInstance;
6471 public static final com.google.protobuf.Descriptors.Descriptor
6473 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_descriptor;
6476 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6477 internalGetFieldAccessorTable() {
6478 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_fieldAccessorTable;
6481 private int bitField0_;
6482 // optional string APN = 1;
6483 public static final int APN_FIELD_NUMBER = 1;
6484 private java.lang.Object aPN_;
6485 public boolean hasAPN() {
6486 return ((bitField0_ & 0x00000001) == 0x00000001);
6488 public String getAPN() {
6489 java.lang.Object ref = aPN_;
6490 if (ref instanceof String) {
6491 return (String) ref;
6493 com.google.protobuf.ByteString bs =
6494 (com.google.protobuf.ByteString) ref;
6495 String s = bs.toStringUtf8();
6496 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
6502 private com.google.protobuf.ByteString getAPNBytes() {
6503 java.lang.Object ref = aPN_;
6504 if (ref instanceof String) {
6505 com.google.protobuf.ByteString b =
6506 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
6510 return (com.google.protobuf.ByteString) ref;
6514 private void initFields() {
6517 private byte memoizedIsInitialized = -1;
6518 public final boolean isInitialized() {
6519 byte isInitialized = memoizedIsInitialized;
6520 if (isInitialized != -1) return isInitialized == 1;
6522 memoizedIsInitialized = 1;
6526 public void writeTo(com.google.protobuf.CodedOutputStream output)
6527 throws java.io.IOException {
6528 getSerializedSize();
6529 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6530 output.writeBytes(1, getAPNBytes());
6532 getUnknownFields().writeTo(output);
6535 private int memoizedSerializedSize = -1;
6536 public int getSerializedSize() {
6537 int size = memoizedSerializedSize;
6538 if (size != -1) return size;
6541 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6542 size += com.google.protobuf.CodedOutputStream
6543 .computeBytesSize(1, getAPNBytes());
6545 size += getUnknownFields().getSerializedSize();
6546 memoizedSerializedSize = size;
6550 private static final long serialVersionUID = 0L;
6552 protected java.lang.Object writeReplace()
6553 throws java.io.ObjectStreamException {
6554 return super.writeReplace();
6557 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6558 com.google.protobuf.ByteString data)
6559 throws com.google.protobuf.InvalidProtocolBufferException {
6560 return newBuilder().mergeFrom(data).buildParsed();
6562 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6563 com.google.protobuf.ByteString data,
6564 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6565 throws com.google.protobuf.InvalidProtocolBufferException {
6566 return newBuilder().mergeFrom(data, extensionRegistry)
6569 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(byte[] data)
6570 throws com.google.protobuf.InvalidProtocolBufferException {
6571 return newBuilder().mergeFrom(data).buildParsed();
6573 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6575 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6576 throws com.google.protobuf.InvalidProtocolBufferException {
6577 return newBuilder().mergeFrom(data, extensionRegistry)
6580 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(java.io.InputStream input)
6581 throws java.io.IOException {
6582 return newBuilder().mergeFrom(input).buildParsed();
6584 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6585 java.io.InputStream input,
6586 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6587 throws java.io.IOException {
6588 return newBuilder().mergeFrom(input, extensionRegistry)
6591 public static com.openxc.BinaryMessages.NetworkDataSettings parseDelimitedFrom(java.io.InputStream input)
6592 throws java.io.IOException {
6593 Builder builder = newBuilder();
6594 if (builder.mergeDelimitedFrom(input)) {
6595 return builder.buildParsed();
6600 public static com.openxc.BinaryMessages.NetworkDataSettings parseDelimitedFrom(
6601 java.io.InputStream input,
6602 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6603 throws java.io.IOException {
6604 Builder builder = newBuilder();
6605 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
6606 return builder.buildParsed();
6611 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6612 com.google.protobuf.CodedInputStream input)
6613 throws java.io.IOException {
6614 return newBuilder().mergeFrom(input).buildParsed();
6616 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6617 com.google.protobuf.CodedInputStream input,
6618 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6619 throws java.io.IOException {
6620 return newBuilder().mergeFrom(input, extensionRegistry)
6624 public static Builder newBuilder() { return Builder.create(); }
6625 public Builder newBuilderForType() { return newBuilder(); }
6626 public static Builder newBuilder(com.openxc.BinaryMessages.NetworkDataSettings prototype) {
6627 return newBuilder().mergeFrom(prototype);
6629 public Builder toBuilder() { return newBuilder(this); }
6632 protected Builder newBuilderForType(
6633 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6634 Builder builder = new Builder(parent);
6637 public static final class Builder extends
6638 com.google.protobuf.GeneratedMessage.Builder<Builder>
6639 implements com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder {
6640 public static final com.google.protobuf.Descriptors.Descriptor
6642 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_descriptor;
6645 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6646 internalGetFieldAccessorTable() {
6647 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_fieldAccessorTable;
6650 // Construct using com.openxc.BinaryMessages.NetworkDataSettings.newBuilder()
6652 maybeForceBuilderInitialization();
6655 private Builder(BuilderParent parent) {
6657 maybeForceBuilderInitialization();
6659 private void maybeForceBuilderInitialization() {
6660 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6663 private static Builder create() {
6664 return new Builder();
6667 public Builder clear() {
6670 bitField0_ = (bitField0_ & ~0x00000001);
6674 public Builder clone() {
6675 return create().mergeFrom(buildPartial());
6678 public com.google.protobuf.Descriptors.Descriptor
6679 getDescriptorForType() {
6680 return com.openxc.BinaryMessages.NetworkDataSettings.getDescriptor();
6683 public com.openxc.BinaryMessages.NetworkDataSettings getDefaultInstanceForType() {
6684 return com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
6687 public com.openxc.BinaryMessages.NetworkDataSettings build() {
6688 com.openxc.BinaryMessages.NetworkDataSettings result = buildPartial();
6689 if (!result.isInitialized()) {
6690 throw newUninitializedMessageException(result);
6695 private com.openxc.BinaryMessages.NetworkDataSettings buildParsed()
6696 throws com.google.protobuf.InvalidProtocolBufferException {
6697 com.openxc.BinaryMessages.NetworkDataSettings result = buildPartial();
6698 if (!result.isInitialized()) {
6699 throw newUninitializedMessageException(
6700 result).asInvalidProtocolBufferException();
6705 public com.openxc.BinaryMessages.NetworkDataSettings buildPartial() {
6706 com.openxc.BinaryMessages.NetworkDataSettings result = new com.openxc.BinaryMessages.NetworkDataSettings(this);
6707 int from_bitField0_ = bitField0_;
6708 int to_bitField0_ = 0;
6709 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6710 to_bitField0_ |= 0x00000001;
6713 result.bitField0_ = to_bitField0_;
6718 public Builder mergeFrom(com.google.protobuf.Message other) {
6719 if (other instanceof com.openxc.BinaryMessages.NetworkDataSettings) {
6720 return mergeFrom((com.openxc.BinaryMessages.NetworkDataSettings)other);
6722 super.mergeFrom(other);
6727 public Builder mergeFrom(com.openxc.BinaryMessages.NetworkDataSettings other) {
6728 if (other == com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance()) return this;
6729 if (other.hasAPN()) {
6730 setAPN(other.getAPN());
6732 this.mergeUnknownFields(other.getUnknownFields());
6736 public final boolean isInitialized() {
6740 public Builder mergeFrom(
6741 com.google.protobuf.CodedInputStream input,
6742 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6743 throws java.io.IOException {
6744 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6745 com.google.protobuf.UnknownFieldSet.newBuilder(
6746 this.getUnknownFields());
6748 int tag = input.readTag();
6751 this.setUnknownFields(unknownFields.build());
6755 if (!parseUnknownField(input, unknownFields,
6756 extensionRegistry, tag)) {
6757 this.setUnknownFields(unknownFields.build());
6764 bitField0_ |= 0x00000001;
6765 aPN_ = input.readBytes();
6772 private int bitField0_;
6774 // optional string APN = 1;
6775 private java.lang.Object aPN_ = "";
6776 public boolean hasAPN() {
6777 return ((bitField0_ & 0x00000001) == 0x00000001);
6779 public String getAPN() {
6780 java.lang.Object ref = aPN_;
6781 if (!(ref instanceof String)) {
6782 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
6786 return (String) ref;
6789 public Builder setAPN(String value) {
6790 if (value == null) {
6791 throw new NullPointerException();
6793 bitField0_ |= 0x00000001;
6798 public Builder clearAPN() {
6799 bitField0_ = (bitField0_ & ~0x00000001);
6800 aPN_ = getDefaultInstance().getAPN();
6804 void setAPN(com.google.protobuf.ByteString value) {
6805 bitField0_ |= 0x00000001;
6810 // @@protoc_insertion_point(builder_scope:openxc.NetworkDataSettings)
6814 defaultInstance = new NetworkDataSettings(true);
6815 defaultInstance.initFields();
6818 // @@protoc_insertion_point(class_scope:openxc.NetworkDataSettings)
6821 public interface ServerConnectSettingsOrBuilder
6822 extends com.google.protobuf.MessageOrBuilder {
6824 // optional string host = 1;
6828 // optional uint32 port = 2;
6832 public static final class ServerConnectSettings extends
6833 com.google.protobuf.GeneratedMessage
6834 implements ServerConnectSettingsOrBuilder {
6835 // Use ServerConnectSettings.newBuilder() to construct.
6836 private ServerConnectSettings(Builder builder) {
6839 private ServerConnectSettings(boolean noInit) {}
6841 private static final ServerConnectSettings defaultInstance;
6842 public static ServerConnectSettings getDefaultInstance() {
6843 return defaultInstance;
6846 public ServerConnectSettings getDefaultInstanceForType() {
6847 return defaultInstance;
6850 public static final com.google.protobuf.Descriptors.Descriptor
6852 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_descriptor;
6855 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6856 internalGetFieldAccessorTable() {
6857 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_fieldAccessorTable;
6860 private int bitField0_;
6861 // optional string host = 1;
6862 public static final int HOST_FIELD_NUMBER = 1;
6863 private java.lang.Object host_;
6864 public boolean hasHost() {
6865 return ((bitField0_ & 0x00000001) == 0x00000001);
6867 public String getHost() {
6868 java.lang.Object ref = host_;
6869 if (ref instanceof String) {
6870 return (String) ref;
6872 com.google.protobuf.ByteString bs =
6873 (com.google.protobuf.ByteString) ref;
6874 String s = bs.toStringUtf8();
6875 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
6881 private com.google.protobuf.ByteString getHostBytes() {
6882 java.lang.Object ref = host_;
6883 if (ref instanceof String) {
6884 com.google.protobuf.ByteString b =
6885 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
6889 return (com.google.protobuf.ByteString) ref;
6893 // optional uint32 port = 2;
6894 public static final int PORT_FIELD_NUMBER = 2;
6896 public boolean hasPort() {
6897 return ((bitField0_ & 0x00000002) == 0x00000002);
6899 public int getPort() {
6903 private void initFields() {
6907 private byte memoizedIsInitialized = -1;
6908 public final boolean isInitialized() {
6909 byte isInitialized = memoizedIsInitialized;
6910 if (isInitialized != -1) return isInitialized == 1;
6912 memoizedIsInitialized = 1;
6916 public void writeTo(com.google.protobuf.CodedOutputStream output)
6917 throws java.io.IOException {
6918 getSerializedSize();
6919 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6920 output.writeBytes(1, getHostBytes());
6922 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6923 output.writeUInt32(2, port_);
6925 getUnknownFields().writeTo(output);
6928 private int memoizedSerializedSize = -1;
6929 public int getSerializedSize() {
6930 int size = memoizedSerializedSize;
6931 if (size != -1) return size;
6934 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6935 size += com.google.protobuf.CodedOutputStream
6936 .computeBytesSize(1, getHostBytes());
6938 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6939 size += com.google.protobuf.CodedOutputStream
6940 .computeUInt32Size(2, port_);
6942 size += getUnknownFields().getSerializedSize();
6943 memoizedSerializedSize = size;
6947 private static final long serialVersionUID = 0L;
6949 protected java.lang.Object writeReplace()
6950 throws java.io.ObjectStreamException {
6951 return super.writeReplace();
6954 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6955 com.google.protobuf.ByteString data)
6956 throws com.google.protobuf.InvalidProtocolBufferException {
6957 return newBuilder().mergeFrom(data).buildParsed();
6959 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6960 com.google.protobuf.ByteString data,
6961 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6962 throws com.google.protobuf.InvalidProtocolBufferException {
6963 return newBuilder().mergeFrom(data, extensionRegistry)
6966 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(byte[] data)
6967 throws com.google.protobuf.InvalidProtocolBufferException {
6968 return newBuilder().mergeFrom(data).buildParsed();
6970 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6972 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6973 throws com.google.protobuf.InvalidProtocolBufferException {
6974 return newBuilder().mergeFrom(data, extensionRegistry)
6977 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(java.io.InputStream input)
6978 throws java.io.IOException {
6979 return newBuilder().mergeFrom(input).buildParsed();
6981 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6982 java.io.InputStream input,
6983 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6984 throws java.io.IOException {
6985 return newBuilder().mergeFrom(input, extensionRegistry)
6988 public static com.openxc.BinaryMessages.ServerConnectSettings parseDelimitedFrom(java.io.InputStream input)
6989 throws java.io.IOException {
6990 Builder builder = newBuilder();
6991 if (builder.mergeDelimitedFrom(input)) {
6992 return builder.buildParsed();
6997 public static com.openxc.BinaryMessages.ServerConnectSettings parseDelimitedFrom(
6998 java.io.InputStream input,
6999 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7000 throws java.io.IOException {
7001 Builder builder = newBuilder();
7002 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
7003 return builder.buildParsed();
7008 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
7009 com.google.protobuf.CodedInputStream input)
7010 throws java.io.IOException {
7011 return newBuilder().mergeFrom(input).buildParsed();
7013 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
7014 com.google.protobuf.CodedInputStream input,
7015 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7016 throws java.io.IOException {
7017 return newBuilder().mergeFrom(input, extensionRegistry)
7021 public static Builder newBuilder() { return Builder.create(); }
7022 public Builder newBuilderForType() { return newBuilder(); }
7023 public static Builder newBuilder(com.openxc.BinaryMessages.ServerConnectSettings prototype) {
7024 return newBuilder().mergeFrom(prototype);
7026 public Builder toBuilder() { return newBuilder(this); }
7029 protected Builder newBuilderForType(
7030 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7031 Builder builder = new Builder(parent);
7034 public static final class Builder extends
7035 com.google.protobuf.GeneratedMessage.Builder<Builder>
7036 implements com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder {
7037 public static final com.google.protobuf.Descriptors.Descriptor
7039 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_descriptor;
7042 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7043 internalGetFieldAccessorTable() {
7044 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_fieldAccessorTable;
7047 // Construct using com.openxc.BinaryMessages.ServerConnectSettings.newBuilder()
7049 maybeForceBuilderInitialization();
7052 private Builder(BuilderParent parent) {
7054 maybeForceBuilderInitialization();
7056 private void maybeForceBuilderInitialization() {
7057 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7060 private static Builder create() {
7061 return new Builder();
7064 public Builder clear() {
7067 bitField0_ = (bitField0_ & ~0x00000001);
7069 bitField0_ = (bitField0_ & ~0x00000002);
7073 public Builder clone() {
7074 return create().mergeFrom(buildPartial());
7077 public com.google.protobuf.Descriptors.Descriptor
7078 getDescriptorForType() {
7079 return com.openxc.BinaryMessages.ServerConnectSettings.getDescriptor();
7082 public com.openxc.BinaryMessages.ServerConnectSettings getDefaultInstanceForType() {
7083 return com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7086 public com.openxc.BinaryMessages.ServerConnectSettings build() {
7087 com.openxc.BinaryMessages.ServerConnectSettings result = buildPartial();
7088 if (!result.isInitialized()) {
7089 throw newUninitializedMessageException(result);
7094 private com.openxc.BinaryMessages.ServerConnectSettings buildParsed()
7095 throws com.google.protobuf.InvalidProtocolBufferException {
7096 com.openxc.BinaryMessages.ServerConnectSettings result = buildPartial();
7097 if (!result.isInitialized()) {
7098 throw newUninitializedMessageException(
7099 result).asInvalidProtocolBufferException();
7104 public com.openxc.BinaryMessages.ServerConnectSettings buildPartial() {
7105 com.openxc.BinaryMessages.ServerConnectSettings result = new com.openxc.BinaryMessages.ServerConnectSettings(this);
7106 int from_bitField0_ = bitField0_;
7107 int to_bitField0_ = 0;
7108 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7109 to_bitField0_ |= 0x00000001;
7111 result.host_ = host_;
7112 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7113 to_bitField0_ |= 0x00000002;
7115 result.port_ = port_;
7116 result.bitField0_ = to_bitField0_;
7121 public Builder mergeFrom(com.google.protobuf.Message other) {
7122 if (other instanceof com.openxc.BinaryMessages.ServerConnectSettings) {
7123 return mergeFrom((com.openxc.BinaryMessages.ServerConnectSettings)other);
7125 super.mergeFrom(other);
7130 public Builder mergeFrom(com.openxc.BinaryMessages.ServerConnectSettings other) {
7131 if (other == com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance()) return this;
7132 if (other.hasHost()) {
7133 setHost(other.getHost());
7135 if (other.hasPort()) {
7136 setPort(other.getPort());
7138 this.mergeUnknownFields(other.getUnknownFields());
7142 public final boolean isInitialized() {
7146 public Builder mergeFrom(
7147 com.google.protobuf.CodedInputStream input,
7148 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7149 throws java.io.IOException {
7150 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7151 com.google.protobuf.UnknownFieldSet.newBuilder(
7152 this.getUnknownFields());
7154 int tag = input.readTag();
7157 this.setUnknownFields(unknownFields.build());
7161 if (!parseUnknownField(input, unknownFields,
7162 extensionRegistry, tag)) {
7163 this.setUnknownFields(unknownFields.build());
7170 bitField0_ |= 0x00000001;
7171 host_ = input.readBytes();
7175 bitField0_ |= 0x00000002;
7176 port_ = input.readUInt32();
7183 private int bitField0_;
7185 // optional string host = 1;
7186 private java.lang.Object host_ = "";
7187 public boolean hasHost() {
7188 return ((bitField0_ & 0x00000001) == 0x00000001);
7190 public String getHost() {
7191 java.lang.Object ref = host_;
7192 if (!(ref instanceof String)) {
7193 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
7197 return (String) ref;
7200 public Builder setHost(String value) {
7201 if (value == null) {
7202 throw new NullPointerException();
7204 bitField0_ |= 0x00000001;
7209 public Builder clearHost() {
7210 bitField0_ = (bitField0_ & ~0x00000001);
7211 host_ = getDefaultInstance().getHost();
7215 void setHost(com.google.protobuf.ByteString value) {
7216 bitField0_ |= 0x00000001;
7221 // optional uint32 port = 2;
7223 public boolean hasPort() {
7224 return ((bitField0_ & 0x00000002) == 0x00000002);
7226 public int getPort() {
7229 public Builder setPort(int value) {
7230 bitField0_ |= 0x00000002;
7235 public Builder clearPort() {
7236 bitField0_ = (bitField0_ & ~0x00000002);
7242 // @@protoc_insertion_point(builder_scope:openxc.ServerConnectSettings)
7246 defaultInstance = new ServerConnectSettings(true);
7247 defaultInstance.initFields();
7250 // @@protoc_insertion_point(class_scope:openxc.ServerConnectSettings)
7253 public interface ModemConfigurationCommandOrBuilder
7254 extends com.google.protobuf.MessageOrBuilder {
7256 // optional .openxc.NetworkOperatorSettings networkOperatorSettings = 1;
7257 boolean hasNetworkOperatorSettings();
7258 com.openxc.BinaryMessages.NetworkOperatorSettings getNetworkOperatorSettings();
7259 com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder getNetworkOperatorSettingsOrBuilder();
7261 // optional .openxc.NetworkDataSettings networkDataSettings = 2;
7262 boolean hasNetworkDataSettings();
7263 com.openxc.BinaryMessages.NetworkDataSettings getNetworkDataSettings();
7264 com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder getNetworkDataSettingsOrBuilder();
7266 // optional .openxc.ServerConnectSettings serverConnectSettings = 3;
7267 boolean hasServerConnectSettings();
7268 com.openxc.BinaryMessages.ServerConnectSettings getServerConnectSettings();
7269 com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder getServerConnectSettingsOrBuilder();
7271 public static final class ModemConfigurationCommand extends
7272 com.google.protobuf.GeneratedMessage
7273 implements ModemConfigurationCommandOrBuilder {
7274 // Use ModemConfigurationCommand.newBuilder() to construct.
7275 private ModemConfigurationCommand(Builder builder) {
7278 private ModemConfigurationCommand(boolean noInit) {}
7280 private static final ModemConfigurationCommand defaultInstance;
7281 public static ModemConfigurationCommand getDefaultInstance() {
7282 return defaultInstance;
7285 public ModemConfigurationCommand getDefaultInstanceForType() {
7286 return defaultInstance;
7289 public static final com.google.protobuf.Descriptors.Descriptor
7291 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_descriptor;
7294 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7295 internalGetFieldAccessorTable() {
7296 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable;
7299 private int bitField0_;
7300 // optional .openxc.NetworkOperatorSettings networkOperatorSettings = 1;
7301 public static final int NETWORKOPERATORSETTINGS_FIELD_NUMBER = 1;
7302 private com.openxc.BinaryMessages.NetworkOperatorSettings networkOperatorSettings_;
7303 public boolean hasNetworkOperatorSettings() {
7304 return ((bitField0_ & 0x00000001) == 0x00000001);
7306 public com.openxc.BinaryMessages.NetworkOperatorSettings getNetworkOperatorSettings() {
7307 return networkOperatorSettings_;
7309 public com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder getNetworkOperatorSettingsOrBuilder() {
7310 return networkOperatorSettings_;
7313 // optional .openxc.NetworkDataSettings networkDataSettings = 2;
7314 public static final int NETWORKDATASETTINGS_FIELD_NUMBER = 2;
7315 private com.openxc.BinaryMessages.NetworkDataSettings networkDataSettings_;
7316 public boolean hasNetworkDataSettings() {
7317 return ((bitField0_ & 0x00000002) == 0x00000002);
7319 public com.openxc.BinaryMessages.NetworkDataSettings getNetworkDataSettings() {
7320 return networkDataSettings_;
7322 public com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder getNetworkDataSettingsOrBuilder() {
7323 return networkDataSettings_;
7326 // optional .openxc.ServerConnectSettings serverConnectSettings = 3;
7327 public static final int SERVERCONNECTSETTINGS_FIELD_NUMBER = 3;
7328 private com.openxc.BinaryMessages.ServerConnectSettings serverConnectSettings_;
7329 public boolean hasServerConnectSettings() {
7330 return ((bitField0_ & 0x00000004) == 0x00000004);
7332 public com.openxc.BinaryMessages.ServerConnectSettings getServerConnectSettings() {
7333 return serverConnectSettings_;
7335 public com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder getServerConnectSettingsOrBuilder() {
7336 return serverConnectSettings_;
7339 private void initFields() {
7340 networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7341 networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7342 serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7344 private byte memoizedIsInitialized = -1;
7345 public final boolean isInitialized() {
7346 byte isInitialized = memoizedIsInitialized;
7347 if (isInitialized != -1) return isInitialized == 1;
7349 memoizedIsInitialized = 1;
7353 public void writeTo(com.google.protobuf.CodedOutputStream output)
7354 throws java.io.IOException {
7355 getSerializedSize();
7356 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7357 output.writeMessage(1, networkOperatorSettings_);
7359 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7360 output.writeMessage(2, networkDataSettings_);
7362 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7363 output.writeMessage(3, serverConnectSettings_);
7365 getUnknownFields().writeTo(output);
7368 private int memoizedSerializedSize = -1;
7369 public int getSerializedSize() {
7370 int size = memoizedSerializedSize;
7371 if (size != -1) return size;
7374 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7375 size += com.google.protobuf.CodedOutputStream
7376 .computeMessageSize(1, networkOperatorSettings_);
7378 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7379 size += com.google.protobuf.CodedOutputStream
7380 .computeMessageSize(2, networkDataSettings_);
7382 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7383 size += com.google.protobuf.CodedOutputStream
7384 .computeMessageSize(3, serverConnectSettings_);
7386 size += getUnknownFields().getSerializedSize();
7387 memoizedSerializedSize = size;
7391 private static final long serialVersionUID = 0L;
7393 protected java.lang.Object writeReplace()
7394 throws java.io.ObjectStreamException {
7395 return super.writeReplace();
7398 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7399 com.google.protobuf.ByteString data)
7400 throws com.google.protobuf.InvalidProtocolBufferException {
7401 return newBuilder().mergeFrom(data).buildParsed();
7403 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7404 com.google.protobuf.ByteString data,
7405 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7406 throws com.google.protobuf.InvalidProtocolBufferException {
7407 return newBuilder().mergeFrom(data, extensionRegistry)
7410 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(byte[] data)
7411 throws com.google.protobuf.InvalidProtocolBufferException {
7412 return newBuilder().mergeFrom(data).buildParsed();
7414 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7416 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7417 throws com.google.protobuf.InvalidProtocolBufferException {
7418 return newBuilder().mergeFrom(data, extensionRegistry)
7421 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(java.io.InputStream input)
7422 throws java.io.IOException {
7423 return newBuilder().mergeFrom(input).buildParsed();
7425 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7426 java.io.InputStream input,
7427 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7428 throws java.io.IOException {
7429 return newBuilder().mergeFrom(input, extensionRegistry)
7432 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseDelimitedFrom(java.io.InputStream input)
7433 throws java.io.IOException {
7434 Builder builder = newBuilder();
7435 if (builder.mergeDelimitedFrom(input)) {
7436 return builder.buildParsed();
7441 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseDelimitedFrom(
7442 java.io.InputStream input,
7443 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7444 throws java.io.IOException {
7445 Builder builder = newBuilder();
7446 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
7447 return builder.buildParsed();
7452 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7453 com.google.protobuf.CodedInputStream input)
7454 throws java.io.IOException {
7455 return newBuilder().mergeFrom(input).buildParsed();
7457 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7458 com.google.protobuf.CodedInputStream input,
7459 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7460 throws java.io.IOException {
7461 return newBuilder().mergeFrom(input, extensionRegistry)
7465 public static Builder newBuilder() { return Builder.create(); }
7466 public Builder newBuilderForType() { return newBuilder(); }
7467 public static Builder newBuilder(com.openxc.BinaryMessages.ModemConfigurationCommand prototype) {
7468 return newBuilder().mergeFrom(prototype);
7470 public Builder toBuilder() { return newBuilder(this); }
7473 protected Builder newBuilderForType(
7474 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7475 Builder builder = new Builder(parent);
7478 public static final class Builder extends
7479 com.google.protobuf.GeneratedMessage.Builder<Builder>
7480 implements com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder {
7481 public static final com.google.protobuf.Descriptors.Descriptor
7483 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_descriptor;
7486 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7487 internalGetFieldAccessorTable() {
7488 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable;
7491 // Construct using com.openxc.BinaryMessages.ModemConfigurationCommand.newBuilder()
7493 maybeForceBuilderInitialization();
7496 private Builder(BuilderParent parent) {
7498 maybeForceBuilderInitialization();
7500 private void maybeForceBuilderInitialization() {
7501 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7502 getNetworkOperatorSettingsFieldBuilder();
7503 getNetworkDataSettingsFieldBuilder();
7504 getServerConnectSettingsFieldBuilder();
7507 private static Builder create() {
7508 return new Builder();
7511 public Builder clear() {
7513 if (networkOperatorSettingsBuilder_ == null) {
7514 networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7516 networkOperatorSettingsBuilder_.clear();
7518 bitField0_ = (bitField0_ & ~0x00000001);
7519 if (networkDataSettingsBuilder_ == null) {
7520 networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7522 networkDataSettingsBuilder_.clear();
7524 bitField0_ = (bitField0_ & ~0x00000002);
7525 if (serverConnectSettingsBuilder_ == null) {
7526 serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7528 serverConnectSettingsBuilder_.clear();
7530 bitField0_ = (bitField0_ & ~0x00000004);
7534 public Builder clone() {
7535 return create().mergeFrom(buildPartial());
7538 public com.google.protobuf.Descriptors.Descriptor
7539 getDescriptorForType() {
7540 return com.openxc.BinaryMessages.ModemConfigurationCommand.getDescriptor();
7543 public com.openxc.BinaryMessages.ModemConfigurationCommand getDefaultInstanceForType() {
7544 return com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
7547 public com.openxc.BinaryMessages.ModemConfigurationCommand build() {
7548 com.openxc.BinaryMessages.ModemConfigurationCommand result = buildPartial();
7549 if (!result.isInitialized()) {
7550 throw newUninitializedMessageException(result);
7555 private com.openxc.BinaryMessages.ModemConfigurationCommand buildParsed()
7556 throws com.google.protobuf.InvalidProtocolBufferException {
7557 com.openxc.BinaryMessages.ModemConfigurationCommand result = buildPartial();
7558 if (!result.isInitialized()) {
7559 throw newUninitializedMessageException(
7560 result).asInvalidProtocolBufferException();
7565 public com.openxc.BinaryMessages.ModemConfigurationCommand buildPartial() {
7566 com.openxc.BinaryMessages.ModemConfigurationCommand result = new com.openxc.BinaryMessages.ModemConfigurationCommand(this);
7567 int from_bitField0_ = bitField0_;
7568 int to_bitField0_ = 0;
7569 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7570 to_bitField0_ |= 0x00000001;
7572 if (networkOperatorSettingsBuilder_ == null) {
7573 result.networkOperatorSettings_ = networkOperatorSettings_;
7575 result.networkOperatorSettings_ = networkOperatorSettingsBuilder_.build();
7577 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7578 to_bitField0_ |= 0x00000002;
7580 if (networkDataSettingsBuilder_ == null) {
7581 result.networkDataSettings_ = networkDataSettings_;
7583 result.networkDataSettings_ = networkDataSettingsBuilder_.build();
7585 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7586 to_bitField0_ |= 0x00000004;
7588 if (serverConnectSettingsBuilder_ == null) {
7589 result.serverConnectSettings_ = serverConnectSettings_;
7591 result.serverConnectSettings_ = serverConnectSettingsBuilder_.build();
7593 result.bitField0_ = to_bitField0_;
7598 public Builder mergeFrom(com.google.protobuf.Message other) {
7599 if (other instanceof com.openxc.BinaryMessages.ModemConfigurationCommand) {
7600 return mergeFrom((com.openxc.BinaryMessages.ModemConfigurationCommand)other);
7602 super.mergeFrom(other);
7607 public Builder mergeFrom(com.openxc.BinaryMessages.ModemConfigurationCommand other) {
7608 if (other == com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance()) return this;
7609 if (other.hasNetworkOperatorSettings()) {
7610 mergeNetworkOperatorSettings(other.getNetworkOperatorSettings());
7612 if (other.hasNetworkDataSettings()) {
7613 mergeNetworkDataSettings(other.getNetworkDataSettings());
7615 if (other.hasServerConnectSettings()) {
7616 mergeServerConnectSettings(other.getServerConnectSettings());
7618 this.mergeUnknownFields(other.getUnknownFields());
7622 public final boolean isInitialized() {
7626 public Builder mergeFrom(
7627 com.google.protobuf.CodedInputStream input,
7628 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7629 throws java.io.IOException {
7630 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7631 com.google.protobuf.UnknownFieldSet.newBuilder(
7632 this.getUnknownFields());
7634 int tag = input.readTag();
7637 this.setUnknownFields(unknownFields.build());
7641 if (!parseUnknownField(input, unknownFields,
7642 extensionRegistry, tag)) {
7643 this.setUnknownFields(unknownFields.build());
7650 com.openxc.BinaryMessages.NetworkOperatorSettings.Builder subBuilder = com.openxc.BinaryMessages.NetworkOperatorSettings.newBuilder();
7651 if (hasNetworkOperatorSettings()) {
7652 subBuilder.mergeFrom(getNetworkOperatorSettings());
7654 input.readMessage(subBuilder, extensionRegistry);
7655 setNetworkOperatorSettings(subBuilder.buildPartial());
7659 com.openxc.BinaryMessages.NetworkDataSettings.Builder subBuilder = com.openxc.BinaryMessages.NetworkDataSettings.newBuilder();
7660 if (hasNetworkDataSettings()) {
7661 subBuilder.mergeFrom(getNetworkDataSettings());
7663 input.readMessage(subBuilder, extensionRegistry);
7664 setNetworkDataSettings(subBuilder.buildPartial());
7668 com.openxc.BinaryMessages.ServerConnectSettings.Builder subBuilder = com.openxc.BinaryMessages.ServerConnectSettings.newBuilder();
7669 if (hasServerConnectSettings()) {
7670 subBuilder.mergeFrom(getServerConnectSettings());
7672 input.readMessage(subBuilder, extensionRegistry);
7673 setServerConnectSettings(subBuilder.buildPartial());
7680 private int bitField0_;
7682 // optional .openxc.NetworkOperatorSettings networkOperatorSettings = 1;
7683 private com.openxc.BinaryMessages.NetworkOperatorSettings networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7684 private com.google.protobuf.SingleFieldBuilder<
7685 com.openxc.BinaryMessages.NetworkOperatorSettings, com.openxc.BinaryMessages.NetworkOperatorSettings.Builder, com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder> networkOperatorSettingsBuilder_;
7686 public boolean hasNetworkOperatorSettings() {
7687 return ((bitField0_ & 0x00000001) == 0x00000001);
7689 public com.openxc.BinaryMessages.NetworkOperatorSettings getNetworkOperatorSettings() {
7690 if (networkOperatorSettingsBuilder_ == null) {
7691 return networkOperatorSettings_;
7693 return networkOperatorSettingsBuilder_.getMessage();
7696 public Builder setNetworkOperatorSettings(com.openxc.BinaryMessages.NetworkOperatorSettings value) {
7697 if (networkOperatorSettingsBuilder_ == null) {
7698 if (value == null) {
7699 throw new NullPointerException();
7701 networkOperatorSettings_ = value;
7704 networkOperatorSettingsBuilder_.setMessage(value);
7706 bitField0_ |= 0x00000001;
7709 public Builder setNetworkOperatorSettings(
7710 com.openxc.BinaryMessages.NetworkOperatorSettings.Builder builderForValue) {
7711 if (networkOperatorSettingsBuilder_ == null) {
7712 networkOperatorSettings_ = builderForValue.build();
7715 networkOperatorSettingsBuilder_.setMessage(builderForValue.build());
7717 bitField0_ |= 0x00000001;
7720 public Builder mergeNetworkOperatorSettings(com.openxc.BinaryMessages.NetworkOperatorSettings value) {
7721 if (networkOperatorSettingsBuilder_ == null) {
7722 if (((bitField0_ & 0x00000001) == 0x00000001) &&
7723 networkOperatorSettings_ != com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance()) {
7724 networkOperatorSettings_ =
7725 com.openxc.BinaryMessages.NetworkOperatorSettings.newBuilder(networkOperatorSettings_).mergeFrom(value).buildPartial();
7727 networkOperatorSettings_ = value;
7731 networkOperatorSettingsBuilder_.mergeFrom(value);
7733 bitField0_ |= 0x00000001;
7736 public Builder clearNetworkOperatorSettings() {
7737 if (networkOperatorSettingsBuilder_ == null) {
7738 networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7741 networkOperatorSettingsBuilder_.clear();
7743 bitField0_ = (bitField0_ & ~0x00000001);
7746 public com.openxc.BinaryMessages.NetworkOperatorSettings.Builder getNetworkOperatorSettingsBuilder() {
7747 bitField0_ |= 0x00000001;
7749 return getNetworkOperatorSettingsFieldBuilder().getBuilder();
7751 public com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder getNetworkOperatorSettingsOrBuilder() {
7752 if (networkOperatorSettingsBuilder_ != null) {
7753 return networkOperatorSettingsBuilder_.getMessageOrBuilder();
7755 return networkOperatorSettings_;
7758 private com.google.protobuf.SingleFieldBuilder<
7759 com.openxc.BinaryMessages.NetworkOperatorSettings, com.openxc.BinaryMessages.NetworkOperatorSettings.Builder, com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder>
7760 getNetworkOperatorSettingsFieldBuilder() {
7761 if (networkOperatorSettingsBuilder_ == null) {
7762 networkOperatorSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7763 com.openxc.BinaryMessages.NetworkOperatorSettings, com.openxc.BinaryMessages.NetworkOperatorSettings.Builder, com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder>(
7764 networkOperatorSettings_,
7765 getParentForChildren(),
7767 networkOperatorSettings_ = null;
7769 return networkOperatorSettingsBuilder_;
7772 // optional .openxc.NetworkDataSettings networkDataSettings = 2;
7773 private com.openxc.BinaryMessages.NetworkDataSettings networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7774 private com.google.protobuf.SingleFieldBuilder<
7775 com.openxc.BinaryMessages.NetworkDataSettings, com.openxc.BinaryMessages.NetworkDataSettings.Builder, com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder> networkDataSettingsBuilder_;
7776 public boolean hasNetworkDataSettings() {
7777 return ((bitField0_ & 0x00000002) == 0x00000002);
7779 public com.openxc.BinaryMessages.NetworkDataSettings getNetworkDataSettings() {
7780 if (networkDataSettingsBuilder_ == null) {
7781 return networkDataSettings_;
7783 return networkDataSettingsBuilder_.getMessage();
7786 public Builder setNetworkDataSettings(com.openxc.BinaryMessages.NetworkDataSettings value) {
7787 if (networkDataSettingsBuilder_ == null) {
7788 if (value == null) {
7789 throw new NullPointerException();
7791 networkDataSettings_ = value;
7794 networkDataSettingsBuilder_.setMessage(value);
7796 bitField0_ |= 0x00000002;
7799 public Builder setNetworkDataSettings(
7800 com.openxc.BinaryMessages.NetworkDataSettings.Builder builderForValue) {
7801 if (networkDataSettingsBuilder_ == null) {
7802 networkDataSettings_ = builderForValue.build();
7805 networkDataSettingsBuilder_.setMessage(builderForValue.build());
7807 bitField0_ |= 0x00000002;
7810 public Builder mergeNetworkDataSettings(com.openxc.BinaryMessages.NetworkDataSettings value) {
7811 if (networkDataSettingsBuilder_ == null) {
7812 if (((bitField0_ & 0x00000002) == 0x00000002) &&
7813 networkDataSettings_ != com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance()) {
7814 networkDataSettings_ =
7815 com.openxc.BinaryMessages.NetworkDataSettings.newBuilder(networkDataSettings_).mergeFrom(value).buildPartial();
7817 networkDataSettings_ = value;
7821 networkDataSettingsBuilder_.mergeFrom(value);
7823 bitField0_ |= 0x00000002;
7826 public Builder clearNetworkDataSettings() {
7827 if (networkDataSettingsBuilder_ == null) {
7828 networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7831 networkDataSettingsBuilder_.clear();
7833 bitField0_ = (bitField0_ & ~0x00000002);
7836 public com.openxc.BinaryMessages.NetworkDataSettings.Builder getNetworkDataSettingsBuilder() {
7837 bitField0_ |= 0x00000002;
7839 return getNetworkDataSettingsFieldBuilder().getBuilder();
7841 public com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder getNetworkDataSettingsOrBuilder() {
7842 if (networkDataSettingsBuilder_ != null) {
7843 return networkDataSettingsBuilder_.getMessageOrBuilder();
7845 return networkDataSettings_;
7848 private com.google.protobuf.SingleFieldBuilder<
7849 com.openxc.BinaryMessages.NetworkDataSettings, com.openxc.BinaryMessages.NetworkDataSettings.Builder, com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder>
7850 getNetworkDataSettingsFieldBuilder() {
7851 if (networkDataSettingsBuilder_ == null) {
7852 networkDataSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7853 com.openxc.BinaryMessages.NetworkDataSettings, com.openxc.BinaryMessages.NetworkDataSettings.Builder, com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder>(
7854 networkDataSettings_,
7855 getParentForChildren(),
7857 networkDataSettings_ = null;
7859 return networkDataSettingsBuilder_;
7862 // optional .openxc.ServerConnectSettings serverConnectSettings = 3;
7863 private com.openxc.BinaryMessages.ServerConnectSettings serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7864 private com.google.protobuf.SingleFieldBuilder<
7865 com.openxc.BinaryMessages.ServerConnectSettings, com.openxc.BinaryMessages.ServerConnectSettings.Builder, com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder> serverConnectSettingsBuilder_;
7866 public boolean hasServerConnectSettings() {
7867 return ((bitField0_ & 0x00000004) == 0x00000004);
7869 public com.openxc.BinaryMessages.ServerConnectSettings getServerConnectSettings() {
7870 if (serverConnectSettingsBuilder_ == null) {
7871 return serverConnectSettings_;
7873 return serverConnectSettingsBuilder_.getMessage();
7876 public Builder setServerConnectSettings(com.openxc.BinaryMessages.ServerConnectSettings value) {
7877 if (serverConnectSettingsBuilder_ == null) {
7878 if (value == null) {
7879 throw new NullPointerException();
7881 serverConnectSettings_ = value;
7884 serverConnectSettingsBuilder_.setMessage(value);
7886 bitField0_ |= 0x00000004;
7889 public Builder setServerConnectSettings(
7890 com.openxc.BinaryMessages.ServerConnectSettings.Builder builderForValue) {
7891 if (serverConnectSettingsBuilder_ == null) {
7892 serverConnectSettings_ = builderForValue.build();
7895 serverConnectSettingsBuilder_.setMessage(builderForValue.build());
7897 bitField0_ |= 0x00000004;
7900 public Builder mergeServerConnectSettings(com.openxc.BinaryMessages.ServerConnectSettings value) {
7901 if (serverConnectSettingsBuilder_ == null) {
7902 if (((bitField0_ & 0x00000004) == 0x00000004) &&
7903 serverConnectSettings_ != com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance()) {
7904 serverConnectSettings_ =
7905 com.openxc.BinaryMessages.ServerConnectSettings.newBuilder(serverConnectSettings_).mergeFrom(value).buildPartial();
7907 serverConnectSettings_ = value;
7911 serverConnectSettingsBuilder_.mergeFrom(value);
7913 bitField0_ |= 0x00000004;
7916 public Builder clearServerConnectSettings() {
7917 if (serverConnectSettingsBuilder_ == null) {
7918 serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7921 serverConnectSettingsBuilder_.clear();
7923 bitField0_ = (bitField0_ & ~0x00000004);
7926 public com.openxc.BinaryMessages.ServerConnectSettings.Builder getServerConnectSettingsBuilder() {
7927 bitField0_ |= 0x00000004;
7929 return getServerConnectSettingsFieldBuilder().getBuilder();
7931 public com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder getServerConnectSettingsOrBuilder() {
7932 if (serverConnectSettingsBuilder_ != null) {
7933 return serverConnectSettingsBuilder_.getMessageOrBuilder();
7935 return serverConnectSettings_;
7938 private com.google.protobuf.SingleFieldBuilder<
7939 com.openxc.BinaryMessages.ServerConnectSettings, com.openxc.BinaryMessages.ServerConnectSettings.Builder, com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder>
7940 getServerConnectSettingsFieldBuilder() {
7941 if (serverConnectSettingsBuilder_ == null) {
7942 serverConnectSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7943 com.openxc.BinaryMessages.ServerConnectSettings, com.openxc.BinaryMessages.ServerConnectSettings.Builder, com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder>(
7944 serverConnectSettings_,
7945 getParentForChildren(),
7947 serverConnectSettings_ = null;
7949 return serverConnectSettingsBuilder_;
7952 // @@protoc_insertion_point(builder_scope:openxc.ModemConfigurationCommand)
7956 defaultInstance = new ModemConfigurationCommand(true);
7957 defaultInstance.initFields();
7960 // @@protoc_insertion_point(class_scope:openxc.ModemConfigurationCommand)
7963 public interface RTCConfigurationCommandOrBuilder
7964 extends com.google.protobuf.MessageOrBuilder {
7966 // optional uint32 unix_time = 1;
7967 boolean hasUnixTime();
7970 public static final class RTCConfigurationCommand extends
7971 com.google.protobuf.GeneratedMessage
7972 implements RTCConfigurationCommandOrBuilder {
7973 // Use RTCConfigurationCommand.newBuilder() to construct.
7974 private RTCConfigurationCommand(Builder builder) {
7977 private RTCConfigurationCommand(boolean noInit) {}
7979 private static final RTCConfigurationCommand defaultInstance;
7980 public static RTCConfigurationCommand getDefaultInstance() {
7981 return defaultInstance;
7984 public RTCConfigurationCommand getDefaultInstanceForType() {
7985 return defaultInstance;
7988 public static final com.google.protobuf.Descriptors.Descriptor
7990 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_descriptor;
7993 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7994 internalGetFieldAccessorTable() {
7995 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable;
7998 private int bitField0_;
7999 // optional uint32 unix_time = 1;
8000 public static final int UNIX_TIME_FIELD_NUMBER = 1;
8001 private int unixTime_;
8002 public boolean hasUnixTime() {
8003 return ((bitField0_ & 0x00000001) == 0x00000001);
8005 public int getUnixTime() {
8009 private void initFields() {
8012 private byte memoizedIsInitialized = -1;
8013 public final boolean isInitialized() {
8014 byte isInitialized = memoizedIsInitialized;
8015 if (isInitialized != -1) return isInitialized == 1;
8017 memoizedIsInitialized = 1;
8021 public void writeTo(com.google.protobuf.CodedOutputStream output)
8022 throws java.io.IOException {
8023 getSerializedSize();
8024 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8025 output.writeUInt32(1, unixTime_);
8027 getUnknownFields().writeTo(output);
8030 private int memoizedSerializedSize = -1;
8031 public int getSerializedSize() {
8032 int size = memoizedSerializedSize;
8033 if (size != -1) return size;
8036 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8037 size += com.google.protobuf.CodedOutputStream
8038 .computeUInt32Size(1, unixTime_);
8040 size += getUnknownFields().getSerializedSize();
8041 memoizedSerializedSize = size;
8045 private static final long serialVersionUID = 0L;
8047 protected java.lang.Object writeReplace()
8048 throws java.io.ObjectStreamException {
8049 return super.writeReplace();
8052 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8053 com.google.protobuf.ByteString data)
8054 throws com.google.protobuf.InvalidProtocolBufferException {
8055 return newBuilder().mergeFrom(data).buildParsed();
8057 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8058 com.google.protobuf.ByteString data,
8059 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8060 throws com.google.protobuf.InvalidProtocolBufferException {
8061 return newBuilder().mergeFrom(data, extensionRegistry)
8064 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(byte[] data)
8065 throws com.google.protobuf.InvalidProtocolBufferException {
8066 return newBuilder().mergeFrom(data).buildParsed();
8068 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8070 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8071 throws com.google.protobuf.InvalidProtocolBufferException {
8072 return newBuilder().mergeFrom(data, extensionRegistry)
8075 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(java.io.InputStream input)
8076 throws java.io.IOException {
8077 return newBuilder().mergeFrom(input).buildParsed();
8079 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8080 java.io.InputStream input,
8081 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8082 throws java.io.IOException {
8083 return newBuilder().mergeFrom(input, extensionRegistry)
8086 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseDelimitedFrom(java.io.InputStream input)
8087 throws java.io.IOException {
8088 Builder builder = newBuilder();
8089 if (builder.mergeDelimitedFrom(input)) {
8090 return builder.buildParsed();
8095 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseDelimitedFrom(
8096 java.io.InputStream input,
8097 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8098 throws java.io.IOException {
8099 Builder builder = newBuilder();
8100 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
8101 return builder.buildParsed();
8106 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8107 com.google.protobuf.CodedInputStream input)
8108 throws java.io.IOException {
8109 return newBuilder().mergeFrom(input).buildParsed();
8111 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8112 com.google.protobuf.CodedInputStream input,
8113 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8114 throws java.io.IOException {
8115 return newBuilder().mergeFrom(input, extensionRegistry)
8119 public static Builder newBuilder() { return Builder.create(); }
8120 public Builder newBuilderForType() { return newBuilder(); }
8121 public static Builder newBuilder(com.openxc.BinaryMessages.RTCConfigurationCommand prototype) {
8122 return newBuilder().mergeFrom(prototype);
8124 public Builder toBuilder() { return newBuilder(this); }
8127 protected Builder newBuilderForType(
8128 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8129 Builder builder = new Builder(parent);
8132 public static final class Builder extends
8133 com.google.protobuf.GeneratedMessage.Builder<Builder>
8134 implements com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder {
8135 public static final com.google.protobuf.Descriptors.Descriptor
8137 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_descriptor;
8140 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8141 internalGetFieldAccessorTable() {
8142 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable;
8145 // Construct using com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder()
8147 maybeForceBuilderInitialization();
8150 private Builder(BuilderParent parent) {
8152 maybeForceBuilderInitialization();
8154 private void maybeForceBuilderInitialization() {
8155 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8158 private static Builder create() {
8159 return new Builder();
8162 public Builder clear() {
8165 bitField0_ = (bitField0_ & ~0x00000001);
8169 public Builder clone() {
8170 return create().mergeFrom(buildPartial());
8173 public com.google.protobuf.Descriptors.Descriptor
8174 getDescriptorForType() {
8175 return com.openxc.BinaryMessages.RTCConfigurationCommand.getDescriptor();
8178 public com.openxc.BinaryMessages.RTCConfigurationCommand getDefaultInstanceForType() {
8179 return com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
8182 public com.openxc.BinaryMessages.RTCConfigurationCommand build() {
8183 com.openxc.BinaryMessages.RTCConfigurationCommand result = buildPartial();
8184 if (!result.isInitialized()) {
8185 throw newUninitializedMessageException(result);
8190 private com.openxc.BinaryMessages.RTCConfigurationCommand buildParsed()
8191 throws com.google.protobuf.InvalidProtocolBufferException {
8192 com.openxc.BinaryMessages.RTCConfigurationCommand result = buildPartial();
8193 if (!result.isInitialized()) {
8194 throw newUninitializedMessageException(
8195 result).asInvalidProtocolBufferException();
8200 public com.openxc.BinaryMessages.RTCConfigurationCommand buildPartial() {
8201 com.openxc.BinaryMessages.RTCConfigurationCommand result = new com.openxc.BinaryMessages.RTCConfigurationCommand(this);
8202 int from_bitField0_ = bitField0_;
8203 int to_bitField0_ = 0;
8204 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8205 to_bitField0_ |= 0x00000001;
8207 result.unixTime_ = unixTime_;
8208 result.bitField0_ = to_bitField0_;
8213 public Builder mergeFrom(com.google.protobuf.Message other) {
8214 if (other instanceof com.openxc.BinaryMessages.RTCConfigurationCommand) {
8215 return mergeFrom((com.openxc.BinaryMessages.RTCConfigurationCommand)other);
8217 super.mergeFrom(other);
8222 public Builder mergeFrom(com.openxc.BinaryMessages.RTCConfigurationCommand other) {
8223 if (other == com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance()) return this;
8224 if (other.hasUnixTime()) {
8225 setUnixTime(other.getUnixTime());
8227 this.mergeUnknownFields(other.getUnknownFields());
8231 public final boolean isInitialized() {
8235 public Builder mergeFrom(
8236 com.google.protobuf.CodedInputStream input,
8237 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8238 throws java.io.IOException {
8239 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8240 com.google.protobuf.UnknownFieldSet.newBuilder(
8241 this.getUnknownFields());
8243 int tag = input.readTag();
8246 this.setUnknownFields(unknownFields.build());
8250 if (!parseUnknownField(input, unknownFields,
8251 extensionRegistry, tag)) {
8252 this.setUnknownFields(unknownFields.build());
8259 bitField0_ |= 0x00000001;
8260 unixTime_ = input.readUInt32();
8267 private int bitField0_;
8269 // optional uint32 unix_time = 1;
8270 private int unixTime_ ;
8271 public boolean hasUnixTime() {
8272 return ((bitField0_ & 0x00000001) == 0x00000001);
8274 public int getUnixTime() {
8277 public Builder setUnixTime(int value) {
8278 bitField0_ |= 0x00000001;
8283 public Builder clearUnixTime() {
8284 bitField0_ = (bitField0_ & ~0x00000001);
8290 // @@protoc_insertion_point(builder_scope:openxc.RTCConfigurationCommand)
8294 defaultInstance = new RTCConfigurationCommand(true);
8295 defaultInstance.initFields();
8298 // @@protoc_insertion_point(class_scope:openxc.RTCConfigurationCommand)
8301 public interface CommandResponseOrBuilder
8302 extends com.google.protobuf.MessageOrBuilder {
8304 // optional .openxc.ControlCommand.Type type = 1;
8306 com.openxc.BinaryMessages.ControlCommand.Type getType();
8308 // optional string message = 2;
8309 boolean hasMessage();
8310 String getMessage();
8312 // optional bool status = 3;
8313 boolean hasStatus();
8314 boolean getStatus();
8316 public static final class CommandResponse extends
8317 com.google.protobuf.GeneratedMessage
8318 implements CommandResponseOrBuilder {
8319 // Use CommandResponse.newBuilder() to construct.
8320 private CommandResponse(Builder builder) {
8323 private CommandResponse(boolean noInit) {}
8325 private static final CommandResponse defaultInstance;
8326 public static CommandResponse getDefaultInstance() {
8327 return defaultInstance;
8330 public CommandResponse getDefaultInstanceForType() {
8331 return defaultInstance;
8334 public static final com.google.protobuf.Descriptors.Descriptor
8336 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
8339 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8340 internalGetFieldAccessorTable() {
8341 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable;
8344 private int bitField0_;
8345 // optional .openxc.ControlCommand.Type type = 1;
8346 public static final int TYPE_FIELD_NUMBER = 1;
8347 private com.openxc.BinaryMessages.ControlCommand.Type type_;
8348 public boolean hasType() {
8349 return ((bitField0_ & 0x00000001) == 0x00000001);
8351 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
8355 // optional string message = 2;
8356 public static final int MESSAGE_FIELD_NUMBER = 2;
8357 private java.lang.Object message_;
8358 public boolean hasMessage() {
8359 return ((bitField0_ & 0x00000002) == 0x00000002);
8361 public String getMessage() {
8362 java.lang.Object ref = message_;
8363 if (ref instanceof String) {
8364 return (String) ref;
8366 com.google.protobuf.ByteString bs =
8367 (com.google.protobuf.ByteString) ref;
8368 String s = bs.toStringUtf8();
8369 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
8375 private com.google.protobuf.ByteString getMessageBytes() {
8376 java.lang.Object ref = message_;
8377 if (ref instanceof String) {
8378 com.google.protobuf.ByteString b =
8379 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
8383 return (com.google.protobuf.ByteString) ref;
8387 // optional bool status = 3;
8388 public static final int STATUS_FIELD_NUMBER = 3;
8389 private boolean status_;
8390 public boolean hasStatus() {
8391 return ((bitField0_ & 0x00000004) == 0x00000004);
8393 public boolean getStatus() {
8397 private void initFields() {
8398 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8402 private byte memoizedIsInitialized = -1;
8403 public final boolean isInitialized() {
8404 byte isInitialized = memoizedIsInitialized;
8405 if (isInitialized != -1) return isInitialized == 1;
8407 memoizedIsInitialized = 1;
8411 public void writeTo(com.google.protobuf.CodedOutputStream output)
8412 throws java.io.IOException {
8413 getSerializedSize();
8414 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8415 output.writeEnum(1, type_.getNumber());
8417 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8418 output.writeBytes(2, getMessageBytes());
8420 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8421 output.writeBool(3, status_);
8423 getUnknownFields().writeTo(output);
8426 private int memoizedSerializedSize = -1;
8427 public int getSerializedSize() {
8428 int size = memoizedSerializedSize;
8429 if (size != -1) return size;
8432 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8433 size += com.google.protobuf.CodedOutputStream
8434 .computeEnumSize(1, type_.getNumber());
8436 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8437 size += com.google.protobuf.CodedOutputStream
8438 .computeBytesSize(2, getMessageBytes());
8440 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8441 size += com.google.protobuf.CodedOutputStream
8442 .computeBoolSize(3, status_);
8444 size += getUnknownFields().getSerializedSize();
8445 memoizedSerializedSize = size;
8449 private static final long serialVersionUID = 0L;
8451 protected java.lang.Object writeReplace()
8452 throws java.io.ObjectStreamException {
8453 return super.writeReplace();
8456 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8457 com.google.protobuf.ByteString data)
8458 throws com.google.protobuf.InvalidProtocolBufferException {
8459 return newBuilder().mergeFrom(data).buildParsed();
8461 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8462 com.google.protobuf.ByteString data,
8463 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8464 throws com.google.protobuf.InvalidProtocolBufferException {
8465 return newBuilder().mergeFrom(data, extensionRegistry)
8468 public static com.openxc.BinaryMessages.CommandResponse parseFrom(byte[] data)
8469 throws com.google.protobuf.InvalidProtocolBufferException {
8470 return newBuilder().mergeFrom(data).buildParsed();
8472 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8474 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8475 throws com.google.protobuf.InvalidProtocolBufferException {
8476 return newBuilder().mergeFrom(data, extensionRegistry)
8479 public static com.openxc.BinaryMessages.CommandResponse parseFrom(java.io.InputStream input)
8480 throws java.io.IOException {
8481 return newBuilder().mergeFrom(input).buildParsed();
8483 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8484 java.io.InputStream input,
8485 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8486 throws java.io.IOException {
8487 return newBuilder().mergeFrom(input, extensionRegistry)
8490 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(java.io.InputStream input)
8491 throws java.io.IOException {
8492 Builder builder = newBuilder();
8493 if (builder.mergeDelimitedFrom(input)) {
8494 return builder.buildParsed();
8499 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(
8500 java.io.InputStream input,
8501 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8502 throws java.io.IOException {
8503 Builder builder = newBuilder();
8504 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
8505 return builder.buildParsed();
8510 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8511 com.google.protobuf.CodedInputStream input)
8512 throws java.io.IOException {
8513 return newBuilder().mergeFrom(input).buildParsed();
8515 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8516 com.google.protobuf.CodedInputStream input,
8517 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8518 throws java.io.IOException {
8519 return newBuilder().mergeFrom(input, extensionRegistry)
8523 public static Builder newBuilder() { return Builder.create(); }
8524 public Builder newBuilderForType() { return newBuilder(); }
8525 public static Builder newBuilder(com.openxc.BinaryMessages.CommandResponse prototype) {
8526 return newBuilder().mergeFrom(prototype);
8528 public Builder toBuilder() { return newBuilder(this); }
8531 protected Builder newBuilderForType(
8532 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8533 Builder builder = new Builder(parent);
8536 public static final class Builder extends
8537 com.google.protobuf.GeneratedMessage.Builder<Builder>
8538 implements com.openxc.BinaryMessages.CommandResponseOrBuilder {
8539 public static final com.google.protobuf.Descriptors.Descriptor
8541 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
8544 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8545 internalGetFieldAccessorTable() {
8546 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable;
8549 // Construct using com.openxc.BinaryMessages.CommandResponse.newBuilder()
8551 maybeForceBuilderInitialization();
8554 private Builder(BuilderParent parent) {
8556 maybeForceBuilderInitialization();
8558 private void maybeForceBuilderInitialization() {
8559 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8562 private static Builder create() {
8563 return new Builder();
8566 public Builder clear() {
8568 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8569 bitField0_ = (bitField0_ & ~0x00000001);
8571 bitField0_ = (bitField0_ & ~0x00000002);
8573 bitField0_ = (bitField0_ & ~0x00000004);
8577 public Builder clone() {
8578 return create().mergeFrom(buildPartial());
8581 public com.google.protobuf.Descriptors.Descriptor
8582 getDescriptorForType() {
8583 return com.openxc.BinaryMessages.CommandResponse.getDescriptor();
8586 public com.openxc.BinaryMessages.CommandResponse getDefaultInstanceForType() {
8587 return com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
8590 public com.openxc.BinaryMessages.CommandResponse build() {
8591 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
8592 if (!result.isInitialized()) {
8593 throw newUninitializedMessageException(result);
8598 private com.openxc.BinaryMessages.CommandResponse buildParsed()
8599 throws com.google.protobuf.InvalidProtocolBufferException {
8600 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
8601 if (!result.isInitialized()) {
8602 throw newUninitializedMessageException(
8603 result).asInvalidProtocolBufferException();
8608 public com.openxc.BinaryMessages.CommandResponse buildPartial() {
8609 com.openxc.BinaryMessages.CommandResponse result = new com.openxc.BinaryMessages.CommandResponse(this);
8610 int from_bitField0_ = bitField0_;
8611 int to_bitField0_ = 0;
8612 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8613 to_bitField0_ |= 0x00000001;
8615 result.type_ = type_;
8616 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
8617 to_bitField0_ |= 0x00000002;
8619 result.message_ = message_;
8620 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
8621 to_bitField0_ |= 0x00000004;
8623 result.status_ = status_;
8624 result.bitField0_ = to_bitField0_;
8629 public Builder mergeFrom(com.google.protobuf.Message other) {
8630 if (other instanceof com.openxc.BinaryMessages.CommandResponse) {
8631 return mergeFrom((com.openxc.BinaryMessages.CommandResponse)other);
8633 super.mergeFrom(other);
8638 public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) {
8639 if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this;
8640 if (other.hasType()) {
8641 setType(other.getType());
8643 if (other.hasMessage()) {
8644 setMessage(other.getMessage());
8646 if (other.hasStatus()) {
8647 setStatus(other.getStatus());
8649 this.mergeUnknownFields(other.getUnknownFields());
8653 public final boolean isInitialized() {
8657 public Builder mergeFrom(
8658 com.google.protobuf.CodedInputStream input,
8659 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8660 throws java.io.IOException {
8661 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8662 com.google.protobuf.UnknownFieldSet.newBuilder(
8663 this.getUnknownFields());
8665 int tag = input.readTag();
8668 this.setUnknownFields(unknownFields.build());
8672 if (!parseUnknownField(input, unknownFields,
8673 extensionRegistry, tag)) {
8674 this.setUnknownFields(unknownFields.build());
8681 int rawValue = input.readEnum();
8682 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
8683 if (value == null) {
8684 unknownFields.mergeVarintField(1, rawValue);
8686 bitField0_ |= 0x00000001;
8692 bitField0_ |= 0x00000002;
8693 message_ = input.readBytes();
8697 bitField0_ |= 0x00000004;
8698 status_ = input.readBool();
8705 private int bitField0_;
8707 // optional .openxc.ControlCommand.Type type = 1;
8708 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8709 public boolean hasType() {
8710 return ((bitField0_ & 0x00000001) == 0x00000001);
8712 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
8715 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
8716 if (value == null) {
8717 throw new NullPointerException();
8719 bitField0_ |= 0x00000001;
8724 public Builder clearType() {
8725 bitField0_ = (bitField0_ & ~0x00000001);
8726 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8731 // optional string message = 2;
8732 private java.lang.Object message_ = "";
8733 public boolean hasMessage() {
8734 return ((bitField0_ & 0x00000002) == 0x00000002);
8736 public String getMessage() {
8737 java.lang.Object ref = message_;
8738 if (!(ref instanceof String)) {
8739 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
8743 return (String) ref;
8746 public Builder setMessage(String value) {
8747 if (value == null) {
8748 throw new NullPointerException();
8750 bitField0_ |= 0x00000002;
8755 public Builder clearMessage() {
8756 bitField0_ = (bitField0_ & ~0x00000002);
8757 message_ = getDefaultInstance().getMessage();
8761 void setMessage(com.google.protobuf.ByteString value) {
8762 bitField0_ |= 0x00000002;
8767 // optional bool status = 3;
8768 private boolean status_ ;
8769 public boolean hasStatus() {
8770 return ((bitField0_ & 0x00000004) == 0x00000004);
8772 public boolean getStatus() {
8775 public Builder setStatus(boolean value) {
8776 bitField0_ |= 0x00000004;
8781 public Builder clearStatus() {
8782 bitField0_ = (bitField0_ & ~0x00000004);
8788 // @@protoc_insertion_point(builder_scope:openxc.CommandResponse)
8792 defaultInstance = new CommandResponse(true);
8793 defaultInstance.initFields();
8796 // @@protoc_insertion_point(class_scope:openxc.CommandResponse)
8799 public interface DiagnosticRequestOrBuilder
8800 extends com.google.protobuf.MessageOrBuilder {
8802 // optional int32 bus = 1;
8806 // optional uint32 message_id = 2;
8807 boolean hasMessageId();
8810 // optional uint32 mode = 3;
8814 // optional uint32 pid = 4;
8818 // optional bytes payload = 5;
8819 boolean hasPayload();
8820 com.google.protobuf.ByteString getPayload();
8822 // optional bool multiple_responses = 6;
8823 boolean hasMultipleResponses();
8824 boolean getMultipleResponses();
8826 // optional double frequency = 7;
8827 boolean hasFrequency();
8828 double getFrequency();
8830 // optional string name = 8;
8834 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
8835 boolean hasDecodedType();
8836 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType();
8838 public static final class DiagnosticRequest extends
8839 com.google.protobuf.GeneratedMessage
8840 implements DiagnosticRequestOrBuilder {
8841 // Use DiagnosticRequest.newBuilder() to construct.
8842 private DiagnosticRequest(Builder builder) {
8845 private DiagnosticRequest(boolean noInit) {}
8847 private static final DiagnosticRequest defaultInstance;
8848 public static DiagnosticRequest getDefaultInstance() {
8849 return defaultInstance;
8852 public DiagnosticRequest getDefaultInstanceForType() {
8853 return defaultInstance;
8856 public static final com.google.protobuf.Descriptors.Descriptor
8858 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
8861 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8862 internalGetFieldAccessorTable() {
8863 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
8866 public enum DecodedType
8867 implements com.google.protobuf.ProtocolMessageEnum {
8872 public static final int NONE_VALUE = 1;
8873 public static final int OBD2_VALUE = 2;
8876 public final int getNumber() { return value; }
8878 public static DecodedType valueOf(int value) {
8880 case 1: return NONE;
8881 case 2: return OBD2;
8882 default: return null;
8886 public static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
8887 internalGetValueMap() {
8888 return internalValueMap;
8890 private static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
8892 new com.google.protobuf.Internal.EnumLiteMap<DecodedType>() {
8893 public DecodedType findValueByNumber(int number) {
8894 return DecodedType.valueOf(number);
8898 public final com.google.protobuf.Descriptors.EnumValueDescriptor
8899 getValueDescriptor() {
8900 return getDescriptor().getValues().get(index);
8902 public final com.google.protobuf.Descriptors.EnumDescriptor
8903 getDescriptorForType() {
8904 return getDescriptor();
8906 public static final com.google.protobuf.Descriptors.EnumDescriptor
8908 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(0);
8911 private static final DecodedType[] VALUES = {
8915 public static DecodedType valueOf(
8916 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
8917 if (desc.getType() != getDescriptor()) {
8918 throw new java.lang.IllegalArgumentException(
8919 "EnumValueDescriptor is not for this type.");
8921 return VALUES[desc.getIndex()];
8924 private final int index;
8925 private final int value;
8927 private DecodedType(int index, int value) {
8932 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.DecodedType)
8935 private int bitField0_;
8936 // optional int32 bus = 1;
8937 public static final int BUS_FIELD_NUMBER = 1;
8939 public boolean hasBus() {
8940 return ((bitField0_ & 0x00000001) == 0x00000001);
8942 public int getBus() {
8946 // optional uint32 message_id = 2;
8947 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
8948 private int messageId_;
8949 public boolean hasMessageId() {
8950 return ((bitField0_ & 0x00000002) == 0x00000002);
8952 public int getMessageId() {
8956 // optional uint32 mode = 3;
8957 public static final int MODE_FIELD_NUMBER = 3;
8959 public boolean hasMode() {
8960 return ((bitField0_ & 0x00000004) == 0x00000004);
8962 public int getMode() {
8966 // optional uint32 pid = 4;
8967 public static final int PID_FIELD_NUMBER = 4;
8969 public boolean hasPid() {
8970 return ((bitField0_ & 0x00000008) == 0x00000008);
8972 public int getPid() {
8976 // optional bytes payload = 5;
8977 public static final int PAYLOAD_FIELD_NUMBER = 5;
8978 private com.google.protobuf.ByteString payload_;
8979 public boolean hasPayload() {
8980 return ((bitField0_ & 0x00000010) == 0x00000010);
8982 public com.google.protobuf.ByteString getPayload() {
8986 // optional bool multiple_responses = 6;
8987 public static final int MULTIPLE_RESPONSES_FIELD_NUMBER = 6;
8988 private boolean multipleResponses_;
8989 public boolean hasMultipleResponses() {
8990 return ((bitField0_ & 0x00000020) == 0x00000020);
8992 public boolean getMultipleResponses() {
8993 return multipleResponses_;
8996 // optional double frequency = 7;
8997 public static final int FREQUENCY_FIELD_NUMBER = 7;
8998 private double frequency_;
8999 public boolean hasFrequency() {
9000 return ((bitField0_ & 0x00000040) == 0x00000040);
9002 public double getFrequency() {
9006 // optional string name = 8;
9007 public static final int NAME_FIELD_NUMBER = 8;
9008 private java.lang.Object name_;
9009 public boolean hasName() {
9010 return ((bitField0_ & 0x00000080) == 0x00000080);
9012 public String getName() {
9013 java.lang.Object ref = name_;
9014 if (ref instanceof String) {
9015 return (String) ref;
9017 com.google.protobuf.ByteString bs =
9018 (com.google.protobuf.ByteString) ref;
9019 String s = bs.toStringUtf8();
9020 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
9026 private com.google.protobuf.ByteString getNameBytes() {
9027 java.lang.Object ref = name_;
9028 if (ref instanceof String) {
9029 com.google.protobuf.ByteString b =
9030 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
9034 return (com.google.protobuf.ByteString) ref;
9038 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
9039 public static final int DECODED_TYPE_FIELD_NUMBER = 9;
9040 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_;
9041 public boolean hasDecodedType() {
9042 return ((bitField0_ & 0x00000100) == 0x00000100);
9044 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
9045 return decodedType_;
9048 private void initFields() {
9053 payload_ = com.google.protobuf.ByteString.EMPTY;
9054 multipleResponses_ = false;
9057 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9059 private byte memoizedIsInitialized = -1;
9060 public final boolean isInitialized() {
9061 byte isInitialized = memoizedIsInitialized;
9062 if (isInitialized != -1) return isInitialized == 1;
9064 memoizedIsInitialized = 1;
9068 public void writeTo(com.google.protobuf.CodedOutputStream output)
9069 throws java.io.IOException {
9070 getSerializedSize();
9071 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9072 output.writeInt32(1, bus_);
9074 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9075 output.writeUInt32(2, messageId_);
9077 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9078 output.writeUInt32(3, mode_);
9080 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9081 output.writeUInt32(4, pid_);
9083 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9084 output.writeBytes(5, payload_);
9086 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9087 output.writeBool(6, multipleResponses_);
9089 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9090 output.writeDouble(7, frequency_);
9092 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9093 output.writeBytes(8, getNameBytes());
9095 if (((bitField0_ & 0x00000100) == 0x00000100)) {
9096 output.writeEnum(9, decodedType_.getNumber());
9098 getUnknownFields().writeTo(output);
9101 private int memoizedSerializedSize = -1;
9102 public int getSerializedSize() {
9103 int size = memoizedSerializedSize;
9104 if (size != -1) return size;
9107 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9108 size += com.google.protobuf.CodedOutputStream
9109 .computeInt32Size(1, bus_);
9111 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9112 size += com.google.protobuf.CodedOutputStream
9113 .computeUInt32Size(2, messageId_);
9115 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9116 size += com.google.protobuf.CodedOutputStream
9117 .computeUInt32Size(3, mode_);
9119 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9120 size += com.google.protobuf.CodedOutputStream
9121 .computeUInt32Size(4, pid_);
9123 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9124 size += com.google.protobuf.CodedOutputStream
9125 .computeBytesSize(5, payload_);
9127 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9128 size += com.google.protobuf.CodedOutputStream
9129 .computeBoolSize(6, multipleResponses_);
9131 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9132 size += com.google.protobuf.CodedOutputStream
9133 .computeDoubleSize(7, frequency_);
9135 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9136 size += com.google.protobuf.CodedOutputStream
9137 .computeBytesSize(8, getNameBytes());
9139 if (((bitField0_ & 0x00000100) == 0x00000100)) {
9140 size += com.google.protobuf.CodedOutputStream
9141 .computeEnumSize(9, decodedType_.getNumber());
9143 size += getUnknownFields().getSerializedSize();
9144 memoizedSerializedSize = size;
9148 private static final long serialVersionUID = 0L;
9150 protected java.lang.Object writeReplace()
9151 throws java.io.ObjectStreamException {
9152 return super.writeReplace();
9155 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9156 com.google.protobuf.ByteString data)
9157 throws com.google.protobuf.InvalidProtocolBufferException {
9158 return newBuilder().mergeFrom(data).buildParsed();
9160 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9161 com.google.protobuf.ByteString data,
9162 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9163 throws com.google.protobuf.InvalidProtocolBufferException {
9164 return newBuilder().mergeFrom(data, extensionRegistry)
9167 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
9168 throws com.google.protobuf.InvalidProtocolBufferException {
9169 return newBuilder().mergeFrom(data).buildParsed();
9171 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9173 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9174 throws com.google.protobuf.InvalidProtocolBufferException {
9175 return newBuilder().mergeFrom(data, extensionRegistry)
9178 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
9179 throws java.io.IOException {
9180 return newBuilder().mergeFrom(input).buildParsed();
9182 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9183 java.io.InputStream input,
9184 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9185 throws java.io.IOException {
9186 return newBuilder().mergeFrom(input, extensionRegistry)
9189 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
9190 throws java.io.IOException {
9191 Builder builder = newBuilder();
9192 if (builder.mergeDelimitedFrom(input)) {
9193 return builder.buildParsed();
9198 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
9199 java.io.InputStream input,
9200 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9201 throws java.io.IOException {
9202 Builder builder = newBuilder();
9203 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
9204 return builder.buildParsed();
9209 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9210 com.google.protobuf.CodedInputStream input)
9211 throws java.io.IOException {
9212 return newBuilder().mergeFrom(input).buildParsed();
9214 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9215 com.google.protobuf.CodedInputStream input,
9216 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9217 throws java.io.IOException {
9218 return newBuilder().mergeFrom(input, extensionRegistry)
9222 public static Builder newBuilder() { return Builder.create(); }
9223 public Builder newBuilderForType() { return newBuilder(); }
9224 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
9225 return newBuilder().mergeFrom(prototype);
9227 public Builder toBuilder() { return newBuilder(this); }
9230 protected Builder newBuilderForType(
9231 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9232 Builder builder = new Builder(parent);
9235 public static final class Builder extends
9236 com.google.protobuf.GeneratedMessage.Builder<Builder>
9237 implements com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
9238 public static final com.google.protobuf.Descriptors.Descriptor
9240 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
9243 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9244 internalGetFieldAccessorTable() {
9245 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
9248 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
9250 maybeForceBuilderInitialization();
9253 private Builder(BuilderParent parent) {
9255 maybeForceBuilderInitialization();
9257 private void maybeForceBuilderInitialization() {
9258 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
9261 private static Builder create() {
9262 return new Builder();
9265 public Builder clear() {
9268 bitField0_ = (bitField0_ & ~0x00000001);
9270 bitField0_ = (bitField0_ & ~0x00000002);
9272 bitField0_ = (bitField0_ & ~0x00000004);
9274 bitField0_ = (bitField0_ & ~0x00000008);
9275 payload_ = com.google.protobuf.ByteString.EMPTY;
9276 bitField0_ = (bitField0_ & ~0x00000010);
9277 multipleResponses_ = false;
9278 bitField0_ = (bitField0_ & ~0x00000020);
9280 bitField0_ = (bitField0_ & ~0x00000040);
9282 bitField0_ = (bitField0_ & ~0x00000080);
9283 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9284 bitField0_ = (bitField0_ & ~0x00000100);
9288 public Builder clone() {
9289 return create().mergeFrom(buildPartial());
9292 public com.google.protobuf.Descriptors.Descriptor
9293 getDescriptorForType() {
9294 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor();
9297 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
9298 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
9301 public com.openxc.BinaryMessages.DiagnosticRequest build() {
9302 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
9303 if (!result.isInitialized()) {
9304 throw newUninitializedMessageException(result);
9309 private com.openxc.BinaryMessages.DiagnosticRequest buildParsed()
9310 throws com.google.protobuf.InvalidProtocolBufferException {
9311 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
9312 if (!result.isInitialized()) {
9313 throw newUninitializedMessageException(
9314 result).asInvalidProtocolBufferException();
9319 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
9320 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
9321 int from_bitField0_ = bitField0_;
9322 int to_bitField0_ = 0;
9323 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
9324 to_bitField0_ |= 0x00000001;
9327 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
9328 to_bitField0_ |= 0x00000002;
9330 result.messageId_ = messageId_;
9331 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
9332 to_bitField0_ |= 0x00000004;
9334 result.mode_ = mode_;
9335 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
9336 to_bitField0_ |= 0x00000008;
9339 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
9340 to_bitField0_ |= 0x00000010;
9342 result.payload_ = payload_;
9343 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
9344 to_bitField0_ |= 0x00000020;
9346 result.multipleResponses_ = multipleResponses_;
9347 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
9348 to_bitField0_ |= 0x00000040;
9350 result.frequency_ = frequency_;
9351 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
9352 to_bitField0_ |= 0x00000080;
9354 result.name_ = name_;
9355 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
9356 to_bitField0_ |= 0x00000100;
9358 result.decodedType_ = decodedType_;
9359 result.bitField0_ = to_bitField0_;
9364 public Builder mergeFrom(com.google.protobuf.Message other) {
9365 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
9366 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
9368 super.mergeFrom(other);
9373 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
9374 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
9375 if (other.hasBus()) {
9376 setBus(other.getBus());
9378 if (other.hasMessageId()) {
9379 setMessageId(other.getMessageId());
9381 if (other.hasMode()) {
9382 setMode(other.getMode());
9384 if (other.hasPid()) {
9385 setPid(other.getPid());
9387 if (other.hasPayload()) {
9388 setPayload(other.getPayload());
9390 if (other.hasMultipleResponses()) {
9391 setMultipleResponses(other.getMultipleResponses());
9393 if (other.hasFrequency()) {
9394 setFrequency(other.getFrequency());
9396 if (other.hasName()) {
9397 setName(other.getName());
9399 if (other.hasDecodedType()) {
9400 setDecodedType(other.getDecodedType());
9402 this.mergeUnknownFields(other.getUnknownFields());
9406 public final boolean isInitialized() {
9410 public Builder mergeFrom(
9411 com.google.protobuf.CodedInputStream input,
9412 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9413 throws java.io.IOException {
9414 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
9415 com.google.protobuf.UnknownFieldSet.newBuilder(
9416 this.getUnknownFields());
9418 int tag = input.readTag();
9421 this.setUnknownFields(unknownFields.build());
9425 if (!parseUnknownField(input, unknownFields,
9426 extensionRegistry, tag)) {
9427 this.setUnknownFields(unknownFields.build());
9434 bitField0_ |= 0x00000001;
9435 bus_ = input.readInt32();
9439 bitField0_ |= 0x00000002;
9440 messageId_ = input.readUInt32();
9444 bitField0_ |= 0x00000004;
9445 mode_ = input.readUInt32();
9449 bitField0_ |= 0x00000008;
9450 pid_ = input.readUInt32();
9454 bitField0_ |= 0x00000010;
9455 payload_ = input.readBytes();
9459 bitField0_ |= 0x00000020;
9460 multipleResponses_ = input.readBool();
9464 bitField0_ |= 0x00000040;
9465 frequency_ = input.readDouble();
9469 bitField0_ |= 0x00000080;
9470 name_ = input.readBytes();
9474 int rawValue = input.readEnum();
9475 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.valueOf(rawValue);
9476 if (value == null) {
9477 unknownFields.mergeVarintField(9, rawValue);
9479 bitField0_ |= 0x00000100;
9480 decodedType_ = value;
9488 private int bitField0_;
9490 // optional int32 bus = 1;
9492 public boolean hasBus() {
9493 return ((bitField0_ & 0x00000001) == 0x00000001);
9495 public int getBus() {
9498 public Builder setBus(int value) {
9499 bitField0_ |= 0x00000001;
9504 public Builder clearBus() {
9505 bitField0_ = (bitField0_ & ~0x00000001);
9511 // optional uint32 message_id = 2;
9512 private int messageId_ ;
9513 public boolean hasMessageId() {
9514 return ((bitField0_ & 0x00000002) == 0x00000002);
9516 public int getMessageId() {
9519 public Builder setMessageId(int value) {
9520 bitField0_ |= 0x00000002;
9525 public Builder clearMessageId() {
9526 bitField0_ = (bitField0_ & ~0x00000002);
9532 // optional uint32 mode = 3;
9534 public boolean hasMode() {
9535 return ((bitField0_ & 0x00000004) == 0x00000004);
9537 public int getMode() {
9540 public Builder setMode(int value) {
9541 bitField0_ |= 0x00000004;
9546 public Builder clearMode() {
9547 bitField0_ = (bitField0_ & ~0x00000004);
9553 // optional uint32 pid = 4;
9555 public boolean hasPid() {
9556 return ((bitField0_ & 0x00000008) == 0x00000008);
9558 public int getPid() {
9561 public Builder setPid(int value) {
9562 bitField0_ |= 0x00000008;
9567 public Builder clearPid() {
9568 bitField0_ = (bitField0_ & ~0x00000008);
9574 // optional bytes payload = 5;
9575 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
9576 public boolean hasPayload() {
9577 return ((bitField0_ & 0x00000010) == 0x00000010);
9579 public com.google.protobuf.ByteString getPayload() {
9582 public Builder setPayload(com.google.protobuf.ByteString value) {
9583 if (value == null) {
9584 throw new NullPointerException();
9586 bitField0_ |= 0x00000010;
9591 public Builder clearPayload() {
9592 bitField0_ = (bitField0_ & ~0x00000010);
9593 payload_ = getDefaultInstance().getPayload();
9598 // optional bool multiple_responses = 6;
9599 private boolean multipleResponses_ ;
9600 public boolean hasMultipleResponses() {
9601 return ((bitField0_ & 0x00000020) == 0x00000020);
9603 public boolean getMultipleResponses() {
9604 return multipleResponses_;
9606 public Builder setMultipleResponses(boolean value) {
9607 bitField0_ |= 0x00000020;
9608 multipleResponses_ = value;
9612 public Builder clearMultipleResponses() {
9613 bitField0_ = (bitField0_ & ~0x00000020);
9614 multipleResponses_ = false;
9619 // optional double frequency = 7;
9620 private double frequency_ ;
9621 public boolean hasFrequency() {
9622 return ((bitField0_ & 0x00000040) == 0x00000040);
9624 public double getFrequency() {
9627 public Builder setFrequency(double value) {
9628 bitField0_ |= 0x00000040;
9633 public Builder clearFrequency() {
9634 bitField0_ = (bitField0_ & ~0x00000040);
9640 // optional string name = 8;
9641 private java.lang.Object name_ = "";
9642 public boolean hasName() {
9643 return ((bitField0_ & 0x00000080) == 0x00000080);
9645 public String getName() {
9646 java.lang.Object ref = name_;
9647 if (!(ref instanceof String)) {
9648 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
9652 return (String) ref;
9655 public Builder setName(String value) {
9656 if (value == null) {
9657 throw new NullPointerException();
9659 bitField0_ |= 0x00000080;
9664 public Builder clearName() {
9665 bitField0_ = (bitField0_ & ~0x00000080);
9666 name_ = getDefaultInstance().getName();
9670 void setName(com.google.protobuf.ByteString value) {
9671 bitField0_ |= 0x00000080;
9676 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
9677 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9678 public boolean hasDecodedType() {
9679 return ((bitField0_ & 0x00000100) == 0x00000100);
9681 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
9682 return decodedType_;
9684 public Builder setDecodedType(com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value) {
9685 if (value == null) {
9686 throw new NullPointerException();
9688 bitField0_ |= 0x00000100;
9689 decodedType_ = value;
9693 public Builder clearDecodedType() {
9694 bitField0_ = (bitField0_ & ~0x00000100);
9695 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9700 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
9704 defaultInstance = new DiagnosticRequest(true);
9705 defaultInstance.initFields();
9708 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
9711 public interface DiagnosticResponseOrBuilder
9712 extends com.google.protobuf.MessageOrBuilder {
9714 // optional int32 bus = 1;
9718 // optional uint32 message_id = 2;
9719 boolean hasMessageId();
9722 // optional uint32 mode = 3;
9726 // optional uint32 pid = 4;
9730 // optional bool success = 5;
9731 boolean hasSuccess();
9732 boolean getSuccess();
9734 // optional uint32 negative_response_code = 6;
9735 boolean hasNegativeResponseCode();
9736 int getNegativeResponseCode();
9738 // optional bytes payload = 7;
9739 boolean hasPayload();
9740 com.google.protobuf.ByteString getPayload();
9742 // optional double value = 8;
9746 public static final class DiagnosticResponse extends
9747 com.google.protobuf.GeneratedMessage
9748 implements DiagnosticResponseOrBuilder {
9749 // Use DiagnosticResponse.newBuilder() to construct.
9750 private DiagnosticResponse(Builder builder) {
9753 private DiagnosticResponse(boolean noInit) {}
9755 private static final DiagnosticResponse defaultInstance;
9756 public static DiagnosticResponse getDefaultInstance() {
9757 return defaultInstance;
9760 public DiagnosticResponse getDefaultInstanceForType() {
9761 return defaultInstance;
9764 public static final com.google.protobuf.Descriptors.Descriptor
9766 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
9769 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9770 internalGetFieldAccessorTable() {
9771 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
9774 private int bitField0_;
9775 // optional int32 bus = 1;
9776 public static final int BUS_FIELD_NUMBER = 1;
9778 public boolean hasBus() {
9779 return ((bitField0_ & 0x00000001) == 0x00000001);
9781 public int getBus() {
9785 // optional uint32 message_id = 2;
9786 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
9787 private int messageId_;
9788 public boolean hasMessageId() {
9789 return ((bitField0_ & 0x00000002) == 0x00000002);
9791 public int getMessageId() {
9795 // optional uint32 mode = 3;
9796 public static final int MODE_FIELD_NUMBER = 3;
9798 public boolean hasMode() {
9799 return ((bitField0_ & 0x00000004) == 0x00000004);
9801 public int getMode() {
9805 // optional uint32 pid = 4;
9806 public static final int PID_FIELD_NUMBER = 4;
9808 public boolean hasPid() {
9809 return ((bitField0_ & 0x00000008) == 0x00000008);
9811 public int getPid() {
9815 // optional bool success = 5;
9816 public static final int SUCCESS_FIELD_NUMBER = 5;
9817 private boolean success_;
9818 public boolean hasSuccess() {
9819 return ((bitField0_ & 0x00000010) == 0x00000010);
9821 public boolean getSuccess() {
9825 // optional uint32 negative_response_code = 6;
9826 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
9827 private int negativeResponseCode_;
9828 public boolean hasNegativeResponseCode() {
9829 return ((bitField0_ & 0x00000020) == 0x00000020);
9831 public int getNegativeResponseCode() {
9832 return negativeResponseCode_;
9835 // optional bytes payload = 7;
9836 public static final int PAYLOAD_FIELD_NUMBER = 7;
9837 private com.google.protobuf.ByteString payload_;
9838 public boolean hasPayload() {
9839 return ((bitField0_ & 0x00000040) == 0x00000040);
9841 public com.google.protobuf.ByteString getPayload() {
9845 // optional double value = 8;
9846 public static final int VALUE_FIELD_NUMBER = 8;
9847 private double value_;
9848 public boolean hasValue() {
9849 return ((bitField0_ & 0x00000080) == 0x00000080);
9851 public double getValue() {
9855 private void initFields() {
9861 negativeResponseCode_ = 0;
9862 payload_ = com.google.protobuf.ByteString.EMPTY;
9865 private byte memoizedIsInitialized = -1;
9866 public final boolean isInitialized() {
9867 byte isInitialized = memoizedIsInitialized;
9868 if (isInitialized != -1) return isInitialized == 1;
9870 memoizedIsInitialized = 1;
9874 public void writeTo(com.google.protobuf.CodedOutputStream output)
9875 throws java.io.IOException {
9876 getSerializedSize();
9877 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9878 output.writeInt32(1, bus_);
9880 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9881 output.writeUInt32(2, messageId_);
9883 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9884 output.writeUInt32(3, mode_);
9886 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9887 output.writeUInt32(4, pid_);
9889 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9890 output.writeBool(5, success_);
9892 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9893 output.writeUInt32(6, negativeResponseCode_);
9895 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9896 output.writeBytes(7, payload_);
9898 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9899 output.writeDouble(8, value_);
9901 getUnknownFields().writeTo(output);
9904 private int memoizedSerializedSize = -1;
9905 public int getSerializedSize() {
9906 int size = memoizedSerializedSize;
9907 if (size != -1) return size;
9910 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9911 size += com.google.protobuf.CodedOutputStream
9912 .computeInt32Size(1, bus_);
9914 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9915 size += com.google.protobuf.CodedOutputStream
9916 .computeUInt32Size(2, messageId_);
9918 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9919 size += com.google.protobuf.CodedOutputStream
9920 .computeUInt32Size(3, mode_);
9922 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9923 size += com.google.protobuf.CodedOutputStream
9924 .computeUInt32Size(4, pid_);
9926 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9927 size += com.google.protobuf.CodedOutputStream
9928 .computeBoolSize(5, success_);
9930 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9931 size += com.google.protobuf.CodedOutputStream
9932 .computeUInt32Size(6, negativeResponseCode_);
9934 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9935 size += com.google.protobuf.CodedOutputStream
9936 .computeBytesSize(7, payload_);
9938 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9939 size += com.google.protobuf.CodedOutputStream
9940 .computeDoubleSize(8, value_);
9942 size += getUnknownFields().getSerializedSize();
9943 memoizedSerializedSize = size;
9947 private static final long serialVersionUID = 0L;
9949 protected java.lang.Object writeReplace()
9950 throws java.io.ObjectStreamException {
9951 return super.writeReplace();
9954 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9955 com.google.protobuf.ByteString data)
9956 throws com.google.protobuf.InvalidProtocolBufferException {
9957 return newBuilder().mergeFrom(data).buildParsed();
9959 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9960 com.google.protobuf.ByteString data,
9961 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9962 throws com.google.protobuf.InvalidProtocolBufferException {
9963 return newBuilder().mergeFrom(data, extensionRegistry)
9966 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
9967 throws com.google.protobuf.InvalidProtocolBufferException {
9968 return newBuilder().mergeFrom(data).buildParsed();
9970 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9972 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9973 throws com.google.protobuf.InvalidProtocolBufferException {
9974 return newBuilder().mergeFrom(data, extensionRegistry)
9977 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
9978 throws java.io.IOException {
9979 return newBuilder().mergeFrom(input).buildParsed();
9981 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9982 java.io.InputStream input,
9983 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9984 throws java.io.IOException {
9985 return newBuilder().mergeFrom(input, extensionRegistry)
9988 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
9989 throws java.io.IOException {
9990 Builder builder = newBuilder();
9991 if (builder.mergeDelimitedFrom(input)) {
9992 return builder.buildParsed();
9997 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
9998 java.io.InputStream input,
9999 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10000 throws java.io.IOException {
10001 Builder builder = newBuilder();
10002 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
10003 return builder.buildParsed();
10008 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
10009 com.google.protobuf.CodedInputStream input)
10010 throws java.io.IOException {
10011 return newBuilder().mergeFrom(input).buildParsed();
10013 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
10014 com.google.protobuf.CodedInputStream input,
10015 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10016 throws java.io.IOException {
10017 return newBuilder().mergeFrom(input, extensionRegistry)
10021 public static Builder newBuilder() { return Builder.create(); }
10022 public Builder newBuilderForType() { return newBuilder(); }
10023 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
10024 return newBuilder().mergeFrom(prototype);
10026 public Builder toBuilder() { return newBuilder(this); }
10028 @java.lang.Override
10029 protected Builder newBuilderForType(
10030 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10031 Builder builder = new Builder(parent);
10034 public static final class Builder extends
10035 com.google.protobuf.GeneratedMessage.Builder<Builder>
10036 implements com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
10037 public static final com.google.protobuf.Descriptors.Descriptor
10039 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
10042 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10043 internalGetFieldAccessorTable() {
10044 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
10047 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
10048 private Builder() {
10049 maybeForceBuilderInitialization();
10052 private Builder(BuilderParent parent) {
10054 maybeForceBuilderInitialization();
10056 private void maybeForceBuilderInitialization() {
10057 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
10060 private static Builder create() {
10061 return new Builder();
10064 public Builder clear() {
10067 bitField0_ = (bitField0_ & ~0x00000001);
10069 bitField0_ = (bitField0_ & ~0x00000002);
10071 bitField0_ = (bitField0_ & ~0x00000004);
10073 bitField0_ = (bitField0_ & ~0x00000008);
10075 bitField0_ = (bitField0_ & ~0x00000010);
10076 negativeResponseCode_ = 0;
10077 bitField0_ = (bitField0_ & ~0x00000020);
10078 payload_ = com.google.protobuf.ByteString.EMPTY;
10079 bitField0_ = (bitField0_ & ~0x00000040);
10081 bitField0_ = (bitField0_ & ~0x00000080);
10085 public Builder clone() {
10086 return create().mergeFrom(buildPartial());
10089 public com.google.protobuf.Descriptors.Descriptor
10090 getDescriptorForType() {
10091 return com.openxc.BinaryMessages.DiagnosticResponse.getDescriptor();
10094 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
10095 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
10098 public com.openxc.BinaryMessages.DiagnosticResponse build() {
10099 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
10100 if (!result.isInitialized()) {
10101 throw newUninitializedMessageException(result);
10106 private com.openxc.BinaryMessages.DiagnosticResponse buildParsed()
10107 throws com.google.protobuf.InvalidProtocolBufferException {
10108 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
10109 if (!result.isInitialized()) {
10110 throw newUninitializedMessageException(
10111 result).asInvalidProtocolBufferException();
10116 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
10117 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
10118 int from_bitField0_ = bitField0_;
10119 int to_bitField0_ = 0;
10120 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
10121 to_bitField0_ |= 0x00000001;
10123 result.bus_ = bus_;
10124 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
10125 to_bitField0_ |= 0x00000002;
10127 result.messageId_ = messageId_;
10128 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
10129 to_bitField0_ |= 0x00000004;
10131 result.mode_ = mode_;
10132 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
10133 to_bitField0_ |= 0x00000008;
10135 result.pid_ = pid_;
10136 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
10137 to_bitField0_ |= 0x00000010;
10139 result.success_ = success_;
10140 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
10141 to_bitField0_ |= 0x00000020;
10143 result.negativeResponseCode_ = negativeResponseCode_;
10144 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
10145 to_bitField0_ |= 0x00000040;
10147 result.payload_ = payload_;
10148 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
10149 to_bitField0_ |= 0x00000080;
10151 result.value_ = value_;
10152 result.bitField0_ = to_bitField0_;
10157 public Builder mergeFrom(com.google.protobuf.Message other) {
10158 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
10159 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
10161 super.mergeFrom(other);
10166 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
10167 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
10168 if (other.hasBus()) {
10169 setBus(other.getBus());
10171 if (other.hasMessageId()) {
10172 setMessageId(other.getMessageId());
10174 if (other.hasMode()) {
10175 setMode(other.getMode());
10177 if (other.hasPid()) {
10178 setPid(other.getPid());
10180 if (other.hasSuccess()) {
10181 setSuccess(other.getSuccess());
10183 if (other.hasNegativeResponseCode()) {
10184 setNegativeResponseCode(other.getNegativeResponseCode());
10186 if (other.hasPayload()) {
10187 setPayload(other.getPayload());
10189 if (other.hasValue()) {
10190 setValue(other.getValue());
10192 this.mergeUnknownFields(other.getUnknownFields());
10196 public final boolean isInitialized() {
10200 public Builder mergeFrom(
10201 com.google.protobuf.CodedInputStream input,
10202 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10203 throws java.io.IOException {
10204 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
10205 com.google.protobuf.UnknownFieldSet.newBuilder(
10206 this.getUnknownFields());
10208 int tag = input.readTag();
10211 this.setUnknownFields(unknownFields.build());
10215 if (!parseUnknownField(input, unknownFields,
10216 extensionRegistry, tag)) {
10217 this.setUnknownFields(unknownFields.build());
10224 bitField0_ |= 0x00000001;
10225 bus_ = input.readInt32();
10229 bitField0_ |= 0x00000002;
10230 messageId_ = input.readUInt32();
10234 bitField0_ |= 0x00000004;
10235 mode_ = input.readUInt32();
10239 bitField0_ |= 0x00000008;
10240 pid_ = input.readUInt32();
10244 bitField0_ |= 0x00000010;
10245 success_ = input.readBool();
10249 bitField0_ |= 0x00000020;
10250 negativeResponseCode_ = input.readUInt32();
10254 bitField0_ |= 0x00000040;
10255 payload_ = input.readBytes();
10259 bitField0_ |= 0x00000080;
10260 value_ = input.readDouble();
10267 private int bitField0_;
10269 // optional int32 bus = 1;
10271 public boolean hasBus() {
10272 return ((bitField0_ & 0x00000001) == 0x00000001);
10274 public int getBus() {
10277 public Builder setBus(int value) {
10278 bitField0_ |= 0x00000001;
10283 public Builder clearBus() {
10284 bitField0_ = (bitField0_ & ~0x00000001);
10290 // optional uint32 message_id = 2;
10291 private int messageId_ ;
10292 public boolean hasMessageId() {
10293 return ((bitField0_ & 0x00000002) == 0x00000002);
10295 public int getMessageId() {
10298 public Builder setMessageId(int value) {
10299 bitField0_ |= 0x00000002;
10300 messageId_ = value;
10304 public Builder clearMessageId() {
10305 bitField0_ = (bitField0_ & ~0x00000002);
10311 // optional uint32 mode = 3;
10312 private int mode_ ;
10313 public boolean hasMode() {
10314 return ((bitField0_ & 0x00000004) == 0x00000004);
10316 public int getMode() {
10319 public Builder setMode(int value) {
10320 bitField0_ |= 0x00000004;
10325 public Builder clearMode() {
10326 bitField0_ = (bitField0_ & ~0x00000004);
10332 // optional uint32 pid = 4;
10334 public boolean hasPid() {
10335 return ((bitField0_ & 0x00000008) == 0x00000008);
10337 public int getPid() {
10340 public Builder setPid(int value) {
10341 bitField0_ |= 0x00000008;
10346 public Builder clearPid() {
10347 bitField0_ = (bitField0_ & ~0x00000008);
10353 // optional bool success = 5;
10354 private boolean success_ ;
10355 public boolean hasSuccess() {
10356 return ((bitField0_ & 0x00000010) == 0x00000010);
10358 public boolean getSuccess() {
10361 public Builder setSuccess(boolean value) {
10362 bitField0_ |= 0x00000010;
10367 public Builder clearSuccess() {
10368 bitField0_ = (bitField0_ & ~0x00000010);
10374 // optional uint32 negative_response_code = 6;
10375 private int negativeResponseCode_ ;
10376 public boolean hasNegativeResponseCode() {
10377 return ((bitField0_ & 0x00000020) == 0x00000020);
10379 public int getNegativeResponseCode() {
10380 return negativeResponseCode_;
10382 public Builder setNegativeResponseCode(int value) {
10383 bitField0_ |= 0x00000020;
10384 negativeResponseCode_ = value;
10388 public Builder clearNegativeResponseCode() {
10389 bitField0_ = (bitField0_ & ~0x00000020);
10390 negativeResponseCode_ = 0;
10395 // optional bytes payload = 7;
10396 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
10397 public boolean hasPayload() {
10398 return ((bitField0_ & 0x00000040) == 0x00000040);
10400 public com.google.protobuf.ByteString getPayload() {
10403 public Builder setPayload(com.google.protobuf.ByteString value) {
10404 if (value == null) {
10405 throw new NullPointerException();
10407 bitField0_ |= 0x00000040;
10412 public Builder clearPayload() {
10413 bitField0_ = (bitField0_ & ~0x00000040);
10414 payload_ = getDefaultInstance().getPayload();
10419 // optional double value = 8;
10420 private double value_ ;
10421 public boolean hasValue() {
10422 return ((bitField0_ & 0x00000080) == 0x00000080);
10424 public double getValue() {
10427 public Builder setValue(double value) {
10428 bitField0_ |= 0x00000080;
10433 public Builder clearValue() {
10434 bitField0_ = (bitField0_ & ~0x00000080);
10440 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
10444 defaultInstance = new DiagnosticResponse(true);
10445 defaultInstance.initFields();
10448 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
10451 public interface DynamicFieldOrBuilder
10452 extends com.google.protobuf.MessageOrBuilder {
10454 // optional .openxc.DynamicField.Type type = 1;
10456 com.openxc.BinaryMessages.DynamicField.Type getType();
10458 // optional string string_value = 2;
10459 boolean hasStringValue();
10460 String getStringValue();
10462 // optional double numeric_value = 3;
10463 boolean hasNumericValue();
10464 double getNumericValue();
10466 // optional bool boolean_value = 4;
10467 boolean hasBooleanValue();
10468 boolean getBooleanValue();
10470 public static final class DynamicField extends
10471 com.google.protobuf.GeneratedMessage
10472 implements DynamicFieldOrBuilder {
10473 // Use DynamicField.newBuilder() to construct.
10474 private DynamicField(Builder builder) {
10477 private DynamicField(boolean noInit) {}
10479 private static final DynamicField defaultInstance;
10480 public static DynamicField getDefaultInstance() {
10481 return defaultInstance;
10484 public DynamicField getDefaultInstanceForType() {
10485 return defaultInstance;
10488 public static final com.google.protobuf.Descriptors.Descriptor
10490 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
10493 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10494 internalGetFieldAccessorTable() {
10495 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable;
10499 implements com.google.protobuf.ProtocolMessageEnum {
10505 public static final int STRING_VALUE = 1;
10506 public static final int NUM_VALUE = 2;
10507 public static final int BOOL_VALUE = 3;
10510 public final int getNumber() { return value; }
10512 public static Type valueOf(int value) {
10514 case 1: return STRING;
10515 case 2: return NUM;
10516 case 3: return BOOL;
10517 default: return null;
10521 public static com.google.protobuf.Internal.EnumLiteMap<Type>
10522 internalGetValueMap() {
10523 return internalValueMap;
10525 private static com.google.protobuf.Internal.EnumLiteMap<Type>
10527 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
10528 public Type findValueByNumber(int number) {
10529 return Type.valueOf(number);
10533 public final com.google.protobuf.Descriptors.EnumValueDescriptor
10534 getValueDescriptor() {
10535 return getDescriptor().getValues().get(index);
10537 public final com.google.protobuf.Descriptors.EnumDescriptor
10538 getDescriptorForType() {
10539 return getDescriptor();
10541 public static final com.google.protobuf.Descriptors.EnumDescriptor
10543 return com.openxc.BinaryMessages.DynamicField.getDescriptor().getEnumTypes().get(0);
10546 private static final Type[] VALUES = {
10550 public static Type valueOf(
10551 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
10552 if (desc.getType() != getDescriptor()) {
10553 throw new java.lang.IllegalArgumentException(
10554 "EnumValueDescriptor is not for this type.");
10556 return VALUES[desc.getIndex()];
10559 private final int index;
10560 private final int value;
10562 private Type(int index, int value) {
10563 this.index = index;
10564 this.value = value;
10567 // @@protoc_insertion_point(enum_scope:openxc.DynamicField.Type)
10570 private int bitField0_;
10571 // optional .openxc.DynamicField.Type type = 1;
10572 public static final int TYPE_FIELD_NUMBER = 1;
10573 private com.openxc.BinaryMessages.DynamicField.Type type_;
10574 public boolean hasType() {
10575 return ((bitField0_ & 0x00000001) == 0x00000001);
10577 public com.openxc.BinaryMessages.DynamicField.Type getType() {
10581 // optional string string_value = 2;
10582 public static final int STRING_VALUE_FIELD_NUMBER = 2;
10583 private java.lang.Object stringValue_;
10584 public boolean hasStringValue() {
10585 return ((bitField0_ & 0x00000002) == 0x00000002);
10587 public String getStringValue() {
10588 java.lang.Object ref = stringValue_;
10589 if (ref instanceof String) {
10590 return (String) ref;
10592 com.google.protobuf.ByteString bs =
10593 (com.google.protobuf.ByteString) ref;
10594 String s = bs.toStringUtf8();
10595 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
10601 private com.google.protobuf.ByteString getStringValueBytes() {
10602 java.lang.Object ref = stringValue_;
10603 if (ref instanceof String) {
10604 com.google.protobuf.ByteString b =
10605 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
10609 return (com.google.protobuf.ByteString) ref;
10613 // optional double numeric_value = 3;
10614 public static final int NUMERIC_VALUE_FIELD_NUMBER = 3;
10615 private double numericValue_;
10616 public boolean hasNumericValue() {
10617 return ((bitField0_ & 0x00000004) == 0x00000004);
10619 public double getNumericValue() {
10620 return numericValue_;
10623 // optional bool boolean_value = 4;
10624 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4;
10625 private boolean booleanValue_;
10626 public boolean hasBooleanValue() {
10627 return ((bitField0_ & 0x00000008) == 0x00000008);
10629 public boolean getBooleanValue() {
10630 return booleanValue_;
10633 private void initFields() {
10634 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10636 numericValue_ = 0D;
10637 booleanValue_ = false;
10639 private byte memoizedIsInitialized = -1;
10640 public final boolean isInitialized() {
10641 byte isInitialized = memoizedIsInitialized;
10642 if (isInitialized != -1) return isInitialized == 1;
10644 memoizedIsInitialized = 1;
10648 public void writeTo(com.google.protobuf.CodedOutputStream output)
10649 throws java.io.IOException {
10650 getSerializedSize();
10651 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10652 output.writeEnum(1, type_.getNumber());
10654 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10655 output.writeBytes(2, getStringValueBytes());
10657 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10658 output.writeDouble(3, numericValue_);
10660 if (((bitField0_ & 0x00000008) == 0x00000008)) {
10661 output.writeBool(4, booleanValue_);
10663 getUnknownFields().writeTo(output);
10666 private int memoizedSerializedSize = -1;
10667 public int getSerializedSize() {
10668 int size = memoizedSerializedSize;
10669 if (size != -1) return size;
10672 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10673 size += com.google.protobuf.CodedOutputStream
10674 .computeEnumSize(1, type_.getNumber());
10676 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10677 size += com.google.protobuf.CodedOutputStream
10678 .computeBytesSize(2, getStringValueBytes());
10680 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10681 size += com.google.protobuf.CodedOutputStream
10682 .computeDoubleSize(3, numericValue_);
10684 if (((bitField0_ & 0x00000008) == 0x00000008)) {
10685 size += com.google.protobuf.CodedOutputStream
10686 .computeBoolSize(4, booleanValue_);
10688 size += getUnknownFields().getSerializedSize();
10689 memoizedSerializedSize = size;
10693 private static final long serialVersionUID = 0L;
10694 @java.lang.Override
10695 protected java.lang.Object writeReplace()
10696 throws java.io.ObjectStreamException {
10697 return super.writeReplace();
10700 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10701 com.google.protobuf.ByteString data)
10702 throws com.google.protobuf.InvalidProtocolBufferException {
10703 return newBuilder().mergeFrom(data).buildParsed();
10705 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10706 com.google.protobuf.ByteString data,
10707 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10708 throws com.google.protobuf.InvalidProtocolBufferException {
10709 return newBuilder().mergeFrom(data, extensionRegistry)
10712 public static com.openxc.BinaryMessages.DynamicField parseFrom(byte[] data)
10713 throws com.google.protobuf.InvalidProtocolBufferException {
10714 return newBuilder().mergeFrom(data).buildParsed();
10716 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10718 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10719 throws com.google.protobuf.InvalidProtocolBufferException {
10720 return newBuilder().mergeFrom(data, extensionRegistry)
10723 public static com.openxc.BinaryMessages.DynamicField parseFrom(java.io.InputStream input)
10724 throws java.io.IOException {
10725 return newBuilder().mergeFrom(input).buildParsed();
10727 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10728 java.io.InputStream input,
10729 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10730 throws java.io.IOException {
10731 return newBuilder().mergeFrom(input, extensionRegistry)
10734 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(java.io.InputStream input)
10735 throws java.io.IOException {
10736 Builder builder = newBuilder();
10737 if (builder.mergeDelimitedFrom(input)) {
10738 return builder.buildParsed();
10743 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(
10744 java.io.InputStream input,
10745 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10746 throws java.io.IOException {
10747 Builder builder = newBuilder();
10748 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
10749 return builder.buildParsed();
10754 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10755 com.google.protobuf.CodedInputStream input)
10756 throws java.io.IOException {
10757 return newBuilder().mergeFrom(input).buildParsed();
10759 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10760 com.google.protobuf.CodedInputStream input,
10761 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10762 throws java.io.IOException {
10763 return newBuilder().mergeFrom(input, extensionRegistry)
10767 public static Builder newBuilder() { return Builder.create(); }
10768 public Builder newBuilderForType() { return newBuilder(); }
10769 public static Builder newBuilder(com.openxc.BinaryMessages.DynamicField prototype) {
10770 return newBuilder().mergeFrom(prototype);
10772 public Builder toBuilder() { return newBuilder(this); }
10774 @java.lang.Override
10775 protected Builder newBuilderForType(
10776 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10777 Builder builder = new Builder(parent);
10780 public static final class Builder extends
10781 com.google.protobuf.GeneratedMessage.Builder<Builder>
10782 implements com.openxc.BinaryMessages.DynamicFieldOrBuilder {
10783 public static final com.google.protobuf.Descriptors.Descriptor
10785 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
10788 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10789 internalGetFieldAccessorTable() {
10790 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable;
10793 // Construct using com.openxc.BinaryMessages.DynamicField.newBuilder()
10794 private Builder() {
10795 maybeForceBuilderInitialization();
10798 private Builder(BuilderParent parent) {
10800 maybeForceBuilderInitialization();
10802 private void maybeForceBuilderInitialization() {
10803 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
10806 private static Builder create() {
10807 return new Builder();
10810 public Builder clear() {
10812 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10813 bitField0_ = (bitField0_ & ~0x00000001);
10815 bitField0_ = (bitField0_ & ~0x00000002);
10816 numericValue_ = 0D;
10817 bitField0_ = (bitField0_ & ~0x00000004);
10818 booleanValue_ = false;
10819 bitField0_ = (bitField0_ & ~0x00000008);
10823 public Builder clone() {
10824 return create().mergeFrom(buildPartial());
10827 public com.google.protobuf.Descriptors.Descriptor
10828 getDescriptorForType() {
10829 return com.openxc.BinaryMessages.DynamicField.getDescriptor();
10832 public com.openxc.BinaryMessages.DynamicField getDefaultInstanceForType() {
10833 return com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10836 public com.openxc.BinaryMessages.DynamicField build() {
10837 com.openxc.BinaryMessages.DynamicField result = buildPartial();
10838 if (!result.isInitialized()) {
10839 throw newUninitializedMessageException(result);
10844 private com.openxc.BinaryMessages.DynamicField buildParsed()
10845 throws com.google.protobuf.InvalidProtocolBufferException {
10846 com.openxc.BinaryMessages.DynamicField result = buildPartial();
10847 if (!result.isInitialized()) {
10848 throw newUninitializedMessageException(
10849 result).asInvalidProtocolBufferException();
10854 public com.openxc.BinaryMessages.DynamicField buildPartial() {
10855 com.openxc.BinaryMessages.DynamicField result = new com.openxc.BinaryMessages.DynamicField(this);
10856 int from_bitField0_ = bitField0_;
10857 int to_bitField0_ = 0;
10858 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
10859 to_bitField0_ |= 0x00000001;
10861 result.type_ = type_;
10862 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
10863 to_bitField0_ |= 0x00000002;
10865 result.stringValue_ = stringValue_;
10866 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
10867 to_bitField0_ |= 0x00000004;
10869 result.numericValue_ = numericValue_;
10870 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
10871 to_bitField0_ |= 0x00000008;
10873 result.booleanValue_ = booleanValue_;
10874 result.bitField0_ = to_bitField0_;
10879 public Builder mergeFrom(com.google.protobuf.Message other) {
10880 if (other instanceof com.openxc.BinaryMessages.DynamicField) {
10881 return mergeFrom((com.openxc.BinaryMessages.DynamicField)other);
10883 super.mergeFrom(other);
10888 public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) {
10889 if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this;
10890 if (other.hasType()) {
10891 setType(other.getType());
10893 if (other.hasStringValue()) {
10894 setStringValue(other.getStringValue());
10896 if (other.hasNumericValue()) {
10897 setNumericValue(other.getNumericValue());
10899 if (other.hasBooleanValue()) {
10900 setBooleanValue(other.getBooleanValue());
10902 this.mergeUnknownFields(other.getUnknownFields());
10906 public final boolean isInitialized() {
10910 public Builder mergeFrom(
10911 com.google.protobuf.CodedInputStream input,
10912 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10913 throws java.io.IOException {
10914 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
10915 com.google.protobuf.UnknownFieldSet.newBuilder(
10916 this.getUnknownFields());
10918 int tag = input.readTag();
10921 this.setUnknownFields(unknownFields.build());
10925 if (!parseUnknownField(input, unknownFields,
10926 extensionRegistry, tag)) {
10927 this.setUnknownFields(unknownFields.build());
10934 int rawValue = input.readEnum();
10935 com.openxc.BinaryMessages.DynamicField.Type value = com.openxc.BinaryMessages.DynamicField.Type.valueOf(rawValue);
10936 if (value == null) {
10937 unknownFields.mergeVarintField(1, rawValue);
10939 bitField0_ |= 0x00000001;
10945 bitField0_ |= 0x00000002;
10946 stringValue_ = input.readBytes();
10950 bitField0_ |= 0x00000004;
10951 numericValue_ = input.readDouble();
10955 bitField0_ |= 0x00000008;
10956 booleanValue_ = input.readBool();
10963 private int bitField0_;
10965 // optional .openxc.DynamicField.Type type = 1;
10966 private com.openxc.BinaryMessages.DynamicField.Type type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10967 public boolean hasType() {
10968 return ((bitField0_ & 0x00000001) == 0x00000001);
10970 public com.openxc.BinaryMessages.DynamicField.Type getType() {
10973 public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) {
10974 if (value == null) {
10975 throw new NullPointerException();
10977 bitField0_ |= 0x00000001;
10982 public Builder clearType() {
10983 bitField0_ = (bitField0_ & ~0x00000001);
10984 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10989 // optional string string_value = 2;
10990 private java.lang.Object stringValue_ = "";
10991 public boolean hasStringValue() {
10992 return ((bitField0_ & 0x00000002) == 0x00000002);
10994 public String getStringValue() {
10995 java.lang.Object ref = stringValue_;
10996 if (!(ref instanceof String)) {
10997 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
11001 return (String) ref;
11004 public Builder setStringValue(String value) {
11005 if (value == null) {
11006 throw new NullPointerException();
11008 bitField0_ |= 0x00000002;
11009 stringValue_ = value;
11013 public Builder clearStringValue() {
11014 bitField0_ = (bitField0_ & ~0x00000002);
11015 stringValue_ = getDefaultInstance().getStringValue();
11019 void setStringValue(com.google.protobuf.ByteString value) {
11020 bitField0_ |= 0x00000002;
11021 stringValue_ = value;
11025 // optional double numeric_value = 3;
11026 private double numericValue_ ;
11027 public boolean hasNumericValue() {
11028 return ((bitField0_ & 0x00000004) == 0x00000004);
11030 public double getNumericValue() {
11031 return numericValue_;
11033 public Builder setNumericValue(double value) {
11034 bitField0_ |= 0x00000004;
11035 numericValue_ = value;
11039 public Builder clearNumericValue() {
11040 bitField0_ = (bitField0_ & ~0x00000004);
11041 numericValue_ = 0D;
11046 // optional bool boolean_value = 4;
11047 private boolean booleanValue_ ;
11048 public boolean hasBooleanValue() {
11049 return ((bitField0_ & 0x00000008) == 0x00000008);
11051 public boolean getBooleanValue() {
11052 return booleanValue_;
11054 public Builder setBooleanValue(boolean value) {
11055 bitField0_ |= 0x00000008;
11056 booleanValue_ = value;
11060 public Builder clearBooleanValue() {
11061 bitField0_ = (bitField0_ & ~0x00000008);
11062 booleanValue_ = false;
11067 // @@protoc_insertion_point(builder_scope:openxc.DynamicField)
11071 defaultInstance = new DynamicField(true);
11072 defaultInstance.initFields();
11075 // @@protoc_insertion_point(class_scope:openxc.DynamicField)
11078 public interface SimpleMessageOrBuilder
11079 extends com.google.protobuf.MessageOrBuilder {
11081 // optional string name = 1;
11085 // optional .openxc.DynamicField value = 2;
11086 boolean hasValue();
11087 com.openxc.BinaryMessages.DynamicField getValue();
11088 com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder();
11090 // optional .openxc.DynamicField event = 3;
11091 boolean hasEvent();
11092 com.openxc.BinaryMessages.DynamicField getEvent();
11093 com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder();
11095 public static final class SimpleMessage extends
11096 com.google.protobuf.GeneratedMessage
11097 implements SimpleMessageOrBuilder {
11098 // Use SimpleMessage.newBuilder() to construct.
11099 private SimpleMessage(Builder builder) {
11102 private SimpleMessage(boolean noInit) {}
11104 private static final SimpleMessage defaultInstance;
11105 public static SimpleMessage getDefaultInstance() {
11106 return defaultInstance;
11109 public SimpleMessage getDefaultInstanceForType() {
11110 return defaultInstance;
11113 public static final com.google.protobuf.Descriptors.Descriptor
11115 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
11118 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
11119 internalGetFieldAccessorTable() {
11120 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable;
11123 private int bitField0_;
11124 // optional string name = 1;
11125 public static final int NAME_FIELD_NUMBER = 1;
11126 private java.lang.Object name_;
11127 public boolean hasName() {
11128 return ((bitField0_ & 0x00000001) == 0x00000001);
11130 public String getName() {
11131 java.lang.Object ref = name_;
11132 if (ref instanceof String) {
11133 return (String) ref;
11135 com.google.protobuf.ByteString bs =
11136 (com.google.protobuf.ByteString) ref;
11137 String s = bs.toStringUtf8();
11138 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
11144 private com.google.protobuf.ByteString getNameBytes() {
11145 java.lang.Object ref = name_;
11146 if (ref instanceof String) {
11147 com.google.protobuf.ByteString b =
11148 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
11152 return (com.google.protobuf.ByteString) ref;
11156 // optional .openxc.DynamicField value = 2;
11157 public static final int VALUE_FIELD_NUMBER = 2;
11158 private com.openxc.BinaryMessages.DynamicField value_;
11159 public boolean hasValue() {
11160 return ((bitField0_ & 0x00000002) == 0x00000002);
11162 public com.openxc.BinaryMessages.DynamicField getValue() {
11165 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
11169 // optional .openxc.DynamicField event = 3;
11170 public static final int EVENT_FIELD_NUMBER = 3;
11171 private com.openxc.BinaryMessages.DynamicField event_;
11172 public boolean hasEvent() {
11173 return ((bitField0_ & 0x00000004) == 0x00000004);
11175 public com.openxc.BinaryMessages.DynamicField getEvent() {
11178 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
11182 private void initFields() {
11184 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11185 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11187 private byte memoizedIsInitialized = -1;
11188 public final boolean isInitialized() {
11189 byte isInitialized = memoizedIsInitialized;
11190 if (isInitialized != -1) return isInitialized == 1;
11192 memoizedIsInitialized = 1;
11196 public void writeTo(com.google.protobuf.CodedOutputStream output)
11197 throws java.io.IOException {
11198 getSerializedSize();
11199 if (((bitField0_ & 0x00000001) == 0x00000001)) {
11200 output.writeBytes(1, getNameBytes());
11202 if (((bitField0_ & 0x00000002) == 0x00000002)) {
11203 output.writeMessage(2, value_);
11205 if (((bitField0_ & 0x00000004) == 0x00000004)) {
11206 output.writeMessage(3, event_);
11208 getUnknownFields().writeTo(output);
11211 private int memoizedSerializedSize = -1;
11212 public int getSerializedSize() {
11213 int size = memoizedSerializedSize;
11214 if (size != -1) return size;
11217 if (((bitField0_ & 0x00000001) == 0x00000001)) {
11218 size += com.google.protobuf.CodedOutputStream
11219 .computeBytesSize(1, getNameBytes());
11221 if (((bitField0_ & 0x00000002) == 0x00000002)) {
11222 size += com.google.protobuf.CodedOutputStream
11223 .computeMessageSize(2, value_);
11225 if (((bitField0_ & 0x00000004) == 0x00000004)) {
11226 size += com.google.protobuf.CodedOutputStream
11227 .computeMessageSize(3, event_);
11229 size += getUnknownFields().getSerializedSize();
11230 memoizedSerializedSize = size;
11234 private static final long serialVersionUID = 0L;
11235 @java.lang.Override
11236 protected java.lang.Object writeReplace()
11237 throws java.io.ObjectStreamException {
11238 return super.writeReplace();
11241 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11242 com.google.protobuf.ByteString data)
11243 throws com.google.protobuf.InvalidProtocolBufferException {
11244 return newBuilder().mergeFrom(data).buildParsed();
11246 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11247 com.google.protobuf.ByteString data,
11248 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11249 throws com.google.protobuf.InvalidProtocolBufferException {
11250 return newBuilder().mergeFrom(data, extensionRegistry)
11253 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(byte[] data)
11254 throws com.google.protobuf.InvalidProtocolBufferException {
11255 return newBuilder().mergeFrom(data).buildParsed();
11257 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11259 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11260 throws com.google.protobuf.InvalidProtocolBufferException {
11261 return newBuilder().mergeFrom(data, extensionRegistry)
11264 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(java.io.InputStream input)
11265 throws java.io.IOException {
11266 return newBuilder().mergeFrom(input).buildParsed();
11268 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11269 java.io.InputStream input,
11270 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11271 throws java.io.IOException {
11272 return newBuilder().mergeFrom(input, extensionRegistry)
11275 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(java.io.InputStream input)
11276 throws java.io.IOException {
11277 Builder builder = newBuilder();
11278 if (builder.mergeDelimitedFrom(input)) {
11279 return builder.buildParsed();
11284 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(
11285 java.io.InputStream input,
11286 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11287 throws java.io.IOException {
11288 Builder builder = newBuilder();
11289 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
11290 return builder.buildParsed();
11295 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11296 com.google.protobuf.CodedInputStream input)
11297 throws java.io.IOException {
11298 return newBuilder().mergeFrom(input).buildParsed();
11300 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11301 com.google.protobuf.CodedInputStream input,
11302 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11303 throws java.io.IOException {
11304 return newBuilder().mergeFrom(input, extensionRegistry)
11308 public static Builder newBuilder() { return Builder.create(); }
11309 public Builder newBuilderForType() { return newBuilder(); }
11310 public static Builder newBuilder(com.openxc.BinaryMessages.SimpleMessage prototype) {
11311 return newBuilder().mergeFrom(prototype);
11313 public Builder toBuilder() { return newBuilder(this); }
11315 @java.lang.Override
11316 protected Builder newBuilderForType(
11317 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
11318 Builder builder = new Builder(parent);
11321 public static final class Builder extends
11322 com.google.protobuf.GeneratedMessage.Builder<Builder>
11323 implements com.openxc.BinaryMessages.SimpleMessageOrBuilder {
11324 public static final com.google.protobuf.Descriptors.Descriptor
11326 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
11329 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
11330 internalGetFieldAccessorTable() {
11331 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable;
11334 // Construct using com.openxc.BinaryMessages.SimpleMessage.newBuilder()
11335 private Builder() {
11336 maybeForceBuilderInitialization();
11339 private Builder(BuilderParent parent) {
11341 maybeForceBuilderInitialization();
11343 private void maybeForceBuilderInitialization() {
11344 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
11345 getValueFieldBuilder();
11346 getEventFieldBuilder();
11349 private static Builder create() {
11350 return new Builder();
11353 public Builder clear() {
11356 bitField0_ = (bitField0_ & ~0x00000001);
11357 if (valueBuilder_ == null) {
11358 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11360 valueBuilder_.clear();
11362 bitField0_ = (bitField0_ & ~0x00000002);
11363 if (eventBuilder_ == null) {
11364 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11366 eventBuilder_.clear();
11368 bitField0_ = (bitField0_ & ~0x00000004);
11372 public Builder clone() {
11373 return create().mergeFrom(buildPartial());
11376 public com.google.protobuf.Descriptors.Descriptor
11377 getDescriptorForType() {
11378 return com.openxc.BinaryMessages.SimpleMessage.getDescriptor();
11381 public com.openxc.BinaryMessages.SimpleMessage getDefaultInstanceForType() {
11382 return com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
11385 public com.openxc.BinaryMessages.SimpleMessage build() {
11386 com.openxc.BinaryMessages.SimpleMessage result = buildPartial();
11387 if (!result.isInitialized()) {
11388 throw newUninitializedMessageException(result);
11393 private com.openxc.BinaryMessages.SimpleMessage buildParsed()
11394 throws com.google.protobuf.InvalidProtocolBufferException {
11395 com.openxc.BinaryMessages.SimpleMessage result = buildPartial();
11396 if (!result.isInitialized()) {
11397 throw newUninitializedMessageException(
11398 result).asInvalidProtocolBufferException();
11403 public com.openxc.BinaryMessages.SimpleMessage buildPartial() {
11404 com.openxc.BinaryMessages.SimpleMessage result = new com.openxc.BinaryMessages.SimpleMessage(this);
11405 int from_bitField0_ = bitField0_;
11406 int to_bitField0_ = 0;
11407 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
11408 to_bitField0_ |= 0x00000001;
11410 result.name_ = name_;
11411 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
11412 to_bitField0_ |= 0x00000002;
11414 if (valueBuilder_ == null) {
11415 result.value_ = value_;
11417 result.value_ = valueBuilder_.build();
11419 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
11420 to_bitField0_ |= 0x00000004;
11422 if (eventBuilder_ == null) {
11423 result.event_ = event_;
11425 result.event_ = eventBuilder_.build();
11427 result.bitField0_ = to_bitField0_;
11432 public Builder mergeFrom(com.google.protobuf.Message other) {
11433 if (other instanceof com.openxc.BinaryMessages.SimpleMessage) {
11434 return mergeFrom((com.openxc.BinaryMessages.SimpleMessage)other);
11436 super.mergeFrom(other);
11441 public Builder mergeFrom(com.openxc.BinaryMessages.SimpleMessage other) {
11442 if (other == com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance()) return this;
11443 if (other.hasName()) {
11444 setName(other.getName());
11446 if (other.hasValue()) {
11447 mergeValue(other.getValue());
11449 if (other.hasEvent()) {
11450 mergeEvent(other.getEvent());
11452 this.mergeUnknownFields(other.getUnknownFields());
11456 public final boolean isInitialized() {
11460 public Builder mergeFrom(
11461 com.google.protobuf.CodedInputStream input,
11462 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11463 throws java.io.IOException {
11464 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
11465 com.google.protobuf.UnknownFieldSet.newBuilder(
11466 this.getUnknownFields());
11468 int tag = input.readTag();
11471 this.setUnknownFields(unknownFields.build());
11475 if (!parseUnknownField(input, unknownFields,
11476 extensionRegistry, tag)) {
11477 this.setUnknownFields(unknownFields.build());
11484 bitField0_ |= 0x00000001;
11485 name_ = input.readBytes();
11489 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = com.openxc.BinaryMessages.DynamicField.newBuilder();
11491 subBuilder.mergeFrom(getValue());
11493 input.readMessage(subBuilder, extensionRegistry);
11494 setValue(subBuilder.buildPartial());
11498 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = com.openxc.BinaryMessages.DynamicField.newBuilder();
11500 subBuilder.mergeFrom(getEvent());
11502 input.readMessage(subBuilder, extensionRegistry);
11503 setEvent(subBuilder.buildPartial());
11510 private int bitField0_;
11512 // optional string name = 1;
11513 private java.lang.Object name_ = "";
11514 public boolean hasName() {
11515 return ((bitField0_ & 0x00000001) == 0x00000001);
11517 public String getName() {
11518 java.lang.Object ref = name_;
11519 if (!(ref instanceof String)) {
11520 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
11524 return (String) ref;
11527 public Builder setName(String value) {
11528 if (value == null) {
11529 throw new NullPointerException();
11531 bitField0_ |= 0x00000001;
11536 public Builder clearName() {
11537 bitField0_ = (bitField0_ & ~0x00000001);
11538 name_ = getDefaultInstance().getName();
11542 void setName(com.google.protobuf.ByteString value) {
11543 bitField0_ |= 0x00000001;
11548 // optional .openxc.DynamicField value = 2;
11549 private com.openxc.BinaryMessages.DynamicField value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11550 private com.google.protobuf.SingleFieldBuilder<
11551 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> valueBuilder_;
11552 public boolean hasValue() {
11553 return ((bitField0_ & 0x00000002) == 0x00000002);
11555 public com.openxc.BinaryMessages.DynamicField getValue() {
11556 if (valueBuilder_ == null) {
11559 return valueBuilder_.getMessage();
11562 public Builder setValue(com.openxc.BinaryMessages.DynamicField value) {
11563 if (valueBuilder_ == null) {
11564 if (value == null) {
11565 throw new NullPointerException();
11570 valueBuilder_.setMessage(value);
11572 bitField0_ |= 0x00000002;
11575 public Builder setValue(
11576 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
11577 if (valueBuilder_ == null) {
11578 value_ = builderForValue.build();
11581 valueBuilder_.setMessage(builderForValue.build());
11583 bitField0_ |= 0x00000002;
11586 public Builder mergeValue(com.openxc.BinaryMessages.DynamicField value) {
11587 if (valueBuilder_ == null) {
11588 if (((bitField0_ & 0x00000002) == 0x00000002) &&
11589 value_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
11591 com.openxc.BinaryMessages.DynamicField.newBuilder(value_).mergeFrom(value).buildPartial();
11597 valueBuilder_.mergeFrom(value);
11599 bitField0_ |= 0x00000002;
11602 public Builder clearValue() {
11603 if (valueBuilder_ == null) {
11604 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11607 valueBuilder_.clear();
11609 bitField0_ = (bitField0_ & ~0x00000002);
11612 public com.openxc.BinaryMessages.DynamicField.Builder getValueBuilder() {
11613 bitField0_ |= 0x00000002;
11615 return getValueFieldBuilder().getBuilder();
11617 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
11618 if (valueBuilder_ != null) {
11619 return valueBuilder_.getMessageOrBuilder();
11624 private com.google.protobuf.SingleFieldBuilder<
11625 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
11626 getValueFieldBuilder() {
11627 if (valueBuilder_ == null) {
11628 valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
11629 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
11631 getParentForChildren(),
11635 return valueBuilder_;
11638 // optional .openxc.DynamicField event = 3;
11639 private com.openxc.BinaryMessages.DynamicField event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11640 private com.google.protobuf.SingleFieldBuilder<
11641 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> eventBuilder_;
11642 public boolean hasEvent() {
11643 return ((bitField0_ & 0x00000004) == 0x00000004);
11645 public com.openxc.BinaryMessages.DynamicField getEvent() {
11646 if (eventBuilder_ == null) {
11649 return eventBuilder_.getMessage();
11652 public Builder setEvent(com.openxc.BinaryMessages.DynamicField value) {
11653 if (eventBuilder_ == null) {
11654 if (value == null) {
11655 throw new NullPointerException();
11660 eventBuilder_.setMessage(value);
11662 bitField0_ |= 0x00000004;
11665 public Builder setEvent(
11666 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
11667 if (eventBuilder_ == null) {
11668 event_ = builderForValue.build();
11671 eventBuilder_.setMessage(builderForValue.build());
11673 bitField0_ |= 0x00000004;
11676 public Builder mergeEvent(com.openxc.BinaryMessages.DynamicField value) {
11677 if (eventBuilder_ == null) {
11678 if (((bitField0_ & 0x00000004) == 0x00000004) &&
11679 event_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
11681 com.openxc.BinaryMessages.DynamicField.newBuilder(event_).mergeFrom(value).buildPartial();
11687 eventBuilder_.mergeFrom(value);
11689 bitField0_ |= 0x00000004;
11692 public Builder clearEvent() {
11693 if (eventBuilder_ == null) {
11694 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11697 eventBuilder_.clear();
11699 bitField0_ = (bitField0_ & ~0x00000004);
11702 public com.openxc.BinaryMessages.DynamicField.Builder getEventBuilder() {
11703 bitField0_ |= 0x00000004;
11705 return getEventFieldBuilder().getBuilder();
11707 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
11708 if (eventBuilder_ != null) {
11709 return eventBuilder_.getMessageOrBuilder();
11714 private com.google.protobuf.SingleFieldBuilder<
11715 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
11716 getEventFieldBuilder() {
11717 if (eventBuilder_ == null) {
11718 eventBuilder_ = new com.google.protobuf.SingleFieldBuilder<
11719 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
11721 getParentForChildren(),
11725 return eventBuilder_;
11728 // @@protoc_insertion_point(builder_scope:openxc.SimpleMessage)
11732 defaultInstance = new SimpleMessage(true);
11733 defaultInstance.initFields();
11736 // @@protoc_insertion_point(class_scope:openxc.SimpleMessage)
11739 private static com.google.protobuf.Descriptors.Descriptor
11740 internal_static_openxc_VehicleMessage_descriptor;
11742 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11743 internal_static_openxc_VehicleMessage_fieldAccessorTable;
11744 private static com.google.protobuf.Descriptors.Descriptor
11745 internal_static_openxc_CanMessage_descriptor;
11747 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11748 internal_static_openxc_CanMessage_fieldAccessorTable;
11749 private static com.google.protobuf.Descriptors.Descriptor
11750 internal_static_openxc_ControlCommand_descriptor;
11752 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11753 internal_static_openxc_ControlCommand_fieldAccessorTable;
11754 private static com.google.protobuf.Descriptors.Descriptor
11755 internal_static_openxc_DiagnosticControlCommand_descriptor;
11757 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11758 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
11759 private static com.google.protobuf.Descriptors.Descriptor
11760 internal_static_openxc_PassthroughModeControlCommand_descriptor;
11762 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11763 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
11764 private static com.google.protobuf.Descriptors.Descriptor
11765 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
11767 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11768 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
11769 private static com.google.protobuf.Descriptors.Descriptor
11770 internal_static_openxc_PayloadFormatCommand_descriptor;
11772 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11773 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
11774 private static com.google.protobuf.Descriptors.Descriptor
11775 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
11777 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11778 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
11779 private static com.google.protobuf.Descriptors.Descriptor
11780 internal_static_openxc_NetworkOperatorSettings_descriptor;
11782 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11783 internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable;
11784 private static com.google.protobuf.Descriptors.Descriptor
11785 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor;
11787 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11788 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable;
11789 private static com.google.protobuf.Descriptors.Descriptor
11790 internal_static_openxc_NetworkDataSettings_descriptor;
11792 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11793 internal_static_openxc_NetworkDataSettings_fieldAccessorTable;
11794 private static com.google.protobuf.Descriptors.Descriptor
11795 internal_static_openxc_ServerConnectSettings_descriptor;
11797 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11798 internal_static_openxc_ServerConnectSettings_fieldAccessorTable;
11799 private static com.google.protobuf.Descriptors.Descriptor
11800 internal_static_openxc_ModemConfigurationCommand_descriptor;
11802 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11803 internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable;
11804 private static com.google.protobuf.Descriptors.Descriptor
11805 internal_static_openxc_RTCConfigurationCommand_descriptor;
11807 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11808 internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable;
11809 private static com.google.protobuf.Descriptors.Descriptor
11810 internal_static_openxc_CommandResponse_descriptor;
11812 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11813 internal_static_openxc_CommandResponse_fieldAccessorTable;
11814 private static com.google.protobuf.Descriptors.Descriptor
11815 internal_static_openxc_DiagnosticRequest_descriptor;
11817 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11818 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
11819 private static com.google.protobuf.Descriptors.Descriptor
11820 internal_static_openxc_DiagnosticResponse_descriptor;
11822 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11823 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
11824 private static com.google.protobuf.Descriptors.Descriptor
11825 internal_static_openxc_DynamicField_descriptor;
11827 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11828 internal_static_openxc_DynamicField_fieldAccessorTable;
11829 private static com.google.protobuf.Descriptors.Descriptor
11830 internal_static_openxc_SimpleMessage_descriptor;
11832 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11833 internal_static_openxc_SimpleMessage_fieldAccessorTable;
11835 public static com.google.protobuf.Descriptors.FileDescriptor
11839 private static com.google.protobuf.Descriptors.FileDescriptor
11842 java.lang.String[] descriptorData = {
11843 "\n\014openxc.proto\022\006openxc\"\233\003\n\016VehicleMessag" +
11844 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
11845 "Type\022\'\n\013can_message\030\002 \001(\0132\022.openxc.CanMe" +
11846 "ssage\022-\n\016simple_message\030\003 \001(\0132\025.openxc.S" +
11847 "impleMessage\0227\n\023diagnostic_response\030\004 \001(" +
11848 "\0132\032.openxc.DiagnosticResponse\022/\n\017control" +
11849 "_command\030\005 \001(\0132\026.openxc.ControlCommand\0221" +
11850 "\n\020command_response\030\006 \001(\0132\027.openxc.Comman" +
11851 "dResponse\022\021\n\ttimestamp\030\007 \001(\004\"V\n\004Type\022\007\n\003" +
11852 "CAN\020\001\022\n\n\006SIMPLE\020\002\022\016\n\nDIAGNOSTIC\020\003\022\023\n\017CON",
11853 "TROL_COMMAND\020\004\022\024\n\020COMMAND_RESPONSE\020\005\"\224\001\n" +
11854 "\nCanMessage\022\013\n\003bus\030\001 \001(\005\022\n\n\002id\030\002 \001(\r\022\014\n\004" +
11855 "data\030\003 \001(\014\0224\n\014frame_format\030\004 \001(\0162\036.openx" +
11856 "c.CanMessage.FrameFormat\")\n\013FrameFormat\022" +
11857 "\014\n\010STANDARD\020\001\022\014\n\010EXTENDED\020\002\"\227\006\n\016ControlC" +
11858 "ommand\022)\n\004type\030\001 \001(\0162\033.openxc.ControlCom" +
11859 "mand.Type\022<\n\022diagnostic_request\030\002 \001(\0132 ." +
11860 "openxc.DiagnosticControlCommand\022G\n\030passt" +
11861 "hrough_mode_request\030\003 \001(\0132%.openxc.Passt" +
11862 "hroughModeControlCommand\022O\n acceptance_f",
11863 "ilter_bypass_command\030\004 \001(\0132%.openxc.Acce" +
11864 "ptanceFilterBypassCommand\022<\n\026payload_for" +
11865 "mat_command\030\005 \001(\0132\034.openxc.PayloadFormat" +
11866 "Command\022O\n predefined_obd2_requests_comm" +
11867 "and\030\006 \001(\0132%.openxc.PredefinedObd2Request" +
11868 "sCommand\022F\n\033modem_configuration_command\030" +
11869 "\007 \001(\0132!.openxc.ModemConfigurationCommand" +
11870 "\022B\n\031rtc_configuration_command\030\010 \001(\0132\037.op" +
11871 "enxc.RTCConfigurationCommand\"\346\001\n\004Type\022\013\n" +
11872 "\007VERSION\020\001\022\r\n\tDEVICE_ID\020\002\022\016\n\nDIAGNOSTIC\020",
11873 "\003\022\017\n\013PASSTHROUGH\020\004\022\034\n\030ACCEPTANCE_FILTER_" +
11874 "BYPASS\020\005\022\022\n\016PAYLOAD_FORMAT\020\006\022\034\n\030PREDEFIN" +
11875 "ED_OBD2_REQUESTS\020\007\022\027\n\023MODEM_CONFIGURATIO" +
11876 "N\020\010\022\025\n\021RTC_CONFIGURATION\020\t\022\023\n\017SD_MOUNT_S" +
11877 "TATUS\020\n\022\014\n\010PLATFORM\020\013\"\236\001\n\030DiagnosticCont" +
11878 "rolCommand\022*\n\007request\030\001 \001(\0132\031.openxc.Dia" +
11879 "gnosticRequest\0227\n\006action\030\002 \001(\0162\'.openxc." +
11880 "DiagnosticControlCommand.Action\"\035\n\006Actio" +
11881 "n\022\007\n\003ADD\020\001\022\n\n\006CANCEL\020\002\"=\n\035PassthroughMod" +
11882 "eControlCommand\022\013\n\003bus\030\001 \001(\005\022\017\n\007enabled\030",
11883 "\002 \001(\010\"<\n\035AcceptanceFilterBypassCommand\022\013" +
11884 "\n\003bus\030\001 \001(\005\022\016\n\006bypass\030\002 \001(\010\"\214\001\n\024PayloadF" +
11885 "ormatCommand\022:\n\006format\030\001 \001(\0162*.openxc.Pa" +
11886 "yloadFormatCommand.PayloadFormat\"8\n\rPayl" +
11887 "oadFormat\022\010\n\004JSON\020\001\022\014\n\010PROTOBUF\020\002\022\017\n\013MES" +
11888 "SAGEPACK\020\003\"0\n\035PredefinedObd2RequestsComm" +
11889 "and\022\017\n\007enabled\030\001 \001(\010\"\321\003\n\027NetworkOperator" +
11890 "Settings\022\030\n\020allowDataRoaming\030\001 \001(\010\022N\n\022op" +
11891 "eratorSelectMode\030\002 \001(\01622.openxc.NetworkO" +
11892 "peratorSettings.OperatorSelectMode\022L\n\021ne",
11893 "tworkDescriptor\030\003 \001(\01321.openxc.NetworkOp" +
11894 "eratorSettings.NetworkDescriptor\032\230\001\n\021Net" +
11895 "workDescriptor\022\014\n\004PLMN\030\001 \001(\r\022R\n\013networkT" +
11896 "ype\030\002 \001(\0162=.openxc.NetworkOperatorSettin" +
11897 "gs.NetworkDescriptor.NetworkType\"!\n\013Netw" +
11898 "orkType\022\007\n\003GSM\020\000\022\t\n\005UTRAN\020\002\"c\n\022OperatorS" +
11899 "electMode\022\r\n\tAUTOMATIC\020\000\022\n\n\006MANUAL\020\001\022\016\n\n" +
11900 "DEREGISTER\020\002\022\014\n\010SET_ONLY\020\003\022\024\n\020MANUAL_AUT" +
11901 "OMATIC\020\004\"\"\n\023NetworkDataSettings\022\013\n\003APN\030\001" +
11902 " \001(\t\"3\n\025ServerConnectSettings\022\014\n\004host\030\001 ",
11903 "\001(\t\022\014\n\004port\030\002 \001(\r\"\325\001\n\031ModemConfiguration" +
11904 "Command\022@\n\027networkOperatorSettings\030\001 \001(\013" +
11905 "2\037.openxc.NetworkOperatorSettings\0228\n\023net" +
11906 "workDataSettings\030\002 \001(\0132\033.openxc.NetworkD" +
11907 "ataSettings\022<\n\025serverConnectSettings\030\003 \001" +
11908 "(\0132\035.openxc.ServerConnectSettings\",\n\027RTC" +
11909 "ConfigurationCommand\022\021\n\tunix_time\030\001 \001(\r\"" +
11910 "]\n\017CommandResponse\022)\n\004type\030\001 \001(\0162\033.openx" +
11911 "c.ControlCommand.Type\022\017\n\007message\030\002 \001(\t\022\016" +
11912 "\n\006status\030\003 \001(\010\"\375\001\n\021DiagnosticRequest\022\013\n\003",
11913 "bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mode\030\003 " +
11914 "\001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007payload\030\005 \001(\014\022\032\n\022mul" +
11915 "tiple_responses\030\006 \001(\010\022\021\n\tfrequency\030\007 \001(\001" +
11916 "\022\014\n\004name\030\010 \001(\t\022;\n\014decoded_type\030\t \001(\0162%.o" +
11917 "penxc.DiagnosticRequest.DecodedType\"!\n\013D" +
11918 "ecodedType\022\010\n\004NONE\020\001\022\010\n\004OBD2\020\002\"\241\001\n\022Diagn" +
11919 "osticResponse\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id" +
11920 "\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007suc" +
11921 "cess\030\005 \001(\010\022\036\n\026negative_response_code\030\006 \001" +
11922 "(\r\022\017\n\007payload\030\007 \001(\014\022\r\n\005value\030\010 \001(\001\"\242\001\n\014D",
11923 "ynamicField\022\'\n\004type\030\001 \001(\0162\031.openxc.Dynam" +
11924 "icField.Type\022\024\n\014string_value\030\002 \001(\t\022\025\n\rnu" +
11925 "meric_value\030\003 \001(\001\022\025\n\rboolean_value\030\004 \001(\010" +
11926 "\"%\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\"" +
11927 "g\n\rSimpleMessage\022\014\n\004name\030\001 \001(\t\022#\n\005value\030" +
11928 "\002 \001(\0132\024.openxc.DynamicField\022#\n\005event\030\003 \001" +
11929 "(\0132\024.openxc.DynamicFieldB\034\n\ncom.openxcB\016" +
11932 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
11933 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
11934 public com.google.protobuf.ExtensionRegistry assignDescriptors(
11935 com.google.protobuf.Descriptors.FileDescriptor root) {
11937 internal_static_openxc_VehicleMessage_descriptor =
11938 getDescriptor().getMessageTypes().get(0);
11939 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
11940 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11941 internal_static_openxc_VehicleMessage_descriptor,
11942 new java.lang.String[] { "Type", "CanMessage", "SimpleMessage", "DiagnosticResponse", "ControlCommand", "CommandResponse", "Timestamp", },
11943 com.openxc.BinaryMessages.VehicleMessage.class,
11944 com.openxc.BinaryMessages.VehicleMessage.Builder.class);
11945 internal_static_openxc_CanMessage_descriptor =
11946 getDescriptor().getMessageTypes().get(1);
11947 internal_static_openxc_CanMessage_fieldAccessorTable = new
11948 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11949 internal_static_openxc_CanMessage_descriptor,
11950 new java.lang.String[] { "Bus", "Id", "Data", "FrameFormat", },
11951 com.openxc.BinaryMessages.CanMessage.class,
11952 com.openxc.BinaryMessages.CanMessage.Builder.class);
11953 internal_static_openxc_ControlCommand_descriptor =
11954 getDescriptor().getMessageTypes().get(2);
11955 internal_static_openxc_ControlCommand_fieldAccessorTable = new
11956 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11957 internal_static_openxc_ControlCommand_descriptor,
11958 new java.lang.String[] { "Type", "DiagnosticRequest", "PassthroughModeRequest", "AcceptanceFilterBypassCommand", "PayloadFormatCommand", "PredefinedObd2RequestsCommand", "ModemConfigurationCommand", "RtcConfigurationCommand", },
11959 com.openxc.BinaryMessages.ControlCommand.class,
11960 com.openxc.BinaryMessages.ControlCommand.Builder.class);
11961 internal_static_openxc_DiagnosticControlCommand_descriptor =
11962 getDescriptor().getMessageTypes().get(3);
11963 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable = new
11964 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11965 internal_static_openxc_DiagnosticControlCommand_descriptor,
11966 new java.lang.String[] { "Request", "Action", },
11967 com.openxc.BinaryMessages.DiagnosticControlCommand.class,
11968 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
11969 internal_static_openxc_PassthroughModeControlCommand_descriptor =
11970 getDescriptor().getMessageTypes().get(4);
11971 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable = new
11972 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11973 internal_static_openxc_PassthroughModeControlCommand_descriptor,
11974 new java.lang.String[] { "Bus", "Enabled", },
11975 com.openxc.BinaryMessages.PassthroughModeControlCommand.class,
11976 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
11977 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor =
11978 getDescriptor().getMessageTypes().get(5);
11979 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable = new
11980 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11981 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor,
11982 new java.lang.String[] { "Bus", "Bypass", },
11983 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class,
11984 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
11985 internal_static_openxc_PayloadFormatCommand_descriptor =
11986 getDescriptor().getMessageTypes().get(6);
11987 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable = new
11988 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11989 internal_static_openxc_PayloadFormatCommand_descriptor,
11990 new java.lang.String[] { "Format", },
11991 com.openxc.BinaryMessages.PayloadFormatCommand.class,
11992 com.openxc.BinaryMessages.PayloadFormatCommand.Builder.class);
11993 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor =
11994 getDescriptor().getMessageTypes().get(7);
11995 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable = new
11996 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11997 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor,
11998 new java.lang.String[] { "Enabled", },
11999 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.class,
12000 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder.class);
12001 internal_static_openxc_NetworkOperatorSettings_descriptor =
12002 getDescriptor().getMessageTypes().get(8);
12003 internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable = new
12004 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12005 internal_static_openxc_NetworkOperatorSettings_descriptor,
12006 new java.lang.String[] { "AllowDataRoaming", "OperatorSelectMode", "NetworkDescriptor", },
12007 com.openxc.BinaryMessages.NetworkOperatorSettings.class,
12008 com.openxc.BinaryMessages.NetworkOperatorSettings.Builder.class);
12009 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor =
12010 internal_static_openxc_NetworkOperatorSettings_descriptor.getNestedTypes().get(0);
12011 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable = new
12012 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12013 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor,
12014 new java.lang.String[] { "PLMN", "NetworkType", },
12015 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.class,
12016 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder.class);
12017 internal_static_openxc_NetworkDataSettings_descriptor =
12018 getDescriptor().getMessageTypes().get(9);
12019 internal_static_openxc_NetworkDataSettings_fieldAccessorTable = new
12020 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12021 internal_static_openxc_NetworkDataSettings_descriptor,
12022 new java.lang.String[] { "APN", },
12023 com.openxc.BinaryMessages.NetworkDataSettings.class,
12024 com.openxc.BinaryMessages.NetworkDataSettings.Builder.class);
12025 internal_static_openxc_ServerConnectSettings_descriptor =
12026 getDescriptor().getMessageTypes().get(10);
12027 internal_static_openxc_ServerConnectSettings_fieldAccessorTable = new
12028 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12029 internal_static_openxc_ServerConnectSettings_descriptor,
12030 new java.lang.String[] { "Host", "Port", },
12031 com.openxc.BinaryMessages.ServerConnectSettings.class,
12032 com.openxc.BinaryMessages.ServerConnectSettings.Builder.class);
12033 internal_static_openxc_ModemConfigurationCommand_descriptor =
12034 getDescriptor().getMessageTypes().get(11);
12035 internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable = new
12036 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12037 internal_static_openxc_ModemConfigurationCommand_descriptor,
12038 new java.lang.String[] { "NetworkOperatorSettings", "NetworkDataSettings", "ServerConnectSettings", },
12039 com.openxc.BinaryMessages.ModemConfigurationCommand.class,
12040 com.openxc.BinaryMessages.ModemConfigurationCommand.Builder.class);
12041 internal_static_openxc_RTCConfigurationCommand_descriptor =
12042 getDescriptor().getMessageTypes().get(12);
12043 internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable = new
12044 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12045 internal_static_openxc_RTCConfigurationCommand_descriptor,
12046 new java.lang.String[] { "UnixTime", },
12047 com.openxc.BinaryMessages.RTCConfigurationCommand.class,
12048 com.openxc.BinaryMessages.RTCConfigurationCommand.Builder.class);
12049 internal_static_openxc_CommandResponse_descriptor =
12050 getDescriptor().getMessageTypes().get(13);
12051 internal_static_openxc_CommandResponse_fieldAccessorTable = new
12052 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12053 internal_static_openxc_CommandResponse_descriptor,
12054 new java.lang.String[] { "Type", "Message", "Status", },
12055 com.openxc.BinaryMessages.CommandResponse.class,
12056 com.openxc.BinaryMessages.CommandResponse.Builder.class);
12057 internal_static_openxc_DiagnosticRequest_descriptor =
12058 getDescriptor().getMessageTypes().get(14);
12059 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
12060 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12061 internal_static_openxc_DiagnosticRequest_descriptor,
12062 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "MultipleResponses", "Frequency", "Name", "DecodedType", },
12063 com.openxc.BinaryMessages.DiagnosticRequest.class,
12064 com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
12065 internal_static_openxc_DiagnosticResponse_descriptor =
12066 getDescriptor().getMessageTypes().get(15);
12067 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
12068 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12069 internal_static_openxc_DiagnosticResponse_descriptor,
12070 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", },
12071 com.openxc.BinaryMessages.DiagnosticResponse.class,
12072 com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
12073 internal_static_openxc_DynamicField_descriptor =
12074 getDescriptor().getMessageTypes().get(16);
12075 internal_static_openxc_DynamicField_fieldAccessorTable = new
12076 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12077 internal_static_openxc_DynamicField_descriptor,
12078 new java.lang.String[] { "Type", "StringValue", "NumericValue", "BooleanValue", },
12079 com.openxc.BinaryMessages.DynamicField.class,
12080 com.openxc.BinaryMessages.DynamicField.Builder.class);
12081 internal_static_openxc_SimpleMessage_descriptor =
12082 getDescriptor().getMessageTypes().get(17);
12083 internal_static_openxc_SimpleMessage_fieldAccessorTable = new
12084 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12085 internal_static_openxc_SimpleMessage_descriptor,
12086 new java.lang.String[] { "Name", "Value", "Event", },
12087 com.openxc.BinaryMessages.SimpleMessage.class,
12088 com.openxc.BinaryMessages.SimpleMessage.Builder.class);
12092 com.google.protobuf.Descriptors.FileDescriptor
12093 .internalBuildGeneratedFileFrom(descriptorData,
12094 new com.google.protobuf.Descriptors.FileDescriptor[] {
12098 // @@protoc_insertion_point(outer_class_scope)