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 uint32 uptime = 7;
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 uint32 uptime = 7;
230 public static final int UPTIME_FIELD_NUMBER = 7;
232 public boolean hasUptime() {
233 return ((bitField0_ & 0x00000040) == 0x00000040);
235 public int getUptime() {
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.writeUInt32(7, uptime_);
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 .computeUInt32Size(7, uptime_);
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.uptime_ = uptime_;
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.hasUptime()) {
602 setUptime(other.getUptime());
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 uptime_ = input.readUInt32();
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 uint32 uptime = 7;
1177 private int uptime_ ;
1178 public boolean hasUptime() {
1179 return ((bitField0_ & 0x00000040) == 0x00000040);
1181 public int getUptime() {
1184 public Builder setUptime(int value) {
1185 bitField0_ |= 0x00000040;
1190 public Builder clearUptime() {
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),
1881 public static final int VERSION_VALUE = 1;
1882 public static final int DEVICE_ID_VALUE = 2;
1883 public static final int DIAGNOSTIC_VALUE = 3;
1884 public static final int PASSTHROUGH_VALUE = 4;
1885 public static final int ACCEPTANCE_FILTER_BYPASS_VALUE = 5;
1886 public static final int PAYLOAD_FORMAT_VALUE = 6;
1887 public static final int PREDEFINED_OBD2_REQUESTS_VALUE = 7;
1888 public static final int MODEM_CONFIGURATION_VALUE = 8;
1889 public static final int RTC_CONFIGURATION_VALUE = 9;
1892 public final int getNumber() { return value; }
1894 public static Type valueOf(int value) {
1896 case 1: return VERSION;
1897 case 2: return DEVICE_ID;
1898 case 3: return DIAGNOSTIC;
1899 case 4: return PASSTHROUGH;
1900 case 5: return ACCEPTANCE_FILTER_BYPASS;
1901 case 6: return PAYLOAD_FORMAT;
1902 case 7: return PREDEFINED_OBD2_REQUESTS;
1903 case 8: return MODEM_CONFIGURATION;
1904 case 9: return RTC_CONFIGURATION;
1905 default: return null;
1909 public static com.google.protobuf.Internal.EnumLiteMap<Type>
1910 internalGetValueMap() {
1911 return internalValueMap;
1913 private static com.google.protobuf.Internal.EnumLiteMap<Type>
1915 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
1916 public Type findValueByNumber(int number) {
1917 return Type.valueOf(number);
1921 public final com.google.protobuf.Descriptors.EnumValueDescriptor
1922 getValueDescriptor() {
1923 return getDescriptor().getValues().get(index);
1925 public final com.google.protobuf.Descriptors.EnumDescriptor
1926 getDescriptorForType() {
1927 return getDescriptor();
1929 public static final com.google.protobuf.Descriptors.EnumDescriptor
1931 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
1934 private static final Type[] VALUES = {
1935 VERSION, DEVICE_ID, DIAGNOSTIC, PASSTHROUGH, ACCEPTANCE_FILTER_BYPASS, PAYLOAD_FORMAT, PREDEFINED_OBD2_REQUESTS, MODEM_CONFIGURATION, RTC_CONFIGURATION,
1938 public static Type valueOf(
1939 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1940 if (desc.getType() != getDescriptor()) {
1941 throw new java.lang.IllegalArgumentException(
1942 "EnumValueDescriptor is not for this type.");
1944 return VALUES[desc.getIndex()];
1947 private final int index;
1948 private final int value;
1950 private Type(int index, int value) {
1955 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
1958 private int bitField0_;
1959 // optional .openxc.ControlCommand.Type type = 1;
1960 public static final int TYPE_FIELD_NUMBER = 1;
1961 private com.openxc.BinaryMessages.ControlCommand.Type type_;
1962 public boolean hasType() {
1963 return ((bitField0_ & 0x00000001) == 0x00000001);
1965 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
1969 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
1970 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
1971 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_;
1972 public boolean hasDiagnosticRequest() {
1973 return ((bitField0_ & 0x00000002) == 0x00000002);
1975 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
1976 return diagnosticRequest_;
1978 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
1979 return diagnosticRequest_;
1982 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
1983 public static final int PASSTHROUGH_MODE_REQUEST_FIELD_NUMBER = 3;
1984 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_;
1985 public boolean hasPassthroughModeRequest() {
1986 return ((bitField0_ & 0x00000004) == 0x00000004);
1988 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
1989 return passthroughModeRequest_;
1991 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
1992 return passthroughModeRequest_;
1995 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
1996 public static final int ACCEPTANCE_FILTER_BYPASS_COMMAND_FIELD_NUMBER = 4;
1997 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_;
1998 public boolean hasAcceptanceFilterBypassCommand() {
1999 return ((bitField0_ & 0x00000008) == 0x00000008);
2001 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2002 return acceptanceFilterBypassCommand_;
2004 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2005 return acceptanceFilterBypassCommand_;
2008 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2009 public static final int PAYLOAD_FORMAT_COMMAND_FIELD_NUMBER = 5;
2010 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_;
2011 public boolean hasPayloadFormatCommand() {
2012 return ((bitField0_ & 0x00000010) == 0x00000010);
2014 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
2015 return payloadFormatCommand_;
2017 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
2018 return payloadFormatCommand_;
2021 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2022 public static final int PREDEFINED_OBD2_REQUESTS_COMMAND_FIELD_NUMBER = 6;
2023 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_;
2024 public boolean hasPredefinedObd2RequestsCommand() {
2025 return ((bitField0_ & 0x00000020) == 0x00000020);
2027 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
2028 return predefinedObd2RequestsCommand_;
2030 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
2031 return predefinedObd2RequestsCommand_;
2034 // optional .openxc.ModemConfigurationCommand modem_configuration_command = 7;
2035 public static final int MODEM_CONFIGURATION_COMMAND_FIELD_NUMBER = 7;
2036 private com.openxc.BinaryMessages.ModemConfigurationCommand modemConfigurationCommand_;
2037 public boolean hasModemConfigurationCommand() {
2038 return ((bitField0_ & 0x00000040) == 0x00000040);
2040 public com.openxc.BinaryMessages.ModemConfigurationCommand getModemConfigurationCommand() {
2041 return modemConfigurationCommand_;
2043 public com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder getModemConfigurationCommandOrBuilder() {
2044 return modemConfigurationCommand_;
2047 // optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;
2048 public static final int RTC_CONFIGURATION_COMMAND_FIELD_NUMBER = 8;
2049 private com.openxc.BinaryMessages.RTCConfigurationCommand rtcConfigurationCommand_;
2050 public boolean hasRtcConfigurationCommand() {
2051 return ((bitField0_ & 0x00000080) == 0x00000080);
2053 public com.openxc.BinaryMessages.RTCConfigurationCommand getRtcConfigurationCommand() {
2054 return rtcConfigurationCommand_;
2056 public com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder getRtcConfigurationCommandOrBuilder() {
2057 return rtcConfigurationCommand_;
2060 private void initFields() {
2061 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2062 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2063 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2064 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2065 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2066 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2067 modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
2068 rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
2070 private byte memoizedIsInitialized = -1;
2071 public final boolean isInitialized() {
2072 byte isInitialized = memoizedIsInitialized;
2073 if (isInitialized != -1) return isInitialized == 1;
2075 memoizedIsInitialized = 1;
2079 public void writeTo(com.google.protobuf.CodedOutputStream output)
2080 throws java.io.IOException {
2081 getSerializedSize();
2082 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2083 output.writeEnum(1, type_.getNumber());
2085 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2086 output.writeMessage(2, diagnosticRequest_);
2088 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2089 output.writeMessage(3, passthroughModeRequest_);
2091 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2092 output.writeMessage(4, acceptanceFilterBypassCommand_);
2094 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2095 output.writeMessage(5, payloadFormatCommand_);
2097 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2098 output.writeMessage(6, predefinedObd2RequestsCommand_);
2100 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2101 output.writeMessage(7, modemConfigurationCommand_);
2103 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2104 output.writeMessage(8, rtcConfigurationCommand_);
2106 getUnknownFields().writeTo(output);
2109 private int memoizedSerializedSize = -1;
2110 public int getSerializedSize() {
2111 int size = memoizedSerializedSize;
2112 if (size != -1) return size;
2115 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2116 size += com.google.protobuf.CodedOutputStream
2117 .computeEnumSize(1, type_.getNumber());
2119 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2120 size += com.google.protobuf.CodedOutputStream
2121 .computeMessageSize(2, diagnosticRequest_);
2123 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2124 size += com.google.protobuf.CodedOutputStream
2125 .computeMessageSize(3, passthroughModeRequest_);
2127 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2128 size += com.google.protobuf.CodedOutputStream
2129 .computeMessageSize(4, acceptanceFilterBypassCommand_);
2131 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2132 size += com.google.protobuf.CodedOutputStream
2133 .computeMessageSize(5, payloadFormatCommand_);
2135 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2136 size += com.google.protobuf.CodedOutputStream
2137 .computeMessageSize(6, predefinedObd2RequestsCommand_);
2139 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2140 size += com.google.protobuf.CodedOutputStream
2141 .computeMessageSize(7, modemConfigurationCommand_);
2143 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2144 size += com.google.protobuf.CodedOutputStream
2145 .computeMessageSize(8, rtcConfigurationCommand_);
2147 size += getUnknownFields().getSerializedSize();
2148 memoizedSerializedSize = size;
2152 private static final long serialVersionUID = 0L;
2154 protected java.lang.Object writeReplace()
2155 throws java.io.ObjectStreamException {
2156 return super.writeReplace();
2159 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2160 com.google.protobuf.ByteString data)
2161 throws com.google.protobuf.InvalidProtocolBufferException {
2162 return newBuilder().mergeFrom(data).buildParsed();
2164 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2165 com.google.protobuf.ByteString data,
2166 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2167 throws com.google.protobuf.InvalidProtocolBufferException {
2168 return newBuilder().mergeFrom(data, extensionRegistry)
2171 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
2172 throws com.google.protobuf.InvalidProtocolBufferException {
2173 return newBuilder().mergeFrom(data).buildParsed();
2175 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2177 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2178 throws com.google.protobuf.InvalidProtocolBufferException {
2179 return newBuilder().mergeFrom(data, extensionRegistry)
2182 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
2183 throws java.io.IOException {
2184 return newBuilder().mergeFrom(input).buildParsed();
2186 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2187 java.io.InputStream input,
2188 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2189 throws java.io.IOException {
2190 return newBuilder().mergeFrom(input, extensionRegistry)
2193 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
2194 throws java.io.IOException {
2195 Builder builder = newBuilder();
2196 if (builder.mergeDelimitedFrom(input)) {
2197 return builder.buildParsed();
2202 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2203 java.io.InputStream input,
2204 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2205 throws java.io.IOException {
2206 Builder builder = newBuilder();
2207 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
2208 return builder.buildParsed();
2213 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2214 com.google.protobuf.CodedInputStream input)
2215 throws java.io.IOException {
2216 return newBuilder().mergeFrom(input).buildParsed();
2218 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2219 com.google.protobuf.CodedInputStream input,
2220 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2221 throws java.io.IOException {
2222 return newBuilder().mergeFrom(input, extensionRegistry)
2226 public static Builder newBuilder() { return Builder.create(); }
2227 public Builder newBuilderForType() { return newBuilder(); }
2228 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2229 return newBuilder().mergeFrom(prototype);
2231 public Builder toBuilder() { return newBuilder(this); }
2234 protected Builder newBuilderForType(
2235 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2236 Builder builder = new Builder(parent);
2239 public static final class Builder extends
2240 com.google.protobuf.GeneratedMessage.Builder<Builder>
2241 implements com.openxc.BinaryMessages.ControlCommandOrBuilder {
2242 public static final com.google.protobuf.Descriptors.Descriptor
2244 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2247 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2248 internalGetFieldAccessorTable() {
2249 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable;
2252 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2254 maybeForceBuilderInitialization();
2257 private Builder(BuilderParent parent) {
2259 maybeForceBuilderInitialization();
2261 private void maybeForceBuilderInitialization() {
2262 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2263 getDiagnosticRequestFieldBuilder();
2264 getPassthroughModeRequestFieldBuilder();
2265 getAcceptanceFilterBypassCommandFieldBuilder();
2266 getPayloadFormatCommandFieldBuilder();
2267 getPredefinedObd2RequestsCommandFieldBuilder();
2268 getModemConfigurationCommandFieldBuilder();
2269 getRtcConfigurationCommandFieldBuilder();
2272 private static Builder create() {
2273 return new Builder();
2276 public Builder clear() {
2278 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2279 bitField0_ = (bitField0_ & ~0x00000001);
2280 if (diagnosticRequestBuilder_ == null) {
2281 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2283 diagnosticRequestBuilder_.clear();
2285 bitField0_ = (bitField0_ & ~0x00000002);
2286 if (passthroughModeRequestBuilder_ == null) {
2287 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2289 passthroughModeRequestBuilder_.clear();
2291 bitField0_ = (bitField0_ & ~0x00000004);
2292 if (acceptanceFilterBypassCommandBuilder_ == null) {
2293 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2295 acceptanceFilterBypassCommandBuilder_.clear();
2297 bitField0_ = (bitField0_ & ~0x00000008);
2298 if (payloadFormatCommandBuilder_ == null) {
2299 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2301 payloadFormatCommandBuilder_.clear();
2303 bitField0_ = (bitField0_ & ~0x00000010);
2304 if (predefinedObd2RequestsCommandBuilder_ == null) {
2305 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2307 predefinedObd2RequestsCommandBuilder_.clear();
2309 bitField0_ = (bitField0_ & ~0x00000020);
2310 if (modemConfigurationCommandBuilder_ == null) {
2311 modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
2313 modemConfigurationCommandBuilder_.clear();
2315 bitField0_ = (bitField0_ & ~0x00000040);
2316 if (rtcConfigurationCommandBuilder_ == null) {
2317 rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
2319 rtcConfigurationCommandBuilder_.clear();
2321 bitField0_ = (bitField0_ & ~0x00000080);
2325 public Builder clone() {
2326 return create().mergeFrom(buildPartial());
2329 public com.google.protobuf.Descriptors.Descriptor
2330 getDescriptorForType() {
2331 return com.openxc.BinaryMessages.ControlCommand.getDescriptor();
2334 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2335 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2338 public com.openxc.BinaryMessages.ControlCommand build() {
2339 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2340 if (!result.isInitialized()) {
2341 throw newUninitializedMessageException(result);
2346 private com.openxc.BinaryMessages.ControlCommand buildParsed()
2347 throws com.google.protobuf.InvalidProtocolBufferException {
2348 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2349 if (!result.isInitialized()) {
2350 throw newUninitializedMessageException(
2351 result).asInvalidProtocolBufferException();
2356 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2357 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2358 int from_bitField0_ = bitField0_;
2359 int to_bitField0_ = 0;
2360 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2361 to_bitField0_ |= 0x00000001;
2363 result.type_ = type_;
2364 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2365 to_bitField0_ |= 0x00000002;
2367 if (diagnosticRequestBuilder_ == null) {
2368 result.diagnosticRequest_ = diagnosticRequest_;
2370 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2372 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2373 to_bitField0_ |= 0x00000004;
2375 if (passthroughModeRequestBuilder_ == null) {
2376 result.passthroughModeRequest_ = passthroughModeRequest_;
2378 result.passthroughModeRequest_ = passthroughModeRequestBuilder_.build();
2380 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2381 to_bitField0_ |= 0x00000008;
2383 if (acceptanceFilterBypassCommandBuilder_ == null) {
2384 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommand_;
2386 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommandBuilder_.build();
2388 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
2389 to_bitField0_ |= 0x00000010;
2391 if (payloadFormatCommandBuilder_ == null) {
2392 result.payloadFormatCommand_ = payloadFormatCommand_;
2394 result.payloadFormatCommand_ = payloadFormatCommandBuilder_.build();
2396 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
2397 to_bitField0_ |= 0x00000020;
2399 if (predefinedObd2RequestsCommandBuilder_ == null) {
2400 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommand_;
2402 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommandBuilder_.build();
2404 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
2405 to_bitField0_ |= 0x00000040;
2407 if (modemConfigurationCommandBuilder_ == null) {
2408 result.modemConfigurationCommand_ = modemConfigurationCommand_;
2410 result.modemConfigurationCommand_ = modemConfigurationCommandBuilder_.build();
2412 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
2413 to_bitField0_ |= 0x00000080;
2415 if (rtcConfigurationCommandBuilder_ == null) {
2416 result.rtcConfigurationCommand_ = rtcConfigurationCommand_;
2418 result.rtcConfigurationCommand_ = rtcConfigurationCommandBuilder_.build();
2420 result.bitField0_ = to_bitField0_;
2425 public Builder mergeFrom(com.google.protobuf.Message other) {
2426 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
2427 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
2429 super.mergeFrom(other);
2434 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
2435 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
2436 if (other.hasType()) {
2437 setType(other.getType());
2439 if (other.hasDiagnosticRequest()) {
2440 mergeDiagnosticRequest(other.getDiagnosticRequest());
2442 if (other.hasPassthroughModeRequest()) {
2443 mergePassthroughModeRequest(other.getPassthroughModeRequest());
2445 if (other.hasAcceptanceFilterBypassCommand()) {
2446 mergeAcceptanceFilterBypassCommand(other.getAcceptanceFilterBypassCommand());
2448 if (other.hasPayloadFormatCommand()) {
2449 mergePayloadFormatCommand(other.getPayloadFormatCommand());
2451 if (other.hasPredefinedObd2RequestsCommand()) {
2452 mergePredefinedObd2RequestsCommand(other.getPredefinedObd2RequestsCommand());
2454 if (other.hasModemConfigurationCommand()) {
2455 mergeModemConfigurationCommand(other.getModemConfigurationCommand());
2457 if (other.hasRtcConfigurationCommand()) {
2458 mergeRtcConfigurationCommand(other.getRtcConfigurationCommand());
2460 this.mergeUnknownFields(other.getUnknownFields());
2464 public final boolean isInitialized() {
2468 public Builder mergeFrom(
2469 com.google.protobuf.CodedInputStream input,
2470 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2471 throws java.io.IOException {
2472 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2473 com.google.protobuf.UnknownFieldSet.newBuilder(
2474 this.getUnknownFields());
2476 int tag = input.readTag();
2479 this.setUnknownFields(unknownFields.build());
2483 if (!parseUnknownField(input, unknownFields,
2484 extensionRegistry, tag)) {
2485 this.setUnknownFields(unknownFields.build());
2492 int rawValue = input.readEnum();
2493 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2494 if (value == null) {
2495 unknownFields.mergeVarintField(1, rawValue);
2497 bitField0_ |= 0x00000001;
2503 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder subBuilder = com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder();
2504 if (hasDiagnosticRequest()) {
2505 subBuilder.mergeFrom(getDiagnosticRequest());
2507 input.readMessage(subBuilder, extensionRegistry);
2508 setDiagnosticRequest(subBuilder.buildPartial());
2512 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder subBuilder = com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder();
2513 if (hasPassthroughModeRequest()) {
2514 subBuilder.mergeFrom(getPassthroughModeRequest());
2516 input.readMessage(subBuilder, extensionRegistry);
2517 setPassthroughModeRequest(subBuilder.buildPartial());
2521 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder subBuilder = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder();
2522 if (hasAcceptanceFilterBypassCommand()) {
2523 subBuilder.mergeFrom(getAcceptanceFilterBypassCommand());
2525 input.readMessage(subBuilder, extensionRegistry);
2526 setAcceptanceFilterBypassCommand(subBuilder.buildPartial());
2530 com.openxc.BinaryMessages.PayloadFormatCommand.Builder subBuilder = com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder();
2531 if (hasPayloadFormatCommand()) {
2532 subBuilder.mergeFrom(getPayloadFormatCommand());
2534 input.readMessage(subBuilder, extensionRegistry);
2535 setPayloadFormatCommand(subBuilder.buildPartial());
2539 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder subBuilder = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder();
2540 if (hasPredefinedObd2RequestsCommand()) {
2541 subBuilder.mergeFrom(getPredefinedObd2RequestsCommand());
2543 input.readMessage(subBuilder, extensionRegistry);
2544 setPredefinedObd2RequestsCommand(subBuilder.buildPartial());
2548 com.openxc.BinaryMessages.ModemConfigurationCommand.Builder subBuilder = com.openxc.BinaryMessages.ModemConfigurationCommand.newBuilder();
2549 if (hasModemConfigurationCommand()) {
2550 subBuilder.mergeFrom(getModemConfigurationCommand());
2552 input.readMessage(subBuilder, extensionRegistry);
2553 setModemConfigurationCommand(subBuilder.buildPartial());
2557 com.openxc.BinaryMessages.RTCConfigurationCommand.Builder subBuilder = com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder();
2558 if (hasRtcConfigurationCommand()) {
2559 subBuilder.mergeFrom(getRtcConfigurationCommand());
2561 input.readMessage(subBuilder, extensionRegistry);
2562 setRtcConfigurationCommand(subBuilder.buildPartial());
2569 private int bitField0_;
2571 // optional .openxc.ControlCommand.Type type = 1;
2572 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2573 public boolean hasType() {
2574 return ((bitField0_ & 0x00000001) == 0x00000001);
2576 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2579 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
2580 if (value == null) {
2581 throw new NullPointerException();
2583 bitField0_ |= 0x00000001;
2588 public Builder clearType() {
2589 bitField0_ = (bitField0_ & ~0x00000001);
2590 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2595 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2596 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2597 private com.google.protobuf.SingleFieldBuilder<
2598 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder> diagnosticRequestBuilder_;
2599 public boolean hasDiagnosticRequest() {
2600 return ((bitField0_ & 0x00000002) == 0x00000002);
2602 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
2603 if (diagnosticRequestBuilder_ == null) {
2604 return diagnosticRequest_;
2606 return diagnosticRequestBuilder_.getMessage();
2609 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2610 if (diagnosticRequestBuilder_ == null) {
2611 if (value == null) {
2612 throw new NullPointerException();
2614 diagnosticRequest_ = value;
2617 diagnosticRequestBuilder_.setMessage(value);
2619 bitField0_ |= 0x00000002;
2622 public Builder setDiagnosticRequest(
2623 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder builderForValue) {
2624 if (diagnosticRequestBuilder_ == null) {
2625 diagnosticRequest_ = builderForValue.build();
2628 diagnosticRequestBuilder_.setMessage(builderForValue.build());
2630 bitField0_ |= 0x00000002;
2633 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2634 if (diagnosticRequestBuilder_ == null) {
2635 if (((bitField0_ & 0x00000002) == 0x00000002) &&
2636 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) {
2637 diagnosticRequest_ =
2638 com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
2640 diagnosticRequest_ = value;
2644 diagnosticRequestBuilder_.mergeFrom(value);
2646 bitField0_ |= 0x00000002;
2649 public Builder clearDiagnosticRequest() {
2650 if (diagnosticRequestBuilder_ == null) {
2651 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2654 diagnosticRequestBuilder_.clear();
2656 bitField0_ = (bitField0_ & ~0x00000002);
2659 public com.openxc.BinaryMessages.DiagnosticControlCommand.Builder getDiagnosticRequestBuilder() {
2660 bitField0_ |= 0x00000002;
2662 return getDiagnosticRequestFieldBuilder().getBuilder();
2664 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
2665 if (diagnosticRequestBuilder_ != null) {
2666 return diagnosticRequestBuilder_.getMessageOrBuilder();
2668 return diagnosticRequest_;
2671 private com.google.protobuf.SingleFieldBuilder<
2672 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>
2673 getDiagnosticRequestFieldBuilder() {
2674 if (diagnosticRequestBuilder_ == null) {
2675 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2676 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>(
2678 getParentForChildren(),
2680 diagnosticRequest_ = null;
2682 return diagnosticRequestBuilder_;
2685 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
2686 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2687 private com.google.protobuf.SingleFieldBuilder<
2688 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder> passthroughModeRequestBuilder_;
2689 public boolean hasPassthroughModeRequest() {
2690 return ((bitField0_ & 0x00000004) == 0x00000004);
2692 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
2693 if (passthroughModeRequestBuilder_ == null) {
2694 return passthroughModeRequest_;
2696 return passthroughModeRequestBuilder_.getMessage();
2699 public Builder setPassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
2700 if (passthroughModeRequestBuilder_ == null) {
2701 if (value == null) {
2702 throw new NullPointerException();
2704 passthroughModeRequest_ = value;
2707 passthroughModeRequestBuilder_.setMessage(value);
2709 bitField0_ |= 0x00000004;
2712 public Builder setPassthroughModeRequest(
2713 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder builderForValue) {
2714 if (passthroughModeRequestBuilder_ == null) {
2715 passthroughModeRequest_ = builderForValue.build();
2718 passthroughModeRequestBuilder_.setMessage(builderForValue.build());
2720 bitField0_ |= 0x00000004;
2723 public Builder mergePassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
2724 if (passthroughModeRequestBuilder_ == null) {
2725 if (((bitField0_ & 0x00000004) == 0x00000004) &&
2726 passthroughModeRequest_ != com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) {
2727 passthroughModeRequest_ =
2728 com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder(passthroughModeRequest_).mergeFrom(value).buildPartial();
2730 passthroughModeRequest_ = value;
2734 passthroughModeRequestBuilder_.mergeFrom(value);
2736 bitField0_ |= 0x00000004;
2739 public Builder clearPassthroughModeRequest() {
2740 if (passthroughModeRequestBuilder_ == null) {
2741 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2744 passthroughModeRequestBuilder_.clear();
2746 bitField0_ = (bitField0_ & ~0x00000004);
2749 public com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder getPassthroughModeRequestBuilder() {
2750 bitField0_ |= 0x00000004;
2752 return getPassthroughModeRequestFieldBuilder().getBuilder();
2754 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
2755 if (passthroughModeRequestBuilder_ != null) {
2756 return passthroughModeRequestBuilder_.getMessageOrBuilder();
2758 return passthroughModeRequest_;
2761 private com.google.protobuf.SingleFieldBuilder<
2762 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>
2763 getPassthroughModeRequestFieldBuilder() {
2764 if (passthroughModeRequestBuilder_ == null) {
2765 passthroughModeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2766 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>(
2767 passthroughModeRequest_,
2768 getParentForChildren(),
2770 passthroughModeRequest_ = null;
2772 return passthroughModeRequestBuilder_;
2775 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
2776 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2777 private com.google.protobuf.SingleFieldBuilder<
2778 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder> acceptanceFilterBypassCommandBuilder_;
2779 public boolean hasAcceptanceFilterBypassCommand() {
2780 return ((bitField0_ & 0x00000008) == 0x00000008);
2782 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2783 if (acceptanceFilterBypassCommandBuilder_ == null) {
2784 return acceptanceFilterBypassCommand_;
2786 return acceptanceFilterBypassCommandBuilder_.getMessage();
2789 public Builder setAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
2790 if (acceptanceFilterBypassCommandBuilder_ == null) {
2791 if (value == null) {
2792 throw new NullPointerException();
2794 acceptanceFilterBypassCommand_ = value;
2797 acceptanceFilterBypassCommandBuilder_.setMessage(value);
2799 bitField0_ |= 0x00000008;
2802 public Builder setAcceptanceFilterBypassCommand(
2803 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder builderForValue) {
2804 if (acceptanceFilterBypassCommandBuilder_ == null) {
2805 acceptanceFilterBypassCommand_ = builderForValue.build();
2808 acceptanceFilterBypassCommandBuilder_.setMessage(builderForValue.build());
2810 bitField0_ |= 0x00000008;
2813 public Builder mergeAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
2814 if (acceptanceFilterBypassCommandBuilder_ == null) {
2815 if (((bitField0_ & 0x00000008) == 0x00000008) &&
2816 acceptanceFilterBypassCommand_ != com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) {
2817 acceptanceFilterBypassCommand_ =
2818 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder(acceptanceFilterBypassCommand_).mergeFrom(value).buildPartial();
2820 acceptanceFilterBypassCommand_ = value;
2824 acceptanceFilterBypassCommandBuilder_.mergeFrom(value);
2826 bitField0_ |= 0x00000008;
2829 public Builder clearAcceptanceFilterBypassCommand() {
2830 if (acceptanceFilterBypassCommandBuilder_ == null) {
2831 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2834 acceptanceFilterBypassCommandBuilder_.clear();
2836 bitField0_ = (bitField0_ & ~0x00000008);
2839 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder getAcceptanceFilterBypassCommandBuilder() {
2840 bitField0_ |= 0x00000008;
2842 return getAcceptanceFilterBypassCommandFieldBuilder().getBuilder();
2844 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2845 if (acceptanceFilterBypassCommandBuilder_ != null) {
2846 return acceptanceFilterBypassCommandBuilder_.getMessageOrBuilder();
2848 return acceptanceFilterBypassCommand_;
2851 private com.google.protobuf.SingleFieldBuilder<
2852 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>
2853 getAcceptanceFilterBypassCommandFieldBuilder() {
2854 if (acceptanceFilterBypassCommandBuilder_ == null) {
2855 acceptanceFilterBypassCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2856 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>(
2857 acceptanceFilterBypassCommand_,
2858 getParentForChildren(),
2860 acceptanceFilterBypassCommand_ = null;
2862 return acceptanceFilterBypassCommandBuilder_;
2865 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2866 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2867 private com.google.protobuf.SingleFieldBuilder<
2868 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder> payloadFormatCommandBuilder_;
2869 public boolean hasPayloadFormatCommand() {
2870 return ((bitField0_ & 0x00000010) == 0x00000010);
2872 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
2873 if (payloadFormatCommandBuilder_ == null) {
2874 return payloadFormatCommand_;
2876 return payloadFormatCommandBuilder_.getMessage();
2879 public Builder setPayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
2880 if (payloadFormatCommandBuilder_ == null) {
2881 if (value == null) {
2882 throw new NullPointerException();
2884 payloadFormatCommand_ = value;
2887 payloadFormatCommandBuilder_.setMessage(value);
2889 bitField0_ |= 0x00000010;
2892 public Builder setPayloadFormatCommand(
2893 com.openxc.BinaryMessages.PayloadFormatCommand.Builder builderForValue) {
2894 if (payloadFormatCommandBuilder_ == null) {
2895 payloadFormatCommand_ = builderForValue.build();
2898 payloadFormatCommandBuilder_.setMessage(builderForValue.build());
2900 bitField0_ |= 0x00000010;
2903 public Builder mergePayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
2904 if (payloadFormatCommandBuilder_ == null) {
2905 if (((bitField0_ & 0x00000010) == 0x00000010) &&
2906 payloadFormatCommand_ != com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) {
2907 payloadFormatCommand_ =
2908 com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder(payloadFormatCommand_).mergeFrom(value).buildPartial();
2910 payloadFormatCommand_ = value;
2914 payloadFormatCommandBuilder_.mergeFrom(value);
2916 bitField0_ |= 0x00000010;
2919 public Builder clearPayloadFormatCommand() {
2920 if (payloadFormatCommandBuilder_ == null) {
2921 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2924 payloadFormatCommandBuilder_.clear();
2926 bitField0_ = (bitField0_ & ~0x00000010);
2929 public com.openxc.BinaryMessages.PayloadFormatCommand.Builder getPayloadFormatCommandBuilder() {
2930 bitField0_ |= 0x00000010;
2932 return getPayloadFormatCommandFieldBuilder().getBuilder();
2934 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
2935 if (payloadFormatCommandBuilder_ != null) {
2936 return payloadFormatCommandBuilder_.getMessageOrBuilder();
2938 return payloadFormatCommand_;
2941 private com.google.protobuf.SingleFieldBuilder<
2942 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>
2943 getPayloadFormatCommandFieldBuilder() {
2944 if (payloadFormatCommandBuilder_ == null) {
2945 payloadFormatCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2946 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>(
2947 payloadFormatCommand_,
2948 getParentForChildren(),
2950 payloadFormatCommand_ = null;
2952 return payloadFormatCommandBuilder_;
2955 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2956 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2957 private com.google.protobuf.SingleFieldBuilder<
2958 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder> predefinedObd2RequestsCommandBuilder_;
2959 public boolean hasPredefinedObd2RequestsCommand() {
2960 return ((bitField0_ & 0x00000020) == 0x00000020);
2962 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
2963 if (predefinedObd2RequestsCommandBuilder_ == null) {
2964 return predefinedObd2RequestsCommand_;
2966 return predefinedObd2RequestsCommandBuilder_.getMessage();
2969 public Builder setPredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
2970 if (predefinedObd2RequestsCommandBuilder_ == null) {
2971 if (value == null) {
2972 throw new NullPointerException();
2974 predefinedObd2RequestsCommand_ = value;
2977 predefinedObd2RequestsCommandBuilder_.setMessage(value);
2979 bitField0_ |= 0x00000020;
2982 public Builder setPredefinedObd2RequestsCommand(
2983 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder builderForValue) {
2984 if (predefinedObd2RequestsCommandBuilder_ == null) {
2985 predefinedObd2RequestsCommand_ = builderForValue.build();
2988 predefinedObd2RequestsCommandBuilder_.setMessage(builderForValue.build());
2990 bitField0_ |= 0x00000020;
2993 public Builder mergePredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
2994 if (predefinedObd2RequestsCommandBuilder_ == null) {
2995 if (((bitField0_ & 0x00000020) == 0x00000020) &&
2996 predefinedObd2RequestsCommand_ != com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) {
2997 predefinedObd2RequestsCommand_ =
2998 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder(predefinedObd2RequestsCommand_).mergeFrom(value).buildPartial();
3000 predefinedObd2RequestsCommand_ = value;
3004 predefinedObd2RequestsCommandBuilder_.mergeFrom(value);
3006 bitField0_ |= 0x00000020;
3009 public Builder clearPredefinedObd2RequestsCommand() {
3010 if (predefinedObd2RequestsCommandBuilder_ == null) {
3011 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
3014 predefinedObd2RequestsCommandBuilder_.clear();
3016 bitField0_ = (bitField0_ & ~0x00000020);
3019 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder getPredefinedObd2RequestsCommandBuilder() {
3020 bitField0_ |= 0x00000020;
3022 return getPredefinedObd2RequestsCommandFieldBuilder().getBuilder();
3024 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
3025 if (predefinedObd2RequestsCommandBuilder_ != null) {
3026 return predefinedObd2RequestsCommandBuilder_.getMessageOrBuilder();
3028 return predefinedObd2RequestsCommand_;
3031 private com.google.protobuf.SingleFieldBuilder<
3032 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>
3033 getPredefinedObd2RequestsCommandFieldBuilder() {
3034 if (predefinedObd2RequestsCommandBuilder_ == null) {
3035 predefinedObd2RequestsCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3036 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>(
3037 predefinedObd2RequestsCommand_,
3038 getParentForChildren(),
3040 predefinedObd2RequestsCommand_ = null;
3042 return predefinedObd2RequestsCommandBuilder_;
3045 // optional .openxc.ModemConfigurationCommand modem_configuration_command = 7;
3046 private com.openxc.BinaryMessages.ModemConfigurationCommand modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
3047 private com.google.protobuf.SingleFieldBuilder<
3048 com.openxc.BinaryMessages.ModemConfigurationCommand, com.openxc.BinaryMessages.ModemConfigurationCommand.Builder, com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder> modemConfigurationCommandBuilder_;
3049 public boolean hasModemConfigurationCommand() {
3050 return ((bitField0_ & 0x00000040) == 0x00000040);
3052 public com.openxc.BinaryMessages.ModemConfigurationCommand getModemConfigurationCommand() {
3053 if (modemConfigurationCommandBuilder_ == null) {
3054 return modemConfigurationCommand_;
3056 return modemConfigurationCommandBuilder_.getMessage();
3059 public Builder setModemConfigurationCommand(com.openxc.BinaryMessages.ModemConfigurationCommand value) {
3060 if (modemConfigurationCommandBuilder_ == null) {
3061 if (value == null) {
3062 throw new NullPointerException();
3064 modemConfigurationCommand_ = value;
3067 modemConfigurationCommandBuilder_.setMessage(value);
3069 bitField0_ |= 0x00000040;
3072 public Builder setModemConfigurationCommand(
3073 com.openxc.BinaryMessages.ModemConfigurationCommand.Builder builderForValue) {
3074 if (modemConfigurationCommandBuilder_ == null) {
3075 modemConfigurationCommand_ = builderForValue.build();
3078 modemConfigurationCommandBuilder_.setMessage(builderForValue.build());
3080 bitField0_ |= 0x00000040;
3083 public Builder mergeModemConfigurationCommand(com.openxc.BinaryMessages.ModemConfigurationCommand value) {
3084 if (modemConfigurationCommandBuilder_ == null) {
3085 if (((bitField0_ & 0x00000040) == 0x00000040) &&
3086 modemConfigurationCommand_ != com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance()) {
3087 modemConfigurationCommand_ =
3088 com.openxc.BinaryMessages.ModemConfigurationCommand.newBuilder(modemConfigurationCommand_).mergeFrom(value).buildPartial();
3090 modemConfigurationCommand_ = value;
3094 modemConfigurationCommandBuilder_.mergeFrom(value);
3096 bitField0_ |= 0x00000040;
3099 public Builder clearModemConfigurationCommand() {
3100 if (modemConfigurationCommandBuilder_ == null) {
3101 modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
3104 modemConfigurationCommandBuilder_.clear();
3106 bitField0_ = (bitField0_ & ~0x00000040);
3109 public com.openxc.BinaryMessages.ModemConfigurationCommand.Builder getModemConfigurationCommandBuilder() {
3110 bitField0_ |= 0x00000040;
3112 return getModemConfigurationCommandFieldBuilder().getBuilder();
3114 public com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder getModemConfigurationCommandOrBuilder() {
3115 if (modemConfigurationCommandBuilder_ != null) {
3116 return modemConfigurationCommandBuilder_.getMessageOrBuilder();
3118 return modemConfigurationCommand_;
3121 private com.google.protobuf.SingleFieldBuilder<
3122 com.openxc.BinaryMessages.ModemConfigurationCommand, com.openxc.BinaryMessages.ModemConfigurationCommand.Builder, com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder>
3123 getModemConfigurationCommandFieldBuilder() {
3124 if (modemConfigurationCommandBuilder_ == null) {
3125 modemConfigurationCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3126 com.openxc.BinaryMessages.ModemConfigurationCommand, com.openxc.BinaryMessages.ModemConfigurationCommand.Builder, com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder>(
3127 modemConfigurationCommand_,
3128 getParentForChildren(),
3130 modemConfigurationCommand_ = null;
3132 return modemConfigurationCommandBuilder_;
3135 // optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;
3136 private com.openxc.BinaryMessages.RTCConfigurationCommand rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
3137 private com.google.protobuf.SingleFieldBuilder<
3138 com.openxc.BinaryMessages.RTCConfigurationCommand, com.openxc.BinaryMessages.RTCConfigurationCommand.Builder, com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder> rtcConfigurationCommandBuilder_;
3139 public boolean hasRtcConfigurationCommand() {
3140 return ((bitField0_ & 0x00000080) == 0x00000080);
3142 public com.openxc.BinaryMessages.RTCConfigurationCommand getRtcConfigurationCommand() {
3143 if (rtcConfigurationCommandBuilder_ == null) {
3144 return rtcConfigurationCommand_;
3146 return rtcConfigurationCommandBuilder_.getMessage();
3149 public Builder setRtcConfigurationCommand(com.openxc.BinaryMessages.RTCConfigurationCommand value) {
3150 if (rtcConfigurationCommandBuilder_ == null) {
3151 if (value == null) {
3152 throw new NullPointerException();
3154 rtcConfigurationCommand_ = value;
3157 rtcConfigurationCommandBuilder_.setMessage(value);
3159 bitField0_ |= 0x00000080;
3162 public Builder setRtcConfigurationCommand(
3163 com.openxc.BinaryMessages.RTCConfigurationCommand.Builder builderForValue) {
3164 if (rtcConfigurationCommandBuilder_ == null) {
3165 rtcConfigurationCommand_ = builderForValue.build();
3168 rtcConfigurationCommandBuilder_.setMessage(builderForValue.build());
3170 bitField0_ |= 0x00000080;
3173 public Builder mergeRtcConfigurationCommand(com.openxc.BinaryMessages.RTCConfigurationCommand value) {
3174 if (rtcConfigurationCommandBuilder_ == null) {
3175 if (((bitField0_ & 0x00000080) == 0x00000080) &&
3176 rtcConfigurationCommand_ != com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance()) {
3177 rtcConfigurationCommand_ =
3178 com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder(rtcConfigurationCommand_).mergeFrom(value).buildPartial();
3180 rtcConfigurationCommand_ = value;
3184 rtcConfigurationCommandBuilder_.mergeFrom(value);
3186 bitField0_ |= 0x00000080;
3189 public Builder clearRtcConfigurationCommand() {
3190 if (rtcConfigurationCommandBuilder_ == null) {
3191 rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
3194 rtcConfigurationCommandBuilder_.clear();
3196 bitField0_ = (bitField0_ & ~0x00000080);
3199 public com.openxc.BinaryMessages.RTCConfigurationCommand.Builder getRtcConfigurationCommandBuilder() {
3200 bitField0_ |= 0x00000080;
3202 return getRtcConfigurationCommandFieldBuilder().getBuilder();
3204 public com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder getRtcConfigurationCommandOrBuilder() {
3205 if (rtcConfigurationCommandBuilder_ != null) {
3206 return rtcConfigurationCommandBuilder_.getMessageOrBuilder();
3208 return rtcConfigurationCommand_;
3211 private com.google.protobuf.SingleFieldBuilder<
3212 com.openxc.BinaryMessages.RTCConfigurationCommand, com.openxc.BinaryMessages.RTCConfigurationCommand.Builder, com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder>
3213 getRtcConfigurationCommandFieldBuilder() {
3214 if (rtcConfigurationCommandBuilder_ == null) {
3215 rtcConfigurationCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3216 com.openxc.BinaryMessages.RTCConfigurationCommand, com.openxc.BinaryMessages.RTCConfigurationCommand.Builder, com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder>(
3217 rtcConfigurationCommand_,
3218 getParentForChildren(),
3220 rtcConfigurationCommand_ = null;
3222 return rtcConfigurationCommandBuilder_;
3225 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
3229 defaultInstance = new ControlCommand(true);
3230 defaultInstance.initFields();
3233 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
3236 public interface DiagnosticControlCommandOrBuilder
3237 extends com.google.protobuf.MessageOrBuilder {
3239 // optional .openxc.DiagnosticRequest request = 1;
3240 boolean hasRequest();
3241 com.openxc.BinaryMessages.DiagnosticRequest getRequest();
3242 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder();
3244 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3245 boolean hasAction();
3246 com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction();
3248 public static final class DiagnosticControlCommand extends
3249 com.google.protobuf.GeneratedMessage
3250 implements DiagnosticControlCommandOrBuilder {
3251 // Use DiagnosticControlCommand.newBuilder() to construct.
3252 private DiagnosticControlCommand(Builder builder) {
3255 private DiagnosticControlCommand(boolean noInit) {}
3257 private static final DiagnosticControlCommand defaultInstance;
3258 public static DiagnosticControlCommand getDefaultInstance() {
3259 return defaultInstance;
3262 public DiagnosticControlCommand getDefaultInstanceForType() {
3263 return defaultInstance;
3266 public static final com.google.protobuf.Descriptors.Descriptor
3268 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3271 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3272 internalGetFieldAccessorTable() {
3273 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
3277 implements com.google.protobuf.ProtocolMessageEnum {
3282 public static final int ADD_VALUE = 1;
3283 public static final int CANCEL_VALUE = 2;
3286 public final int getNumber() { return value; }
3288 public static Action valueOf(int value) {
3291 case 2: return CANCEL;
3292 default: return null;
3296 public static com.google.protobuf.Internal.EnumLiteMap<Action>
3297 internalGetValueMap() {
3298 return internalValueMap;
3300 private static com.google.protobuf.Internal.EnumLiteMap<Action>
3302 new com.google.protobuf.Internal.EnumLiteMap<Action>() {
3303 public Action findValueByNumber(int number) {
3304 return Action.valueOf(number);
3308 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3309 getValueDescriptor() {
3310 return getDescriptor().getValues().get(index);
3312 public final com.google.protobuf.Descriptors.EnumDescriptor
3313 getDescriptorForType() {
3314 return getDescriptor();
3316 public static final com.google.protobuf.Descriptors.EnumDescriptor
3318 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor().getEnumTypes().get(0);
3321 private static final Action[] VALUES = {
3325 public static Action valueOf(
3326 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3327 if (desc.getType() != getDescriptor()) {
3328 throw new java.lang.IllegalArgumentException(
3329 "EnumValueDescriptor is not for this type.");
3331 return VALUES[desc.getIndex()];
3334 private final int index;
3335 private final int value;
3337 private Action(int index, int value) {
3342 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticControlCommand.Action)
3345 private int bitField0_;
3346 // optional .openxc.DiagnosticRequest request = 1;
3347 public static final int REQUEST_FIELD_NUMBER = 1;
3348 private com.openxc.BinaryMessages.DiagnosticRequest request_;
3349 public boolean hasRequest() {
3350 return ((bitField0_ & 0x00000001) == 0x00000001);
3352 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3355 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3359 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3360 public static final int ACTION_FIELD_NUMBER = 2;
3361 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_;
3362 public boolean hasAction() {
3363 return ((bitField0_ & 0x00000002) == 0x00000002);
3365 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3369 private void initFields() {
3370 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3371 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3373 private byte memoizedIsInitialized = -1;
3374 public final boolean isInitialized() {
3375 byte isInitialized = memoizedIsInitialized;
3376 if (isInitialized != -1) return isInitialized == 1;
3378 memoizedIsInitialized = 1;
3382 public void writeTo(com.google.protobuf.CodedOutputStream output)
3383 throws java.io.IOException {
3384 getSerializedSize();
3385 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3386 output.writeMessage(1, request_);
3388 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3389 output.writeEnum(2, action_.getNumber());
3391 getUnknownFields().writeTo(output);
3394 private int memoizedSerializedSize = -1;
3395 public int getSerializedSize() {
3396 int size = memoizedSerializedSize;
3397 if (size != -1) return size;
3400 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3401 size += com.google.protobuf.CodedOutputStream
3402 .computeMessageSize(1, request_);
3404 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3405 size += com.google.protobuf.CodedOutputStream
3406 .computeEnumSize(2, action_.getNumber());
3408 size += getUnknownFields().getSerializedSize();
3409 memoizedSerializedSize = size;
3413 private static final long serialVersionUID = 0L;
3415 protected java.lang.Object writeReplace()
3416 throws java.io.ObjectStreamException {
3417 return super.writeReplace();
3420 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3421 com.google.protobuf.ByteString data)
3422 throws com.google.protobuf.InvalidProtocolBufferException {
3423 return newBuilder().mergeFrom(data).buildParsed();
3425 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3426 com.google.protobuf.ByteString data,
3427 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3428 throws com.google.protobuf.InvalidProtocolBufferException {
3429 return newBuilder().mergeFrom(data, extensionRegistry)
3432 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(byte[] data)
3433 throws com.google.protobuf.InvalidProtocolBufferException {
3434 return newBuilder().mergeFrom(data).buildParsed();
3436 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3438 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3439 throws com.google.protobuf.InvalidProtocolBufferException {
3440 return newBuilder().mergeFrom(data, extensionRegistry)
3443 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(java.io.InputStream input)
3444 throws java.io.IOException {
3445 return newBuilder().mergeFrom(input).buildParsed();
3447 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3448 java.io.InputStream input,
3449 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3450 throws java.io.IOException {
3451 return newBuilder().mergeFrom(input, extensionRegistry)
3454 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(java.io.InputStream input)
3455 throws java.io.IOException {
3456 Builder builder = newBuilder();
3457 if (builder.mergeDelimitedFrom(input)) {
3458 return builder.buildParsed();
3463 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(
3464 java.io.InputStream input,
3465 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3466 throws java.io.IOException {
3467 Builder builder = newBuilder();
3468 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
3469 return builder.buildParsed();
3474 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3475 com.google.protobuf.CodedInputStream input)
3476 throws java.io.IOException {
3477 return newBuilder().mergeFrom(input).buildParsed();
3479 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3480 com.google.protobuf.CodedInputStream input,
3481 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3482 throws java.io.IOException {
3483 return newBuilder().mergeFrom(input, extensionRegistry)
3487 public static Builder newBuilder() { return Builder.create(); }
3488 public Builder newBuilderForType() { return newBuilder(); }
3489 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticControlCommand prototype) {
3490 return newBuilder().mergeFrom(prototype);
3492 public Builder toBuilder() { return newBuilder(this); }
3495 protected Builder newBuilderForType(
3496 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3497 Builder builder = new Builder(parent);
3500 public static final class Builder extends
3501 com.google.protobuf.GeneratedMessage.Builder<Builder>
3502 implements com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder {
3503 public static final com.google.protobuf.Descriptors.Descriptor
3505 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3508 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3509 internalGetFieldAccessorTable() {
3510 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
3513 // Construct using com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder()
3515 maybeForceBuilderInitialization();
3518 private Builder(BuilderParent parent) {
3520 maybeForceBuilderInitialization();
3522 private void maybeForceBuilderInitialization() {
3523 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3524 getRequestFieldBuilder();
3527 private static Builder create() {
3528 return new Builder();
3531 public Builder clear() {
3533 if (requestBuilder_ == null) {
3534 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3536 requestBuilder_.clear();
3538 bitField0_ = (bitField0_ & ~0x00000001);
3539 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3540 bitField0_ = (bitField0_ & ~0x00000002);
3544 public Builder clone() {
3545 return create().mergeFrom(buildPartial());
3548 public com.google.protobuf.Descriptors.Descriptor
3549 getDescriptorForType() {
3550 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor();
3553 public com.openxc.BinaryMessages.DiagnosticControlCommand getDefaultInstanceForType() {
3554 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3557 public com.openxc.BinaryMessages.DiagnosticControlCommand build() {
3558 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
3559 if (!result.isInitialized()) {
3560 throw newUninitializedMessageException(result);
3565 private com.openxc.BinaryMessages.DiagnosticControlCommand buildParsed()
3566 throws com.google.protobuf.InvalidProtocolBufferException {
3567 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
3568 if (!result.isInitialized()) {
3569 throw newUninitializedMessageException(
3570 result).asInvalidProtocolBufferException();
3575 public com.openxc.BinaryMessages.DiagnosticControlCommand buildPartial() {
3576 com.openxc.BinaryMessages.DiagnosticControlCommand result = new com.openxc.BinaryMessages.DiagnosticControlCommand(this);
3577 int from_bitField0_ = bitField0_;
3578 int to_bitField0_ = 0;
3579 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3580 to_bitField0_ |= 0x00000001;
3582 if (requestBuilder_ == null) {
3583 result.request_ = request_;
3585 result.request_ = requestBuilder_.build();
3587 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
3588 to_bitField0_ |= 0x00000002;
3590 result.action_ = action_;
3591 result.bitField0_ = to_bitField0_;
3596 public Builder mergeFrom(com.google.protobuf.Message other) {
3597 if (other instanceof com.openxc.BinaryMessages.DiagnosticControlCommand) {
3598 return mergeFrom((com.openxc.BinaryMessages.DiagnosticControlCommand)other);
3600 super.mergeFrom(other);
3605 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticControlCommand other) {
3606 if (other == com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) return this;
3607 if (other.hasRequest()) {
3608 mergeRequest(other.getRequest());
3610 if (other.hasAction()) {
3611 setAction(other.getAction());
3613 this.mergeUnknownFields(other.getUnknownFields());
3617 public final boolean isInitialized() {
3621 public Builder mergeFrom(
3622 com.google.protobuf.CodedInputStream input,
3623 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3624 throws java.io.IOException {
3625 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3626 com.google.protobuf.UnknownFieldSet.newBuilder(
3627 this.getUnknownFields());
3629 int tag = input.readTag();
3632 this.setUnknownFields(unknownFields.build());
3636 if (!parseUnknownField(input, unknownFields,
3637 extensionRegistry, tag)) {
3638 this.setUnknownFields(unknownFields.build());
3645 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = com.openxc.BinaryMessages.DiagnosticRequest.newBuilder();
3647 subBuilder.mergeFrom(getRequest());
3649 input.readMessage(subBuilder, extensionRegistry);
3650 setRequest(subBuilder.buildPartial());
3654 int rawValue = input.readEnum();
3655 com.openxc.BinaryMessages.DiagnosticControlCommand.Action value = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.valueOf(rawValue);
3656 if (value == null) {
3657 unknownFields.mergeVarintField(2, rawValue);
3659 bitField0_ |= 0x00000002;
3668 private int bitField0_;
3670 // optional .openxc.DiagnosticRequest request = 1;
3671 private com.openxc.BinaryMessages.DiagnosticRequest request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3672 private com.google.protobuf.SingleFieldBuilder<
3673 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> requestBuilder_;
3674 public boolean hasRequest() {
3675 return ((bitField0_ & 0x00000001) == 0x00000001);
3677 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3678 if (requestBuilder_ == null) {
3681 return requestBuilder_.getMessage();
3684 public Builder setRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
3685 if (requestBuilder_ == null) {
3686 if (value == null) {
3687 throw new NullPointerException();
3692 requestBuilder_.setMessage(value);
3694 bitField0_ |= 0x00000001;
3697 public Builder setRequest(
3698 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
3699 if (requestBuilder_ == null) {
3700 request_ = builderForValue.build();
3703 requestBuilder_.setMessage(builderForValue.build());
3705 bitField0_ |= 0x00000001;
3708 public Builder mergeRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
3709 if (requestBuilder_ == null) {
3710 if (((bitField0_ & 0x00000001) == 0x00000001) &&
3711 request_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
3713 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(request_).mergeFrom(value).buildPartial();
3719 requestBuilder_.mergeFrom(value);
3721 bitField0_ |= 0x00000001;
3724 public Builder clearRequest() {
3725 if (requestBuilder_ == null) {
3726 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3729 requestBuilder_.clear();
3731 bitField0_ = (bitField0_ & ~0x00000001);
3734 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getRequestBuilder() {
3735 bitField0_ |= 0x00000001;
3737 return getRequestFieldBuilder().getBuilder();
3739 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3740 if (requestBuilder_ != null) {
3741 return requestBuilder_.getMessageOrBuilder();
3746 private com.google.protobuf.SingleFieldBuilder<
3747 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
3748 getRequestFieldBuilder() {
3749 if (requestBuilder_ == null) {
3750 requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3751 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
3753 getParentForChildren(),
3757 return requestBuilder_;
3760 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3761 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3762 public boolean hasAction() {
3763 return ((bitField0_ & 0x00000002) == 0x00000002);
3765 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3768 public Builder setAction(com.openxc.BinaryMessages.DiagnosticControlCommand.Action value) {
3769 if (value == null) {
3770 throw new NullPointerException();
3772 bitField0_ |= 0x00000002;
3777 public Builder clearAction() {
3778 bitField0_ = (bitField0_ & ~0x00000002);
3779 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3784 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticControlCommand)
3788 defaultInstance = new DiagnosticControlCommand(true);
3789 defaultInstance.initFields();
3792 // @@protoc_insertion_point(class_scope:openxc.DiagnosticControlCommand)
3795 public interface PassthroughModeControlCommandOrBuilder
3796 extends com.google.protobuf.MessageOrBuilder {
3798 // optional int32 bus = 1;
3802 // optional bool enabled = 2;
3803 boolean hasEnabled();
3804 boolean getEnabled();
3806 public static final class PassthroughModeControlCommand extends
3807 com.google.protobuf.GeneratedMessage
3808 implements PassthroughModeControlCommandOrBuilder {
3809 // Use PassthroughModeControlCommand.newBuilder() to construct.
3810 private PassthroughModeControlCommand(Builder builder) {
3813 private PassthroughModeControlCommand(boolean noInit) {}
3815 private static final PassthroughModeControlCommand defaultInstance;
3816 public static PassthroughModeControlCommand getDefaultInstance() {
3817 return defaultInstance;
3820 public PassthroughModeControlCommand getDefaultInstanceForType() {
3821 return defaultInstance;
3824 public static final com.google.protobuf.Descriptors.Descriptor
3826 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
3829 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3830 internalGetFieldAccessorTable() {
3831 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
3834 private int bitField0_;
3835 // optional int32 bus = 1;
3836 public static final int BUS_FIELD_NUMBER = 1;
3838 public boolean hasBus() {
3839 return ((bitField0_ & 0x00000001) == 0x00000001);
3841 public int getBus() {
3845 // optional bool enabled = 2;
3846 public static final int ENABLED_FIELD_NUMBER = 2;
3847 private boolean enabled_;
3848 public boolean hasEnabled() {
3849 return ((bitField0_ & 0x00000002) == 0x00000002);
3851 public boolean getEnabled() {
3855 private void initFields() {
3859 private byte memoizedIsInitialized = -1;
3860 public final boolean isInitialized() {
3861 byte isInitialized = memoizedIsInitialized;
3862 if (isInitialized != -1) return isInitialized == 1;
3864 memoizedIsInitialized = 1;
3868 public void writeTo(com.google.protobuf.CodedOutputStream output)
3869 throws java.io.IOException {
3870 getSerializedSize();
3871 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3872 output.writeInt32(1, bus_);
3874 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3875 output.writeBool(2, enabled_);
3877 getUnknownFields().writeTo(output);
3880 private int memoizedSerializedSize = -1;
3881 public int getSerializedSize() {
3882 int size = memoizedSerializedSize;
3883 if (size != -1) return size;
3886 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3887 size += com.google.protobuf.CodedOutputStream
3888 .computeInt32Size(1, bus_);
3890 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3891 size += com.google.protobuf.CodedOutputStream
3892 .computeBoolSize(2, enabled_);
3894 size += getUnknownFields().getSerializedSize();
3895 memoizedSerializedSize = size;
3899 private static final long serialVersionUID = 0L;
3901 protected java.lang.Object writeReplace()
3902 throws java.io.ObjectStreamException {
3903 return super.writeReplace();
3906 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3907 com.google.protobuf.ByteString data)
3908 throws com.google.protobuf.InvalidProtocolBufferException {
3909 return newBuilder().mergeFrom(data).buildParsed();
3911 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3912 com.google.protobuf.ByteString data,
3913 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3914 throws com.google.protobuf.InvalidProtocolBufferException {
3915 return newBuilder().mergeFrom(data, extensionRegistry)
3918 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(byte[] data)
3919 throws com.google.protobuf.InvalidProtocolBufferException {
3920 return newBuilder().mergeFrom(data).buildParsed();
3922 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3924 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3925 throws com.google.protobuf.InvalidProtocolBufferException {
3926 return newBuilder().mergeFrom(data, extensionRegistry)
3929 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(java.io.InputStream input)
3930 throws java.io.IOException {
3931 return newBuilder().mergeFrom(input).buildParsed();
3933 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3934 java.io.InputStream input,
3935 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3936 throws java.io.IOException {
3937 return newBuilder().mergeFrom(input, extensionRegistry)
3940 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(java.io.InputStream input)
3941 throws java.io.IOException {
3942 Builder builder = newBuilder();
3943 if (builder.mergeDelimitedFrom(input)) {
3944 return builder.buildParsed();
3949 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(
3950 java.io.InputStream input,
3951 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3952 throws java.io.IOException {
3953 Builder builder = newBuilder();
3954 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
3955 return builder.buildParsed();
3960 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3961 com.google.protobuf.CodedInputStream input)
3962 throws java.io.IOException {
3963 return newBuilder().mergeFrom(input).buildParsed();
3965 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3966 com.google.protobuf.CodedInputStream input,
3967 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3968 throws java.io.IOException {
3969 return newBuilder().mergeFrom(input, extensionRegistry)
3973 public static Builder newBuilder() { return Builder.create(); }
3974 public Builder newBuilderForType() { return newBuilder(); }
3975 public static Builder newBuilder(com.openxc.BinaryMessages.PassthroughModeControlCommand prototype) {
3976 return newBuilder().mergeFrom(prototype);
3978 public Builder toBuilder() { return newBuilder(this); }
3981 protected Builder newBuilderForType(
3982 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3983 Builder builder = new Builder(parent);
3986 public static final class Builder extends
3987 com.google.protobuf.GeneratedMessage.Builder<Builder>
3988 implements com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder {
3989 public static final com.google.protobuf.Descriptors.Descriptor
3991 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
3994 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3995 internalGetFieldAccessorTable() {
3996 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
3999 // Construct using com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder()
4001 maybeForceBuilderInitialization();
4004 private Builder(BuilderParent parent) {
4006 maybeForceBuilderInitialization();
4008 private void maybeForceBuilderInitialization() {
4009 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4012 private static Builder create() {
4013 return new Builder();
4016 public Builder clear() {
4019 bitField0_ = (bitField0_ & ~0x00000001);
4021 bitField0_ = (bitField0_ & ~0x00000002);
4025 public Builder clone() {
4026 return create().mergeFrom(buildPartial());
4029 public com.google.protobuf.Descriptors.Descriptor
4030 getDescriptorForType() {
4031 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDescriptor();
4034 public com.openxc.BinaryMessages.PassthroughModeControlCommand getDefaultInstanceForType() {
4035 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
4038 public com.openxc.BinaryMessages.PassthroughModeControlCommand build() {
4039 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4040 if (!result.isInitialized()) {
4041 throw newUninitializedMessageException(result);
4046 private com.openxc.BinaryMessages.PassthroughModeControlCommand buildParsed()
4047 throws com.google.protobuf.InvalidProtocolBufferException {
4048 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4049 if (!result.isInitialized()) {
4050 throw newUninitializedMessageException(
4051 result).asInvalidProtocolBufferException();
4056 public com.openxc.BinaryMessages.PassthroughModeControlCommand buildPartial() {
4057 com.openxc.BinaryMessages.PassthroughModeControlCommand result = new com.openxc.BinaryMessages.PassthroughModeControlCommand(this);
4058 int from_bitField0_ = bitField0_;
4059 int to_bitField0_ = 0;
4060 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4061 to_bitField0_ |= 0x00000001;
4064 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4065 to_bitField0_ |= 0x00000002;
4067 result.enabled_ = enabled_;
4068 result.bitField0_ = to_bitField0_;
4073 public Builder mergeFrom(com.google.protobuf.Message other) {
4074 if (other instanceof com.openxc.BinaryMessages.PassthroughModeControlCommand) {
4075 return mergeFrom((com.openxc.BinaryMessages.PassthroughModeControlCommand)other);
4077 super.mergeFrom(other);
4082 public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) {
4083 if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this;
4084 if (other.hasBus()) {
4085 setBus(other.getBus());
4087 if (other.hasEnabled()) {
4088 setEnabled(other.getEnabled());
4090 this.mergeUnknownFields(other.getUnknownFields());
4094 public final boolean isInitialized() {
4098 public Builder mergeFrom(
4099 com.google.protobuf.CodedInputStream input,
4100 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4101 throws java.io.IOException {
4102 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4103 com.google.protobuf.UnknownFieldSet.newBuilder(
4104 this.getUnknownFields());
4106 int tag = input.readTag();
4109 this.setUnknownFields(unknownFields.build());
4113 if (!parseUnknownField(input, unknownFields,
4114 extensionRegistry, tag)) {
4115 this.setUnknownFields(unknownFields.build());
4122 bitField0_ |= 0x00000001;
4123 bus_ = input.readInt32();
4127 bitField0_ |= 0x00000002;
4128 enabled_ = input.readBool();
4135 private int bitField0_;
4137 // optional int32 bus = 1;
4139 public boolean hasBus() {
4140 return ((bitField0_ & 0x00000001) == 0x00000001);
4142 public int getBus() {
4145 public Builder setBus(int value) {
4146 bitField0_ |= 0x00000001;
4151 public Builder clearBus() {
4152 bitField0_ = (bitField0_ & ~0x00000001);
4158 // optional bool enabled = 2;
4159 private boolean enabled_ ;
4160 public boolean hasEnabled() {
4161 return ((bitField0_ & 0x00000002) == 0x00000002);
4163 public boolean getEnabled() {
4166 public Builder setEnabled(boolean value) {
4167 bitField0_ |= 0x00000002;
4172 public Builder clearEnabled() {
4173 bitField0_ = (bitField0_ & ~0x00000002);
4179 // @@protoc_insertion_point(builder_scope:openxc.PassthroughModeControlCommand)
4183 defaultInstance = new PassthroughModeControlCommand(true);
4184 defaultInstance.initFields();
4187 // @@protoc_insertion_point(class_scope:openxc.PassthroughModeControlCommand)
4190 public interface AcceptanceFilterBypassCommandOrBuilder
4191 extends com.google.protobuf.MessageOrBuilder {
4193 // optional int32 bus = 1;
4197 // optional bool bypass = 2;
4198 boolean hasBypass();
4199 boolean getBypass();
4201 public static final class AcceptanceFilterBypassCommand extends
4202 com.google.protobuf.GeneratedMessage
4203 implements AcceptanceFilterBypassCommandOrBuilder {
4204 // Use AcceptanceFilterBypassCommand.newBuilder() to construct.
4205 private AcceptanceFilterBypassCommand(Builder builder) {
4208 private AcceptanceFilterBypassCommand(boolean noInit) {}
4210 private static final AcceptanceFilterBypassCommand defaultInstance;
4211 public static AcceptanceFilterBypassCommand getDefaultInstance() {
4212 return defaultInstance;
4215 public AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4216 return defaultInstance;
4219 public static final com.google.protobuf.Descriptors.Descriptor
4221 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4224 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4225 internalGetFieldAccessorTable() {
4226 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
4229 private int bitField0_;
4230 // optional int32 bus = 1;
4231 public static final int BUS_FIELD_NUMBER = 1;
4233 public boolean hasBus() {
4234 return ((bitField0_ & 0x00000001) == 0x00000001);
4236 public int getBus() {
4240 // optional bool bypass = 2;
4241 public static final int BYPASS_FIELD_NUMBER = 2;
4242 private boolean bypass_;
4243 public boolean hasBypass() {
4244 return ((bitField0_ & 0x00000002) == 0x00000002);
4246 public boolean getBypass() {
4250 private void initFields() {
4254 private byte memoizedIsInitialized = -1;
4255 public final boolean isInitialized() {
4256 byte isInitialized = memoizedIsInitialized;
4257 if (isInitialized != -1) return isInitialized == 1;
4259 memoizedIsInitialized = 1;
4263 public void writeTo(com.google.protobuf.CodedOutputStream output)
4264 throws java.io.IOException {
4265 getSerializedSize();
4266 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4267 output.writeInt32(1, bus_);
4269 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4270 output.writeBool(2, bypass_);
4272 getUnknownFields().writeTo(output);
4275 private int memoizedSerializedSize = -1;
4276 public int getSerializedSize() {
4277 int size = memoizedSerializedSize;
4278 if (size != -1) return size;
4281 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4282 size += com.google.protobuf.CodedOutputStream
4283 .computeInt32Size(1, bus_);
4285 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4286 size += com.google.protobuf.CodedOutputStream
4287 .computeBoolSize(2, bypass_);
4289 size += getUnknownFields().getSerializedSize();
4290 memoizedSerializedSize = size;
4294 private static final long serialVersionUID = 0L;
4296 protected java.lang.Object writeReplace()
4297 throws java.io.ObjectStreamException {
4298 return super.writeReplace();
4301 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4302 com.google.protobuf.ByteString data)
4303 throws com.google.protobuf.InvalidProtocolBufferException {
4304 return newBuilder().mergeFrom(data).buildParsed();
4306 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4307 com.google.protobuf.ByteString data,
4308 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4309 throws com.google.protobuf.InvalidProtocolBufferException {
4310 return newBuilder().mergeFrom(data, extensionRegistry)
4313 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(byte[] data)
4314 throws com.google.protobuf.InvalidProtocolBufferException {
4315 return newBuilder().mergeFrom(data).buildParsed();
4317 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4319 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4320 throws com.google.protobuf.InvalidProtocolBufferException {
4321 return newBuilder().mergeFrom(data, extensionRegistry)
4324 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(java.io.InputStream input)
4325 throws java.io.IOException {
4326 return newBuilder().mergeFrom(input).buildParsed();
4328 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4329 java.io.InputStream input,
4330 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4331 throws java.io.IOException {
4332 return newBuilder().mergeFrom(input, extensionRegistry)
4335 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(java.io.InputStream input)
4336 throws java.io.IOException {
4337 Builder builder = newBuilder();
4338 if (builder.mergeDelimitedFrom(input)) {
4339 return builder.buildParsed();
4344 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(
4345 java.io.InputStream input,
4346 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4347 throws java.io.IOException {
4348 Builder builder = newBuilder();
4349 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
4350 return builder.buildParsed();
4355 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4356 com.google.protobuf.CodedInputStream input)
4357 throws java.io.IOException {
4358 return newBuilder().mergeFrom(input).buildParsed();
4360 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4361 com.google.protobuf.CodedInputStream input,
4362 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4363 throws java.io.IOException {
4364 return newBuilder().mergeFrom(input, extensionRegistry)
4368 public static Builder newBuilder() { return Builder.create(); }
4369 public Builder newBuilderForType() { return newBuilder(); }
4370 public static Builder newBuilder(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand prototype) {
4371 return newBuilder().mergeFrom(prototype);
4373 public Builder toBuilder() { return newBuilder(this); }
4376 protected Builder newBuilderForType(
4377 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4378 Builder builder = new Builder(parent);
4381 public static final class Builder extends
4382 com.google.protobuf.GeneratedMessage.Builder<Builder>
4383 implements com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder {
4384 public static final com.google.protobuf.Descriptors.Descriptor
4386 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4389 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4390 internalGetFieldAccessorTable() {
4391 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
4394 // Construct using com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder()
4396 maybeForceBuilderInitialization();
4399 private Builder(BuilderParent parent) {
4401 maybeForceBuilderInitialization();
4403 private void maybeForceBuilderInitialization() {
4404 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4407 private static Builder create() {
4408 return new Builder();
4411 public Builder clear() {
4414 bitField0_ = (bitField0_ & ~0x00000001);
4416 bitField0_ = (bitField0_ & ~0x00000002);
4420 public Builder clone() {
4421 return create().mergeFrom(buildPartial());
4424 public com.google.protobuf.Descriptors.Descriptor
4425 getDescriptorForType() {
4426 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDescriptor();
4429 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4430 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
4433 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand build() {
4434 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
4435 if (!result.isInitialized()) {
4436 throw newUninitializedMessageException(result);
4441 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildParsed()
4442 throws com.google.protobuf.InvalidProtocolBufferException {
4443 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
4444 if (!result.isInitialized()) {
4445 throw newUninitializedMessageException(
4446 result).asInvalidProtocolBufferException();
4451 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildPartial() {
4452 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = new com.openxc.BinaryMessages.AcceptanceFilterBypassCommand(this);
4453 int from_bitField0_ = bitField0_;
4454 int to_bitField0_ = 0;
4455 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4456 to_bitField0_ |= 0x00000001;
4459 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4460 to_bitField0_ |= 0x00000002;
4462 result.bypass_ = bypass_;
4463 result.bitField0_ = to_bitField0_;
4468 public Builder mergeFrom(com.google.protobuf.Message other) {
4469 if (other instanceof com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) {
4470 return mergeFrom((com.openxc.BinaryMessages.AcceptanceFilterBypassCommand)other);
4472 super.mergeFrom(other);
4477 public Builder mergeFrom(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other) {
4478 if (other == com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) return this;
4479 if (other.hasBus()) {
4480 setBus(other.getBus());
4482 if (other.hasBypass()) {
4483 setBypass(other.getBypass());
4485 this.mergeUnknownFields(other.getUnknownFields());
4489 public final boolean isInitialized() {
4493 public Builder mergeFrom(
4494 com.google.protobuf.CodedInputStream input,
4495 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4496 throws java.io.IOException {
4497 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4498 com.google.protobuf.UnknownFieldSet.newBuilder(
4499 this.getUnknownFields());
4501 int tag = input.readTag();
4504 this.setUnknownFields(unknownFields.build());
4508 if (!parseUnknownField(input, unknownFields,
4509 extensionRegistry, tag)) {
4510 this.setUnknownFields(unknownFields.build());
4517 bitField0_ |= 0x00000001;
4518 bus_ = input.readInt32();
4522 bitField0_ |= 0x00000002;
4523 bypass_ = input.readBool();
4530 private int bitField0_;
4532 // optional int32 bus = 1;
4534 public boolean hasBus() {
4535 return ((bitField0_ & 0x00000001) == 0x00000001);
4537 public int getBus() {
4540 public Builder setBus(int value) {
4541 bitField0_ |= 0x00000001;
4546 public Builder clearBus() {
4547 bitField0_ = (bitField0_ & ~0x00000001);
4553 // optional bool bypass = 2;
4554 private boolean bypass_ ;
4555 public boolean hasBypass() {
4556 return ((bitField0_ & 0x00000002) == 0x00000002);
4558 public boolean getBypass() {
4561 public Builder setBypass(boolean value) {
4562 bitField0_ |= 0x00000002;
4567 public Builder clearBypass() {
4568 bitField0_ = (bitField0_ & ~0x00000002);
4574 // @@protoc_insertion_point(builder_scope:openxc.AcceptanceFilterBypassCommand)
4578 defaultInstance = new AcceptanceFilterBypassCommand(true);
4579 defaultInstance.initFields();
4582 // @@protoc_insertion_point(class_scope:openxc.AcceptanceFilterBypassCommand)
4585 public interface PayloadFormatCommandOrBuilder
4586 extends com.google.protobuf.MessageOrBuilder {
4588 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
4589 boolean hasFormat();
4590 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat();
4592 public static final class PayloadFormatCommand extends
4593 com.google.protobuf.GeneratedMessage
4594 implements PayloadFormatCommandOrBuilder {
4595 // Use PayloadFormatCommand.newBuilder() to construct.
4596 private PayloadFormatCommand(Builder builder) {
4599 private PayloadFormatCommand(boolean noInit) {}
4601 private static final PayloadFormatCommand defaultInstance;
4602 public static PayloadFormatCommand getDefaultInstance() {
4603 return defaultInstance;
4606 public PayloadFormatCommand getDefaultInstanceForType() {
4607 return defaultInstance;
4610 public static final com.google.protobuf.Descriptors.Descriptor
4612 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
4615 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4616 internalGetFieldAccessorTable() {
4617 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
4620 public enum PayloadFormat
4621 implements com.google.protobuf.ProtocolMessageEnum {
4627 public static final int JSON_VALUE = 1;
4628 public static final int PROTOBUF_VALUE = 2;
4629 public static final int MESSAGEPACK_VALUE = 3;
4632 public final int getNumber() { return value; }
4634 public static PayloadFormat valueOf(int value) {
4636 case 1: return JSON;
4637 case 2: return PROTOBUF;
4638 case 3: return MESSAGEPACK;
4639 default: return null;
4643 public static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
4644 internalGetValueMap() {
4645 return internalValueMap;
4647 private static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
4649 new com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>() {
4650 public PayloadFormat findValueByNumber(int number) {
4651 return PayloadFormat.valueOf(number);
4655 public final com.google.protobuf.Descriptors.EnumValueDescriptor
4656 getValueDescriptor() {
4657 return getDescriptor().getValues().get(index);
4659 public final com.google.protobuf.Descriptors.EnumDescriptor
4660 getDescriptorForType() {
4661 return getDescriptor();
4663 public static final com.google.protobuf.Descriptors.EnumDescriptor
4665 return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor().getEnumTypes().get(0);
4668 private static final PayloadFormat[] VALUES = {
4669 JSON, PROTOBUF, MESSAGEPACK,
4672 public static PayloadFormat valueOf(
4673 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
4674 if (desc.getType() != getDescriptor()) {
4675 throw new java.lang.IllegalArgumentException(
4676 "EnumValueDescriptor is not for this type.");
4678 return VALUES[desc.getIndex()];
4681 private final int index;
4682 private final int value;
4684 private PayloadFormat(int index, int value) {
4689 // @@protoc_insertion_point(enum_scope:openxc.PayloadFormatCommand.PayloadFormat)
4692 private int bitField0_;
4693 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
4694 public static final int FORMAT_FIELD_NUMBER = 1;
4695 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_;
4696 public boolean hasFormat() {
4697 return ((bitField0_ & 0x00000001) == 0x00000001);
4699 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
4703 private void initFields() {
4704 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4706 private byte memoizedIsInitialized = -1;
4707 public final boolean isInitialized() {
4708 byte isInitialized = memoizedIsInitialized;
4709 if (isInitialized != -1) return isInitialized == 1;
4711 memoizedIsInitialized = 1;
4715 public void writeTo(com.google.protobuf.CodedOutputStream output)
4716 throws java.io.IOException {
4717 getSerializedSize();
4718 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4719 output.writeEnum(1, format_.getNumber());
4721 getUnknownFields().writeTo(output);
4724 private int memoizedSerializedSize = -1;
4725 public int getSerializedSize() {
4726 int size = memoizedSerializedSize;
4727 if (size != -1) return size;
4730 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4731 size += com.google.protobuf.CodedOutputStream
4732 .computeEnumSize(1, format_.getNumber());
4734 size += getUnknownFields().getSerializedSize();
4735 memoizedSerializedSize = size;
4739 private static final long serialVersionUID = 0L;
4741 protected java.lang.Object writeReplace()
4742 throws java.io.ObjectStreamException {
4743 return super.writeReplace();
4746 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4747 com.google.protobuf.ByteString data)
4748 throws com.google.protobuf.InvalidProtocolBufferException {
4749 return newBuilder().mergeFrom(data).buildParsed();
4751 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4752 com.google.protobuf.ByteString data,
4753 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4754 throws com.google.protobuf.InvalidProtocolBufferException {
4755 return newBuilder().mergeFrom(data, extensionRegistry)
4758 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(byte[] data)
4759 throws com.google.protobuf.InvalidProtocolBufferException {
4760 return newBuilder().mergeFrom(data).buildParsed();
4762 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4764 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4765 throws com.google.protobuf.InvalidProtocolBufferException {
4766 return newBuilder().mergeFrom(data, extensionRegistry)
4769 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(java.io.InputStream input)
4770 throws java.io.IOException {
4771 return newBuilder().mergeFrom(input).buildParsed();
4773 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4774 java.io.InputStream input,
4775 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4776 throws java.io.IOException {
4777 return newBuilder().mergeFrom(input, extensionRegistry)
4780 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(java.io.InputStream input)
4781 throws java.io.IOException {
4782 Builder builder = newBuilder();
4783 if (builder.mergeDelimitedFrom(input)) {
4784 return builder.buildParsed();
4789 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(
4790 java.io.InputStream input,
4791 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4792 throws java.io.IOException {
4793 Builder builder = newBuilder();
4794 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
4795 return builder.buildParsed();
4800 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4801 com.google.protobuf.CodedInputStream input)
4802 throws java.io.IOException {
4803 return newBuilder().mergeFrom(input).buildParsed();
4805 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4806 com.google.protobuf.CodedInputStream input,
4807 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4808 throws java.io.IOException {
4809 return newBuilder().mergeFrom(input, extensionRegistry)
4813 public static Builder newBuilder() { return Builder.create(); }
4814 public Builder newBuilderForType() { return newBuilder(); }
4815 public static Builder newBuilder(com.openxc.BinaryMessages.PayloadFormatCommand prototype) {
4816 return newBuilder().mergeFrom(prototype);
4818 public Builder toBuilder() { return newBuilder(this); }
4821 protected Builder newBuilderForType(
4822 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4823 Builder builder = new Builder(parent);
4826 public static final class Builder extends
4827 com.google.protobuf.GeneratedMessage.Builder<Builder>
4828 implements com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder {
4829 public static final com.google.protobuf.Descriptors.Descriptor
4831 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
4834 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4835 internalGetFieldAccessorTable() {
4836 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
4839 // Construct using com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder()
4841 maybeForceBuilderInitialization();
4844 private Builder(BuilderParent parent) {
4846 maybeForceBuilderInitialization();
4848 private void maybeForceBuilderInitialization() {
4849 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4852 private static Builder create() {
4853 return new Builder();
4856 public Builder clear() {
4858 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4859 bitField0_ = (bitField0_ & ~0x00000001);
4863 public Builder clone() {
4864 return create().mergeFrom(buildPartial());
4867 public com.google.protobuf.Descriptors.Descriptor
4868 getDescriptorForType() {
4869 return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor();
4872 public com.openxc.BinaryMessages.PayloadFormatCommand getDefaultInstanceForType() {
4873 return com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
4876 public com.openxc.BinaryMessages.PayloadFormatCommand build() {
4877 com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial();
4878 if (!result.isInitialized()) {
4879 throw newUninitializedMessageException(result);
4884 private com.openxc.BinaryMessages.PayloadFormatCommand buildParsed()
4885 throws com.google.protobuf.InvalidProtocolBufferException {
4886 com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial();
4887 if (!result.isInitialized()) {
4888 throw newUninitializedMessageException(
4889 result).asInvalidProtocolBufferException();
4894 public com.openxc.BinaryMessages.PayloadFormatCommand buildPartial() {
4895 com.openxc.BinaryMessages.PayloadFormatCommand result = new com.openxc.BinaryMessages.PayloadFormatCommand(this);
4896 int from_bitField0_ = bitField0_;
4897 int to_bitField0_ = 0;
4898 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4899 to_bitField0_ |= 0x00000001;
4901 result.format_ = format_;
4902 result.bitField0_ = to_bitField0_;
4907 public Builder mergeFrom(com.google.protobuf.Message other) {
4908 if (other instanceof com.openxc.BinaryMessages.PayloadFormatCommand) {
4909 return mergeFrom((com.openxc.BinaryMessages.PayloadFormatCommand)other);
4911 super.mergeFrom(other);
4916 public Builder mergeFrom(com.openxc.BinaryMessages.PayloadFormatCommand other) {
4917 if (other == com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) return this;
4918 if (other.hasFormat()) {
4919 setFormat(other.getFormat());
4921 this.mergeUnknownFields(other.getUnknownFields());
4925 public final boolean isInitialized() {
4929 public Builder mergeFrom(
4930 com.google.protobuf.CodedInputStream input,
4931 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4932 throws java.io.IOException {
4933 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4934 com.google.protobuf.UnknownFieldSet.newBuilder(
4935 this.getUnknownFields());
4937 int tag = input.readTag();
4940 this.setUnknownFields(unknownFields.build());
4944 if (!parseUnknownField(input, unknownFields,
4945 extensionRegistry, tag)) {
4946 this.setUnknownFields(unknownFields.build());
4953 int rawValue = input.readEnum();
4954 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.valueOf(rawValue);
4955 if (value == null) {
4956 unknownFields.mergeVarintField(1, rawValue);
4958 bitField0_ |= 0x00000001;
4967 private int bitField0_;
4969 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
4970 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4971 public boolean hasFormat() {
4972 return ((bitField0_ & 0x00000001) == 0x00000001);
4974 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
4977 public Builder setFormat(com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value) {
4978 if (value == null) {
4979 throw new NullPointerException();
4981 bitField0_ |= 0x00000001;
4986 public Builder clearFormat() {
4987 bitField0_ = (bitField0_ & ~0x00000001);
4988 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4993 // @@protoc_insertion_point(builder_scope:openxc.PayloadFormatCommand)
4997 defaultInstance = new PayloadFormatCommand(true);
4998 defaultInstance.initFields();
5001 // @@protoc_insertion_point(class_scope:openxc.PayloadFormatCommand)
5004 public interface PredefinedObd2RequestsCommandOrBuilder
5005 extends com.google.protobuf.MessageOrBuilder {
5007 // optional bool enabled = 1;
5008 boolean hasEnabled();
5009 boolean getEnabled();
5011 public static final class PredefinedObd2RequestsCommand extends
5012 com.google.protobuf.GeneratedMessage
5013 implements PredefinedObd2RequestsCommandOrBuilder {
5014 // Use PredefinedObd2RequestsCommand.newBuilder() to construct.
5015 private PredefinedObd2RequestsCommand(Builder builder) {
5018 private PredefinedObd2RequestsCommand(boolean noInit) {}
5020 private static final PredefinedObd2RequestsCommand defaultInstance;
5021 public static PredefinedObd2RequestsCommand getDefaultInstance() {
5022 return defaultInstance;
5025 public PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5026 return defaultInstance;
5029 public static final com.google.protobuf.Descriptors.Descriptor
5031 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5034 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5035 internalGetFieldAccessorTable() {
5036 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
5039 private int bitField0_;
5040 // optional bool enabled = 1;
5041 public static final int ENABLED_FIELD_NUMBER = 1;
5042 private boolean enabled_;
5043 public boolean hasEnabled() {
5044 return ((bitField0_ & 0x00000001) == 0x00000001);
5046 public boolean getEnabled() {
5050 private void initFields() {
5053 private byte memoizedIsInitialized = -1;
5054 public final boolean isInitialized() {
5055 byte isInitialized = memoizedIsInitialized;
5056 if (isInitialized != -1) return isInitialized == 1;
5058 memoizedIsInitialized = 1;
5062 public void writeTo(com.google.protobuf.CodedOutputStream output)
5063 throws java.io.IOException {
5064 getSerializedSize();
5065 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5066 output.writeBool(1, enabled_);
5068 getUnknownFields().writeTo(output);
5071 private int memoizedSerializedSize = -1;
5072 public int getSerializedSize() {
5073 int size = memoizedSerializedSize;
5074 if (size != -1) return size;
5077 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5078 size += com.google.protobuf.CodedOutputStream
5079 .computeBoolSize(1, enabled_);
5081 size += getUnknownFields().getSerializedSize();
5082 memoizedSerializedSize = size;
5086 private static final long serialVersionUID = 0L;
5088 protected java.lang.Object writeReplace()
5089 throws java.io.ObjectStreamException {
5090 return super.writeReplace();
5093 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5094 com.google.protobuf.ByteString data)
5095 throws com.google.protobuf.InvalidProtocolBufferException {
5096 return newBuilder().mergeFrom(data).buildParsed();
5098 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5099 com.google.protobuf.ByteString data,
5100 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5101 throws com.google.protobuf.InvalidProtocolBufferException {
5102 return newBuilder().mergeFrom(data, extensionRegistry)
5105 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(byte[] data)
5106 throws com.google.protobuf.InvalidProtocolBufferException {
5107 return newBuilder().mergeFrom(data).buildParsed();
5109 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5111 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5112 throws com.google.protobuf.InvalidProtocolBufferException {
5113 return newBuilder().mergeFrom(data, extensionRegistry)
5116 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(java.io.InputStream input)
5117 throws java.io.IOException {
5118 return newBuilder().mergeFrom(input).buildParsed();
5120 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5121 java.io.InputStream input,
5122 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5123 throws java.io.IOException {
5124 return newBuilder().mergeFrom(input, extensionRegistry)
5127 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(java.io.InputStream input)
5128 throws java.io.IOException {
5129 Builder builder = newBuilder();
5130 if (builder.mergeDelimitedFrom(input)) {
5131 return builder.buildParsed();
5136 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(
5137 java.io.InputStream input,
5138 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5139 throws java.io.IOException {
5140 Builder builder = newBuilder();
5141 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
5142 return builder.buildParsed();
5147 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5148 com.google.protobuf.CodedInputStream input)
5149 throws java.io.IOException {
5150 return newBuilder().mergeFrom(input).buildParsed();
5152 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5153 com.google.protobuf.CodedInputStream input,
5154 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5155 throws java.io.IOException {
5156 return newBuilder().mergeFrom(input, extensionRegistry)
5160 public static Builder newBuilder() { return Builder.create(); }
5161 public Builder newBuilderForType() { return newBuilder(); }
5162 public static Builder newBuilder(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand prototype) {
5163 return newBuilder().mergeFrom(prototype);
5165 public Builder toBuilder() { return newBuilder(this); }
5168 protected Builder newBuilderForType(
5169 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5170 Builder builder = new Builder(parent);
5173 public static final class Builder extends
5174 com.google.protobuf.GeneratedMessage.Builder<Builder>
5175 implements com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder {
5176 public static final com.google.protobuf.Descriptors.Descriptor
5178 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5181 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5182 internalGetFieldAccessorTable() {
5183 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
5186 // Construct using com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder()
5188 maybeForceBuilderInitialization();
5191 private Builder(BuilderParent parent) {
5193 maybeForceBuilderInitialization();
5195 private void maybeForceBuilderInitialization() {
5196 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5199 private static Builder create() {
5200 return new Builder();
5203 public Builder clear() {
5206 bitField0_ = (bitField0_ & ~0x00000001);
5210 public Builder clone() {
5211 return create().mergeFrom(buildPartial());
5214 public com.google.protobuf.Descriptors.Descriptor
5215 getDescriptorForType() {
5216 return com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDescriptor();
5219 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5220 return com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
5223 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand build() {
5224 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial();
5225 if (!result.isInitialized()) {
5226 throw newUninitializedMessageException(result);
5231 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildParsed()
5232 throws com.google.protobuf.InvalidProtocolBufferException {
5233 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial();
5234 if (!result.isInitialized()) {
5235 throw newUninitializedMessageException(
5236 result).asInvalidProtocolBufferException();
5241 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildPartial() {
5242 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = new com.openxc.BinaryMessages.PredefinedObd2RequestsCommand(this);
5243 int from_bitField0_ = bitField0_;
5244 int to_bitField0_ = 0;
5245 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5246 to_bitField0_ |= 0x00000001;
5248 result.enabled_ = enabled_;
5249 result.bitField0_ = to_bitField0_;
5254 public Builder mergeFrom(com.google.protobuf.Message other) {
5255 if (other instanceof com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) {
5256 return mergeFrom((com.openxc.BinaryMessages.PredefinedObd2RequestsCommand)other);
5258 super.mergeFrom(other);
5263 public Builder mergeFrom(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand other) {
5264 if (other == com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) return this;
5265 if (other.hasEnabled()) {
5266 setEnabled(other.getEnabled());
5268 this.mergeUnknownFields(other.getUnknownFields());
5272 public final boolean isInitialized() {
5276 public Builder mergeFrom(
5277 com.google.protobuf.CodedInputStream input,
5278 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5279 throws java.io.IOException {
5280 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5281 com.google.protobuf.UnknownFieldSet.newBuilder(
5282 this.getUnknownFields());
5284 int tag = input.readTag();
5287 this.setUnknownFields(unknownFields.build());
5291 if (!parseUnknownField(input, unknownFields,
5292 extensionRegistry, tag)) {
5293 this.setUnknownFields(unknownFields.build());
5300 bitField0_ |= 0x00000001;
5301 enabled_ = input.readBool();
5308 private int bitField0_;
5310 // optional bool enabled = 1;
5311 private boolean enabled_ ;
5312 public boolean hasEnabled() {
5313 return ((bitField0_ & 0x00000001) == 0x00000001);
5315 public boolean getEnabled() {
5318 public Builder setEnabled(boolean value) {
5319 bitField0_ |= 0x00000001;
5324 public Builder clearEnabled() {
5325 bitField0_ = (bitField0_ & ~0x00000001);
5331 // @@protoc_insertion_point(builder_scope:openxc.PredefinedObd2RequestsCommand)
5335 defaultInstance = new PredefinedObd2RequestsCommand(true);
5336 defaultInstance.initFields();
5339 // @@protoc_insertion_point(class_scope:openxc.PredefinedObd2RequestsCommand)
5342 public interface NetworkOperatorSettingsOrBuilder
5343 extends com.google.protobuf.MessageOrBuilder {
5345 // optional bool allowDataRoaming = 1;
5346 boolean hasAllowDataRoaming();
5347 boolean getAllowDataRoaming();
5349 // optional .openxc.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode = 2;
5350 boolean hasOperatorSelectMode();
5351 com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode getOperatorSelectMode();
5353 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor networkDescriptor = 3;
5354 boolean hasNetworkDescriptor();
5355 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getNetworkDescriptor();
5356 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder getNetworkDescriptorOrBuilder();
5358 public static final class NetworkOperatorSettings extends
5359 com.google.protobuf.GeneratedMessage
5360 implements NetworkOperatorSettingsOrBuilder {
5361 // Use NetworkOperatorSettings.newBuilder() to construct.
5362 private NetworkOperatorSettings(Builder builder) {
5365 private NetworkOperatorSettings(boolean noInit) {}
5367 private static final NetworkOperatorSettings defaultInstance;
5368 public static NetworkOperatorSettings getDefaultInstance() {
5369 return defaultInstance;
5372 public NetworkOperatorSettings getDefaultInstanceForType() {
5373 return defaultInstance;
5376 public static final com.google.protobuf.Descriptors.Descriptor
5378 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_descriptor;
5381 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5382 internalGetFieldAccessorTable() {
5383 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable;
5386 public enum OperatorSelectMode
5387 implements com.google.protobuf.ProtocolMessageEnum {
5392 MANUAL_AUTOMATIC(4, 4),
5395 public static final int AUTOMATIC_VALUE = 0;
5396 public static final int MANUAL_VALUE = 1;
5397 public static final int DEREGISTER_VALUE = 2;
5398 public static final int SET_ONLY_VALUE = 3;
5399 public static final int MANUAL_AUTOMATIC_VALUE = 4;
5402 public final int getNumber() { return value; }
5404 public static OperatorSelectMode valueOf(int value) {
5406 case 0: return AUTOMATIC;
5407 case 1: return MANUAL;
5408 case 2: return DEREGISTER;
5409 case 3: return SET_ONLY;
5410 case 4: return MANUAL_AUTOMATIC;
5411 default: return null;
5415 public static com.google.protobuf.Internal.EnumLiteMap<OperatorSelectMode>
5416 internalGetValueMap() {
5417 return internalValueMap;
5419 private static com.google.protobuf.Internal.EnumLiteMap<OperatorSelectMode>
5421 new com.google.protobuf.Internal.EnumLiteMap<OperatorSelectMode>() {
5422 public OperatorSelectMode findValueByNumber(int number) {
5423 return OperatorSelectMode.valueOf(number);
5427 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5428 getValueDescriptor() {
5429 return getDescriptor().getValues().get(index);
5431 public final com.google.protobuf.Descriptors.EnumDescriptor
5432 getDescriptorForType() {
5433 return getDescriptor();
5435 public static final com.google.protobuf.Descriptors.EnumDescriptor
5437 return com.openxc.BinaryMessages.NetworkOperatorSettings.getDescriptor().getEnumTypes().get(0);
5440 private static final OperatorSelectMode[] VALUES = {
5441 AUTOMATIC, MANUAL, DEREGISTER, SET_ONLY, MANUAL_AUTOMATIC,
5444 public static OperatorSelectMode valueOf(
5445 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5446 if (desc.getType() != getDescriptor()) {
5447 throw new java.lang.IllegalArgumentException(
5448 "EnumValueDescriptor is not for this type.");
5450 return VALUES[desc.getIndex()];
5453 private final int index;
5454 private final int value;
5456 private OperatorSelectMode(int index, int value) {
5461 // @@protoc_insertion_point(enum_scope:openxc.NetworkOperatorSettings.OperatorSelectMode)
5464 public interface NetworkDescriptorOrBuilder
5465 extends com.google.protobuf.MessageOrBuilder {
5467 // optional uint32 PLMN = 1;
5471 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType = 2;
5472 boolean hasNetworkType();
5473 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType getNetworkType();
5475 public static final class NetworkDescriptor extends
5476 com.google.protobuf.GeneratedMessage
5477 implements NetworkDescriptorOrBuilder {
5478 // Use NetworkDescriptor.newBuilder() to construct.
5479 private NetworkDescriptor(Builder builder) {
5482 private NetworkDescriptor(boolean noInit) {}
5484 private static final NetworkDescriptor defaultInstance;
5485 public static NetworkDescriptor getDefaultInstance() {
5486 return defaultInstance;
5489 public NetworkDescriptor getDefaultInstanceForType() {
5490 return defaultInstance;
5493 public static final com.google.protobuf.Descriptors.Descriptor
5495 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor;
5498 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5499 internalGetFieldAccessorTable() {
5500 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable;
5503 public enum NetworkType
5504 implements com.google.protobuf.ProtocolMessageEnum {
5509 public static final int GSM_VALUE = 0;
5510 public static final int UTRAN_VALUE = 2;
5513 public final int getNumber() { return value; }
5515 public static NetworkType valueOf(int value) {
5518 case 2: return UTRAN;
5519 default: return null;
5523 public static com.google.protobuf.Internal.EnumLiteMap<NetworkType>
5524 internalGetValueMap() {
5525 return internalValueMap;
5527 private static com.google.protobuf.Internal.EnumLiteMap<NetworkType>
5529 new com.google.protobuf.Internal.EnumLiteMap<NetworkType>() {
5530 public NetworkType findValueByNumber(int number) {
5531 return NetworkType.valueOf(number);
5535 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5536 getValueDescriptor() {
5537 return getDescriptor().getValues().get(index);
5539 public final com.google.protobuf.Descriptors.EnumDescriptor
5540 getDescriptorForType() {
5541 return getDescriptor();
5543 public static final com.google.protobuf.Descriptors.EnumDescriptor
5545 return com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDescriptor().getEnumTypes().get(0);
5548 private static final NetworkType[] VALUES = {
5552 public static NetworkType valueOf(
5553 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5554 if (desc.getType() != getDescriptor()) {
5555 throw new java.lang.IllegalArgumentException(
5556 "EnumValueDescriptor is not for this type.");
5558 return VALUES[desc.getIndex()];
5561 private final int index;
5562 private final int value;
5564 private NetworkType(int index, int value) {
5569 // @@protoc_insertion_point(enum_scope:openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType)
5572 private int bitField0_;
5573 // optional uint32 PLMN = 1;
5574 public static final int PLMN_FIELD_NUMBER = 1;
5576 public boolean hasPLMN() {
5577 return ((bitField0_ & 0x00000001) == 0x00000001);
5579 public int getPLMN() {
5583 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType = 2;
5584 public static final int NETWORKTYPE_FIELD_NUMBER = 2;
5585 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType_;
5586 public boolean hasNetworkType() {
5587 return ((bitField0_ & 0x00000002) == 0x00000002);
5589 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType getNetworkType() {
5590 return networkType_;
5593 private void initFields() {
5595 networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5597 private byte memoizedIsInitialized = -1;
5598 public final boolean isInitialized() {
5599 byte isInitialized = memoizedIsInitialized;
5600 if (isInitialized != -1) return isInitialized == 1;
5602 memoizedIsInitialized = 1;
5606 public void writeTo(com.google.protobuf.CodedOutputStream output)
5607 throws java.io.IOException {
5608 getSerializedSize();
5609 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5610 output.writeUInt32(1, pLMN_);
5612 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5613 output.writeEnum(2, networkType_.getNumber());
5615 getUnknownFields().writeTo(output);
5618 private int memoizedSerializedSize = -1;
5619 public int getSerializedSize() {
5620 int size = memoizedSerializedSize;
5621 if (size != -1) return size;
5624 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5625 size += com.google.protobuf.CodedOutputStream
5626 .computeUInt32Size(1, pLMN_);
5628 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5629 size += com.google.protobuf.CodedOutputStream
5630 .computeEnumSize(2, networkType_.getNumber());
5632 size += getUnknownFields().getSerializedSize();
5633 memoizedSerializedSize = size;
5637 private static final long serialVersionUID = 0L;
5639 protected java.lang.Object writeReplace()
5640 throws java.io.ObjectStreamException {
5641 return super.writeReplace();
5644 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5645 com.google.protobuf.ByteString data)
5646 throws com.google.protobuf.InvalidProtocolBufferException {
5647 return newBuilder().mergeFrom(data).buildParsed();
5649 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5650 com.google.protobuf.ByteString data,
5651 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5652 throws com.google.protobuf.InvalidProtocolBufferException {
5653 return newBuilder().mergeFrom(data, extensionRegistry)
5656 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(byte[] data)
5657 throws com.google.protobuf.InvalidProtocolBufferException {
5658 return newBuilder().mergeFrom(data).buildParsed();
5660 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5662 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5663 throws com.google.protobuf.InvalidProtocolBufferException {
5664 return newBuilder().mergeFrom(data, extensionRegistry)
5667 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(java.io.InputStream input)
5668 throws java.io.IOException {
5669 return newBuilder().mergeFrom(input).buildParsed();
5671 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5672 java.io.InputStream input,
5673 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5674 throws java.io.IOException {
5675 return newBuilder().mergeFrom(input, extensionRegistry)
5678 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseDelimitedFrom(java.io.InputStream input)
5679 throws java.io.IOException {
5680 Builder builder = newBuilder();
5681 if (builder.mergeDelimitedFrom(input)) {
5682 return builder.buildParsed();
5687 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseDelimitedFrom(
5688 java.io.InputStream input,
5689 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5690 throws java.io.IOException {
5691 Builder builder = newBuilder();
5692 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
5693 return builder.buildParsed();
5698 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5699 com.google.protobuf.CodedInputStream input)
5700 throws java.io.IOException {
5701 return newBuilder().mergeFrom(input).buildParsed();
5703 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5704 com.google.protobuf.CodedInputStream input,
5705 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5706 throws java.io.IOException {
5707 return newBuilder().mergeFrom(input, extensionRegistry)
5711 public static Builder newBuilder() { return Builder.create(); }
5712 public Builder newBuilderForType() { return newBuilder(); }
5713 public static Builder newBuilder(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor prototype) {
5714 return newBuilder().mergeFrom(prototype);
5716 public Builder toBuilder() { return newBuilder(this); }
5719 protected Builder newBuilderForType(
5720 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5721 Builder builder = new Builder(parent);
5724 public static final class Builder extends
5725 com.google.protobuf.GeneratedMessage.Builder<Builder>
5726 implements com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder {
5727 public static final com.google.protobuf.Descriptors.Descriptor
5729 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor;
5732 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5733 internalGetFieldAccessorTable() {
5734 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable;
5737 // Construct using com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.newBuilder()
5739 maybeForceBuilderInitialization();
5742 private Builder(BuilderParent parent) {
5744 maybeForceBuilderInitialization();
5746 private void maybeForceBuilderInitialization() {
5747 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5750 private static Builder create() {
5751 return new Builder();
5754 public Builder clear() {
5757 bitField0_ = (bitField0_ & ~0x00000001);
5758 networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5759 bitField0_ = (bitField0_ & ~0x00000002);
5763 public Builder clone() {
5764 return create().mergeFrom(buildPartial());
5767 public com.google.protobuf.Descriptors.Descriptor
5768 getDescriptorForType() {
5769 return com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDescriptor();
5772 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getDefaultInstanceForType() {
5773 return com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
5776 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor build() {
5777 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor result = buildPartial();
5778 if (!result.isInitialized()) {
5779 throw newUninitializedMessageException(result);
5784 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor buildParsed()
5785 throws com.google.protobuf.InvalidProtocolBufferException {
5786 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor result = buildPartial();
5787 if (!result.isInitialized()) {
5788 throw newUninitializedMessageException(
5789 result).asInvalidProtocolBufferException();
5794 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor buildPartial() {
5795 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor result = new com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor(this);
5796 int from_bitField0_ = bitField0_;
5797 int to_bitField0_ = 0;
5798 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5799 to_bitField0_ |= 0x00000001;
5801 result.pLMN_ = pLMN_;
5802 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5803 to_bitField0_ |= 0x00000002;
5805 result.networkType_ = networkType_;
5806 result.bitField0_ = to_bitField0_;
5811 public Builder mergeFrom(com.google.protobuf.Message other) {
5812 if (other instanceof com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor) {
5813 return mergeFrom((com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor)other);
5815 super.mergeFrom(other);
5820 public Builder mergeFrom(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor other) {
5821 if (other == com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance()) return this;
5822 if (other.hasPLMN()) {
5823 setPLMN(other.getPLMN());
5825 if (other.hasNetworkType()) {
5826 setNetworkType(other.getNetworkType());
5828 this.mergeUnknownFields(other.getUnknownFields());
5832 public final boolean isInitialized() {
5836 public Builder mergeFrom(
5837 com.google.protobuf.CodedInputStream input,
5838 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5839 throws java.io.IOException {
5840 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5841 com.google.protobuf.UnknownFieldSet.newBuilder(
5842 this.getUnknownFields());
5844 int tag = input.readTag();
5847 this.setUnknownFields(unknownFields.build());
5851 if (!parseUnknownField(input, unknownFields,
5852 extensionRegistry, tag)) {
5853 this.setUnknownFields(unknownFields.build());
5860 bitField0_ |= 0x00000001;
5861 pLMN_ = input.readUInt32();
5865 int rawValue = input.readEnum();
5866 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType value = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.valueOf(rawValue);
5867 if (value == null) {
5868 unknownFields.mergeVarintField(2, rawValue);
5870 bitField0_ |= 0x00000002;
5871 networkType_ = value;
5879 private int bitField0_;
5881 // optional uint32 PLMN = 1;
5883 public boolean hasPLMN() {
5884 return ((bitField0_ & 0x00000001) == 0x00000001);
5886 public int getPLMN() {
5889 public Builder setPLMN(int value) {
5890 bitField0_ |= 0x00000001;
5895 public Builder clearPLMN() {
5896 bitField0_ = (bitField0_ & ~0x00000001);
5902 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType = 2;
5903 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5904 public boolean hasNetworkType() {
5905 return ((bitField0_ & 0x00000002) == 0x00000002);
5907 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType getNetworkType() {
5908 return networkType_;
5910 public Builder setNetworkType(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType value) {
5911 if (value == null) {
5912 throw new NullPointerException();
5914 bitField0_ |= 0x00000002;
5915 networkType_ = value;
5919 public Builder clearNetworkType() {
5920 bitField0_ = (bitField0_ & ~0x00000002);
5921 networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5926 // @@protoc_insertion_point(builder_scope:openxc.NetworkOperatorSettings.NetworkDescriptor)
5930 defaultInstance = new NetworkDescriptor(true);
5931 defaultInstance.initFields();
5934 // @@protoc_insertion_point(class_scope:openxc.NetworkOperatorSettings.NetworkDescriptor)
5937 private int bitField0_;
5938 // optional bool allowDataRoaming = 1;
5939 public static final int ALLOWDATAROAMING_FIELD_NUMBER = 1;
5940 private boolean allowDataRoaming_;
5941 public boolean hasAllowDataRoaming() {
5942 return ((bitField0_ & 0x00000001) == 0x00000001);
5944 public boolean getAllowDataRoaming() {
5945 return allowDataRoaming_;
5948 // optional .openxc.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode = 2;
5949 public static final int OPERATORSELECTMODE_FIELD_NUMBER = 2;
5950 private com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode_;
5951 public boolean hasOperatorSelectMode() {
5952 return ((bitField0_ & 0x00000002) == 0x00000002);
5954 public com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode getOperatorSelectMode() {
5955 return operatorSelectMode_;
5958 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor networkDescriptor = 3;
5959 public static final int NETWORKDESCRIPTOR_FIELD_NUMBER = 3;
5960 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor networkDescriptor_;
5961 public boolean hasNetworkDescriptor() {
5962 return ((bitField0_ & 0x00000004) == 0x00000004);
5964 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getNetworkDescriptor() {
5965 return networkDescriptor_;
5967 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder getNetworkDescriptorOrBuilder() {
5968 return networkDescriptor_;
5971 private void initFields() {
5972 allowDataRoaming_ = false;
5973 operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
5974 networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
5976 private byte memoizedIsInitialized = -1;
5977 public final boolean isInitialized() {
5978 byte isInitialized = memoizedIsInitialized;
5979 if (isInitialized != -1) return isInitialized == 1;
5981 memoizedIsInitialized = 1;
5985 public void writeTo(com.google.protobuf.CodedOutputStream output)
5986 throws java.io.IOException {
5987 getSerializedSize();
5988 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5989 output.writeBool(1, allowDataRoaming_);
5991 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5992 output.writeEnum(2, operatorSelectMode_.getNumber());
5994 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5995 output.writeMessage(3, networkDescriptor_);
5997 getUnknownFields().writeTo(output);
6000 private int memoizedSerializedSize = -1;
6001 public int getSerializedSize() {
6002 int size = memoizedSerializedSize;
6003 if (size != -1) return size;
6006 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6007 size += com.google.protobuf.CodedOutputStream
6008 .computeBoolSize(1, allowDataRoaming_);
6010 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6011 size += com.google.protobuf.CodedOutputStream
6012 .computeEnumSize(2, operatorSelectMode_.getNumber());
6014 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6015 size += com.google.protobuf.CodedOutputStream
6016 .computeMessageSize(3, networkDescriptor_);
6018 size += getUnknownFields().getSerializedSize();
6019 memoizedSerializedSize = size;
6023 private static final long serialVersionUID = 0L;
6025 protected java.lang.Object writeReplace()
6026 throws java.io.ObjectStreamException {
6027 return super.writeReplace();
6030 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6031 com.google.protobuf.ByteString data)
6032 throws com.google.protobuf.InvalidProtocolBufferException {
6033 return newBuilder().mergeFrom(data).buildParsed();
6035 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6036 com.google.protobuf.ByteString data,
6037 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6038 throws com.google.protobuf.InvalidProtocolBufferException {
6039 return newBuilder().mergeFrom(data, extensionRegistry)
6042 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(byte[] data)
6043 throws com.google.protobuf.InvalidProtocolBufferException {
6044 return newBuilder().mergeFrom(data).buildParsed();
6046 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6048 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6049 throws com.google.protobuf.InvalidProtocolBufferException {
6050 return newBuilder().mergeFrom(data, extensionRegistry)
6053 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(java.io.InputStream input)
6054 throws java.io.IOException {
6055 return newBuilder().mergeFrom(input).buildParsed();
6057 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6058 java.io.InputStream input,
6059 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6060 throws java.io.IOException {
6061 return newBuilder().mergeFrom(input, extensionRegistry)
6064 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseDelimitedFrom(java.io.InputStream input)
6065 throws java.io.IOException {
6066 Builder builder = newBuilder();
6067 if (builder.mergeDelimitedFrom(input)) {
6068 return builder.buildParsed();
6073 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseDelimitedFrom(
6074 java.io.InputStream input,
6075 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6076 throws java.io.IOException {
6077 Builder builder = newBuilder();
6078 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
6079 return builder.buildParsed();
6084 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6085 com.google.protobuf.CodedInputStream input)
6086 throws java.io.IOException {
6087 return newBuilder().mergeFrom(input).buildParsed();
6089 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6090 com.google.protobuf.CodedInputStream input,
6091 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6092 throws java.io.IOException {
6093 return newBuilder().mergeFrom(input, extensionRegistry)
6097 public static Builder newBuilder() { return Builder.create(); }
6098 public Builder newBuilderForType() { return newBuilder(); }
6099 public static Builder newBuilder(com.openxc.BinaryMessages.NetworkOperatorSettings prototype) {
6100 return newBuilder().mergeFrom(prototype);
6102 public Builder toBuilder() { return newBuilder(this); }
6105 protected Builder newBuilderForType(
6106 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6107 Builder builder = new Builder(parent);
6110 public static final class Builder extends
6111 com.google.protobuf.GeneratedMessage.Builder<Builder>
6112 implements com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder {
6113 public static final com.google.protobuf.Descriptors.Descriptor
6115 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_descriptor;
6118 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6119 internalGetFieldAccessorTable() {
6120 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable;
6123 // Construct using com.openxc.BinaryMessages.NetworkOperatorSettings.newBuilder()
6125 maybeForceBuilderInitialization();
6128 private Builder(BuilderParent parent) {
6130 maybeForceBuilderInitialization();
6132 private void maybeForceBuilderInitialization() {
6133 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6134 getNetworkDescriptorFieldBuilder();
6137 private static Builder create() {
6138 return new Builder();
6141 public Builder clear() {
6143 allowDataRoaming_ = false;
6144 bitField0_ = (bitField0_ & ~0x00000001);
6145 operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
6146 bitField0_ = (bitField0_ & ~0x00000002);
6147 if (networkDescriptorBuilder_ == null) {
6148 networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
6150 networkDescriptorBuilder_.clear();
6152 bitField0_ = (bitField0_ & ~0x00000004);
6156 public Builder clone() {
6157 return create().mergeFrom(buildPartial());
6160 public com.google.protobuf.Descriptors.Descriptor
6161 getDescriptorForType() {
6162 return com.openxc.BinaryMessages.NetworkOperatorSettings.getDescriptor();
6165 public com.openxc.BinaryMessages.NetworkOperatorSettings getDefaultInstanceForType() {
6166 return com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
6169 public com.openxc.BinaryMessages.NetworkOperatorSettings build() {
6170 com.openxc.BinaryMessages.NetworkOperatorSettings result = buildPartial();
6171 if (!result.isInitialized()) {
6172 throw newUninitializedMessageException(result);
6177 private com.openxc.BinaryMessages.NetworkOperatorSettings buildParsed()
6178 throws com.google.protobuf.InvalidProtocolBufferException {
6179 com.openxc.BinaryMessages.NetworkOperatorSettings result = buildPartial();
6180 if (!result.isInitialized()) {
6181 throw newUninitializedMessageException(
6182 result).asInvalidProtocolBufferException();
6187 public com.openxc.BinaryMessages.NetworkOperatorSettings buildPartial() {
6188 com.openxc.BinaryMessages.NetworkOperatorSettings result = new com.openxc.BinaryMessages.NetworkOperatorSettings(this);
6189 int from_bitField0_ = bitField0_;
6190 int to_bitField0_ = 0;
6191 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6192 to_bitField0_ |= 0x00000001;
6194 result.allowDataRoaming_ = allowDataRoaming_;
6195 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6196 to_bitField0_ |= 0x00000002;
6198 result.operatorSelectMode_ = operatorSelectMode_;
6199 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6200 to_bitField0_ |= 0x00000004;
6202 if (networkDescriptorBuilder_ == null) {
6203 result.networkDescriptor_ = networkDescriptor_;
6205 result.networkDescriptor_ = networkDescriptorBuilder_.build();
6207 result.bitField0_ = to_bitField0_;
6212 public Builder mergeFrom(com.google.protobuf.Message other) {
6213 if (other instanceof com.openxc.BinaryMessages.NetworkOperatorSettings) {
6214 return mergeFrom((com.openxc.BinaryMessages.NetworkOperatorSettings)other);
6216 super.mergeFrom(other);
6221 public Builder mergeFrom(com.openxc.BinaryMessages.NetworkOperatorSettings other) {
6222 if (other == com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance()) return this;
6223 if (other.hasAllowDataRoaming()) {
6224 setAllowDataRoaming(other.getAllowDataRoaming());
6226 if (other.hasOperatorSelectMode()) {
6227 setOperatorSelectMode(other.getOperatorSelectMode());
6229 if (other.hasNetworkDescriptor()) {
6230 mergeNetworkDescriptor(other.getNetworkDescriptor());
6232 this.mergeUnknownFields(other.getUnknownFields());
6236 public final boolean isInitialized() {
6240 public Builder mergeFrom(
6241 com.google.protobuf.CodedInputStream input,
6242 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6243 throws java.io.IOException {
6244 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6245 com.google.protobuf.UnknownFieldSet.newBuilder(
6246 this.getUnknownFields());
6248 int tag = input.readTag();
6251 this.setUnknownFields(unknownFields.build());
6255 if (!parseUnknownField(input, unknownFields,
6256 extensionRegistry, tag)) {
6257 this.setUnknownFields(unknownFields.build());
6264 bitField0_ |= 0x00000001;
6265 allowDataRoaming_ = input.readBool();
6269 int rawValue = input.readEnum();
6270 com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode value = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.valueOf(rawValue);
6271 if (value == null) {
6272 unknownFields.mergeVarintField(2, rawValue);
6274 bitField0_ |= 0x00000002;
6275 operatorSelectMode_ = value;
6280 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder subBuilder = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.newBuilder();
6281 if (hasNetworkDescriptor()) {
6282 subBuilder.mergeFrom(getNetworkDescriptor());
6284 input.readMessage(subBuilder, extensionRegistry);
6285 setNetworkDescriptor(subBuilder.buildPartial());
6292 private int bitField0_;
6294 // optional bool allowDataRoaming = 1;
6295 private boolean allowDataRoaming_ ;
6296 public boolean hasAllowDataRoaming() {
6297 return ((bitField0_ & 0x00000001) == 0x00000001);
6299 public boolean getAllowDataRoaming() {
6300 return allowDataRoaming_;
6302 public Builder setAllowDataRoaming(boolean value) {
6303 bitField0_ |= 0x00000001;
6304 allowDataRoaming_ = value;
6308 public Builder clearAllowDataRoaming() {
6309 bitField0_ = (bitField0_ & ~0x00000001);
6310 allowDataRoaming_ = false;
6315 // optional .openxc.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode = 2;
6316 private com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
6317 public boolean hasOperatorSelectMode() {
6318 return ((bitField0_ & 0x00000002) == 0x00000002);
6320 public com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode getOperatorSelectMode() {
6321 return operatorSelectMode_;
6323 public Builder setOperatorSelectMode(com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode value) {
6324 if (value == null) {
6325 throw new NullPointerException();
6327 bitField0_ |= 0x00000002;
6328 operatorSelectMode_ = value;
6332 public Builder clearOperatorSelectMode() {
6333 bitField0_ = (bitField0_ & ~0x00000002);
6334 operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
6339 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor networkDescriptor = 3;
6340 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
6341 private com.google.protobuf.SingleFieldBuilder<
6342 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder> networkDescriptorBuilder_;
6343 public boolean hasNetworkDescriptor() {
6344 return ((bitField0_ & 0x00000004) == 0x00000004);
6346 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getNetworkDescriptor() {
6347 if (networkDescriptorBuilder_ == null) {
6348 return networkDescriptor_;
6350 return networkDescriptorBuilder_.getMessage();
6353 public Builder setNetworkDescriptor(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor value) {
6354 if (networkDescriptorBuilder_ == null) {
6355 if (value == null) {
6356 throw new NullPointerException();
6358 networkDescriptor_ = value;
6361 networkDescriptorBuilder_.setMessage(value);
6363 bitField0_ |= 0x00000004;
6366 public Builder setNetworkDescriptor(
6367 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder builderForValue) {
6368 if (networkDescriptorBuilder_ == null) {
6369 networkDescriptor_ = builderForValue.build();
6372 networkDescriptorBuilder_.setMessage(builderForValue.build());
6374 bitField0_ |= 0x00000004;
6377 public Builder mergeNetworkDescriptor(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor value) {
6378 if (networkDescriptorBuilder_ == null) {
6379 if (((bitField0_ & 0x00000004) == 0x00000004) &&
6380 networkDescriptor_ != com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance()) {
6381 networkDescriptor_ =
6382 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.newBuilder(networkDescriptor_).mergeFrom(value).buildPartial();
6384 networkDescriptor_ = value;
6388 networkDescriptorBuilder_.mergeFrom(value);
6390 bitField0_ |= 0x00000004;
6393 public Builder clearNetworkDescriptor() {
6394 if (networkDescriptorBuilder_ == null) {
6395 networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
6398 networkDescriptorBuilder_.clear();
6400 bitField0_ = (bitField0_ & ~0x00000004);
6403 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder getNetworkDescriptorBuilder() {
6404 bitField0_ |= 0x00000004;
6406 return getNetworkDescriptorFieldBuilder().getBuilder();
6408 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder getNetworkDescriptorOrBuilder() {
6409 if (networkDescriptorBuilder_ != null) {
6410 return networkDescriptorBuilder_.getMessageOrBuilder();
6412 return networkDescriptor_;
6415 private com.google.protobuf.SingleFieldBuilder<
6416 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder>
6417 getNetworkDescriptorFieldBuilder() {
6418 if (networkDescriptorBuilder_ == null) {
6419 networkDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6420 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder>(
6422 getParentForChildren(),
6424 networkDescriptor_ = null;
6426 return networkDescriptorBuilder_;
6429 // @@protoc_insertion_point(builder_scope:openxc.NetworkOperatorSettings)
6433 defaultInstance = new NetworkOperatorSettings(true);
6434 defaultInstance.initFields();
6437 // @@protoc_insertion_point(class_scope:openxc.NetworkOperatorSettings)
6440 public interface NetworkDataSettingsOrBuilder
6441 extends com.google.protobuf.MessageOrBuilder {
6443 // optional string APN = 1;
6447 public static final class NetworkDataSettings extends
6448 com.google.protobuf.GeneratedMessage
6449 implements NetworkDataSettingsOrBuilder {
6450 // Use NetworkDataSettings.newBuilder() to construct.
6451 private NetworkDataSettings(Builder builder) {
6454 private NetworkDataSettings(boolean noInit) {}
6456 private static final NetworkDataSettings defaultInstance;
6457 public static NetworkDataSettings getDefaultInstance() {
6458 return defaultInstance;
6461 public NetworkDataSettings getDefaultInstanceForType() {
6462 return defaultInstance;
6465 public static final com.google.protobuf.Descriptors.Descriptor
6467 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_descriptor;
6470 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6471 internalGetFieldAccessorTable() {
6472 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_fieldAccessorTable;
6475 private int bitField0_;
6476 // optional string APN = 1;
6477 public static final int APN_FIELD_NUMBER = 1;
6478 private java.lang.Object aPN_;
6479 public boolean hasAPN() {
6480 return ((bitField0_ & 0x00000001) == 0x00000001);
6482 public String getAPN() {
6483 java.lang.Object ref = aPN_;
6484 if (ref instanceof String) {
6485 return (String) ref;
6487 com.google.protobuf.ByteString bs =
6488 (com.google.protobuf.ByteString) ref;
6489 String s = bs.toStringUtf8();
6490 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
6496 private com.google.protobuf.ByteString getAPNBytes() {
6497 java.lang.Object ref = aPN_;
6498 if (ref instanceof String) {
6499 com.google.protobuf.ByteString b =
6500 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
6504 return (com.google.protobuf.ByteString) ref;
6508 private void initFields() {
6511 private byte memoizedIsInitialized = -1;
6512 public final boolean isInitialized() {
6513 byte isInitialized = memoizedIsInitialized;
6514 if (isInitialized != -1) return isInitialized == 1;
6516 memoizedIsInitialized = 1;
6520 public void writeTo(com.google.protobuf.CodedOutputStream output)
6521 throws java.io.IOException {
6522 getSerializedSize();
6523 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6524 output.writeBytes(1, getAPNBytes());
6526 getUnknownFields().writeTo(output);
6529 private int memoizedSerializedSize = -1;
6530 public int getSerializedSize() {
6531 int size = memoizedSerializedSize;
6532 if (size != -1) return size;
6535 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6536 size += com.google.protobuf.CodedOutputStream
6537 .computeBytesSize(1, getAPNBytes());
6539 size += getUnknownFields().getSerializedSize();
6540 memoizedSerializedSize = size;
6544 private static final long serialVersionUID = 0L;
6546 protected java.lang.Object writeReplace()
6547 throws java.io.ObjectStreamException {
6548 return super.writeReplace();
6551 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6552 com.google.protobuf.ByteString data)
6553 throws com.google.protobuf.InvalidProtocolBufferException {
6554 return newBuilder().mergeFrom(data).buildParsed();
6556 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6557 com.google.protobuf.ByteString data,
6558 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6559 throws com.google.protobuf.InvalidProtocolBufferException {
6560 return newBuilder().mergeFrom(data, extensionRegistry)
6563 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(byte[] data)
6564 throws com.google.protobuf.InvalidProtocolBufferException {
6565 return newBuilder().mergeFrom(data).buildParsed();
6567 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6569 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6570 throws com.google.protobuf.InvalidProtocolBufferException {
6571 return newBuilder().mergeFrom(data, extensionRegistry)
6574 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(java.io.InputStream input)
6575 throws java.io.IOException {
6576 return newBuilder().mergeFrom(input).buildParsed();
6578 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6579 java.io.InputStream input,
6580 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6581 throws java.io.IOException {
6582 return newBuilder().mergeFrom(input, extensionRegistry)
6585 public static com.openxc.BinaryMessages.NetworkDataSettings parseDelimitedFrom(java.io.InputStream input)
6586 throws java.io.IOException {
6587 Builder builder = newBuilder();
6588 if (builder.mergeDelimitedFrom(input)) {
6589 return builder.buildParsed();
6594 public static com.openxc.BinaryMessages.NetworkDataSettings parseDelimitedFrom(
6595 java.io.InputStream input,
6596 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6597 throws java.io.IOException {
6598 Builder builder = newBuilder();
6599 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
6600 return builder.buildParsed();
6605 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6606 com.google.protobuf.CodedInputStream input)
6607 throws java.io.IOException {
6608 return newBuilder().mergeFrom(input).buildParsed();
6610 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6611 com.google.protobuf.CodedInputStream input,
6612 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6613 throws java.io.IOException {
6614 return newBuilder().mergeFrom(input, extensionRegistry)
6618 public static Builder newBuilder() { return Builder.create(); }
6619 public Builder newBuilderForType() { return newBuilder(); }
6620 public static Builder newBuilder(com.openxc.BinaryMessages.NetworkDataSettings prototype) {
6621 return newBuilder().mergeFrom(prototype);
6623 public Builder toBuilder() { return newBuilder(this); }
6626 protected Builder newBuilderForType(
6627 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6628 Builder builder = new Builder(parent);
6631 public static final class Builder extends
6632 com.google.protobuf.GeneratedMessage.Builder<Builder>
6633 implements com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder {
6634 public static final com.google.protobuf.Descriptors.Descriptor
6636 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_descriptor;
6639 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6640 internalGetFieldAccessorTable() {
6641 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_fieldAccessorTable;
6644 // Construct using com.openxc.BinaryMessages.NetworkDataSettings.newBuilder()
6646 maybeForceBuilderInitialization();
6649 private Builder(BuilderParent parent) {
6651 maybeForceBuilderInitialization();
6653 private void maybeForceBuilderInitialization() {
6654 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6657 private static Builder create() {
6658 return new Builder();
6661 public Builder clear() {
6664 bitField0_ = (bitField0_ & ~0x00000001);
6668 public Builder clone() {
6669 return create().mergeFrom(buildPartial());
6672 public com.google.protobuf.Descriptors.Descriptor
6673 getDescriptorForType() {
6674 return com.openxc.BinaryMessages.NetworkDataSettings.getDescriptor();
6677 public com.openxc.BinaryMessages.NetworkDataSettings getDefaultInstanceForType() {
6678 return com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
6681 public com.openxc.BinaryMessages.NetworkDataSettings build() {
6682 com.openxc.BinaryMessages.NetworkDataSettings result = buildPartial();
6683 if (!result.isInitialized()) {
6684 throw newUninitializedMessageException(result);
6689 private com.openxc.BinaryMessages.NetworkDataSettings buildParsed()
6690 throws com.google.protobuf.InvalidProtocolBufferException {
6691 com.openxc.BinaryMessages.NetworkDataSettings result = buildPartial();
6692 if (!result.isInitialized()) {
6693 throw newUninitializedMessageException(
6694 result).asInvalidProtocolBufferException();
6699 public com.openxc.BinaryMessages.NetworkDataSettings buildPartial() {
6700 com.openxc.BinaryMessages.NetworkDataSettings result = new com.openxc.BinaryMessages.NetworkDataSettings(this);
6701 int from_bitField0_ = bitField0_;
6702 int to_bitField0_ = 0;
6703 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6704 to_bitField0_ |= 0x00000001;
6707 result.bitField0_ = to_bitField0_;
6712 public Builder mergeFrom(com.google.protobuf.Message other) {
6713 if (other instanceof com.openxc.BinaryMessages.NetworkDataSettings) {
6714 return mergeFrom((com.openxc.BinaryMessages.NetworkDataSettings)other);
6716 super.mergeFrom(other);
6721 public Builder mergeFrom(com.openxc.BinaryMessages.NetworkDataSettings other) {
6722 if (other == com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance()) return this;
6723 if (other.hasAPN()) {
6724 setAPN(other.getAPN());
6726 this.mergeUnknownFields(other.getUnknownFields());
6730 public final boolean isInitialized() {
6734 public Builder mergeFrom(
6735 com.google.protobuf.CodedInputStream input,
6736 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6737 throws java.io.IOException {
6738 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6739 com.google.protobuf.UnknownFieldSet.newBuilder(
6740 this.getUnknownFields());
6742 int tag = input.readTag();
6745 this.setUnknownFields(unknownFields.build());
6749 if (!parseUnknownField(input, unknownFields,
6750 extensionRegistry, tag)) {
6751 this.setUnknownFields(unknownFields.build());
6758 bitField0_ |= 0x00000001;
6759 aPN_ = input.readBytes();
6766 private int bitField0_;
6768 // optional string APN = 1;
6769 private java.lang.Object aPN_ = "";
6770 public boolean hasAPN() {
6771 return ((bitField0_ & 0x00000001) == 0x00000001);
6773 public String getAPN() {
6774 java.lang.Object ref = aPN_;
6775 if (!(ref instanceof String)) {
6776 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
6780 return (String) ref;
6783 public Builder setAPN(String value) {
6784 if (value == null) {
6785 throw new NullPointerException();
6787 bitField0_ |= 0x00000001;
6792 public Builder clearAPN() {
6793 bitField0_ = (bitField0_ & ~0x00000001);
6794 aPN_ = getDefaultInstance().getAPN();
6798 void setAPN(com.google.protobuf.ByteString value) {
6799 bitField0_ |= 0x00000001;
6804 // @@protoc_insertion_point(builder_scope:openxc.NetworkDataSettings)
6808 defaultInstance = new NetworkDataSettings(true);
6809 defaultInstance.initFields();
6812 // @@protoc_insertion_point(class_scope:openxc.NetworkDataSettings)
6815 public interface ServerConnectSettingsOrBuilder
6816 extends com.google.protobuf.MessageOrBuilder {
6818 // optional string host = 1;
6822 // optional uint32 port = 2;
6826 public static final class ServerConnectSettings extends
6827 com.google.protobuf.GeneratedMessage
6828 implements ServerConnectSettingsOrBuilder {
6829 // Use ServerConnectSettings.newBuilder() to construct.
6830 private ServerConnectSettings(Builder builder) {
6833 private ServerConnectSettings(boolean noInit) {}
6835 private static final ServerConnectSettings defaultInstance;
6836 public static ServerConnectSettings getDefaultInstance() {
6837 return defaultInstance;
6840 public ServerConnectSettings getDefaultInstanceForType() {
6841 return defaultInstance;
6844 public static final com.google.protobuf.Descriptors.Descriptor
6846 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_descriptor;
6849 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6850 internalGetFieldAccessorTable() {
6851 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_fieldAccessorTable;
6854 private int bitField0_;
6855 // optional string host = 1;
6856 public static final int HOST_FIELD_NUMBER = 1;
6857 private java.lang.Object host_;
6858 public boolean hasHost() {
6859 return ((bitField0_ & 0x00000001) == 0x00000001);
6861 public String getHost() {
6862 java.lang.Object ref = host_;
6863 if (ref instanceof String) {
6864 return (String) ref;
6866 com.google.protobuf.ByteString bs =
6867 (com.google.protobuf.ByteString) ref;
6868 String s = bs.toStringUtf8();
6869 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
6875 private com.google.protobuf.ByteString getHostBytes() {
6876 java.lang.Object ref = host_;
6877 if (ref instanceof String) {
6878 com.google.protobuf.ByteString b =
6879 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
6883 return (com.google.protobuf.ByteString) ref;
6887 // optional uint32 port = 2;
6888 public static final int PORT_FIELD_NUMBER = 2;
6890 public boolean hasPort() {
6891 return ((bitField0_ & 0x00000002) == 0x00000002);
6893 public int getPort() {
6897 private void initFields() {
6901 private byte memoizedIsInitialized = -1;
6902 public final boolean isInitialized() {
6903 byte isInitialized = memoizedIsInitialized;
6904 if (isInitialized != -1) return isInitialized == 1;
6906 memoizedIsInitialized = 1;
6910 public void writeTo(com.google.protobuf.CodedOutputStream output)
6911 throws java.io.IOException {
6912 getSerializedSize();
6913 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6914 output.writeBytes(1, getHostBytes());
6916 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6917 output.writeUInt32(2, port_);
6919 getUnknownFields().writeTo(output);
6922 private int memoizedSerializedSize = -1;
6923 public int getSerializedSize() {
6924 int size = memoizedSerializedSize;
6925 if (size != -1) return size;
6928 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6929 size += com.google.protobuf.CodedOutputStream
6930 .computeBytesSize(1, getHostBytes());
6932 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6933 size += com.google.protobuf.CodedOutputStream
6934 .computeUInt32Size(2, port_);
6936 size += getUnknownFields().getSerializedSize();
6937 memoizedSerializedSize = size;
6941 private static final long serialVersionUID = 0L;
6943 protected java.lang.Object writeReplace()
6944 throws java.io.ObjectStreamException {
6945 return super.writeReplace();
6948 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6949 com.google.protobuf.ByteString data)
6950 throws com.google.protobuf.InvalidProtocolBufferException {
6951 return newBuilder().mergeFrom(data).buildParsed();
6953 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6954 com.google.protobuf.ByteString data,
6955 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6956 throws com.google.protobuf.InvalidProtocolBufferException {
6957 return newBuilder().mergeFrom(data, extensionRegistry)
6960 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(byte[] data)
6961 throws com.google.protobuf.InvalidProtocolBufferException {
6962 return newBuilder().mergeFrom(data).buildParsed();
6964 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6966 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6967 throws com.google.protobuf.InvalidProtocolBufferException {
6968 return newBuilder().mergeFrom(data, extensionRegistry)
6971 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(java.io.InputStream input)
6972 throws java.io.IOException {
6973 return newBuilder().mergeFrom(input).buildParsed();
6975 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6976 java.io.InputStream input,
6977 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6978 throws java.io.IOException {
6979 return newBuilder().mergeFrom(input, extensionRegistry)
6982 public static com.openxc.BinaryMessages.ServerConnectSettings parseDelimitedFrom(java.io.InputStream input)
6983 throws java.io.IOException {
6984 Builder builder = newBuilder();
6985 if (builder.mergeDelimitedFrom(input)) {
6986 return builder.buildParsed();
6991 public static com.openxc.BinaryMessages.ServerConnectSettings parseDelimitedFrom(
6992 java.io.InputStream input,
6993 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6994 throws java.io.IOException {
6995 Builder builder = newBuilder();
6996 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
6997 return builder.buildParsed();
7002 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
7003 com.google.protobuf.CodedInputStream input)
7004 throws java.io.IOException {
7005 return newBuilder().mergeFrom(input).buildParsed();
7007 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
7008 com.google.protobuf.CodedInputStream input,
7009 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7010 throws java.io.IOException {
7011 return newBuilder().mergeFrom(input, extensionRegistry)
7015 public static Builder newBuilder() { return Builder.create(); }
7016 public Builder newBuilderForType() { return newBuilder(); }
7017 public static Builder newBuilder(com.openxc.BinaryMessages.ServerConnectSettings prototype) {
7018 return newBuilder().mergeFrom(prototype);
7020 public Builder toBuilder() { return newBuilder(this); }
7023 protected Builder newBuilderForType(
7024 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7025 Builder builder = new Builder(parent);
7028 public static final class Builder extends
7029 com.google.protobuf.GeneratedMessage.Builder<Builder>
7030 implements com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder {
7031 public static final com.google.protobuf.Descriptors.Descriptor
7033 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_descriptor;
7036 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7037 internalGetFieldAccessorTable() {
7038 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_fieldAccessorTable;
7041 // Construct using com.openxc.BinaryMessages.ServerConnectSettings.newBuilder()
7043 maybeForceBuilderInitialization();
7046 private Builder(BuilderParent parent) {
7048 maybeForceBuilderInitialization();
7050 private void maybeForceBuilderInitialization() {
7051 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7054 private static Builder create() {
7055 return new Builder();
7058 public Builder clear() {
7061 bitField0_ = (bitField0_ & ~0x00000001);
7063 bitField0_ = (bitField0_ & ~0x00000002);
7067 public Builder clone() {
7068 return create().mergeFrom(buildPartial());
7071 public com.google.protobuf.Descriptors.Descriptor
7072 getDescriptorForType() {
7073 return com.openxc.BinaryMessages.ServerConnectSettings.getDescriptor();
7076 public com.openxc.BinaryMessages.ServerConnectSettings getDefaultInstanceForType() {
7077 return com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7080 public com.openxc.BinaryMessages.ServerConnectSettings build() {
7081 com.openxc.BinaryMessages.ServerConnectSettings result = buildPartial();
7082 if (!result.isInitialized()) {
7083 throw newUninitializedMessageException(result);
7088 private com.openxc.BinaryMessages.ServerConnectSettings buildParsed()
7089 throws com.google.protobuf.InvalidProtocolBufferException {
7090 com.openxc.BinaryMessages.ServerConnectSettings result = buildPartial();
7091 if (!result.isInitialized()) {
7092 throw newUninitializedMessageException(
7093 result).asInvalidProtocolBufferException();
7098 public com.openxc.BinaryMessages.ServerConnectSettings buildPartial() {
7099 com.openxc.BinaryMessages.ServerConnectSettings result = new com.openxc.BinaryMessages.ServerConnectSettings(this);
7100 int from_bitField0_ = bitField0_;
7101 int to_bitField0_ = 0;
7102 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7103 to_bitField0_ |= 0x00000001;
7105 result.host_ = host_;
7106 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7107 to_bitField0_ |= 0x00000002;
7109 result.port_ = port_;
7110 result.bitField0_ = to_bitField0_;
7115 public Builder mergeFrom(com.google.protobuf.Message other) {
7116 if (other instanceof com.openxc.BinaryMessages.ServerConnectSettings) {
7117 return mergeFrom((com.openxc.BinaryMessages.ServerConnectSettings)other);
7119 super.mergeFrom(other);
7124 public Builder mergeFrom(com.openxc.BinaryMessages.ServerConnectSettings other) {
7125 if (other == com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance()) return this;
7126 if (other.hasHost()) {
7127 setHost(other.getHost());
7129 if (other.hasPort()) {
7130 setPort(other.getPort());
7132 this.mergeUnknownFields(other.getUnknownFields());
7136 public final boolean isInitialized() {
7140 public Builder mergeFrom(
7141 com.google.protobuf.CodedInputStream input,
7142 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7143 throws java.io.IOException {
7144 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7145 com.google.protobuf.UnknownFieldSet.newBuilder(
7146 this.getUnknownFields());
7148 int tag = input.readTag();
7151 this.setUnknownFields(unknownFields.build());
7155 if (!parseUnknownField(input, unknownFields,
7156 extensionRegistry, tag)) {
7157 this.setUnknownFields(unknownFields.build());
7164 bitField0_ |= 0x00000001;
7165 host_ = input.readBytes();
7169 bitField0_ |= 0x00000002;
7170 port_ = input.readUInt32();
7177 private int bitField0_;
7179 // optional string host = 1;
7180 private java.lang.Object host_ = "";
7181 public boolean hasHost() {
7182 return ((bitField0_ & 0x00000001) == 0x00000001);
7184 public String getHost() {
7185 java.lang.Object ref = host_;
7186 if (!(ref instanceof String)) {
7187 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
7191 return (String) ref;
7194 public Builder setHost(String value) {
7195 if (value == null) {
7196 throw new NullPointerException();
7198 bitField0_ |= 0x00000001;
7203 public Builder clearHost() {
7204 bitField0_ = (bitField0_ & ~0x00000001);
7205 host_ = getDefaultInstance().getHost();
7209 void setHost(com.google.protobuf.ByteString value) {
7210 bitField0_ |= 0x00000001;
7215 // optional uint32 port = 2;
7217 public boolean hasPort() {
7218 return ((bitField0_ & 0x00000002) == 0x00000002);
7220 public int getPort() {
7223 public Builder setPort(int value) {
7224 bitField0_ |= 0x00000002;
7229 public Builder clearPort() {
7230 bitField0_ = (bitField0_ & ~0x00000002);
7236 // @@protoc_insertion_point(builder_scope:openxc.ServerConnectSettings)
7240 defaultInstance = new ServerConnectSettings(true);
7241 defaultInstance.initFields();
7244 // @@protoc_insertion_point(class_scope:openxc.ServerConnectSettings)
7247 public interface ModemConfigurationCommandOrBuilder
7248 extends com.google.protobuf.MessageOrBuilder {
7250 // optional .openxc.NetworkOperatorSettings networkOperatorSettings = 1;
7251 boolean hasNetworkOperatorSettings();
7252 com.openxc.BinaryMessages.NetworkOperatorSettings getNetworkOperatorSettings();
7253 com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder getNetworkOperatorSettingsOrBuilder();
7255 // optional .openxc.NetworkDataSettings networkDataSettings = 2;
7256 boolean hasNetworkDataSettings();
7257 com.openxc.BinaryMessages.NetworkDataSettings getNetworkDataSettings();
7258 com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder getNetworkDataSettingsOrBuilder();
7260 // optional .openxc.ServerConnectSettings serverConnectSettings = 3;
7261 boolean hasServerConnectSettings();
7262 com.openxc.BinaryMessages.ServerConnectSettings getServerConnectSettings();
7263 com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder getServerConnectSettingsOrBuilder();
7265 public static final class ModemConfigurationCommand extends
7266 com.google.protobuf.GeneratedMessage
7267 implements ModemConfigurationCommandOrBuilder {
7268 // Use ModemConfigurationCommand.newBuilder() to construct.
7269 private ModemConfigurationCommand(Builder builder) {
7272 private ModemConfigurationCommand(boolean noInit) {}
7274 private static final ModemConfigurationCommand defaultInstance;
7275 public static ModemConfigurationCommand getDefaultInstance() {
7276 return defaultInstance;
7279 public ModemConfigurationCommand getDefaultInstanceForType() {
7280 return defaultInstance;
7283 public static final com.google.protobuf.Descriptors.Descriptor
7285 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_descriptor;
7288 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7289 internalGetFieldAccessorTable() {
7290 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable;
7293 private int bitField0_;
7294 // optional .openxc.NetworkOperatorSettings networkOperatorSettings = 1;
7295 public static final int NETWORKOPERATORSETTINGS_FIELD_NUMBER = 1;
7296 private com.openxc.BinaryMessages.NetworkOperatorSettings networkOperatorSettings_;
7297 public boolean hasNetworkOperatorSettings() {
7298 return ((bitField0_ & 0x00000001) == 0x00000001);
7300 public com.openxc.BinaryMessages.NetworkOperatorSettings getNetworkOperatorSettings() {
7301 return networkOperatorSettings_;
7303 public com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder getNetworkOperatorSettingsOrBuilder() {
7304 return networkOperatorSettings_;
7307 // optional .openxc.NetworkDataSettings networkDataSettings = 2;
7308 public static final int NETWORKDATASETTINGS_FIELD_NUMBER = 2;
7309 private com.openxc.BinaryMessages.NetworkDataSettings networkDataSettings_;
7310 public boolean hasNetworkDataSettings() {
7311 return ((bitField0_ & 0x00000002) == 0x00000002);
7313 public com.openxc.BinaryMessages.NetworkDataSettings getNetworkDataSettings() {
7314 return networkDataSettings_;
7316 public com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder getNetworkDataSettingsOrBuilder() {
7317 return networkDataSettings_;
7320 // optional .openxc.ServerConnectSettings serverConnectSettings = 3;
7321 public static final int SERVERCONNECTSETTINGS_FIELD_NUMBER = 3;
7322 private com.openxc.BinaryMessages.ServerConnectSettings serverConnectSettings_;
7323 public boolean hasServerConnectSettings() {
7324 return ((bitField0_ & 0x00000004) == 0x00000004);
7326 public com.openxc.BinaryMessages.ServerConnectSettings getServerConnectSettings() {
7327 return serverConnectSettings_;
7329 public com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder getServerConnectSettingsOrBuilder() {
7330 return serverConnectSettings_;
7333 private void initFields() {
7334 networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7335 networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7336 serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7338 private byte memoizedIsInitialized = -1;
7339 public final boolean isInitialized() {
7340 byte isInitialized = memoizedIsInitialized;
7341 if (isInitialized != -1) return isInitialized == 1;
7343 memoizedIsInitialized = 1;
7347 public void writeTo(com.google.protobuf.CodedOutputStream output)
7348 throws java.io.IOException {
7349 getSerializedSize();
7350 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7351 output.writeMessage(1, networkOperatorSettings_);
7353 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7354 output.writeMessage(2, networkDataSettings_);
7356 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7357 output.writeMessage(3, serverConnectSettings_);
7359 getUnknownFields().writeTo(output);
7362 private int memoizedSerializedSize = -1;
7363 public int getSerializedSize() {
7364 int size = memoizedSerializedSize;
7365 if (size != -1) return size;
7368 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7369 size += com.google.protobuf.CodedOutputStream
7370 .computeMessageSize(1, networkOperatorSettings_);
7372 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7373 size += com.google.protobuf.CodedOutputStream
7374 .computeMessageSize(2, networkDataSettings_);
7376 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7377 size += com.google.protobuf.CodedOutputStream
7378 .computeMessageSize(3, serverConnectSettings_);
7380 size += getUnknownFields().getSerializedSize();
7381 memoizedSerializedSize = size;
7385 private static final long serialVersionUID = 0L;
7387 protected java.lang.Object writeReplace()
7388 throws java.io.ObjectStreamException {
7389 return super.writeReplace();
7392 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7393 com.google.protobuf.ByteString data)
7394 throws com.google.protobuf.InvalidProtocolBufferException {
7395 return newBuilder().mergeFrom(data).buildParsed();
7397 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7398 com.google.protobuf.ByteString data,
7399 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7400 throws com.google.protobuf.InvalidProtocolBufferException {
7401 return newBuilder().mergeFrom(data, extensionRegistry)
7404 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(byte[] data)
7405 throws com.google.protobuf.InvalidProtocolBufferException {
7406 return newBuilder().mergeFrom(data).buildParsed();
7408 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7410 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7411 throws com.google.protobuf.InvalidProtocolBufferException {
7412 return newBuilder().mergeFrom(data, extensionRegistry)
7415 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(java.io.InputStream input)
7416 throws java.io.IOException {
7417 return newBuilder().mergeFrom(input).buildParsed();
7419 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7420 java.io.InputStream input,
7421 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7422 throws java.io.IOException {
7423 return newBuilder().mergeFrom(input, extensionRegistry)
7426 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseDelimitedFrom(java.io.InputStream input)
7427 throws java.io.IOException {
7428 Builder builder = newBuilder();
7429 if (builder.mergeDelimitedFrom(input)) {
7430 return builder.buildParsed();
7435 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseDelimitedFrom(
7436 java.io.InputStream input,
7437 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7438 throws java.io.IOException {
7439 Builder builder = newBuilder();
7440 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
7441 return builder.buildParsed();
7446 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7447 com.google.protobuf.CodedInputStream input)
7448 throws java.io.IOException {
7449 return newBuilder().mergeFrom(input).buildParsed();
7451 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7452 com.google.protobuf.CodedInputStream input,
7453 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7454 throws java.io.IOException {
7455 return newBuilder().mergeFrom(input, extensionRegistry)
7459 public static Builder newBuilder() { return Builder.create(); }
7460 public Builder newBuilderForType() { return newBuilder(); }
7461 public static Builder newBuilder(com.openxc.BinaryMessages.ModemConfigurationCommand prototype) {
7462 return newBuilder().mergeFrom(prototype);
7464 public Builder toBuilder() { return newBuilder(this); }
7467 protected Builder newBuilderForType(
7468 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7469 Builder builder = new Builder(parent);
7472 public static final class Builder extends
7473 com.google.protobuf.GeneratedMessage.Builder<Builder>
7474 implements com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder {
7475 public static final com.google.protobuf.Descriptors.Descriptor
7477 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_descriptor;
7480 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7481 internalGetFieldAccessorTable() {
7482 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable;
7485 // Construct using com.openxc.BinaryMessages.ModemConfigurationCommand.newBuilder()
7487 maybeForceBuilderInitialization();
7490 private Builder(BuilderParent parent) {
7492 maybeForceBuilderInitialization();
7494 private void maybeForceBuilderInitialization() {
7495 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7496 getNetworkOperatorSettingsFieldBuilder();
7497 getNetworkDataSettingsFieldBuilder();
7498 getServerConnectSettingsFieldBuilder();
7501 private static Builder create() {
7502 return new Builder();
7505 public Builder clear() {
7507 if (networkOperatorSettingsBuilder_ == null) {
7508 networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7510 networkOperatorSettingsBuilder_.clear();
7512 bitField0_ = (bitField0_ & ~0x00000001);
7513 if (networkDataSettingsBuilder_ == null) {
7514 networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7516 networkDataSettingsBuilder_.clear();
7518 bitField0_ = (bitField0_ & ~0x00000002);
7519 if (serverConnectSettingsBuilder_ == null) {
7520 serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7522 serverConnectSettingsBuilder_.clear();
7524 bitField0_ = (bitField0_ & ~0x00000004);
7528 public Builder clone() {
7529 return create().mergeFrom(buildPartial());
7532 public com.google.protobuf.Descriptors.Descriptor
7533 getDescriptorForType() {
7534 return com.openxc.BinaryMessages.ModemConfigurationCommand.getDescriptor();
7537 public com.openxc.BinaryMessages.ModemConfigurationCommand getDefaultInstanceForType() {
7538 return com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
7541 public com.openxc.BinaryMessages.ModemConfigurationCommand build() {
7542 com.openxc.BinaryMessages.ModemConfigurationCommand result = buildPartial();
7543 if (!result.isInitialized()) {
7544 throw newUninitializedMessageException(result);
7549 private com.openxc.BinaryMessages.ModemConfigurationCommand buildParsed()
7550 throws com.google.protobuf.InvalidProtocolBufferException {
7551 com.openxc.BinaryMessages.ModemConfigurationCommand result = buildPartial();
7552 if (!result.isInitialized()) {
7553 throw newUninitializedMessageException(
7554 result).asInvalidProtocolBufferException();
7559 public com.openxc.BinaryMessages.ModemConfigurationCommand buildPartial() {
7560 com.openxc.BinaryMessages.ModemConfigurationCommand result = new com.openxc.BinaryMessages.ModemConfigurationCommand(this);
7561 int from_bitField0_ = bitField0_;
7562 int to_bitField0_ = 0;
7563 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7564 to_bitField0_ |= 0x00000001;
7566 if (networkOperatorSettingsBuilder_ == null) {
7567 result.networkOperatorSettings_ = networkOperatorSettings_;
7569 result.networkOperatorSettings_ = networkOperatorSettingsBuilder_.build();
7571 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7572 to_bitField0_ |= 0x00000002;
7574 if (networkDataSettingsBuilder_ == null) {
7575 result.networkDataSettings_ = networkDataSettings_;
7577 result.networkDataSettings_ = networkDataSettingsBuilder_.build();
7579 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7580 to_bitField0_ |= 0x00000004;
7582 if (serverConnectSettingsBuilder_ == null) {
7583 result.serverConnectSettings_ = serverConnectSettings_;
7585 result.serverConnectSettings_ = serverConnectSettingsBuilder_.build();
7587 result.bitField0_ = to_bitField0_;
7592 public Builder mergeFrom(com.google.protobuf.Message other) {
7593 if (other instanceof com.openxc.BinaryMessages.ModemConfigurationCommand) {
7594 return mergeFrom((com.openxc.BinaryMessages.ModemConfigurationCommand)other);
7596 super.mergeFrom(other);
7601 public Builder mergeFrom(com.openxc.BinaryMessages.ModemConfigurationCommand other) {
7602 if (other == com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance()) return this;
7603 if (other.hasNetworkOperatorSettings()) {
7604 mergeNetworkOperatorSettings(other.getNetworkOperatorSettings());
7606 if (other.hasNetworkDataSettings()) {
7607 mergeNetworkDataSettings(other.getNetworkDataSettings());
7609 if (other.hasServerConnectSettings()) {
7610 mergeServerConnectSettings(other.getServerConnectSettings());
7612 this.mergeUnknownFields(other.getUnknownFields());
7616 public final boolean isInitialized() {
7620 public Builder mergeFrom(
7621 com.google.protobuf.CodedInputStream input,
7622 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7623 throws java.io.IOException {
7624 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7625 com.google.protobuf.UnknownFieldSet.newBuilder(
7626 this.getUnknownFields());
7628 int tag = input.readTag();
7631 this.setUnknownFields(unknownFields.build());
7635 if (!parseUnknownField(input, unknownFields,
7636 extensionRegistry, tag)) {
7637 this.setUnknownFields(unknownFields.build());
7644 com.openxc.BinaryMessages.NetworkOperatorSettings.Builder subBuilder = com.openxc.BinaryMessages.NetworkOperatorSettings.newBuilder();
7645 if (hasNetworkOperatorSettings()) {
7646 subBuilder.mergeFrom(getNetworkOperatorSettings());
7648 input.readMessage(subBuilder, extensionRegistry);
7649 setNetworkOperatorSettings(subBuilder.buildPartial());
7653 com.openxc.BinaryMessages.NetworkDataSettings.Builder subBuilder = com.openxc.BinaryMessages.NetworkDataSettings.newBuilder();
7654 if (hasNetworkDataSettings()) {
7655 subBuilder.mergeFrom(getNetworkDataSettings());
7657 input.readMessage(subBuilder, extensionRegistry);
7658 setNetworkDataSettings(subBuilder.buildPartial());
7662 com.openxc.BinaryMessages.ServerConnectSettings.Builder subBuilder = com.openxc.BinaryMessages.ServerConnectSettings.newBuilder();
7663 if (hasServerConnectSettings()) {
7664 subBuilder.mergeFrom(getServerConnectSettings());
7666 input.readMessage(subBuilder, extensionRegistry);
7667 setServerConnectSettings(subBuilder.buildPartial());
7674 private int bitField0_;
7676 // optional .openxc.NetworkOperatorSettings networkOperatorSettings = 1;
7677 private com.openxc.BinaryMessages.NetworkOperatorSettings networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7678 private com.google.protobuf.SingleFieldBuilder<
7679 com.openxc.BinaryMessages.NetworkOperatorSettings, com.openxc.BinaryMessages.NetworkOperatorSettings.Builder, com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder> networkOperatorSettingsBuilder_;
7680 public boolean hasNetworkOperatorSettings() {
7681 return ((bitField0_ & 0x00000001) == 0x00000001);
7683 public com.openxc.BinaryMessages.NetworkOperatorSettings getNetworkOperatorSettings() {
7684 if (networkOperatorSettingsBuilder_ == null) {
7685 return networkOperatorSettings_;
7687 return networkOperatorSettingsBuilder_.getMessage();
7690 public Builder setNetworkOperatorSettings(com.openxc.BinaryMessages.NetworkOperatorSettings value) {
7691 if (networkOperatorSettingsBuilder_ == null) {
7692 if (value == null) {
7693 throw new NullPointerException();
7695 networkOperatorSettings_ = value;
7698 networkOperatorSettingsBuilder_.setMessage(value);
7700 bitField0_ |= 0x00000001;
7703 public Builder setNetworkOperatorSettings(
7704 com.openxc.BinaryMessages.NetworkOperatorSettings.Builder builderForValue) {
7705 if (networkOperatorSettingsBuilder_ == null) {
7706 networkOperatorSettings_ = builderForValue.build();
7709 networkOperatorSettingsBuilder_.setMessage(builderForValue.build());
7711 bitField0_ |= 0x00000001;
7714 public Builder mergeNetworkOperatorSettings(com.openxc.BinaryMessages.NetworkOperatorSettings value) {
7715 if (networkOperatorSettingsBuilder_ == null) {
7716 if (((bitField0_ & 0x00000001) == 0x00000001) &&
7717 networkOperatorSettings_ != com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance()) {
7718 networkOperatorSettings_ =
7719 com.openxc.BinaryMessages.NetworkOperatorSettings.newBuilder(networkOperatorSettings_).mergeFrom(value).buildPartial();
7721 networkOperatorSettings_ = value;
7725 networkOperatorSettingsBuilder_.mergeFrom(value);
7727 bitField0_ |= 0x00000001;
7730 public Builder clearNetworkOperatorSettings() {
7731 if (networkOperatorSettingsBuilder_ == null) {
7732 networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7735 networkOperatorSettingsBuilder_.clear();
7737 bitField0_ = (bitField0_ & ~0x00000001);
7740 public com.openxc.BinaryMessages.NetworkOperatorSettings.Builder getNetworkOperatorSettingsBuilder() {
7741 bitField0_ |= 0x00000001;
7743 return getNetworkOperatorSettingsFieldBuilder().getBuilder();
7745 public com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder getNetworkOperatorSettingsOrBuilder() {
7746 if (networkOperatorSettingsBuilder_ != null) {
7747 return networkOperatorSettingsBuilder_.getMessageOrBuilder();
7749 return networkOperatorSettings_;
7752 private com.google.protobuf.SingleFieldBuilder<
7753 com.openxc.BinaryMessages.NetworkOperatorSettings, com.openxc.BinaryMessages.NetworkOperatorSettings.Builder, com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder>
7754 getNetworkOperatorSettingsFieldBuilder() {
7755 if (networkOperatorSettingsBuilder_ == null) {
7756 networkOperatorSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7757 com.openxc.BinaryMessages.NetworkOperatorSettings, com.openxc.BinaryMessages.NetworkOperatorSettings.Builder, com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder>(
7758 networkOperatorSettings_,
7759 getParentForChildren(),
7761 networkOperatorSettings_ = null;
7763 return networkOperatorSettingsBuilder_;
7766 // optional .openxc.NetworkDataSettings networkDataSettings = 2;
7767 private com.openxc.BinaryMessages.NetworkDataSettings networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7768 private com.google.protobuf.SingleFieldBuilder<
7769 com.openxc.BinaryMessages.NetworkDataSettings, com.openxc.BinaryMessages.NetworkDataSettings.Builder, com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder> networkDataSettingsBuilder_;
7770 public boolean hasNetworkDataSettings() {
7771 return ((bitField0_ & 0x00000002) == 0x00000002);
7773 public com.openxc.BinaryMessages.NetworkDataSettings getNetworkDataSettings() {
7774 if (networkDataSettingsBuilder_ == null) {
7775 return networkDataSettings_;
7777 return networkDataSettingsBuilder_.getMessage();
7780 public Builder setNetworkDataSettings(com.openxc.BinaryMessages.NetworkDataSettings value) {
7781 if (networkDataSettingsBuilder_ == null) {
7782 if (value == null) {
7783 throw new NullPointerException();
7785 networkDataSettings_ = value;
7788 networkDataSettingsBuilder_.setMessage(value);
7790 bitField0_ |= 0x00000002;
7793 public Builder setNetworkDataSettings(
7794 com.openxc.BinaryMessages.NetworkDataSettings.Builder builderForValue) {
7795 if (networkDataSettingsBuilder_ == null) {
7796 networkDataSettings_ = builderForValue.build();
7799 networkDataSettingsBuilder_.setMessage(builderForValue.build());
7801 bitField0_ |= 0x00000002;
7804 public Builder mergeNetworkDataSettings(com.openxc.BinaryMessages.NetworkDataSettings value) {
7805 if (networkDataSettingsBuilder_ == null) {
7806 if (((bitField0_ & 0x00000002) == 0x00000002) &&
7807 networkDataSettings_ != com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance()) {
7808 networkDataSettings_ =
7809 com.openxc.BinaryMessages.NetworkDataSettings.newBuilder(networkDataSettings_).mergeFrom(value).buildPartial();
7811 networkDataSettings_ = value;
7815 networkDataSettingsBuilder_.mergeFrom(value);
7817 bitField0_ |= 0x00000002;
7820 public Builder clearNetworkDataSettings() {
7821 if (networkDataSettingsBuilder_ == null) {
7822 networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7825 networkDataSettingsBuilder_.clear();
7827 bitField0_ = (bitField0_ & ~0x00000002);
7830 public com.openxc.BinaryMessages.NetworkDataSettings.Builder getNetworkDataSettingsBuilder() {
7831 bitField0_ |= 0x00000002;
7833 return getNetworkDataSettingsFieldBuilder().getBuilder();
7835 public com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder getNetworkDataSettingsOrBuilder() {
7836 if (networkDataSettingsBuilder_ != null) {
7837 return networkDataSettingsBuilder_.getMessageOrBuilder();
7839 return networkDataSettings_;
7842 private com.google.protobuf.SingleFieldBuilder<
7843 com.openxc.BinaryMessages.NetworkDataSettings, com.openxc.BinaryMessages.NetworkDataSettings.Builder, com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder>
7844 getNetworkDataSettingsFieldBuilder() {
7845 if (networkDataSettingsBuilder_ == null) {
7846 networkDataSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7847 com.openxc.BinaryMessages.NetworkDataSettings, com.openxc.BinaryMessages.NetworkDataSettings.Builder, com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder>(
7848 networkDataSettings_,
7849 getParentForChildren(),
7851 networkDataSettings_ = null;
7853 return networkDataSettingsBuilder_;
7856 // optional .openxc.ServerConnectSettings serverConnectSettings = 3;
7857 private com.openxc.BinaryMessages.ServerConnectSettings serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7858 private com.google.protobuf.SingleFieldBuilder<
7859 com.openxc.BinaryMessages.ServerConnectSettings, com.openxc.BinaryMessages.ServerConnectSettings.Builder, com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder> serverConnectSettingsBuilder_;
7860 public boolean hasServerConnectSettings() {
7861 return ((bitField0_ & 0x00000004) == 0x00000004);
7863 public com.openxc.BinaryMessages.ServerConnectSettings getServerConnectSettings() {
7864 if (serverConnectSettingsBuilder_ == null) {
7865 return serverConnectSettings_;
7867 return serverConnectSettingsBuilder_.getMessage();
7870 public Builder setServerConnectSettings(com.openxc.BinaryMessages.ServerConnectSettings value) {
7871 if (serverConnectSettingsBuilder_ == null) {
7872 if (value == null) {
7873 throw new NullPointerException();
7875 serverConnectSettings_ = value;
7878 serverConnectSettingsBuilder_.setMessage(value);
7880 bitField0_ |= 0x00000004;
7883 public Builder setServerConnectSettings(
7884 com.openxc.BinaryMessages.ServerConnectSettings.Builder builderForValue) {
7885 if (serverConnectSettingsBuilder_ == null) {
7886 serverConnectSettings_ = builderForValue.build();
7889 serverConnectSettingsBuilder_.setMessage(builderForValue.build());
7891 bitField0_ |= 0x00000004;
7894 public Builder mergeServerConnectSettings(com.openxc.BinaryMessages.ServerConnectSettings value) {
7895 if (serverConnectSettingsBuilder_ == null) {
7896 if (((bitField0_ & 0x00000004) == 0x00000004) &&
7897 serverConnectSettings_ != com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance()) {
7898 serverConnectSettings_ =
7899 com.openxc.BinaryMessages.ServerConnectSettings.newBuilder(serverConnectSettings_).mergeFrom(value).buildPartial();
7901 serverConnectSettings_ = value;
7905 serverConnectSettingsBuilder_.mergeFrom(value);
7907 bitField0_ |= 0x00000004;
7910 public Builder clearServerConnectSettings() {
7911 if (serverConnectSettingsBuilder_ == null) {
7912 serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7915 serverConnectSettingsBuilder_.clear();
7917 bitField0_ = (bitField0_ & ~0x00000004);
7920 public com.openxc.BinaryMessages.ServerConnectSettings.Builder getServerConnectSettingsBuilder() {
7921 bitField0_ |= 0x00000004;
7923 return getServerConnectSettingsFieldBuilder().getBuilder();
7925 public com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder getServerConnectSettingsOrBuilder() {
7926 if (serverConnectSettingsBuilder_ != null) {
7927 return serverConnectSettingsBuilder_.getMessageOrBuilder();
7929 return serverConnectSettings_;
7932 private com.google.protobuf.SingleFieldBuilder<
7933 com.openxc.BinaryMessages.ServerConnectSettings, com.openxc.BinaryMessages.ServerConnectSettings.Builder, com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder>
7934 getServerConnectSettingsFieldBuilder() {
7935 if (serverConnectSettingsBuilder_ == null) {
7936 serverConnectSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7937 com.openxc.BinaryMessages.ServerConnectSettings, com.openxc.BinaryMessages.ServerConnectSettings.Builder, com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder>(
7938 serverConnectSettings_,
7939 getParentForChildren(),
7941 serverConnectSettings_ = null;
7943 return serverConnectSettingsBuilder_;
7946 // @@protoc_insertion_point(builder_scope:openxc.ModemConfigurationCommand)
7950 defaultInstance = new ModemConfigurationCommand(true);
7951 defaultInstance.initFields();
7954 // @@protoc_insertion_point(class_scope:openxc.ModemConfigurationCommand)
7957 public interface RTCConfigurationCommandOrBuilder
7958 extends com.google.protobuf.MessageOrBuilder {
7960 // optional uint32 unix_time = 1;
7961 boolean hasUnixTime();
7964 public static final class RTCConfigurationCommand extends
7965 com.google.protobuf.GeneratedMessage
7966 implements RTCConfigurationCommandOrBuilder {
7967 // Use RTCConfigurationCommand.newBuilder() to construct.
7968 private RTCConfigurationCommand(Builder builder) {
7971 private RTCConfigurationCommand(boolean noInit) {}
7973 private static final RTCConfigurationCommand defaultInstance;
7974 public static RTCConfigurationCommand getDefaultInstance() {
7975 return defaultInstance;
7978 public RTCConfigurationCommand getDefaultInstanceForType() {
7979 return defaultInstance;
7982 public static final com.google.protobuf.Descriptors.Descriptor
7984 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_descriptor;
7987 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7988 internalGetFieldAccessorTable() {
7989 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable;
7992 private int bitField0_;
7993 // optional uint32 unix_time = 1;
7994 public static final int UNIX_TIME_FIELD_NUMBER = 1;
7995 private int unixTime_;
7996 public boolean hasUnixTime() {
7997 return ((bitField0_ & 0x00000001) == 0x00000001);
7999 public int getUnixTime() {
8003 private void initFields() {
8006 private byte memoizedIsInitialized = -1;
8007 public final boolean isInitialized() {
8008 byte isInitialized = memoizedIsInitialized;
8009 if (isInitialized != -1) return isInitialized == 1;
8011 memoizedIsInitialized = 1;
8015 public void writeTo(com.google.protobuf.CodedOutputStream output)
8016 throws java.io.IOException {
8017 getSerializedSize();
8018 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8019 output.writeUInt32(1, unixTime_);
8021 getUnknownFields().writeTo(output);
8024 private int memoizedSerializedSize = -1;
8025 public int getSerializedSize() {
8026 int size = memoizedSerializedSize;
8027 if (size != -1) return size;
8030 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8031 size += com.google.protobuf.CodedOutputStream
8032 .computeUInt32Size(1, unixTime_);
8034 size += getUnknownFields().getSerializedSize();
8035 memoizedSerializedSize = size;
8039 private static final long serialVersionUID = 0L;
8041 protected java.lang.Object writeReplace()
8042 throws java.io.ObjectStreamException {
8043 return super.writeReplace();
8046 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8047 com.google.protobuf.ByteString data)
8048 throws com.google.protobuf.InvalidProtocolBufferException {
8049 return newBuilder().mergeFrom(data).buildParsed();
8051 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8052 com.google.protobuf.ByteString data,
8053 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8054 throws com.google.protobuf.InvalidProtocolBufferException {
8055 return newBuilder().mergeFrom(data, extensionRegistry)
8058 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(byte[] data)
8059 throws com.google.protobuf.InvalidProtocolBufferException {
8060 return newBuilder().mergeFrom(data).buildParsed();
8062 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8064 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8065 throws com.google.protobuf.InvalidProtocolBufferException {
8066 return newBuilder().mergeFrom(data, extensionRegistry)
8069 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(java.io.InputStream input)
8070 throws java.io.IOException {
8071 return newBuilder().mergeFrom(input).buildParsed();
8073 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8074 java.io.InputStream input,
8075 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8076 throws java.io.IOException {
8077 return newBuilder().mergeFrom(input, extensionRegistry)
8080 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseDelimitedFrom(java.io.InputStream input)
8081 throws java.io.IOException {
8082 Builder builder = newBuilder();
8083 if (builder.mergeDelimitedFrom(input)) {
8084 return builder.buildParsed();
8089 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseDelimitedFrom(
8090 java.io.InputStream input,
8091 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8092 throws java.io.IOException {
8093 Builder builder = newBuilder();
8094 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
8095 return builder.buildParsed();
8100 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8101 com.google.protobuf.CodedInputStream input)
8102 throws java.io.IOException {
8103 return newBuilder().mergeFrom(input).buildParsed();
8105 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8106 com.google.protobuf.CodedInputStream input,
8107 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8108 throws java.io.IOException {
8109 return newBuilder().mergeFrom(input, extensionRegistry)
8113 public static Builder newBuilder() { return Builder.create(); }
8114 public Builder newBuilderForType() { return newBuilder(); }
8115 public static Builder newBuilder(com.openxc.BinaryMessages.RTCConfigurationCommand prototype) {
8116 return newBuilder().mergeFrom(prototype);
8118 public Builder toBuilder() { return newBuilder(this); }
8121 protected Builder newBuilderForType(
8122 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8123 Builder builder = new Builder(parent);
8126 public static final class Builder extends
8127 com.google.protobuf.GeneratedMessage.Builder<Builder>
8128 implements com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder {
8129 public static final com.google.protobuf.Descriptors.Descriptor
8131 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_descriptor;
8134 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8135 internalGetFieldAccessorTable() {
8136 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable;
8139 // Construct using com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder()
8141 maybeForceBuilderInitialization();
8144 private Builder(BuilderParent parent) {
8146 maybeForceBuilderInitialization();
8148 private void maybeForceBuilderInitialization() {
8149 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8152 private static Builder create() {
8153 return new Builder();
8156 public Builder clear() {
8159 bitField0_ = (bitField0_ & ~0x00000001);
8163 public Builder clone() {
8164 return create().mergeFrom(buildPartial());
8167 public com.google.protobuf.Descriptors.Descriptor
8168 getDescriptorForType() {
8169 return com.openxc.BinaryMessages.RTCConfigurationCommand.getDescriptor();
8172 public com.openxc.BinaryMessages.RTCConfigurationCommand getDefaultInstanceForType() {
8173 return com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
8176 public com.openxc.BinaryMessages.RTCConfigurationCommand build() {
8177 com.openxc.BinaryMessages.RTCConfigurationCommand result = buildPartial();
8178 if (!result.isInitialized()) {
8179 throw newUninitializedMessageException(result);
8184 private com.openxc.BinaryMessages.RTCConfigurationCommand buildParsed()
8185 throws com.google.protobuf.InvalidProtocolBufferException {
8186 com.openxc.BinaryMessages.RTCConfigurationCommand result = buildPartial();
8187 if (!result.isInitialized()) {
8188 throw newUninitializedMessageException(
8189 result).asInvalidProtocolBufferException();
8194 public com.openxc.BinaryMessages.RTCConfigurationCommand buildPartial() {
8195 com.openxc.BinaryMessages.RTCConfigurationCommand result = new com.openxc.BinaryMessages.RTCConfigurationCommand(this);
8196 int from_bitField0_ = bitField0_;
8197 int to_bitField0_ = 0;
8198 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8199 to_bitField0_ |= 0x00000001;
8201 result.unixTime_ = unixTime_;
8202 result.bitField0_ = to_bitField0_;
8207 public Builder mergeFrom(com.google.protobuf.Message other) {
8208 if (other instanceof com.openxc.BinaryMessages.RTCConfigurationCommand) {
8209 return mergeFrom((com.openxc.BinaryMessages.RTCConfigurationCommand)other);
8211 super.mergeFrom(other);
8216 public Builder mergeFrom(com.openxc.BinaryMessages.RTCConfigurationCommand other) {
8217 if (other == com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance()) return this;
8218 if (other.hasUnixTime()) {
8219 setUnixTime(other.getUnixTime());
8221 this.mergeUnknownFields(other.getUnknownFields());
8225 public final boolean isInitialized() {
8229 public Builder mergeFrom(
8230 com.google.protobuf.CodedInputStream input,
8231 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8232 throws java.io.IOException {
8233 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8234 com.google.protobuf.UnknownFieldSet.newBuilder(
8235 this.getUnknownFields());
8237 int tag = input.readTag();
8240 this.setUnknownFields(unknownFields.build());
8244 if (!parseUnknownField(input, unknownFields,
8245 extensionRegistry, tag)) {
8246 this.setUnknownFields(unknownFields.build());
8253 bitField0_ |= 0x00000001;
8254 unixTime_ = input.readUInt32();
8261 private int bitField0_;
8263 // optional uint32 unix_time = 1;
8264 private int unixTime_ ;
8265 public boolean hasUnixTime() {
8266 return ((bitField0_ & 0x00000001) == 0x00000001);
8268 public int getUnixTime() {
8271 public Builder setUnixTime(int value) {
8272 bitField0_ |= 0x00000001;
8277 public Builder clearUnixTime() {
8278 bitField0_ = (bitField0_ & ~0x00000001);
8284 // @@protoc_insertion_point(builder_scope:openxc.RTCConfigurationCommand)
8288 defaultInstance = new RTCConfigurationCommand(true);
8289 defaultInstance.initFields();
8292 // @@protoc_insertion_point(class_scope:openxc.RTCConfigurationCommand)
8295 public interface CommandResponseOrBuilder
8296 extends com.google.protobuf.MessageOrBuilder {
8298 // optional .openxc.ControlCommand.Type type = 1;
8300 com.openxc.BinaryMessages.ControlCommand.Type getType();
8302 // optional string message = 2;
8303 boolean hasMessage();
8304 String getMessage();
8306 // optional bool status = 3;
8307 boolean hasStatus();
8308 boolean getStatus();
8310 public static final class CommandResponse extends
8311 com.google.protobuf.GeneratedMessage
8312 implements CommandResponseOrBuilder {
8313 // Use CommandResponse.newBuilder() to construct.
8314 private CommandResponse(Builder builder) {
8317 private CommandResponse(boolean noInit) {}
8319 private static final CommandResponse defaultInstance;
8320 public static CommandResponse getDefaultInstance() {
8321 return defaultInstance;
8324 public CommandResponse getDefaultInstanceForType() {
8325 return defaultInstance;
8328 public static final com.google.protobuf.Descriptors.Descriptor
8330 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
8333 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8334 internalGetFieldAccessorTable() {
8335 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable;
8338 private int bitField0_;
8339 // optional .openxc.ControlCommand.Type type = 1;
8340 public static final int TYPE_FIELD_NUMBER = 1;
8341 private com.openxc.BinaryMessages.ControlCommand.Type type_;
8342 public boolean hasType() {
8343 return ((bitField0_ & 0x00000001) == 0x00000001);
8345 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
8349 // optional string message = 2;
8350 public static final int MESSAGE_FIELD_NUMBER = 2;
8351 private java.lang.Object message_;
8352 public boolean hasMessage() {
8353 return ((bitField0_ & 0x00000002) == 0x00000002);
8355 public String getMessage() {
8356 java.lang.Object ref = message_;
8357 if (ref instanceof String) {
8358 return (String) ref;
8360 com.google.protobuf.ByteString bs =
8361 (com.google.protobuf.ByteString) ref;
8362 String s = bs.toStringUtf8();
8363 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
8369 private com.google.protobuf.ByteString getMessageBytes() {
8370 java.lang.Object ref = message_;
8371 if (ref instanceof String) {
8372 com.google.protobuf.ByteString b =
8373 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
8377 return (com.google.protobuf.ByteString) ref;
8381 // optional bool status = 3;
8382 public static final int STATUS_FIELD_NUMBER = 3;
8383 private boolean status_;
8384 public boolean hasStatus() {
8385 return ((bitField0_ & 0x00000004) == 0x00000004);
8387 public boolean getStatus() {
8391 private void initFields() {
8392 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8396 private byte memoizedIsInitialized = -1;
8397 public final boolean isInitialized() {
8398 byte isInitialized = memoizedIsInitialized;
8399 if (isInitialized != -1) return isInitialized == 1;
8401 memoizedIsInitialized = 1;
8405 public void writeTo(com.google.protobuf.CodedOutputStream output)
8406 throws java.io.IOException {
8407 getSerializedSize();
8408 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8409 output.writeEnum(1, type_.getNumber());
8411 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8412 output.writeBytes(2, getMessageBytes());
8414 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8415 output.writeBool(3, status_);
8417 getUnknownFields().writeTo(output);
8420 private int memoizedSerializedSize = -1;
8421 public int getSerializedSize() {
8422 int size = memoizedSerializedSize;
8423 if (size != -1) return size;
8426 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8427 size += com.google.protobuf.CodedOutputStream
8428 .computeEnumSize(1, type_.getNumber());
8430 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8431 size += com.google.protobuf.CodedOutputStream
8432 .computeBytesSize(2, getMessageBytes());
8434 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8435 size += com.google.protobuf.CodedOutputStream
8436 .computeBoolSize(3, status_);
8438 size += getUnknownFields().getSerializedSize();
8439 memoizedSerializedSize = size;
8443 private static final long serialVersionUID = 0L;
8445 protected java.lang.Object writeReplace()
8446 throws java.io.ObjectStreamException {
8447 return super.writeReplace();
8450 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8451 com.google.protobuf.ByteString data)
8452 throws com.google.protobuf.InvalidProtocolBufferException {
8453 return newBuilder().mergeFrom(data).buildParsed();
8455 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8456 com.google.protobuf.ByteString data,
8457 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8458 throws com.google.protobuf.InvalidProtocolBufferException {
8459 return newBuilder().mergeFrom(data, extensionRegistry)
8462 public static com.openxc.BinaryMessages.CommandResponse parseFrom(byte[] data)
8463 throws com.google.protobuf.InvalidProtocolBufferException {
8464 return newBuilder().mergeFrom(data).buildParsed();
8466 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8468 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8469 throws com.google.protobuf.InvalidProtocolBufferException {
8470 return newBuilder().mergeFrom(data, extensionRegistry)
8473 public static com.openxc.BinaryMessages.CommandResponse parseFrom(java.io.InputStream input)
8474 throws java.io.IOException {
8475 return newBuilder().mergeFrom(input).buildParsed();
8477 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8478 java.io.InputStream input,
8479 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8480 throws java.io.IOException {
8481 return newBuilder().mergeFrom(input, extensionRegistry)
8484 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(java.io.InputStream input)
8485 throws java.io.IOException {
8486 Builder builder = newBuilder();
8487 if (builder.mergeDelimitedFrom(input)) {
8488 return builder.buildParsed();
8493 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(
8494 java.io.InputStream input,
8495 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8496 throws java.io.IOException {
8497 Builder builder = newBuilder();
8498 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
8499 return builder.buildParsed();
8504 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8505 com.google.protobuf.CodedInputStream input)
8506 throws java.io.IOException {
8507 return newBuilder().mergeFrom(input).buildParsed();
8509 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8510 com.google.protobuf.CodedInputStream input,
8511 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8512 throws java.io.IOException {
8513 return newBuilder().mergeFrom(input, extensionRegistry)
8517 public static Builder newBuilder() { return Builder.create(); }
8518 public Builder newBuilderForType() { return newBuilder(); }
8519 public static Builder newBuilder(com.openxc.BinaryMessages.CommandResponse prototype) {
8520 return newBuilder().mergeFrom(prototype);
8522 public Builder toBuilder() { return newBuilder(this); }
8525 protected Builder newBuilderForType(
8526 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8527 Builder builder = new Builder(parent);
8530 public static final class Builder extends
8531 com.google.protobuf.GeneratedMessage.Builder<Builder>
8532 implements com.openxc.BinaryMessages.CommandResponseOrBuilder {
8533 public static final com.google.protobuf.Descriptors.Descriptor
8535 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
8538 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8539 internalGetFieldAccessorTable() {
8540 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable;
8543 // Construct using com.openxc.BinaryMessages.CommandResponse.newBuilder()
8545 maybeForceBuilderInitialization();
8548 private Builder(BuilderParent parent) {
8550 maybeForceBuilderInitialization();
8552 private void maybeForceBuilderInitialization() {
8553 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8556 private static Builder create() {
8557 return new Builder();
8560 public Builder clear() {
8562 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8563 bitField0_ = (bitField0_ & ~0x00000001);
8565 bitField0_ = (bitField0_ & ~0x00000002);
8567 bitField0_ = (bitField0_ & ~0x00000004);
8571 public Builder clone() {
8572 return create().mergeFrom(buildPartial());
8575 public com.google.protobuf.Descriptors.Descriptor
8576 getDescriptorForType() {
8577 return com.openxc.BinaryMessages.CommandResponse.getDescriptor();
8580 public com.openxc.BinaryMessages.CommandResponse getDefaultInstanceForType() {
8581 return com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
8584 public com.openxc.BinaryMessages.CommandResponse build() {
8585 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
8586 if (!result.isInitialized()) {
8587 throw newUninitializedMessageException(result);
8592 private com.openxc.BinaryMessages.CommandResponse buildParsed()
8593 throws com.google.protobuf.InvalidProtocolBufferException {
8594 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
8595 if (!result.isInitialized()) {
8596 throw newUninitializedMessageException(
8597 result).asInvalidProtocolBufferException();
8602 public com.openxc.BinaryMessages.CommandResponse buildPartial() {
8603 com.openxc.BinaryMessages.CommandResponse result = new com.openxc.BinaryMessages.CommandResponse(this);
8604 int from_bitField0_ = bitField0_;
8605 int to_bitField0_ = 0;
8606 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8607 to_bitField0_ |= 0x00000001;
8609 result.type_ = type_;
8610 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
8611 to_bitField0_ |= 0x00000002;
8613 result.message_ = message_;
8614 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
8615 to_bitField0_ |= 0x00000004;
8617 result.status_ = status_;
8618 result.bitField0_ = to_bitField0_;
8623 public Builder mergeFrom(com.google.protobuf.Message other) {
8624 if (other instanceof com.openxc.BinaryMessages.CommandResponse) {
8625 return mergeFrom((com.openxc.BinaryMessages.CommandResponse)other);
8627 super.mergeFrom(other);
8632 public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) {
8633 if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this;
8634 if (other.hasType()) {
8635 setType(other.getType());
8637 if (other.hasMessage()) {
8638 setMessage(other.getMessage());
8640 if (other.hasStatus()) {
8641 setStatus(other.getStatus());
8643 this.mergeUnknownFields(other.getUnknownFields());
8647 public final boolean isInitialized() {
8651 public Builder mergeFrom(
8652 com.google.protobuf.CodedInputStream input,
8653 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8654 throws java.io.IOException {
8655 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8656 com.google.protobuf.UnknownFieldSet.newBuilder(
8657 this.getUnknownFields());
8659 int tag = input.readTag();
8662 this.setUnknownFields(unknownFields.build());
8666 if (!parseUnknownField(input, unknownFields,
8667 extensionRegistry, tag)) {
8668 this.setUnknownFields(unknownFields.build());
8675 int rawValue = input.readEnum();
8676 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
8677 if (value == null) {
8678 unknownFields.mergeVarintField(1, rawValue);
8680 bitField0_ |= 0x00000001;
8686 bitField0_ |= 0x00000002;
8687 message_ = input.readBytes();
8691 bitField0_ |= 0x00000004;
8692 status_ = input.readBool();
8699 private int bitField0_;
8701 // optional .openxc.ControlCommand.Type type = 1;
8702 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8703 public boolean hasType() {
8704 return ((bitField0_ & 0x00000001) == 0x00000001);
8706 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
8709 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
8710 if (value == null) {
8711 throw new NullPointerException();
8713 bitField0_ |= 0x00000001;
8718 public Builder clearType() {
8719 bitField0_ = (bitField0_ & ~0x00000001);
8720 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8725 // optional string message = 2;
8726 private java.lang.Object message_ = "";
8727 public boolean hasMessage() {
8728 return ((bitField0_ & 0x00000002) == 0x00000002);
8730 public String getMessage() {
8731 java.lang.Object ref = message_;
8732 if (!(ref instanceof String)) {
8733 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
8737 return (String) ref;
8740 public Builder setMessage(String value) {
8741 if (value == null) {
8742 throw new NullPointerException();
8744 bitField0_ |= 0x00000002;
8749 public Builder clearMessage() {
8750 bitField0_ = (bitField0_ & ~0x00000002);
8751 message_ = getDefaultInstance().getMessage();
8755 void setMessage(com.google.protobuf.ByteString value) {
8756 bitField0_ |= 0x00000002;
8761 // optional bool status = 3;
8762 private boolean status_ ;
8763 public boolean hasStatus() {
8764 return ((bitField0_ & 0x00000004) == 0x00000004);
8766 public boolean getStatus() {
8769 public Builder setStatus(boolean value) {
8770 bitField0_ |= 0x00000004;
8775 public Builder clearStatus() {
8776 bitField0_ = (bitField0_ & ~0x00000004);
8782 // @@protoc_insertion_point(builder_scope:openxc.CommandResponse)
8786 defaultInstance = new CommandResponse(true);
8787 defaultInstance.initFields();
8790 // @@protoc_insertion_point(class_scope:openxc.CommandResponse)
8793 public interface DiagnosticRequestOrBuilder
8794 extends com.google.protobuf.MessageOrBuilder {
8796 // optional int32 bus = 1;
8800 // optional uint32 message_id = 2;
8801 boolean hasMessageId();
8804 // optional uint32 mode = 3;
8808 // optional uint32 pid = 4;
8812 // optional bytes payload = 5;
8813 boolean hasPayload();
8814 com.google.protobuf.ByteString getPayload();
8816 // optional bool multiple_responses = 6;
8817 boolean hasMultipleResponses();
8818 boolean getMultipleResponses();
8820 // optional double frequency = 7;
8821 boolean hasFrequency();
8822 double getFrequency();
8824 // optional string name = 8;
8828 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
8829 boolean hasDecodedType();
8830 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType();
8832 public static final class DiagnosticRequest extends
8833 com.google.protobuf.GeneratedMessage
8834 implements DiagnosticRequestOrBuilder {
8835 // Use DiagnosticRequest.newBuilder() to construct.
8836 private DiagnosticRequest(Builder builder) {
8839 private DiagnosticRequest(boolean noInit) {}
8841 private static final DiagnosticRequest defaultInstance;
8842 public static DiagnosticRequest getDefaultInstance() {
8843 return defaultInstance;
8846 public DiagnosticRequest getDefaultInstanceForType() {
8847 return defaultInstance;
8850 public static final com.google.protobuf.Descriptors.Descriptor
8852 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
8855 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8856 internalGetFieldAccessorTable() {
8857 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
8860 public enum DecodedType
8861 implements com.google.protobuf.ProtocolMessageEnum {
8866 public static final int NONE_VALUE = 1;
8867 public static final int OBD2_VALUE = 2;
8870 public final int getNumber() { return value; }
8872 public static DecodedType valueOf(int value) {
8874 case 1: return NONE;
8875 case 2: return OBD2;
8876 default: return null;
8880 public static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
8881 internalGetValueMap() {
8882 return internalValueMap;
8884 private static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
8886 new com.google.protobuf.Internal.EnumLiteMap<DecodedType>() {
8887 public DecodedType findValueByNumber(int number) {
8888 return DecodedType.valueOf(number);
8892 public final com.google.protobuf.Descriptors.EnumValueDescriptor
8893 getValueDescriptor() {
8894 return getDescriptor().getValues().get(index);
8896 public final com.google.protobuf.Descriptors.EnumDescriptor
8897 getDescriptorForType() {
8898 return getDescriptor();
8900 public static final com.google.protobuf.Descriptors.EnumDescriptor
8902 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(0);
8905 private static final DecodedType[] VALUES = {
8909 public static DecodedType valueOf(
8910 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
8911 if (desc.getType() != getDescriptor()) {
8912 throw new java.lang.IllegalArgumentException(
8913 "EnumValueDescriptor is not for this type.");
8915 return VALUES[desc.getIndex()];
8918 private final int index;
8919 private final int value;
8921 private DecodedType(int index, int value) {
8926 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.DecodedType)
8929 private int bitField0_;
8930 // optional int32 bus = 1;
8931 public static final int BUS_FIELD_NUMBER = 1;
8933 public boolean hasBus() {
8934 return ((bitField0_ & 0x00000001) == 0x00000001);
8936 public int getBus() {
8940 // optional uint32 message_id = 2;
8941 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
8942 private int messageId_;
8943 public boolean hasMessageId() {
8944 return ((bitField0_ & 0x00000002) == 0x00000002);
8946 public int getMessageId() {
8950 // optional uint32 mode = 3;
8951 public static final int MODE_FIELD_NUMBER = 3;
8953 public boolean hasMode() {
8954 return ((bitField0_ & 0x00000004) == 0x00000004);
8956 public int getMode() {
8960 // optional uint32 pid = 4;
8961 public static final int PID_FIELD_NUMBER = 4;
8963 public boolean hasPid() {
8964 return ((bitField0_ & 0x00000008) == 0x00000008);
8966 public int getPid() {
8970 // optional bytes payload = 5;
8971 public static final int PAYLOAD_FIELD_NUMBER = 5;
8972 private com.google.protobuf.ByteString payload_;
8973 public boolean hasPayload() {
8974 return ((bitField0_ & 0x00000010) == 0x00000010);
8976 public com.google.protobuf.ByteString getPayload() {
8980 // optional bool multiple_responses = 6;
8981 public static final int MULTIPLE_RESPONSES_FIELD_NUMBER = 6;
8982 private boolean multipleResponses_;
8983 public boolean hasMultipleResponses() {
8984 return ((bitField0_ & 0x00000020) == 0x00000020);
8986 public boolean getMultipleResponses() {
8987 return multipleResponses_;
8990 // optional double frequency = 7;
8991 public static final int FREQUENCY_FIELD_NUMBER = 7;
8992 private double frequency_;
8993 public boolean hasFrequency() {
8994 return ((bitField0_ & 0x00000040) == 0x00000040);
8996 public double getFrequency() {
9000 // optional string name = 8;
9001 public static final int NAME_FIELD_NUMBER = 8;
9002 private java.lang.Object name_;
9003 public boolean hasName() {
9004 return ((bitField0_ & 0x00000080) == 0x00000080);
9006 public String getName() {
9007 java.lang.Object ref = name_;
9008 if (ref instanceof String) {
9009 return (String) ref;
9011 com.google.protobuf.ByteString bs =
9012 (com.google.protobuf.ByteString) ref;
9013 String s = bs.toStringUtf8();
9014 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
9020 private com.google.protobuf.ByteString getNameBytes() {
9021 java.lang.Object ref = name_;
9022 if (ref instanceof String) {
9023 com.google.protobuf.ByteString b =
9024 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
9028 return (com.google.protobuf.ByteString) ref;
9032 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
9033 public static final int DECODED_TYPE_FIELD_NUMBER = 9;
9034 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_;
9035 public boolean hasDecodedType() {
9036 return ((bitField0_ & 0x00000100) == 0x00000100);
9038 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
9039 return decodedType_;
9042 private void initFields() {
9047 payload_ = com.google.protobuf.ByteString.EMPTY;
9048 multipleResponses_ = false;
9051 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9053 private byte memoizedIsInitialized = -1;
9054 public final boolean isInitialized() {
9055 byte isInitialized = memoizedIsInitialized;
9056 if (isInitialized != -1) return isInitialized == 1;
9058 memoizedIsInitialized = 1;
9062 public void writeTo(com.google.protobuf.CodedOutputStream output)
9063 throws java.io.IOException {
9064 getSerializedSize();
9065 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9066 output.writeInt32(1, bus_);
9068 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9069 output.writeUInt32(2, messageId_);
9071 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9072 output.writeUInt32(3, mode_);
9074 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9075 output.writeUInt32(4, pid_);
9077 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9078 output.writeBytes(5, payload_);
9080 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9081 output.writeBool(6, multipleResponses_);
9083 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9084 output.writeDouble(7, frequency_);
9086 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9087 output.writeBytes(8, getNameBytes());
9089 if (((bitField0_ & 0x00000100) == 0x00000100)) {
9090 output.writeEnum(9, decodedType_.getNumber());
9092 getUnknownFields().writeTo(output);
9095 private int memoizedSerializedSize = -1;
9096 public int getSerializedSize() {
9097 int size = memoizedSerializedSize;
9098 if (size != -1) return size;
9101 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9102 size += com.google.protobuf.CodedOutputStream
9103 .computeInt32Size(1, bus_);
9105 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9106 size += com.google.protobuf.CodedOutputStream
9107 .computeUInt32Size(2, messageId_);
9109 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9110 size += com.google.protobuf.CodedOutputStream
9111 .computeUInt32Size(3, mode_);
9113 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9114 size += com.google.protobuf.CodedOutputStream
9115 .computeUInt32Size(4, pid_);
9117 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9118 size += com.google.protobuf.CodedOutputStream
9119 .computeBytesSize(5, payload_);
9121 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9122 size += com.google.protobuf.CodedOutputStream
9123 .computeBoolSize(6, multipleResponses_);
9125 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9126 size += com.google.protobuf.CodedOutputStream
9127 .computeDoubleSize(7, frequency_);
9129 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9130 size += com.google.protobuf.CodedOutputStream
9131 .computeBytesSize(8, getNameBytes());
9133 if (((bitField0_ & 0x00000100) == 0x00000100)) {
9134 size += com.google.protobuf.CodedOutputStream
9135 .computeEnumSize(9, decodedType_.getNumber());
9137 size += getUnknownFields().getSerializedSize();
9138 memoizedSerializedSize = size;
9142 private static final long serialVersionUID = 0L;
9144 protected java.lang.Object writeReplace()
9145 throws java.io.ObjectStreamException {
9146 return super.writeReplace();
9149 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9150 com.google.protobuf.ByteString data)
9151 throws com.google.protobuf.InvalidProtocolBufferException {
9152 return newBuilder().mergeFrom(data).buildParsed();
9154 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9155 com.google.protobuf.ByteString data,
9156 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9157 throws com.google.protobuf.InvalidProtocolBufferException {
9158 return newBuilder().mergeFrom(data, extensionRegistry)
9161 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
9162 throws com.google.protobuf.InvalidProtocolBufferException {
9163 return newBuilder().mergeFrom(data).buildParsed();
9165 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9167 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9168 throws com.google.protobuf.InvalidProtocolBufferException {
9169 return newBuilder().mergeFrom(data, extensionRegistry)
9172 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
9173 throws java.io.IOException {
9174 return newBuilder().mergeFrom(input).buildParsed();
9176 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9177 java.io.InputStream input,
9178 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9179 throws java.io.IOException {
9180 return newBuilder().mergeFrom(input, extensionRegistry)
9183 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
9184 throws java.io.IOException {
9185 Builder builder = newBuilder();
9186 if (builder.mergeDelimitedFrom(input)) {
9187 return builder.buildParsed();
9192 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
9193 java.io.InputStream input,
9194 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9195 throws java.io.IOException {
9196 Builder builder = newBuilder();
9197 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
9198 return builder.buildParsed();
9203 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9204 com.google.protobuf.CodedInputStream input)
9205 throws java.io.IOException {
9206 return newBuilder().mergeFrom(input).buildParsed();
9208 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9209 com.google.protobuf.CodedInputStream input,
9210 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9211 throws java.io.IOException {
9212 return newBuilder().mergeFrom(input, extensionRegistry)
9216 public static Builder newBuilder() { return Builder.create(); }
9217 public Builder newBuilderForType() { return newBuilder(); }
9218 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
9219 return newBuilder().mergeFrom(prototype);
9221 public Builder toBuilder() { return newBuilder(this); }
9224 protected Builder newBuilderForType(
9225 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9226 Builder builder = new Builder(parent);
9229 public static final class Builder extends
9230 com.google.protobuf.GeneratedMessage.Builder<Builder>
9231 implements com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
9232 public static final com.google.protobuf.Descriptors.Descriptor
9234 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
9237 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9238 internalGetFieldAccessorTable() {
9239 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
9242 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
9244 maybeForceBuilderInitialization();
9247 private Builder(BuilderParent parent) {
9249 maybeForceBuilderInitialization();
9251 private void maybeForceBuilderInitialization() {
9252 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
9255 private static Builder create() {
9256 return new Builder();
9259 public Builder clear() {
9262 bitField0_ = (bitField0_ & ~0x00000001);
9264 bitField0_ = (bitField0_ & ~0x00000002);
9266 bitField0_ = (bitField0_ & ~0x00000004);
9268 bitField0_ = (bitField0_ & ~0x00000008);
9269 payload_ = com.google.protobuf.ByteString.EMPTY;
9270 bitField0_ = (bitField0_ & ~0x00000010);
9271 multipleResponses_ = false;
9272 bitField0_ = (bitField0_ & ~0x00000020);
9274 bitField0_ = (bitField0_ & ~0x00000040);
9276 bitField0_ = (bitField0_ & ~0x00000080);
9277 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9278 bitField0_ = (bitField0_ & ~0x00000100);
9282 public Builder clone() {
9283 return create().mergeFrom(buildPartial());
9286 public com.google.protobuf.Descriptors.Descriptor
9287 getDescriptorForType() {
9288 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor();
9291 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
9292 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
9295 public com.openxc.BinaryMessages.DiagnosticRequest build() {
9296 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
9297 if (!result.isInitialized()) {
9298 throw newUninitializedMessageException(result);
9303 private com.openxc.BinaryMessages.DiagnosticRequest buildParsed()
9304 throws com.google.protobuf.InvalidProtocolBufferException {
9305 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
9306 if (!result.isInitialized()) {
9307 throw newUninitializedMessageException(
9308 result).asInvalidProtocolBufferException();
9313 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
9314 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
9315 int from_bitField0_ = bitField0_;
9316 int to_bitField0_ = 0;
9317 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
9318 to_bitField0_ |= 0x00000001;
9321 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
9322 to_bitField0_ |= 0x00000002;
9324 result.messageId_ = messageId_;
9325 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
9326 to_bitField0_ |= 0x00000004;
9328 result.mode_ = mode_;
9329 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
9330 to_bitField0_ |= 0x00000008;
9333 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
9334 to_bitField0_ |= 0x00000010;
9336 result.payload_ = payload_;
9337 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
9338 to_bitField0_ |= 0x00000020;
9340 result.multipleResponses_ = multipleResponses_;
9341 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
9342 to_bitField0_ |= 0x00000040;
9344 result.frequency_ = frequency_;
9345 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
9346 to_bitField0_ |= 0x00000080;
9348 result.name_ = name_;
9349 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
9350 to_bitField0_ |= 0x00000100;
9352 result.decodedType_ = decodedType_;
9353 result.bitField0_ = to_bitField0_;
9358 public Builder mergeFrom(com.google.protobuf.Message other) {
9359 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
9360 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
9362 super.mergeFrom(other);
9367 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
9368 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
9369 if (other.hasBus()) {
9370 setBus(other.getBus());
9372 if (other.hasMessageId()) {
9373 setMessageId(other.getMessageId());
9375 if (other.hasMode()) {
9376 setMode(other.getMode());
9378 if (other.hasPid()) {
9379 setPid(other.getPid());
9381 if (other.hasPayload()) {
9382 setPayload(other.getPayload());
9384 if (other.hasMultipleResponses()) {
9385 setMultipleResponses(other.getMultipleResponses());
9387 if (other.hasFrequency()) {
9388 setFrequency(other.getFrequency());
9390 if (other.hasName()) {
9391 setName(other.getName());
9393 if (other.hasDecodedType()) {
9394 setDecodedType(other.getDecodedType());
9396 this.mergeUnknownFields(other.getUnknownFields());
9400 public final boolean isInitialized() {
9404 public Builder mergeFrom(
9405 com.google.protobuf.CodedInputStream input,
9406 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9407 throws java.io.IOException {
9408 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
9409 com.google.protobuf.UnknownFieldSet.newBuilder(
9410 this.getUnknownFields());
9412 int tag = input.readTag();
9415 this.setUnknownFields(unknownFields.build());
9419 if (!parseUnknownField(input, unknownFields,
9420 extensionRegistry, tag)) {
9421 this.setUnknownFields(unknownFields.build());
9428 bitField0_ |= 0x00000001;
9429 bus_ = input.readInt32();
9433 bitField0_ |= 0x00000002;
9434 messageId_ = input.readUInt32();
9438 bitField0_ |= 0x00000004;
9439 mode_ = input.readUInt32();
9443 bitField0_ |= 0x00000008;
9444 pid_ = input.readUInt32();
9448 bitField0_ |= 0x00000010;
9449 payload_ = input.readBytes();
9453 bitField0_ |= 0x00000020;
9454 multipleResponses_ = input.readBool();
9458 bitField0_ |= 0x00000040;
9459 frequency_ = input.readDouble();
9463 bitField0_ |= 0x00000080;
9464 name_ = input.readBytes();
9468 int rawValue = input.readEnum();
9469 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.valueOf(rawValue);
9470 if (value == null) {
9471 unknownFields.mergeVarintField(9, rawValue);
9473 bitField0_ |= 0x00000100;
9474 decodedType_ = value;
9482 private int bitField0_;
9484 // optional int32 bus = 1;
9486 public boolean hasBus() {
9487 return ((bitField0_ & 0x00000001) == 0x00000001);
9489 public int getBus() {
9492 public Builder setBus(int value) {
9493 bitField0_ |= 0x00000001;
9498 public Builder clearBus() {
9499 bitField0_ = (bitField0_ & ~0x00000001);
9505 // optional uint32 message_id = 2;
9506 private int messageId_ ;
9507 public boolean hasMessageId() {
9508 return ((bitField0_ & 0x00000002) == 0x00000002);
9510 public int getMessageId() {
9513 public Builder setMessageId(int value) {
9514 bitField0_ |= 0x00000002;
9519 public Builder clearMessageId() {
9520 bitField0_ = (bitField0_ & ~0x00000002);
9526 // optional uint32 mode = 3;
9528 public boolean hasMode() {
9529 return ((bitField0_ & 0x00000004) == 0x00000004);
9531 public int getMode() {
9534 public Builder setMode(int value) {
9535 bitField0_ |= 0x00000004;
9540 public Builder clearMode() {
9541 bitField0_ = (bitField0_ & ~0x00000004);
9547 // optional uint32 pid = 4;
9549 public boolean hasPid() {
9550 return ((bitField0_ & 0x00000008) == 0x00000008);
9552 public int getPid() {
9555 public Builder setPid(int value) {
9556 bitField0_ |= 0x00000008;
9561 public Builder clearPid() {
9562 bitField0_ = (bitField0_ & ~0x00000008);
9568 // optional bytes payload = 5;
9569 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
9570 public boolean hasPayload() {
9571 return ((bitField0_ & 0x00000010) == 0x00000010);
9573 public com.google.protobuf.ByteString getPayload() {
9576 public Builder setPayload(com.google.protobuf.ByteString value) {
9577 if (value == null) {
9578 throw new NullPointerException();
9580 bitField0_ |= 0x00000010;
9585 public Builder clearPayload() {
9586 bitField0_ = (bitField0_ & ~0x00000010);
9587 payload_ = getDefaultInstance().getPayload();
9592 // optional bool multiple_responses = 6;
9593 private boolean multipleResponses_ ;
9594 public boolean hasMultipleResponses() {
9595 return ((bitField0_ & 0x00000020) == 0x00000020);
9597 public boolean getMultipleResponses() {
9598 return multipleResponses_;
9600 public Builder setMultipleResponses(boolean value) {
9601 bitField0_ |= 0x00000020;
9602 multipleResponses_ = value;
9606 public Builder clearMultipleResponses() {
9607 bitField0_ = (bitField0_ & ~0x00000020);
9608 multipleResponses_ = false;
9613 // optional double frequency = 7;
9614 private double frequency_ ;
9615 public boolean hasFrequency() {
9616 return ((bitField0_ & 0x00000040) == 0x00000040);
9618 public double getFrequency() {
9621 public Builder setFrequency(double value) {
9622 bitField0_ |= 0x00000040;
9627 public Builder clearFrequency() {
9628 bitField0_ = (bitField0_ & ~0x00000040);
9634 // optional string name = 8;
9635 private java.lang.Object name_ = "";
9636 public boolean hasName() {
9637 return ((bitField0_ & 0x00000080) == 0x00000080);
9639 public String getName() {
9640 java.lang.Object ref = name_;
9641 if (!(ref instanceof String)) {
9642 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
9646 return (String) ref;
9649 public Builder setName(String value) {
9650 if (value == null) {
9651 throw new NullPointerException();
9653 bitField0_ |= 0x00000080;
9658 public Builder clearName() {
9659 bitField0_ = (bitField0_ & ~0x00000080);
9660 name_ = getDefaultInstance().getName();
9664 void setName(com.google.protobuf.ByteString value) {
9665 bitField0_ |= 0x00000080;
9670 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
9671 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9672 public boolean hasDecodedType() {
9673 return ((bitField0_ & 0x00000100) == 0x00000100);
9675 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
9676 return decodedType_;
9678 public Builder setDecodedType(com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value) {
9679 if (value == null) {
9680 throw new NullPointerException();
9682 bitField0_ |= 0x00000100;
9683 decodedType_ = value;
9687 public Builder clearDecodedType() {
9688 bitField0_ = (bitField0_ & ~0x00000100);
9689 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9694 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
9698 defaultInstance = new DiagnosticRequest(true);
9699 defaultInstance.initFields();
9702 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
9705 public interface DiagnosticResponseOrBuilder
9706 extends com.google.protobuf.MessageOrBuilder {
9708 // optional int32 bus = 1;
9712 // optional uint32 message_id = 2;
9713 boolean hasMessageId();
9716 // optional uint32 mode = 3;
9720 // optional uint32 pid = 4;
9724 // optional bool success = 5;
9725 boolean hasSuccess();
9726 boolean getSuccess();
9728 // optional uint32 negative_response_code = 6;
9729 boolean hasNegativeResponseCode();
9730 int getNegativeResponseCode();
9732 // optional bytes payload = 7;
9733 boolean hasPayload();
9734 com.google.protobuf.ByteString getPayload();
9736 // optional double value = 8;
9740 public static final class DiagnosticResponse extends
9741 com.google.protobuf.GeneratedMessage
9742 implements DiagnosticResponseOrBuilder {
9743 // Use DiagnosticResponse.newBuilder() to construct.
9744 private DiagnosticResponse(Builder builder) {
9747 private DiagnosticResponse(boolean noInit) {}
9749 private static final DiagnosticResponse defaultInstance;
9750 public static DiagnosticResponse getDefaultInstance() {
9751 return defaultInstance;
9754 public DiagnosticResponse getDefaultInstanceForType() {
9755 return defaultInstance;
9758 public static final com.google.protobuf.Descriptors.Descriptor
9760 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
9763 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9764 internalGetFieldAccessorTable() {
9765 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
9768 private int bitField0_;
9769 // optional int32 bus = 1;
9770 public static final int BUS_FIELD_NUMBER = 1;
9772 public boolean hasBus() {
9773 return ((bitField0_ & 0x00000001) == 0x00000001);
9775 public int getBus() {
9779 // optional uint32 message_id = 2;
9780 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
9781 private int messageId_;
9782 public boolean hasMessageId() {
9783 return ((bitField0_ & 0x00000002) == 0x00000002);
9785 public int getMessageId() {
9789 // optional uint32 mode = 3;
9790 public static final int MODE_FIELD_NUMBER = 3;
9792 public boolean hasMode() {
9793 return ((bitField0_ & 0x00000004) == 0x00000004);
9795 public int getMode() {
9799 // optional uint32 pid = 4;
9800 public static final int PID_FIELD_NUMBER = 4;
9802 public boolean hasPid() {
9803 return ((bitField0_ & 0x00000008) == 0x00000008);
9805 public int getPid() {
9809 // optional bool success = 5;
9810 public static final int SUCCESS_FIELD_NUMBER = 5;
9811 private boolean success_;
9812 public boolean hasSuccess() {
9813 return ((bitField0_ & 0x00000010) == 0x00000010);
9815 public boolean getSuccess() {
9819 // optional uint32 negative_response_code = 6;
9820 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
9821 private int negativeResponseCode_;
9822 public boolean hasNegativeResponseCode() {
9823 return ((bitField0_ & 0x00000020) == 0x00000020);
9825 public int getNegativeResponseCode() {
9826 return negativeResponseCode_;
9829 // optional bytes payload = 7;
9830 public static final int PAYLOAD_FIELD_NUMBER = 7;
9831 private com.google.protobuf.ByteString payload_;
9832 public boolean hasPayload() {
9833 return ((bitField0_ & 0x00000040) == 0x00000040);
9835 public com.google.protobuf.ByteString getPayload() {
9839 // optional double value = 8;
9840 public static final int VALUE_FIELD_NUMBER = 8;
9841 private double value_;
9842 public boolean hasValue() {
9843 return ((bitField0_ & 0x00000080) == 0x00000080);
9845 public double getValue() {
9849 private void initFields() {
9855 negativeResponseCode_ = 0;
9856 payload_ = com.google.protobuf.ByteString.EMPTY;
9859 private byte memoizedIsInitialized = -1;
9860 public final boolean isInitialized() {
9861 byte isInitialized = memoizedIsInitialized;
9862 if (isInitialized != -1) return isInitialized == 1;
9864 memoizedIsInitialized = 1;
9868 public void writeTo(com.google.protobuf.CodedOutputStream output)
9869 throws java.io.IOException {
9870 getSerializedSize();
9871 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9872 output.writeInt32(1, bus_);
9874 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9875 output.writeUInt32(2, messageId_);
9877 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9878 output.writeUInt32(3, mode_);
9880 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9881 output.writeUInt32(4, pid_);
9883 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9884 output.writeBool(5, success_);
9886 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9887 output.writeUInt32(6, negativeResponseCode_);
9889 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9890 output.writeBytes(7, payload_);
9892 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9893 output.writeDouble(8, value_);
9895 getUnknownFields().writeTo(output);
9898 private int memoizedSerializedSize = -1;
9899 public int getSerializedSize() {
9900 int size = memoizedSerializedSize;
9901 if (size != -1) return size;
9904 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9905 size += com.google.protobuf.CodedOutputStream
9906 .computeInt32Size(1, bus_);
9908 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9909 size += com.google.protobuf.CodedOutputStream
9910 .computeUInt32Size(2, messageId_);
9912 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9913 size += com.google.protobuf.CodedOutputStream
9914 .computeUInt32Size(3, mode_);
9916 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9917 size += com.google.protobuf.CodedOutputStream
9918 .computeUInt32Size(4, pid_);
9920 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9921 size += com.google.protobuf.CodedOutputStream
9922 .computeBoolSize(5, success_);
9924 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9925 size += com.google.protobuf.CodedOutputStream
9926 .computeUInt32Size(6, negativeResponseCode_);
9928 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9929 size += com.google.protobuf.CodedOutputStream
9930 .computeBytesSize(7, payload_);
9932 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9933 size += com.google.protobuf.CodedOutputStream
9934 .computeDoubleSize(8, value_);
9936 size += getUnknownFields().getSerializedSize();
9937 memoizedSerializedSize = size;
9941 private static final long serialVersionUID = 0L;
9943 protected java.lang.Object writeReplace()
9944 throws java.io.ObjectStreamException {
9945 return super.writeReplace();
9948 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9949 com.google.protobuf.ByteString data)
9950 throws com.google.protobuf.InvalidProtocolBufferException {
9951 return newBuilder().mergeFrom(data).buildParsed();
9953 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9954 com.google.protobuf.ByteString data,
9955 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9956 throws com.google.protobuf.InvalidProtocolBufferException {
9957 return newBuilder().mergeFrom(data, extensionRegistry)
9960 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
9961 throws com.google.protobuf.InvalidProtocolBufferException {
9962 return newBuilder().mergeFrom(data).buildParsed();
9964 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9966 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9967 throws com.google.protobuf.InvalidProtocolBufferException {
9968 return newBuilder().mergeFrom(data, extensionRegistry)
9971 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
9972 throws java.io.IOException {
9973 return newBuilder().mergeFrom(input).buildParsed();
9975 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9976 java.io.InputStream input,
9977 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9978 throws java.io.IOException {
9979 return newBuilder().mergeFrom(input, extensionRegistry)
9982 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
9983 throws java.io.IOException {
9984 Builder builder = newBuilder();
9985 if (builder.mergeDelimitedFrom(input)) {
9986 return builder.buildParsed();
9991 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
9992 java.io.InputStream input,
9993 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9994 throws java.io.IOException {
9995 Builder builder = newBuilder();
9996 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
9997 return builder.buildParsed();
10002 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
10003 com.google.protobuf.CodedInputStream input)
10004 throws java.io.IOException {
10005 return newBuilder().mergeFrom(input).buildParsed();
10007 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
10008 com.google.protobuf.CodedInputStream input,
10009 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10010 throws java.io.IOException {
10011 return newBuilder().mergeFrom(input, extensionRegistry)
10015 public static Builder newBuilder() { return Builder.create(); }
10016 public Builder newBuilderForType() { return newBuilder(); }
10017 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
10018 return newBuilder().mergeFrom(prototype);
10020 public Builder toBuilder() { return newBuilder(this); }
10022 @java.lang.Override
10023 protected Builder newBuilderForType(
10024 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10025 Builder builder = new Builder(parent);
10028 public static final class Builder extends
10029 com.google.protobuf.GeneratedMessage.Builder<Builder>
10030 implements com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
10031 public static final com.google.protobuf.Descriptors.Descriptor
10033 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
10036 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10037 internalGetFieldAccessorTable() {
10038 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
10041 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
10042 private Builder() {
10043 maybeForceBuilderInitialization();
10046 private Builder(BuilderParent parent) {
10048 maybeForceBuilderInitialization();
10050 private void maybeForceBuilderInitialization() {
10051 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
10054 private static Builder create() {
10055 return new Builder();
10058 public Builder clear() {
10061 bitField0_ = (bitField0_ & ~0x00000001);
10063 bitField0_ = (bitField0_ & ~0x00000002);
10065 bitField0_ = (bitField0_ & ~0x00000004);
10067 bitField0_ = (bitField0_ & ~0x00000008);
10069 bitField0_ = (bitField0_ & ~0x00000010);
10070 negativeResponseCode_ = 0;
10071 bitField0_ = (bitField0_ & ~0x00000020);
10072 payload_ = com.google.protobuf.ByteString.EMPTY;
10073 bitField0_ = (bitField0_ & ~0x00000040);
10075 bitField0_ = (bitField0_ & ~0x00000080);
10079 public Builder clone() {
10080 return create().mergeFrom(buildPartial());
10083 public com.google.protobuf.Descriptors.Descriptor
10084 getDescriptorForType() {
10085 return com.openxc.BinaryMessages.DiagnosticResponse.getDescriptor();
10088 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
10089 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
10092 public com.openxc.BinaryMessages.DiagnosticResponse build() {
10093 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
10094 if (!result.isInitialized()) {
10095 throw newUninitializedMessageException(result);
10100 private com.openxc.BinaryMessages.DiagnosticResponse buildParsed()
10101 throws com.google.protobuf.InvalidProtocolBufferException {
10102 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
10103 if (!result.isInitialized()) {
10104 throw newUninitializedMessageException(
10105 result).asInvalidProtocolBufferException();
10110 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
10111 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
10112 int from_bitField0_ = bitField0_;
10113 int to_bitField0_ = 0;
10114 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
10115 to_bitField0_ |= 0x00000001;
10117 result.bus_ = bus_;
10118 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
10119 to_bitField0_ |= 0x00000002;
10121 result.messageId_ = messageId_;
10122 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
10123 to_bitField0_ |= 0x00000004;
10125 result.mode_ = mode_;
10126 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
10127 to_bitField0_ |= 0x00000008;
10129 result.pid_ = pid_;
10130 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
10131 to_bitField0_ |= 0x00000010;
10133 result.success_ = success_;
10134 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
10135 to_bitField0_ |= 0x00000020;
10137 result.negativeResponseCode_ = negativeResponseCode_;
10138 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
10139 to_bitField0_ |= 0x00000040;
10141 result.payload_ = payload_;
10142 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
10143 to_bitField0_ |= 0x00000080;
10145 result.value_ = value_;
10146 result.bitField0_ = to_bitField0_;
10151 public Builder mergeFrom(com.google.protobuf.Message other) {
10152 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
10153 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
10155 super.mergeFrom(other);
10160 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
10161 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
10162 if (other.hasBus()) {
10163 setBus(other.getBus());
10165 if (other.hasMessageId()) {
10166 setMessageId(other.getMessageId());
10168 if (other.hasMode()) {
10169 setMode(other.getMode());
10171 if (other.hasPid()) {
10172 setPid(other.getPid());
10174 if (other.hasSuccess()) {
10175 setSuccess(other.getSuccess());
10177 if (other.hasNegativeResponseCode()) {
10178 setNegativeResponseCode(other.getNegativeResponseCode());
10180 if (other.hasPayload()) {
10181 setPayload(other.getPayload());
10183 if (other.hasValue()) {
10184 setValue(other.getValue());
10186 this.mergeUnknownFields(other.getUnknownFields());
10190 public final boolean isInitialized() {
10194 public Builder mergeFrom(
10195 com.google.protobuf.CodedInputStream input,
10196 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10197 throws java.io.IOException {
10198 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
10199 com.google.protobuf.UnknownFieldSet.newBuilder(
10200 this.getUnknownFields());
10202 int tag = input.readTag();
10205 this.setUnknownFields(unknownFields.build());
10209 if (!parseUnknownField(input, unknownFields,
10210 extensionRegistry, tag)) {
10211 this.setUnknownFields(unknownFields.build());
10218 bitField0_ |= 0x00000001;
10219 bus_ = input.readInt32();
10223 bitField0_ |= 0x00000002;
10224 messageId_ = input.readUInt32();
10228 bitField0_ |= 0x00000004;
10229 mode_ = input.readUInt32();
10233 bitField0_ |= 0x00000008;
10234 pid_ = input.readUInt32();
10238 bitField0_ |= 0x00000010;
10239 success_ = input.readBool();
10243 bitField0_ |= 0x00000020;
10244 negativeResponseCode_ = input.readUInt32();
10248 bitField0_ |= 0x00000040;
10249 payload_ = input.readBytes();
10253 bitField0_ |= 0x00000080;
10254 value_ = input.readDouble();
10261 private int bitField0_;
10263 // optional int32 bus = 1;
10265 public boolean hasBus() {
10266 return ((bitField0_ & 0x00000001) == 0x00000001);
10268 public int getBus() {
10271 public Builder setBus(int value) {
10272 bitField0_ |= 0x00000001;
10277 public Builder clearBus() {
10278 bitField0_ = (bitField0_ & ~0x00000001);
10284 // optional uint32 message_id = 2;
10285 private int messageId_ ;
10286 public boolean hasMessageId() {
10287 return ((bitField0_ & 0x00000002) == 0x00000002);
10289 public int getMessageId() {
10292 public Builder setMessageId(int value) {
10293 bitField0_ |= 0x00000002;
10294 messageId_ = value;
10298 public Builder clearMessageId() {
10299 bitField0_ = (bitField0_ & ~0x00000002);
10305 // optional uint32 mode = 3;
10306 private int mode_ ;
10307 public boolean hasMode() {
10308 return ((bitField0_ & 0x00000004) == 0x00000004);
10310 public int getMode() {
10313 public Builder setMode(int value) {
10314 bitField0_ |= 0x00000004;
10319 public Builder clearMode() {
10320 bitField0_ = (bitField0_ & ~0x00000004);
10326 // optional uint32 pid = 4;
10328 public boolean hasPid() {
10329 return ((bitField0_ & 0x00000008) == 0x00000008);
10331 public int getPid() {
10334 public Builder setPid(int value) {
10335 bitField0_ |= 0x00000008;
10340 public Builder clearPid() {
10341 bitField0_ = (bitField0_ & ~0x00000008);
10347 // optional bool success = 5;
10348 private boolean success_ ;
10349 public boolean hasSuccess() {
10350 return ((bitField0_ & 0x00000010) == 0x00000010);
10352 public boolean getSuccess() {
10355 public Builder setSuccess(boolean value) {
10356 bitField0_ |= 0x00000010;
10361 public Builder clearSuccess() {
10362 bitField0_ = (bitField0_ & ~0x00000010);
10368 // optional uint32 negative_response_code = 6;
10369 private int negativeResponseCode_ ;
10370 public boolean hasNegativeResponseCode() {
10371 return ((bitField0_ & 0x00000020) == 0x00000020);
10373 public int getNegativeResponseCode() {
10374 return negativeResponseCode_;
10376 public Builder setNegativeResponseCode(int value) {
10377 bitField0_ |= 0x00000020;
10378 negativeResponseCode_ = value;
10382 public Builder clearNegativeResponseCode() {
10383 bitField0_ = (bitField0_ & ~0x00000020);
10384 negativeResponseCode_ = 0;
10389 // optional bytes payload = 7;
10390 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
10391 public boolean hasPayload() {
10392 return ((bitField0_ & 0x00000040) == 0x00000040);
10394 public com.google.protobuf.ByteString getPayload() {
10397 public Builder setPayload(com.google.protobuf.ByteString value) {
10398 if (value == null) {
10399 throw new NullPointerException();
10401 bitField0_ |= 0x00000040;
10406 public Builder clearPayload() {
10407 bitField0_ = (bitField0_ & ~0x00000040);
10408 payload_ = getDefaultInstance().getPayload();
10413 // optional double value = 8;
10414 private double value_ ;
10415 public boolean hasValue() {
10416 return ((bitField0_ & 0x00000080) == 0x00000080);
10418 public double getValue() {
10421 public Builder setValue(double value) {
10422 bitField0_ |= 0x00000080;
10427 public Builder clearValue() {
10428 bitField0_ = (bitField0_ & ~0x00000080);
10434 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
10438 defaultInstance = new DiagnosticResponse(true);
10439 defaultInstance.initFields();
10442 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
10445 public interface DynamicFieldOrBuilder
10446 extends com.google.protobuf.MessageOrBuilder {
10448 // optional .openxc.DynamicField.Type type = 1;
10450 com.openxc.BinaryMessages.DynamicField.Type getType();
10452 // optional string string_value = 2;
10453 boolean hasStringValue();
10454 String getStringValue();
10456 // optional double numeric_value = 3;
10457 boolean hasNumericValue();
10458 double getNumericValue();
10460 // optional bool boolean_value = 4;
10461 boolean hasBooleanValue();
10462 boolean getBooleanValue();
10464 public static final class DynamicField extends
10465 com.google.protobuf.GeneratedMessage
10466 implements DynamicFieldOrBuilder {
10467 // Use DynamicField.newBuilder() to construct.
10468 private DynamicField(Builder builder) {
10471 private DynamicField(boolean noInit) {}
10473 private static final DynamicField defaultInstance;
10474 public static DynamicField getDefaultInstance() {
10475 return defaultInstance;
10478 public DynamicField getDefaultInstanceForType() {
10479 return defaultInstance;
10482 public static final com.google.protobuf.Descriptors.Descriptor
10484 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
10487 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10488 internalGetFieldAccessorTable() {
10489 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable;
10493 implements com.google.protobuf.ProtocolMessageEnum {
10499 public static final int STRING_VALUE = 1;
10500 public static final int NUM_VALUE = 2;
10501 public static final int BOOL_VALUE = 3;
10504 public final int getNumber() { return value; }
10506 public static Type valueOf(int value) {
10508 case 1: return STRING;
10509 case 2: return NUM;
10510 case 3: return BOOL;
10511 default: return null;
10515 public static com.google.protobuf.Internal.EnumLiteMap<Type>
10516 internalGetValueMap() {
10517 return internalValueMap;
10519 private static com.google.protobuf.Internal.EnumLiteMap<Type>
10521 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
10522 public Type findValueByNumber(int number) {
10523 return Type.valueOf(number);
10527 public final com.google.protobuf.Descriptors.EnumValueDescriptor
10528 getValueDescriptor() {
10529 return getDescriptor().getValues().get(index);
10531 public final com.google.protobuf.Descriptors.EnumDescriptor
10532 getDescriptorForType() {
10533 return getDescriptor();
10535 public static final com.google.protobuf.Descriptors.EnumDescriptor
10537 return com.openxc.BinaryMessages.DynamicField.getDescriptor().getEnumTypes().get(0);
10540 private static final Type[] VALUES = {
10544 public static Type valueOf(
10545 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
10546 if (desc.getType() != getDescriptor()) {
10547 throw new java.lang.IllegalArgumentException(
10548 "EnumValueDescriptor is not for this type.");
10550 return VALUES[desc.getIndex()];
10553 private final int index;
10554 private final int value;
10556 private Type(int index, int value) {
10557 this.index = index;
10558 this.value = value;
10561 // @@protoc_insertion_point(enum_scope:openxc.DynamicField.Type)
10564 private int bitField0_;
10565 // optional .openxc.DynamicField.Type type = 1;
10566 public static final int TYPE_FIELD_NUMBER = 1;
10567 private com.openxc.BinaryMessages.DynamicField.Type type_;
10568 public boolean hasType() {
10569 return ((bitField0_ & 0x00000001) == 0x00000001);
10571 public com.openxc.BinaryMessages.DynamicField.Type getType() {
10575 // optional string string_value = 2;
10576 public static final int STRING_VALUE_FIELD_NUMBER = 2;
10577 private java.lang.Object stringValue_;
10578 public boolean hasStringValue() {
10579 return ((bitField0_ & 0x00000002) == 0x00000002);
10581 public String getStringValue() {
10582 java.lang.Object ref = stringValue_;
10583 if (ref instanceof String) {
10584 return (String) ref;
10586 com.google.protobuf.ByteString bs =
10587 (com.google.protobuf.ByteString) ref;
10588 String s = bs.toStringUtf8();
10589 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
10595 private com.google.protobuf.ByteString getStringValueBytes() {
10596 java.lang.Object ref = stringValue_;
10597 if (ref instanceof String) {
10598 com.google.protobuf.ByteString b =
10599 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
10603 return (com.google.protobuf.ByteString) ref;
10607 // optional double numeric_value = 3;
10608 public static final int NUMERIC_VALUE_FIELD_NUMBER = 3;
10609 private double numericValue_;
10610 public boolean hasNumericValue() {
10611 return ((bitField0_ & 0x00000004) == 0x00000004);
10613 public double getNumericValue() {
10614 return numericValue_;
10617 // optional bool boolean_value = 4;
10618 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4;
10619 private boolean booleanValue_;
10620 public boolean hasBooleanValue() {
10621 return ((bitField0_ & 0x00000008) == 0x00000008);
10623 public boolean getBooleanValue() {
10624 return booleanValue_;
10627 private void initFields() {
10628 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10630 numericValue_ = 0D;
10631 booleanValue_ = false;
10633 private byte memoizedIsInitialized = -1;
10634 public final boolean isInitialized() {
10635 byte isInitialized = memoizedIsInitialized;
10636 if (isInitialized != -1) return isInitialized == 1;
10638 memoizedIsInitialized = 1;
10642 public void writeTo(com.google.protobuf.CodedOutputStream output)
10643 throws java.io.IOException {
10644 getSerializedSize();
10645 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10646 output.writeEnum(1, type_.getNumber());
10648 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10649 output.writeBytes(2, getStringValueBytes());
10651 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10652 output.writeDouble(3, numericValue_);
10654 if (((bitField0_ & 0x00000008) == 0x00000008)) {
10655 output.writeBool(4, booleanValue_);
10657 getUnknownFields().writeTo(output);
10660 private int memoizedSerializedSize = -1;
10661 public int getSerializedSize() {
10662 int size = memoizedSerializedSize;
10663 if (size != -1) return size;
10666 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10667 size += com.google.protobuf.CodedOutputStream
10668 .computeEnumSize(1, type_.getNumber());
10670 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10671 size += com.google.protobuf.CodedOutputStream
10672 .computeBytesSize(2, getStringValueBytes());
10674 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10675 size += com.google.protobuf.CodedOutputStream
10676 .computeDoubleSize(3, numericValue_);
10678 if (((bitField0_ & 0x00000008) == 0x00000008)) {
10679 size += com.google.protobuf.CodedOutputStream
10680 .computeBoolSize(4, booleanValue_);
10682 size += getUnknownFields().getSerializedSize();
10683 memoizedSerializedSize = size;
10687 private static final long serialVersionUID = 0L;
10688 @java.lang.Override
10689 protected java.lang.Object writeReplace()
10690 throws java.io.ObjectStreamException {
10691 return super.writeReplace();
10694 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10695 com.google.protobuf.ByteString data)
10696 throws com.google.protobuf.InvalidProtocolBufferException {
10697 return newBuilder().mergeFrom(data).buildParsed();
10699 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10700 com.google.protobuf.ByteString data,
10701 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10702 throws com.google.protobuf.InvalidProtocolBufferException {
10703 return newBuilder().mergeFrom(data, extensionRegistry)
10706 public static com.openxc.BinaryMessages.DynamicField parseFrom(byte[] data)
10707 throws com.google.protobuf.InvalidProtocolBufferException {
10708 return newBuilder().mergeFrom(data).buildParsed();
10710 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10712 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10713 throws com.google.protobuf.InvalidProtocolBufferException {
10714 return newBuilder().mergeFrom(data, extensionRegistry)
10717 public static com.openxc.BinaryMessages.DynamicField parseFrom(java.io.InputStream input)
10718 throws java.io.IOException {
10719 return newBuilder().mergeFrom(input).buildParsed();
10721 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10722 java.io.InputStream input,
10723 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10724 throws java.io.IOException {
10725 return newBuilder().mergeFrom(input, extensionRegistry)
10728 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(java.io.InputStream input)
10729 throws java.io.IOException {
10730 Builder builder = newBuilder();
10731 if (builder.mergeDelimitedFrom(input)) {
10732 return builder.buildParsed();
10737 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(
10738 java.io.InputStream input,
10739 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10740 throws java.io.IOException {
10741 Builder builder = newBuilder();
10742 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
10743 return builder.buildParsed();
10748 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10749 com.google.protobuf.CodedInputStream input)
10750 throws java.io.IOException {
10751 return newBuilder().mergeFrom(input).buildParsed();
10753 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10754 com.google.protobuf.CodedInputStream input,
10755 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10756 throws java.io.IOException {
10757 return newBuilder().mergeFrom(input, extensionRegistry)
10761 public static Builder newBuilder() { return Builder.create(); }
10762 public Builder newBuilderForType() { return newBuilder(); }
10763 public static Builder newBuilder(com.openxc.BinaryMessages.DynamicField prototype) {
10764 return newBuilder().mergeFrom(prototype);
10766 public Builder toBuilder() { return newBuilder(this); }
10768 @java.lang.Override
10769 protected Builder newBuilderForType(
10770 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10771 Builder builder = new Builder(parent);
10774 public static final class Builder extends
10775 com.google.protobuf.GeneratedMessage.Builder<Builder>
10776 implements com.openxc.BinaryMessages.DynamicFieldOrBuilder {
10777 public static final com.google.protobuf.Descriptors.Descriptor
10779 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
10782 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10783 internalGetFieldAccessorTable() {
10784 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable;
10787 // Construct using com.openxc.BinaryMessages.DynamicField.newBuilder()
10788 private Builder() {
10789 maybeForceBuilderInitialization();
10792 private Builder(BuilderParent parent) {
10794 maybeForceBuilderInitialization();
10796 private void maybeForceBuilderInitialization() {
10797 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
10800 private static Builder create() {
10801 return new Builder();
10804 public Builder clear() {
10806 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10807 bitField0_ = (bitField0_ & ~0x00000001);
10809 bitField0_ = (bitField0_ & ~0x00000002);
10810 numericValue_ = 0D;
10811 bitField0_ = (bitField0_ & ~0x00000004);
10812 booleanValue_ = false;
10813 bitField0_ = (bitField0_ & ~0x00000008);
10817 public Builder clone() {
10818 return create().mergeFrom(buildPartial());
10821 public com.google.protobuf.Descriptors.Descriptor
10822 getDescriptorForType() {
10823 return com.openxc.BinaryMessages.DynamicField.getDescriptor();
10826 public com.openxc.BinaryMessages.DynamicField getDefaultInstanceForType() {
10827 return com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10830 public com.openxc.BinaryMessages.DynamicField build() {
10831 com.openxc.BinaryMessages.DynamicField result = buildPartial();
10832 if (!result.isInitialized()) {
10833 throw newUninitializedMessageException(result);
10838 private com.openxc.BinaryMessages.DynamicField buildParsed()
10839 throws com.google.protobuf.InvalidProtocolBufferException {
10840 com.openxc.BinaryMessages.DynamicField result = buildPartial();
10841 if (!result.isInitialized()) {
10842 throw newUninitializedMessageException(
10843 result).asInvalidProtocolBufferException();
10848 public com.openxc.BinaryMessages.DynamicField buildPartial() {
10849 com.openxc.BinaryMessages.DynamicField result = new com.openxc.BinaryMessages.DynamicField(this);
10850 int from_bitField0_ = bitField0_;
10851 int to_bitField0_ = 0;
10852 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
10853 to_bitField0_ |= 0x00000001;
10855 result.type_ = type_;
10856 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
10857 to_bitField0_ |= 0x00000002;
10859 result.stringValue_ = stringValue_;
10860 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
10861 to_bitField0_ |= 0x00000004;
10863 result.numericValue_ = numericValue_;
10864 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
10865 to_bitField0_ |= 0x00000008;
10867 result.booleanValue_ = booleanValue_;
10868 result.bitField0_ = to_bitField0_;
10873 public Builder mergeFrom(com.google.protobuf.Message other) {
10874 if (other instanceof com.openxc.BinaryMessages.DynamicField) {
10875 return mergeFrom((com.openxc.BinaryMessages.DynamicField)other);
10877 super.mergeFrom(other);
10882 public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) {
10883 if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this;
10884 if (other.hasType()) {
10885 setType(other.getType());
10887 if (other.hasStringValue()) {
10888 setStringValue(other.getStringValue());
10890 if (other.hasNumericValue()) {
10891 setNumericValue(other.getNumericValue());
10893 if (other.hasBooleanValue()) {
10894 setBooleanValue(other.getBooleanValue());
10896 this.mergeUnknownFields(other.getUnknownFields());
10900 public final boolean isInitialized() {
10904 public Builder mergeFrom(
10905 com.google.protobuf.CodedInputStream input,
10906 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10907 throws java.io.IOException {
10908 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
10909 com.google.protobuf.UnknownFieldSet.newBuilder(
10910 this.getUnknownFields());
10912 int tag = input.readTag();
10915 this.setUnknownFields(unknownFields.build());
10919 if (!parseUnknownField(input, unknownFields,
10920 extensionRegistry, tag)) {
10921 this.setUnknownFields(unknownFields.build());
10928 int rawValue = input.readEnum();
10929 com.openxc.BinaryMessages.DynamicField.Type value = com.openxc.BinaryMessages.DynamicField.Type.valueOf(rawValue);
10930 if (value == null) {
10931 unknownFields.mergeVarintField(1, rawValue);
10933 bitField0_ |= 0x00000001;
10939 bitField0_ |= 0x00000002;
10940 stringValue_ = input.readBytes();
10944 bitField0_ |= 0x00000004;
10945 numericValue_ = input.readDouble();
10949 bitField0_ |= 0x00000008;
10950 booleanValue_ = input.readBool();
10957 private int bitField0_;
10959 // optional .openxc.DynamicField.Type type = 1;
10960 private com.openxc.BinaryMessages.DynamicField.Type type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10961 public boolean hasType() {
10962 return ((bitField0_ & 0x00000001) == 0x00000001);
10964 public com.openxc.BinaryMessages.DynamicField.Type getType() {
10967 public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) {
10968 if (value == null) {
10969 throw new NullPointerException();
10971 bitField0_ |= 0x00000001;
10976 public Builder clearType() {
10977 bitField0_ = (bitField0_ & ~0x00000001);
10978 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10983 // optional string string_value = 2;
10984 private java.lang.Object stringValue_ = "";
10985 public boolean hasStringValue() {
10986 return ((bitField0_ & 0x00000002) == 0x00000002);
10988 public String getStringValue() {
10989 java.lang.Object ref = stringValue_;
10990 if (!(ref instanceof String)) {
10991 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
10995 return (String) ref;
10998 public Builder setStringValue(String value) {
10999 if (value == null) {
11000 throw new NullPointerException();
11002 bitField0_ |= 0x00000002;
11003 stringValue_ = value;
11007 public Builder clearStringValue() {
11008 bitField0_ = (bitField0_ & ~0x00000002);
11009 stringValue_ = getDefaultInstance().getStringValue();
11013 void setStringValue(com.google.protobuf.ByteString value) {
11014 bitField0_ |= 0x00000002;
11015 stringValue_ = value;
11019 // optional double numeric_value = 3;
11020 private double numericValue_ ;
11021 public boolean hasNumericValue() {
11022 return ((bitField0_ & 0x00000004) == 0x00000004);
11024 public double getNumericValue() {
11025 return numericValue_;
11027 public Builder setNumericValue(double value) {
11028 bitField0_ |= 0x00000004;
11029 numericValue_ = value;
11033 public Builder clearNumericValue() {
11034 bitField0_ = (bitField0_ & ~0x00000004);
11035 numericValue_ = 0D;
11040 // optional bool boolean_value = 4;
11041 private boolean booleanValue_ ;
11042 public boolean hasBooleanValue() {
11043 return ((bitField0_ & 0x00000008) == 0x00000008);
11045 public boolean getBooleanValue() {
11046 return booleanValue_;
11048 public Builder setBooleanValue(boolean value) {
11049 bitField0_ |= 0x00000008;
11050 booleanValue_ = value;
11054 public Builder clearBooleanValue() {
11055 bitField0_ = (bitField0_ & ~0x00000008);
11056 booleanValue_ = false;
11061 // @@protoc_insertion_point(builder_scope:openxc.DynamicField)
11065 defaultInstance = new DynamicField(true);
11066 defaultInstance.initFields();
11069 // @@protoc_insertion_point(class_scope:openxc.DynamicField)
11072 public interface SimpleMessageOrBuilder
11073 extends com.google.protobuf.MessageOrBuilder {
11075 // optional string name = 1;
11079 // optional .openxc.DynamicField value = 2;
11080 boolean hasValue();
11081 com.openxc.BinaryMessages.DynamicField getValue();
11082 com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder();
11084 // optional .openxc.DynamicField event = 3;
11085 boolean hasEvent();
11086 com.openxc.BinaryMessages.DynamicField getEvent();
11087 com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder();
11089 public static final class SimpleMessage extends
11090 com.google.protobuf.GeneratedMessage
11091 implements SimpleMessageOrBuilder {
11092 // Use SimpleMessage.newBuilder() to construct.
11093 private SimpleMessage(Builder builder) {
11096 private SimpleMessage(boolean noInit) {}
11098 private static final SimpleMessage defaultInstance;
11099 public static SimpleMessage getDefaultInstance() {
11100 return defaultInstance;
11103 public SimpleMessage getDefaultInstanceForType() {
11104 return defaultInstance;
11107 public static final com.google.protobuf.Descriptors.Descriptor
11109 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
11112 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
11113 internalGetFieldAccessorTable() {
11114 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable;
11117 private int bitField0_;
11118 // optional string name = 1;
11119 public static final int NAME_FIELD_NUMBER = 1;
11120 private java.lang.Object name_;
11121 public boolean hasName() {
11122 return ((bitField0_ & 0x00000001) == 0x00000001);
11124 public String getName() {
11125 java.lang.Object ref = name_;
11126 if (ref instanceof String) {
11127 return (String) ref;
11129 com.google.protobuf.ByteString bs =
11130 (com.google.protobuf.ByteString) ref;
11131 String s = bs.toStringUtf8();
11132 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
11138 private com.google.protobuf.ByteString getNameBytes() {
11139 java.lang.Object ref = name_;
11140 if (ref instanceof String) {
11141 com.google.protobuf.ByteString b =
11142 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
11146 return (com.google.protobuf.ByteString) ref;
11150 // optional .openxc.DynamicField value = 2;
11151 public static final int VALUE_FIELD_NUMBER = 2;
11152 private com.openxc.BinaryMessages.DynamicField value_;
11153 public boolean hasValue() {
11154 return ((bitField0_ & 0x00000002) == 0x00000002);
11156 public com.openxc.BinaryMessages.DynamicField getValue() {
11159 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
11163 // optional .openxc.DynamicField event = 3;
11164 public static final int EVENT_FIELD_NUMBER = 3;
11165 private com.openxc.BinaryMessages.DynamicField event_;
11166 public boolean hasEvent() {
11167 return ((bitField0_ & 0x00000004) == 0x00000004);
11169 public com.openxc.BinaryMessages.DynamicField getEvent() {
11172 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
11176 private void initFields() {
11178 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11179 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11181 private byte memoizedIsInitialized = -1;
11182 public final boolean isInitialized() {
11183 byte isInitialized = memoizedIsInitialized;
11184 if (isInitialized != -1) return isInitialized == 1;
11186 memoizedIsInitialized = 1;
11190 public void writeTo(com.google.protobuf.CodedOutputStream output)
11191 throws java.io.IOException {
11192 getSerializedSize();
11193 if (((bitField0_ & 0x00000001) == 0x00000001)) {
11194 output.writeBytes(1, getNameBytes());
11196 if (((bitField0_ & 0x00000002) == 0x00000002)) {
11197 output.writeMessage(2, value_);
11199 if (((bitField0_ & 0x00000004) == 0x00000004)) {
11200 output.writeMessage(3, event_);
11202 getUnknownFields().writeTo(output);
11205 private int memoizedSerializedSize = -1;
11206 public int getSerializedSize() {
11207 int size = memoizedSerializedSize;
11208 if (size != -1) return size;
11211 if (((bitField0_ & 0x00000001) == 0x00000001)) {
11212 size += com.google.protobuf.CodedOutputStream
11213 .computeBytesSize(1, getNameBytes());
11215 if (((bitField0_ & 0x00000002) == 0x00000002)) {
11216 size += com.google.protobuf.CodedOutputStream
11217 .computeMessageSize(2, value_);
11219 if (((bitField0_ & 0x00000004) == 0x00000004)) {
11220 size += com.google.protobuf.CodedOutputStream
11221 .computeMessageSize(3, event_);
11223 size += getUnknownFields().getSerializedSize();
11224 memoizedSerializedSize = size;
11228 private static final long serialVersionUID = 0L;
11229 @java.lang.Override
11230 protected java.lang.Object writeReplace()
11231 throws java.io.ObjectStreamException {
11232 return super.writeReplace();
11235 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11236 com.google.protobuf.ByteString data)
11237 throws com.google.protobuf.InvalidProtocolBufferException {
11238 return newBuilder().mergeFrom(data).buildParsed();
11240 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11241 com.google.protobuf.ByteString data,
11242 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11243 throws com.google.protobuf.InvalidProtocolBufferException {
11244 return newBuilder().mergeFrom(data, extensionRegistry)
11247 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(byte[] data)
11248 throws com.google.protobuf.InvalidProtocolBufferException {
11249 return newBuilder().mergeFrom(data).buildParsed();
11251 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11253 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11254 throws com.google.protobuf.InvalidProtocolBufferException {
11255 return newBuilder().mergeFrom(data, extensionRegistry)
11258 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(java.io.InputStream input)
11259 throws java.io.IOException {
11260 return newBuilder().mergeFrom(input).buildParsed();
11262 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11263 java.io.InputStream input,
11264 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11265 throws java.io.IOException {
11266 return newBuilder().mergeFrom(input, extensionRegistry)
11269 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(java.io.InputStream input)
11270 throws java.io.IOException {
11271 Builder builder = newBuilder();
11272 if (builder.mergeDelimitedFrom(input)) {
11273 return builder.buildParsed();
11278 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(
11279 java.io.InputStream input,
11280 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11281 throws java.io.IOException {
11282 Builder builder = newBuilder();
11283 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
11284 return builder.buildParsed();
11289 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11290 com.google.protobuf.CodedInputStream input)
11291 throws java.io.IOException {
11292 return newBuilder().mergeFrom(input).buildParsed();
11294 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11295 com.google.protobuf.CodedInputStream input,
11296 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11297 throws java.io.IOException {
11298 return newBuilder().mergeFrom(input, extensionRegistry)
11302 public static Builder newBuilder() { return Builder.create(); }
11303 public Builder newBuilderForType() { return newBuilder(); }
11304 public static Builder newBuilder(com.openxc.BinaryMessages.SimpleMessage prototype) {
11305 return newBuilder().mergeFrom(prototype);
11307 public Builder toBuilder() { return newBuilder(this); }
11309 @java.lang.Override
11310 protected Builder newBuilderForType(
11311 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
11312 Builder builder = new Builder(parent);
11315 public static final class Builder extends
11316 com.google.protobuf.GeneratedMessage.Builder<Builder>
11317 implements com.openxc.BinaryMessages.SimpleMessageOrBuilder {
11318 public static final com.google.protobuf.Descriptors.Descriptor
11320 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
11323 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
11324 internalGetFieldAccessorTable() {
11325 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable;
11328 // Construct using com.openxc.BinaryMessages.SimpleMessage.newBuilder()
11329 private Builder() {
11330 maybeForceBuilderInitialization();
11333 private Builder(BuilderParent parent) {
11335 maybeForceBuilderInitialization();
11337 private void maybeForceBuilderInitialization() {
11338 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
11339 getValueFieldBuilder();
11340 getEventFieldBuilder();
11343 private static Builder create() {
11344 return new Builder();
11347 public Builder clear() {
11350 bitField0_ = (bitField0_ & ~0x00000001);
11351 if (valueBuilder_ == null) {
11352 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11354 valueBuilder_.clear();
11356 bitField0_ = (bitField0_ & ~0x00000002);
11357 if (eventBuilder_ == null) {
11358 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11360 eventBuilder_.clear();
11362 bitField0_ = (bitField0_ & ~0x00000004);
11366 public Builder clone() {
11367 return create().mergeFrom(buildPartial());
11370 public com.google.protobuf.Descriptors.Descriptor
11371 getDescriptorForType() {
11372 return com.openxc.BinaryMessages.SimpleMessage.getDescriptor();
11375 public com.openxc.BinaryMessages.SimpleMessage getDefaultInstanceForType() {
11376 return com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
11379 public com.openxc.BinaryMessages.SimpleMessage build() {
11380 com.openxc.BinaryMessages.SimpleMessage result = buildPartial();
11381 if (!result.isInitialized()) {
11382 throw newUninitializedMessageException(result);
11387 private com.openxc.BinaryMessages.SimpleMessage buildParsed()
11388 throws com.google.protobuf.InvalidProtocolBufferException {
11389 com.openxc.BinaryMessages.SimpleMessage result = buildPartial();
11390 if (!result.isInitialized()) {
11391 throw newUninitializedMessageException(
11392 result).asInvalidProtocolBufferException();
11397 public com.openxc.BinaryMessages.SimpleMessage buildPartial() {
11398 com.openxc.BinaryMessages.SimpleMessage result = new com.openxc.BinaryMessages.SimpleMessage(this);
11399 int from_bitField0_ = bitField0_;
11400 int to_bitField0_ = 0;
11401 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
11402 to_bitField0_ |= 0x00000001;
11404 result.name_ = name_;
11405 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
11406 to_bitField0_ |= 0x00000002;
11408 if (valueBuilder_ == null) {
11409 result.value_ = value_;
11411 result.value_ = valueBuilder_.build();
11413 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
11414 to_bitField0_ |= 0x00000004;
11416 if (eventBuilder_ == null) {
11417 result.event_ = event_;
11419 result.event_ = eventBuilder_.build();
11421 result.bitField0_ = to_bitField0_;
11426 public Builder mergeFrom(com.google.protobuf.Message other) {
11427 if (other instanceof com.openxc.BinaryMessages.SimpleMessage) {
11428 return mergeFrom((com.openxc.BinaryMessages.SimpleMessage)other);
11430 super.mergeFrom(other);
11435 public Builder mergeFrom(com.openxc.BinaryMessages.SimpleMessage other) {
11436 if (other == com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance()) return this;
11437 if (other.hasName()) {
11438 setName(other.getName());
11440 if (other.hasValue()) {
11441 mergeValue(other.getValue());
11443 if (other.hasEvent()) {
11444 mergeEvent(other.getEvent());
11446 this.mergeUnknownFields(other.getUnknownFields());
11450 public final boolean isInitialized() {
11454 public Builder mergeFrom(
11455 com.google.protobuf.CodedInputStream input,
11456 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11457 throws java.io.IOException {
11458 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
11459 com.google.protobuf.UnknownFieldSet.newBuilder(
11460 this.getUnknownFields());
11462 int tag = input.readTag();
11465 this.setUnknownFields(unknownFields.build());
11469 if (!parseUnknownField(input, unknownFields,
11470 extensionRegistry, tag)) {
11471 this.setUnknownFields(unknownFields.build());
11478 bitField0_ |= 0x00000001;
11479 name_ = input.readBytes();
11483 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = com.openxc.BinaryMessages.DynamicField.newBuilder();
11485 subBuilder.mergeFrom(getValue());
11487 input.readMessage(subBuilder, extensionRegistry);
11488 setValue(subBuilder.buildPartial());
11492 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = com.openxc.BinaryMessages.DynamicField.newBuilder();
11494 subBuilder.mergeFrom(getEvent());
11496 input.readMessage(subBuilder, extensionRegistry);
11497 setEvent(subBuilder.buildPartial());
11504 private int bitField0_;
11506 // optional string name = 1;
11507 private java.lang.Object name_ = "";
11508 public boolean hasName() {
11509 return ((bitField0_ & 0x00000001) == 0x00000001);
11511 public String getName() {
11512 java.lang.Object ref = name_;
11513 if (!(ref instanceof String)) {
11514 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
11518 return (String) ref;
11521 public Builder setName(String value) {
11522 if (value == null) {
11523 throw new NullPointerException();
11525 bitField0_ |= 0x00000001;
11530 public Builder clearName() {
11531 bitField0_ = (bitField0_ & ~0x00000001);
11532 name_ = getDefaultInstance().getName();
11536 void setName(com.google.protobuf.ByteString value) {
11537 bitField0_ |= 0x00000001;
11542 // optional .openxc.DynamicField value = 2;
11543 private com.openxc.BinaryMessages.DynamicField value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11544 private com.google.protobuf.SingleFieldBuilder<
11545 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> valueBuilder_;
11546 public boolean hasValue() {
11547 return ((bitField0_ & 0x00000002) == 0x00000002);
11549 public com.openxc.BinaryMessages.DynamicField getValue() {
11550 if (valueBuilder_ == null) {
11553 return valueBuilder_.getMessage();
11556 public Builder setValue(com.openxc.BinaryMessages.DynamicField value) {
11557 if (valueBuilder_ == null) {
11558 if (value == null) {
11559 throw new NullPointerException();
11564 valueBuilder_.setMessage(value);
11566 bitField0_ |= 0x00000002;
11569 public Builder setValue(
11570 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
11571 if (valueBuilder_ == null) {
11572 value_ = builderForValue.build();
11575 valueBuilder_.setMessage(builderForValue.build());
11577 bitField0_ |= 0x00000002;
11580 public Builder mergeValue(com.openxc.BinaryMessages.DynamicField value) {
11581 if (valueBuilder_ == null) {
11582 if (((bitField0_ & 0x00000002) == 0x00000002) &&
11583 value_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
11585 com.openxc.BinaryMessages.DynamicField.newBuilder(value_).mergeFrom(value).buildPartial();
11591 valueBuilder_.mergeFrom(value);
11593 bitField0_ |= 0x00000002;
11596 public Builder clearValue() {
11597 if (valueBuilder_ == null) {
11598 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11601 valueBuilder_.clear();
11603 bitField0_ = (bitField0_ & ~0x00000002);
11606 public com.openxc.BinaryMessages.DynamicField.Builder getValueBuilder() {
11607 bitField0_ |= 0x00000002;
11609 return getValueFieldBuilder().getBuilder();
11611 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
11612 if (valueBuilder_ != null) {
11613 return valueBuilder_.getMessageOrBuilder();
11618 private com.google.protobuf.SingleFieldBuilder<
11619 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
11620 getValueFieldBuilder() {
11621 if (valueBuilder_ == null) {
11622 valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
11623 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
11625 getParentForChildren(),
11629 return valueBuilder_;
11632 // optional .openxc.DynamicField event = 3;
11633 private com.openxc.BinaryMessages.DynamicField event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11634 private com.google.protobuf.SingleFieldBuilder<
11635 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> eventBuilder_;
11636 public boolean hasEvent() {
11637 return ((bitField0_ & 0x00000004) == 0x00000004);
11639 public com.openxc.BinaryMessages.DynamicField getEvent() {
11640 if (eventBuilder_ == null) {
11643 return eventBuilder_.getMessage();
11646 public Builder setEvent(com.openxc.BinaryMessages.DynamicField value) {
11647 if (eventBuilder_ == null) {
11648 if (value == null) {
11649 throw new NullPointerException();
11654 eventBuilder_.setMessage(value);
11656 bitField0_ |= 0x00000004;
11659 public Builder setEvent(
11660 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
11661 if (eventBuilder_ == null) {
11662 event_ = builderForValue.build();
11665 eventBuilder_.setMessage(builderForValue.build());
11667 bitField0_ |= 0x00000004;
11670 public Builder mergeEvent(com.openxc.BinaryMessages.DynamicField value) {
11671 if (eventBuilder_ == null) {
11672 if (((bitField0_ & 0x00000004) == 0x00000004) &&
11673 event_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
11675 com.openxc.BinaryMessages.DynamicField.newBuilder(event_).mergeFrom(value).buildPartial();
11681 eventBuilder_.mergeFrom(value);
11683 bitField0_ |= 0x00000004;
11686 public Builder clearEvent() {
11687 if (eventBuilder_ == null) {
11688 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11691 eventBuilder_.clear();
11693 bitField0_ = (bitField0_ & ~0x00000004);
11696 public com.openxc.BinaryMessages.DynamicField.Builder getEventBuilder() {
11697 bitField0_ |= 0x00000004;
11699 return getEventFieldBuilder().getBuilder();
11701 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
11702 if (eventBuilder_ != null) {
11703 return eventBuilder_.getMessageOrBuilder();
11708 private com.google.protobuf.SingleFieldBuilder<
11709 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
11710 getEventFieldBuilder() {
11711 if (eventBuilder_ == null) {
11712 eventBuilder_ = new com.google.protobuf.SingleFieldBuilder<
11713 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
11715 getParentForChildren(),
11719 return eventBuilder_;
11722 // @@protoc_insertion_point(builder_scope:openxc.SimpleMessage)
11726 defaultInstance = new SimpleMessage(true);
11727 defaultInstance.initFields();
11730 // @@protoc_insertion_point(class_scope:openxc.SimpleMessage)
11733 private static com.google.protobuf.Descriptors.Descriptor
11734 internal_static_openxc_VehicleMessage_descriptor;
11736 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11737 internal_static_openxc_VehicleMessage_fieldAccessorTable;
11738 private static com.google.protobuf.Descriptors.Descriptor
11739 internal_static_openxc_CanMessage_descriptor;
11741 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11742 internal_static_openxc_CanMessage_fieldAccessorTable;
11743 private static com.google.protobuf.Descriptors.Descriptor
11744 internal_static_openxc_ControlCommand_descriptor;
11746 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11747 internal_static_openxc_ControlCommand_fieldAccessorTable;
11748 private static com.google.protobuf.Descriptors.Descriptor
11749 internal_static_openxc_DiagnosticControlCommand_descriptor;
11751 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11752 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
11753 private static com.google.protobuf.Descriptors.Descriptor
11754 internal_static_openxc_PassthroughModeControlCommand_descriptor;
11756 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11757 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
11758 private static com.google.protobuf.Descriptors.Descriptor
11759 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
11761 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11762 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
11763 private static com.google.protobuf.Descriptors.Descriptor
11764 internal_static_openxc_PayloadFormatCommand_descriptor;
11766 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11767 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
11768 private static com.google.protobuf.Descriptors.Descriptor
11769 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
11771 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11772 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
11773 private static com.google.protobuf.Descriptors.Descriptor
11774 internal_static_openxc_NetworkOperatorSettings_descriptor;
11776 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11777 internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable;
11778 private static com.google.protobuf.Descriptors.Descriptor
11779 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor;
11781 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11782 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable;
11783 private static com.google.protobuf.Descriptors.Descriptor
11784 internal_static_openxc_NetworkDataSettings_descriptor;
11786 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11787 internal_static_openxc_NetworkDataSettings_fieldAccessorTable;
11788 private static com.google.protobuf.Descriptors.Descriptor
11789 internal_static_openxc_ServerConnectSettings_descriptor;
11791 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11792 internal_static_openxc_ServerConnectSettings_fieldAccessorTable;
11793 private static com.google.protobuf.Descriptors.Descriptor
11794 internal_static_openxc_ModemConfigurationCommand_descriptor;
11796 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11797 internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable;
11798 private static com.google.protobuf.Descriptors.Descriptor
11799 internal_static_openxc_RTCConfigurationCommand_descriptor;
11801 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11802 internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable;
11803 private static com.google.protobuf.Descriptors.Descriptor
11804 internal_static_openxc_CommandResponse_descriptor;
11806 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11807 internal_static_openxc_CommandResponse_fieldAccessorTable;
11808 private static com.google.protobuf.Descriptors.Descriptor
11809 internal_static_openxc_DiagnosticRequest_descriptor;
11811 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11812 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
11813 private static com.google.protobuf.Descriptors.Descriptor
11814 internal_static_openxc_DiagnosticResponse_descriptor;
11816 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11817 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
11818 private static com.google.protobuf.Descriptors.Descriptor
11819 internal_static_openxc_DynamicField_descriptor;
11821 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11822 internal_static_openxc_DynamicField_fieldAccessorTable;
11823 private static com.google.protobuf.Descriptors.Descriptor
11824 internal_static_openxc_SimpleMessage_descriptor;
11826 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11827 internal_static_openxc_SimpleMessage_fieldAccessorTable;
11829 public static com.google.protobuf.Descriptors.FileDescriptor
11833 private static com.google.protobuf.Descriptors.FileDescriptor
11836 java.lang.String[] descriptorData = {
11837 "\n\014openxc.proto\022\006openxc\"\230\003\n\016VehicleMessag" +
11838 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
11839 "Type\022\'\n\013can_message\030\002 \001(\0132\022.openxc.CanMe" +
11840 "ssage\022-\n\016simple_message\030\003 \001(\0132\025.openxc.S" +
11841 "impleMessage\0227\n\023diagnostic_response\030\004 \001(" +
11842 "\0132\032.openxc.DiagnosticResponse\022/\n\017control" +
11843 "_command\030\005 \001(\0132\026.openxc.ControlCommand\0221" +
11844 "\n\020command_response\030\006 \001(\0132\027.openxc.Comman" +
11845 "dResponse\022\016\n\006uptime\030\007 \001(\r\"V\n\004Type\022\007\n\003CAN" +
11846 "\020\001\022\n\n\006SIMPLE\020\002\022\016\n\nDIAGNOSTIC\020\003\022\023\n\017CONTRO",
11847 "L_COMMAND\020\004\022\024\n\020COMMAND_RESPONSE\020\005\"\224\001\n\nCa" +
11848 "nMessage\022\013\n\003bus\030\001 \001(\005\022\n\n\002id\030\002 \001(\r\022\014\n\004dat" +
11849 "a\030\003 \001(\014\0224\n\014frame_format\030\004 \001(\0162\036.openxc.C" +
11850 "anMessage.FrameFormat\")\n\013FrameFormat\022\014\n\010" +
11851 "STANDARD\020\001\022\014\n\010EXTENDED\020\002\"\364\005\n\016ControlComm" +
11852 "and\022)\n\004type\030\001 \001(\0162\033.openxc.ControlComman" +
11853 "d.Type\022<\n\022diagnostic_request\030\002 \001(\0132 .ope" +
11854 "nxc.DiagnosticControlCommand\022G\n\030passthro" +
11855 "ugh_mode_request\030\003 \001(\0132%.openxc.Passthro" +
11856 "ughModeControlCommand\022O\n acceptance_filt",
11857 "er_bypass_command\030\004 \001(\0132%.openxc.Accepta" +
11858 "nceFilterBypassCommand\022<\n\026payload_format" +
11859 "_command\030\005 \001(\0132\034.openxc.PayloadFormatCom" +
11860 "mand\022O\n predefined_obd2_requests_command" +
11861 "\030\006 \001(\0132%.openxc.PredefinedObd2RequestsCo" +
11862 "mmand\022F\n\033modem_configuration_command\030\007 \001" +
11863 "(\0132!.openxc.ModemConfigurationCommand\022B\n" +
11864 "\031rtc_configuration_command\030\010 \001(\0132\037.openx" +
11865 "c.RTCConfigurationCommand\"\303\001\n\004Type\022\013\n\007VE" +
11866 "RSION\020\001\022\r\n\tDEVICE_ID\020\002\022\016\n\nDIAGNOSTIC\020\003\022\017",
11867 "\n\013PASSTHROUGH\020\004\022\034\n\030ACCEPTANCE_FILTER_BYP" +
11868 "ASS\020\005\022\022\n\016PAYLOAD_FORMAT\020\006\022\034\n\030PREDEFINED_" +
11869 "OBD2_REQUESTS\020\007\022\027\n\023MODEM_CONFIGURATION\020\010" +
11870 "\022\025\n\021RTC_CONFIGURATION\020\t\"\236\001\n\030DiagnosticCo" +
11871 "ntrolCommand\022*\n\007request\030\001 \001(\0132\031.openxc.D" +
11872 "iagnosticRequest\0227\n\006action\030\002 \001(\0162\'.openx" +
11873 "c.DiagnosticControlCommand.Action\"\035\n\006Act" +
11874 "ion\022\007\n\003ADD\020\001\022\n\n\006CANCEL\020\002\"=\n\035PassthroughM" +
11875 "odeControlCommand\022\013\n\003bus\030\001 \001(\005\022\017\n\007enable" +
11876 "d\030\002 \001(\010\"<\n\035AcceptanceFilterBypassCommand",
11877 "\022\013\n\003bus\030\001 \001(\005\022\016\n\006bypass\030\002 \001(\010\"\214\001\n\024Payloa" +
11878 "dFormatCommand\022:\n\006format\030\001 \001(\0162*.openxc." +
11879 "PayloadFormatCommand.PayloadFormat\"8\n\rPa" +
11880 "yloadFormat\022\010\n\004JSON\020\001\022\014\n\010PROTOBUF\020\002\022\017\n\013M" +
11881 "ESSAGEPACK\020\003\"0\n\035PredefinedObd2RequestsCo" +
11882 "mmand\022\017\n\007enabled\030\001 \001(\010\"\321\003\n\027NetworkOperat" +
11883 "orSettings\022\030\n\020allowDataRoaming\030\001 \001(\010\022N\n\022" +
11884 "operatorSelectMode\030\002 \001(\01622.openxc.Networ" +
11885 "kOperatorSettings.OperatorSelectMode\022L\n\021" +
11886 "networkDescriptor\030\003 \001(\01321.openxc.Network",
11887 "OperatorSettings.NetworkDescriptor\032\230\001\n\021N" +
11888 "etworkDescriptor\022\014\n\004PLMN\030\001 \001(\r\022R\n\013networ" +
11889 "kType\030\002 \001(\0162=.openxc.NetworkOperatorSett" +
11890 "ings.NetworkDescriptor.NetworkType\"!\n\013Ne" +
11891 "tworkType\022\007\n\003GSM\020\000\022\t\n\005UTRAN\020\002\"c\n\022Operato" +
11892 "rSelectMode\022\r\n\tAUTOMATIC\020\000\022\n\n\006MANUAL\020\001\022\016" +
11893 "\n\nDEREGISTER\020\002\022\014\n\010SET_ONLY\020\003\022\024\n\020MANUAL_A" +
11894 "UTOMATIC\020\004\"\"\n\023NetworkDataSettings\022\013\n\003APN" +
11895 "\030\001 \001(\t\"3\n\025ServerConnectSettings\022\014\n\004host\030" +
11896 "\001 \001(\t\022\014\n\004port\030\002 \001(\r\"\325\001\n\031ModemConfigurati",
11897 "onCommand\022@\n\027networkOperatorSettings\030\001 \001" +
11898 "(\0132\037.openxc.NetworkOperatorSettings\0228\n\023n" +
11899 "etworkDataSettings\030\002 \001(\0132\033.openxc.Networ" +
11900 "kDataSettings\022<\n\025serverConnectSettings\030\003" +
11901 " \001(\0132\035.openxc.ServerConnectSettings\",\n\027R" +
11902 "TCConfigurationCommand\022\021\n\tunix_time\030\001 \001(" +
11903 "\r\"]\n\017CommandResponse\022)\n\004type\030\001 \001(\0162\033.ope" +
11904 "nxc.ControlCommand.Type\022\017\n\007message\030\002 \001(\t" +
11905 "\022\016\n\006status\030\003 \001(\010\"\375\001\n\021DiagnosticRequest\022\013" +
11906 "\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mode\030",
11907 "\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007payload\030\005 \001(\014\022\032\n\022m" +
11908 "ultiple_responses\030\006 \001(\010\022\021\n\tfrequency\030\007 \001" +
11909 "(\001\022\014\n\004name\030\010 \001(\t\022;\n\014decoded_type\030\t \001(\0162%" +
11910 ".openxc.DiagnosticRequest.DecodedType\"!\n" +
11911 "\013DecodedType\022\010\n\004NONE\020\001\022\010\n\004OBD2\020\002\"\241\001\n\022Dia" +
11912 "gnosticResponse\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_" +
11913 "id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007s" +
11914 "uccess\030\005 \001(\010\022\036\n\026negative_response_code\030\006" +
11915 " \001(\r\022\017\n\007payload\030\007 \001(\014\022\r\n\005value\030\010 \001(\001\"\242\001\n" +
11916 "\014DynamicField\022\'\n\004type\030\001 \001(\0162\031.openxc.Dyn",
11917 "amicField.Type\022\024\n\014string_value\030\002 \001(\t\022\025\n\r" +
11918 "numeric_value\030\003 \001(\001\022\025\n\rboolean_value\030\004 \001" +
11919 "(\010\"%\n\004Type\022\n\n\006STRING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020" +
11920 "\003\"g\n\rSimpleMessage\022\014\n\004name\030\001 \001(\t\022#\n\005valu" +
11921 "e\030\002 \001(\0132\024.openxc.DynamicField\022#\n\005event\030\003" +
11922 " \001(\0132\024.openxc.DynamicFieldB\034\n\ncom.openxc" +
11923 "B\016BinaryMessages"
11925 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
11926 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
11927 public com.google.protobuf.ExtensionRegistry assignDescriptors(
11928 com.google.protobuf.Descriptors.FileDescriptor root) {
11930 internal_static_openxc_VehicleMessage_descriptor =
11931 getDescriptor().getMessageTypes().get(0);
11932 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
11933 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11934 internal_static_openxc_VehicleMessage_descriptor,
11935 new java.lang.String[] { "Type", "CanMessage", "SimpleMessage", "DiagnosticResponse", "ControlCommand", "CommandResponse", "Uptime", },
11936 com.openxc.BinaryMessages.VehicleMessage.class,
11937 com.openxc.BinaryMessages.VehicleMessage.Builder.class);
11938 internal_static_openxc_CanMessage_descriptor =
11939 getDescriptor().getMessageTypes().get(1);
11940 internal_static_openxc_CanMessage_fieldAccessorTable = new
11941 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11942 internal_static_openxc_CanMessage_descriptor,
11943 new java.lang.String[] { "Bus", "Id", "Data", "FrameFormat", },
11944 com.openxc.BinaryMessages.CanMessage.class,
11945 com.openxc.BinaryMessages.CanMessage.Builder.class);
11946 internal_static_openxc_ControlCommand_descriptor =
11947 getDescriptor().getMessageTypes().get(2);
11948 internal_static_openxc_ControlCommand_fieldAccessorTable = new
11949 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11950 internal_static_openxc_ControlCommand_descriptor,
11951 new java.lang.String[] { "Type", "DiagnosticRequest", "PassthroughModeRequest", "AcceptanceFilterBypassCommand", "PayloadFormatCommand", "PredefinedObd2RequestsCommand", "ModemConfigurationCommand", "RtcConfigurationCommand", },
11952 com.openxc.BinaryMessages.ControlCommand.class,
11953 com.openxc.BinaryMessages.ControlCommand.Builder.class);
11954 internal_static_openxc_DiagnosticControlCommand_descriptor =
11955 getDescriptor().getMessageTypes().get(3);
11956 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable = new
11957 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11958 internal_static_openxc_DiagnosticControlCommand_descriptor,
11959 new java.lang.String[] { "Request", "Action", },
11960 com.openxc.BinaryMessages.DiagnosticControlCommand.class,
11961 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
11962 internal_static_openxc_PassthroughModeControlCommand_descriptor =
11963 getDescriptor().getMessageTypes().get(4);
11964 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable = new
11965 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11966 internal_static_openxc_PassthroughModeControlCommand_descriptor,
11967 new java.lang.String[] { "Bus", "Enabled", },
11968 com.openxc.BinaryMessages.PassthroughModeControlCommand.class,
11969 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
11970 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor =
11971 getDescriptor().getMessageTypes().get(5);
11972 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable = new
11973 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11974 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor,
11975 new java.lang.String[] { "Bus", "Bypass", },
11976 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class,
11977 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
11978 internal_static_openxc_PayloadFormatCommand_descriptor =
11979 getDescriptor().getMessageTypes().get(6);
11980 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable = new
11981 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11982 internal_static_openxc_PayloadFormatCommand_descriptor,
11983 new java.lang.String[] { "Format", },
11984 com.openxc.BinaryMessages.PayloadFormatCommand.class,
11985 com.openxc.BinaryMessages.PayloadFormatCommand.Builder.class);
11986 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor =
11987 getDescriptor().getMessageTypes().get(7);
11988 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable = new
11989 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11990 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor,
11991 new java.lang.String[] { "Enabled", },
11992 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.class,
11993 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder.class);
11994 internal_static_openxc_NetworkOperatorSettings_descriptor =
11995 getDescriptor().getMessageTypes().get(8);
11996 internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable = new
11997 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11998 internal_static_openxc_NetworkOperatorSettings_descriptor,
11999 new java.lang.String[] { "AllowDataRoaming", "OperatorSelectMode", "NetworkDescriptor", },
12000 com.openxc.BinaryMessages.NetworkOperatorSettings.class,
12001 com.openxc.BinaryMessages.NetworkOperatorSettings.Builder.class);
12002 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor =
12003 internal_static_openxc_NetworkOperatorSettings_descriptor.getNestedTypes().get(0);
12004 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable = new
12005 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12006 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor,
12007 new java.lang.String[] { "PLMN", "NetworkType", },
12008 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.class,
12009 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder.class);
12010 internal_static_openxc_NetworkDataSettings_descriptor =
12011 getDescriptor().getMessageTypes().get(9);
12012 internal_static_openxc_NetworkDataSettings_fieldAccessorTable = new
12013 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12014 internal_static_openxc_NetworkDataSettings_descriptor,
12015 new java.lang.String[] { "APN", },
12016 com.openxc.BinaryMessages.NetworkDataSettings.class,
12017 com.openxc.BinaryMessages.NetworkDataSettings.Builder.class);
12018 internal_static_openxc_ServerConnectSettings_descriptor =
12019 getDescriptor().getMessageTypes().get(10);
12020 internal_static_openxc_ServerConnectSettings_fieldAccessorTable = new
12021 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12022 internal_static_openxc_ServerConnectSettings_descriptor,
12023 new java.lang.String[] { "Host", "Port", },
12024 com.openxc.BinaryMessages.ServerConnectSettings.class,
12025 com.openxc.BinaryMessages.ServerConnectSettings.Builder.class);
12026 internal_static_openxc_ModemConfigurationCommand_descriptor =
12027 getDescriptor().getMessageTypes().get(11);
12028 internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable = new
12029 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12030 internal_static_openxc_ModemConfigurationCommand_descriptor,
12031 new java.lang.String[] { "NetworkOperatorSettings", "NetworkDataSettings", "ServerConnectSettings", },
12032 com.openxc.BinaryMessages.ModemConfigurationCommand.class,
12033 com.openxc.BinaryMessages.ModemConfigurationCommand.Builder.class);
12034 internal_static_openxc_RTCConfigurationCommand_descriptor =
12035 getDescriptor().getMessageTypes().get(12);
12036 internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable = new
12037 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12038 internal_static_openxc_RTCConfigurationCommand_descriptor,
12039 new java.lang.String[] { "UnixTime", },
12040 com.openxc.BinaryMessages.RTCConfigurationCommand.class,
12041 com.openxc.BinaryMessages.RTCConfigurationCommand.Builder.class);
12042 internal_static_openxc_CommandResponse_descriptor =
12043 getDescriptor().getMessageTypes().get(13);
12044 internal_static_openxc_CommandResponse_fieldAccessorTable = new
12045 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12046 internal_static_openxc_CommandResponse_descriptor,
12047 new java.lang.String[] { "Type", "Message", "Status", },
12048 com.openxc.BinaryMessages.CommandResponse.class,
12049 com.openxc.BinaryMessages.CommandResponse.Builder.class);
12050 internal_static_openxc_DiagnosticRequest_descriptor =
12051 getDescriptor().getMessageTypes().get(14);
12052 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
12053 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12054 internal_static_openxc_DiagnosticRequest_descriptor,
12055 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "MultipleResponses", "Frequency", "Name", "DecodedType", },
12056 com.openxc.BinaryMessages.DiagnosticRequest.class,
12057 com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
12058 internal_static_openxc_DiagnosticResponse_descriptor =
12059 getDescriptor().getMessageTypes().get(15);
12060 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
12061 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12062 internal_static_openxc_DiagnosticResponse_descriptor,
12063 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", },
12064 com.openxc.BinaryMessages.DiagnosticResponse.class,
12065 com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
12066 internal_static_openxc_DynamicField_descriptor =
12067 getDescriptor().getMessageTypes().get(16);
12068 internal_static_openxc_DynamicField_fieldAccessorTable = new
12069 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12070 internal_static_openxc_DynamicField_descriptor,
12071 new java.lang.String[] { "Type", "StringValue", "NumericValue", "BooleanValue", },
12072 com.openxc.BinaryMessages.DynamicField.class,
12073 com.openxc.BinaryMessages.DynamicField.Builder.class);
12074 internal_static_openxc_SimpleMessage_descriptor =
12075 getDescriptor().getMessageTypes().get(17);
12076 internal_static_openxc_SimpleMessage_fieldAccessorTable = new
12077 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12078 internal_static_openxc_SimpleMessage_descriptor,
12079 new java.lang.String[] { "Name", "Value", "Event", },
12080 com.openxc.BinaryMessages.SimpleMessage.class,
12081 com.openxc.BinaryMessages.SimpleMessage.Builder.class);
12085 com.google.protobuf.Descriptors.FileDescriptor
12086 .internalBuildGeneratedFileFrom(descriptorData,
12087 new com.google.protobuf.Descriptors.FileDescriptor[] {
12091 // @@protoc_insertion_point(outer_class_scope)