1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: openxc.proto
6 public final class BinaryMessages {
7 private BinaryMessages() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
11 public interface VehicleMessageOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
14 // optional .openxc.VehicleMessage.Type type = 1;
16 com.openxc.BinaryMessages.VehicleMessage.Type getType();
18 // optional .openxc.CanMessage can_message = 2;
19 boolean hasCanMessage();
20 com.openxc.BinaryMessages.CanMessage getCanMessage();
21 com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder();
23 // optional .openxc.SimpleMessage simple_message = 3;
24 boolean hasSimpleMessage();
25 com.openxc.BinaryMessages.SimpleMessage getSimpleMessage();
26 com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder();
28 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
29 boolean hasDiagnosticResponse();
30 com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse();
31 com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder();
33 // optional .openxc.ControlCommand control_command = 5;
34 boolean hasControlCommand();
35 com.openxc.BinaryMessages.ControlCommand getControlCommand();
36 com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder();
38 // optional .openxc.CommandResponse command_response = 6;
39 boolean hasCommandResponse();
40 com.openxc.BinaryMessages.CommandResponse getCommandResponse();
41 com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder();
43 // optional uint64 timestamp = 7;
44 boolean hasTimestamp();
47 public static final class VehicleMessage extends
48 com.google.protobuf.GeneratedMessage
49 implements VehicleMessageOrBuilder {
50 // Use VehicleMessage.newBuilder() to construct.
51 private VehicleMessage(Builder builder) {
54 private VehicleMessage(boolean noInit) {}
56 private static final VehicleMessage defaultInstance;
57 public static VehicleMessage getDefaultInstance() {
58 return defaultInstance;
61 public VehicleMessage getDefaultInstanceForType() {
62 return defaultInstance;
65 public static final com.google.protobuf.Descriptors.Descriptor
67 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
70 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
71 internalGetFieldAccessorTable() {
72 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable;
76 implements com.google.protobuf.ProtocolMessageEnum {
80 CONTROL_COMMAND(3, 4),
81 COMMAND_RESPONSE(4, 5),
84 public static final int CAN_VALUE = 1;
85 public static final int SIMPLE_VALUE = 2;
86 public static final int DIAGNOSTIC_VALUE = 3;
87 public static final int CONTROL_COMMAND_VALUE = 4;
88 public static final int COMMAND_RESPONSE_VALUE = 5;
91 public final int getNumber() { return value; }
93 public static Type valueOf(int value) {
96 case 2: return SIMPLE;
97 case 3: return DIAGNOSTIC;
98 case 4: return CONTROL_COMMAND;
99 case 5: return COMMAND_RESPONSE;
100 default: return null;
104 public static com.google.protobuf.Internal.EnumLiteMap<Type>
105 internalGetValueMap() {
106 return internalValueMap;
108 private static com.google.protobuf.Internal.EnumLiteMap<Type>
110 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
111 public Type findValueByNumber(int number) {
112 return Type.valueOf(number);
116 public final com.google.protobuf.Descriptors.EnumValueDescriptor
117 getValueDescriptor() {
118 return getDescriptor().getValues().get(index);
120 public final com.google.protobuf.Descriptors.EnumDescriptor
121 getDescriptorForType() {
122 return getDescriptor();
124 public static final com.google.protobuf.Descriptors.EnumDescriptor
126 return com.openxc.BinaryMessages.VehicleMessage.getDescriptor().getEnumTypes().get(0);
129 private static final Type[] VALUES = {
130 CAN, SIMPLE, DIAGNOSTIC, CONTROL_COMMAND, COMMAND_RESPONSE,
133 public static Type valueOf(
134 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
135 if (desc.getType() != getDescriptor()) {
136 throw new java.lang.IllegalArgumentException(
137 "EnumValueDescriptor is not for this type.");
139 return VALUES[desc.getIndex()];
142 private final int index;
143 private final int value;
145 private Type(int index, int value) {
150 // @@protoc_insertion_point(enum_scope:openxc.VehicleMessage.Type)
153 private int bitField0_;
154 // optional .openxc.VehicleMessage.Type type = 1;
155 public static final int TYPE_FIELD_NUMBER = 1;
156 private com.openxc.BinaryMessages.VehicleMessage.Type type_;
157 public boolean hasType() {
158 return ((bitField0_ & 0x00000001) == 0x00000001);
160 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
164 // optional .openxc.CanMessage can_message = 2;
165 public static final int CAN_MESSAGE_FIELD_NUMBER = 2;
166 private com.openxc.BinaryMessages.CanMessage canMessage_;
167 public boolean hasCanMessage() {
168 return ((bitField0_ & 0x00000002) == 0x00000002);
170 public com.openxc.BinaryMessages.CanMessage getCanMessage() {
173 public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() {
177 // optional .openxc.SimpleMessage simple_message = 3;
178 public static final int SIMPLE_MESSAGE_FIELD_NUMBER = 3;
179 private com.openxc.BinaryMessages.SimpleMessage simpleMessage_;
180 public boolean hasSimpleMessage() {
181 return ((bitField0_ & 0x00000004) == 0x00000004);
183 public com.openxc.BinaryMessages.SimpleMessage getSimpleMessage() {
184 return simpleMessage_;
186 public com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder() {
187 return simpleMessage_;
190 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
191 public static final int DIAGNOSTIC_RESPONSE_FIELD_NUMBER = 4;
192 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_;
193 public boolean hasDiagnosticResponse() {
194 return ((bitField0_ & 0x00000008) == 0x00000008);
196 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
197 return diagnosticResponse_;
199 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
200 return diagnosticResponse_;
203 // optional .openxc.ControlCommand control_command = 5;
204 public static final int CONTROL_COMMAND_FIELD_NUMBER = 5;
205 private com.openxc.BinaryMessages.ControlCommand controlCommand_;
206 public boolean hasControlCommand() {
207 return ((bitField0_ & 0x00000010) == 0x00000010);
209 public com.openxc.BinaryMessages.ControlCommand getControlCommand() {
210 return controlCommand_;
212 public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() {
213 return controlCommand_;
216 // optional .openxc.CommandResponse command_response = 6;
217 public static final int COMMAND_RESPONSE_FIELD_NUMBER = 6;
218 private com.openxc.BinaryMessages.CommandResponse commandResponse_;
219 public boolean hasCommandResponse() {
220 return ((bitField0_ & 0x00000020) == 0x00000020);
222 public com.openxc.BinaryMessages.CommandResponse getCommandResponse() {
223 return commandResponse_;
225 public com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder() {
226 return commandResponse_;
229 // optional uint64 timestamp = 7;
230 public static final int TIMESTAMP_FIELD_NUMBER = 7;
231 private long timestamp_;
232 public boolean hasTimestamp() {
233 return ((bitField0_ & 0x00000040) == 0x00000040);
235 public long getTimestamp() {
239 private void initFields() {
240 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
241 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
242 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
243 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
244 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
245 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
248 private byte memoizedIsInitialized = -1;
249 public final boolean isInitialized() {
250 byte isInitialized = memoizedIsInitialized;
251 if (isInitialized != -1) return isInitialized == 1;
253 memoizedIsInitialized = 1;
257 public void writeTo(com.google.protobuf.CodedOutputStream output)
258 throws java.io.IOException {
260 if (((bitField0_ & 0x00000001) == 0x00000001)) {
261 output.writeEnum(1, type_.getNumber());
263 if (((bitField0_ & 0x00000002) == 0x00000002)) {
264 output.writeMessage(2, canMessage_);
266 if (((bitField0_ & 0x00000004) == 0x00000004)) {
267 output.writeMessage(3, simpleMessage_);
269 if (((bitField0_ & 0x00000008) == 0x00000008)) {
270 output.writeMessage(4, diagnosticResponse_);
272 if (((bitField0_ & 0x00000010) == 0x00000010)) {
273 output.writeMessage(5, controlCommand_);
275 if (((bitField0_ & 0x00000020) == 0x00000020)) {
276 output.writeMessage(6, commandResponse_);
278 if (((bitField0_ & 0x00000040) == 0x00000040)) {
279 output.writeUInt64(7, timestamp_);
281 getUnknownFields().writeTo(output);
284 private int memoizedSerializedSize = -1;
285 public int getSerializedSize() {
286 int size = memoizedSerializedSize;
287 if (size != -1) return size;
290 if (((bitField0_ & 0x00000001) == 0x00000001)) {
291 size += com.google.protobuf.CodedOutputStream
292 .computeEnumSize(1, type_.getNumber());
294 if (((bitField0_ & 0x00000002) == 0x00000002)) {
295 size += com.google.protobuf.CodedOutputStream
296 .computeMessageSize(2, canMessage_);
298 if (((bitField0_ & 0x00000004) == 0x00000004)) {
299 size += com.google.protobuf.CodedOutputStream
300 .computeMessageSize(3, simpleMessage_);
302 if (((bitField0_ & 0x00000008) == 0x00000008)) {
303 size += com.google.protobuf.CodedOutputStream
304 .computeMessageSize(4, diagnosticResponse_);
306 if (((bitField0_ & 0x00000010) == 0x00000010)) {
307 size += com.google.protobuf.CodedOutputStream
308 .computeMessageSize(5, controlCommand_);
310 if (((bitField0_ & 0x00000020) == 0x00000020)) {
311 size += com.google.protobuf.CodedOutputStream
312 .computeMessageSize(6, commandResponse_);
314 if (((bitField0_ & 0x00000040) == 0x00000040)) {
315 size += com.google.protobuf.CodedOutputStream
316 .computeUInt64Size(7, timestamp_);
318 size += getUnknownFields().getSerializedSize();
319 memoizedSerializedSize = size;
323 private static final long serialVersionUID = 0L;
325 protected java.lang.Object writeReplace()
326 throws java.io.ObjectStreamException {
327 return super.writeReplace();
330 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
331 com.google.protobuf.ByteString data)
332 throws com.google.protobuf.InvalidProtocolBufferException {
333 return newBuilder().mergeFrom(data).buildParsed();
335 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
336 com.google.protobuf.ByteString data,
337 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
338 throws com.google.protobuf.InvalidProtocolBufferException {
339 return newBuilder().mergeFrom(data, extensionRegistry)
342 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(byte[] data)
343 throws com.google.protobuf.InvalidProtocolBufferException {
344 return newBuilder().mergeFrom(data).buildParsed();
346 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
348 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
349 throws com.google.protobuf.InvalidProtocolBufferException {
350 return newBuilder().mergeFrom(data, extensionRegistry)
353 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(java.io.InputStream input)
354 throws java.io.IOException {
355 return newBuilder().mergeFrom(input).buildParsed();
357 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
358 java.io.InputStream input,
359 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
360 throws java.io.IOException {
361 return newBuilder().mergeFrom(input, extensionRegistry)
364 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(java.io.InputStream input)
365 throws java.io.IOException {
366 Builder builder = newBuilder();
367 if (builder.mergeDelimitedFrom(input)) {
368 return builder.buildParsed();
373 public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(
374 java.io.InputStream input,
375 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
376 throws java.io.IOException {
377 Builder builder = newBuilder();
378 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
379 return builder.buildParsed();
384 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
385 com.google.protobuf.CodedInputStream input)
386 throws java.io.IOException {
387 return newBuilder().mergeFrom(input).buildParsed();
389 public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
390 com.google.protobuf.CodedInputStream input,
391 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
392 throws java.io.IOException {
393 return newBuilder().mergeFrom(input, extensionRegistry)
397 public static Builder newBuilder() { return Builder.create(); }
398 public Builder newBuilderForType() { return newBuilder(); }
399 public static Builder newBuilder(com.openxc.BinaryMessages.VehicleMessage prototype) {
400 return newBuilder().mergeFrom(prototype);
402 public Builder toBuilder() { return newBuilder(this); }
405 protected Builder newBuilderForType(
406 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
407 Builder builder = new Builder(parent);
410 public static final class Builder extends
411 com.google.protobuf.GeneratedMessage.Builder<Builder>
412 implements com.openxc.BinaryMessages.VehicleMessageOrBuilder {
413 public static final com.google.protobuf.Descriptors.Descriptor
415 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
418 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
419 internalGetFieldAccessorTable() {
420 return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable;
423 // Construct using com.openxc.BinaryMessages.VehicleMessage.newBuilder()
425 maybeForceBuilderInitialization();
428 private Builder(BuilderParent parent) {
430 maybeForceBuilderInitialization();
432 private void maybeForceBuilderInitialization() {
433 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
434 getCanMessageFieldBuilder();
435 getSimpleMessageFieldBuilder();
436 getDiagnosticResponseFieldBuilder();
437 getControlCommandFieldBuilder();
438 getCommandResponseFieldBuilder();
441 private static Builder create() {
442 return new Builder();
445 public Builder clear() {
447 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
448 bitField0_ = (bitField0_ & ~0x00000001);
449 if (canMessageBuilder_ == null) {
450 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
452 canMessageBuilder_.clear();
454 bitField0_ = (bitField0_ & ~0x00000002);
455 if (simpleMessageBuilder_ == null) {
456 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
458 simpleMessageBuilder_.clear();
460 bitField0_ = (bitField0_ & ~0x00000004);
461 if (diagnosticResponseBuilder_ == null) {
462 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
464 diagnosticResponseBuilder_.clear();
466 bitField0_ = (bitField0_ & ~0x00000008);
467 if (controlCommandBuilder_ == null) {
468 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
470 controlCommandBuilder_.clear();
472 bitField0_ = (bitField0_ & ~0x00000010);
473 if (commandResponseBuilder_ == null) {
474 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
476 commandResponseBuilder_.clear();
478 bitField0_ = (bitField0_ & ~0x00000020);
480 bitField0_ = (bitField0_ & ~0x00000040);
484 public Builder clone() {
485 return create().mergeFrom(buildPartial());
488 public com.google.protobuf.Descriptors.Descriptor
489 getDescriptorForType() {
490 return com.openxc.BinaryMessages.VehicleMessage.getDescriptor();
493 public com.openxc.BinaryMessages.VehicleMessage getDefaultInstanceForType() {
494 return com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance();
497 public com.openxc.BinaryMessages.VehicleMessage build() {
498 com.openxc.BinaryMessages.VehicleMessage result = buildPartial();
499 if (!result.isInitialized()) {
500 throw newUninitializedMessageException(result);
505 private com.openxc.BinaryMessages.VehicleMessage buildParsed()
506 throws com.google.protobuf.InvalidProtocolBufferException {
507 com.openxc.BinaryMessages.VehicleMessage result = buildPartial();
508 if (!result.isInitialized()) {
509 throw newUninitializedMessageException(
510 result).asInvalidProtocolBufferException();
515 public com.openxc.BinaryMessages.VehicleMessage buildPartial() {
516 com.openxc.BinaryMessages.VehicleMessage result = new com.openxc.BinaryMessages.VehicleMessage(this);
517 int from_bitField0_ = bitField0_;
518 int to_bitField0_ = 0;
519 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
520 to_bitField0_ |= 0x00000001;
522 result.type_ = type_;
523 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
524 to_bitField0_ |= 0x00000002;
526 if (canMessageBuilder_ == null) {
527 result.canMessage_ = canMessage_;
529 result.canMessage_ = canMessageBuilder_.build();
531 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
532 to_bitField0_ |= 0x00000004;
534 if (simpleMessageBuilder_ == null) {
535 result.simpleMessage_ = simpleMessage_;
537 result.simpleMessage_ = simpleMessageBuilder_.build();
539 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
540 to_bitField0_ |= 0x00000008;
542 if (diagnosticResponseBuilder_ == null) {
543 result.diagnosticResponse_ = diagnosticResponse_;
545 result.diagnosticResponse_ = diagnosticResponseBuilder_.build();
547 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
548 to_bitField0_ |= 0x00000010;
550 if (controlCommandBuilder_ == null) {
551 result.controlCommand_ = controlCommand_;
553 result.controlCommand_ = controlCommandBuilder_.build();
555 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
556 to_bitField0_ |= 0x00000020;
558 if (commandResponseBuilder_ == null) {
559 result.commandResponse_ = commandResponse_;
561 result.commandResponse_ = commandResponseBuilder_.build();
563 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
564 to_bitField0_ |= 0x00000040;
566 result.timestamp_ = timestamp_;
567 result.bitField0_ = to_bitField0_;
572 public Builder mergeFrom(com.google.protobuf.Message other) {
573 if (other instanceof com.openxc.BinaryMessages.VehicleMessage) {
574 return mergeFrom((com.openxc.BinaryMessages.VehicleMessage)other);
576 super.mergeFrom(other);
581 public Builder mergeFrom(com.openxc.BinaryMessages.VehicleMessage other) {
582 if (other == com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance()) return this;
583 if (other.hasType()) {
584 setType(other.getType());
586 if (other.hasCanMessage()) {
587 mergeCanMessage(other.getCanMessage());
589 if (other.hasSimpleMessage()) {
590 mergeSimpleMessage(other.getSimpleMessage());
592 if (other.hasDiagnosticResponse()) {
593 mergeDiagnosticResponse(other.getDiagnosticResponse());
595 if (other.hasControlCommand()) {
596 mergeControlCommand(other.getControlCommand());
598 if (other.hasCommandResponse()) {
599 mergeCommandResponse(other.getCommandResponse());
601 if (other.hasTimestamp()) {
602 setTimestamp(other.getTimestamp());
604 this.mergeUnknownFields(other.getUnknownFields());
608 public final boolean isInitialized() {
612 public Builder mergeFrom(
613 com.google.protobuf.CodedInputStream input,
614 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
615 throws java.io.IOException {
616 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
617 com.google.protobuf.UnknownFieldSet.newBuilder(
618 this.getUnknownFields());
620 int tag = input.readTag();
623 this.setUnknownFields(unknownFields.build());
627 if (!parseUnknownField(input, unknownFields,
628 extensionRegistry, tag)) {
629 this.setUnknownFields(unknownFields.build());
636 int rawValue = input.readEnum();
637 com.openxc.BinaryMessages.VehicleMessage.Type value = com.openxc.BinaryMessages.VehicleMessage.Type.valueOf(rawValue);
639 unknownFields.mergeVarintField(1, rawValue);
641 bitField0_ |= 0x00000001;
647 com.openxc.BinaryMessages.CanMessage.Builder subBuilder = com.openxc.BinaryMessages.CanMessage.newBuilder();
648 if (hasCanMessage()) {
649 subBuilder.mergeFrom(getCanMessage());
651 input.readMessage(subBuilder, extensionRegistry);
652 setCanMessage(subBuilder.buildPartial());
656 com.openxc.BinaryMessages.SimpleMessage.Builder subBuilder = com.openxc.BinaryMessages.SimpleMessage.newBuilder();
657 if (hasSimpleMessage()) {
658 subBuilder.mergeFrom(getSimpleMessage());
660 input.readMessage(subBuilder, extensionRegistry);
661 setSimpleMessage(subBuilder.buildPartial());
665 com.openxc.BinaryMessages.DiagnosticResponse.Builder subBuilder = com.openxc.BinaryMessages.DiagnosticResponse.newBuilder();
666 if (hasDiagnosticResponse()) {
667 subBuilder.mergeFrom(getDiagnosticResponse());
669 input.readMessage(subBuilder, extensionRegistry);
670 setDiagnosticResponse(subBuilder.buildPartial());
674 com.openxc.BinaryMessages.ControlCommand.Builder subBuilder = com.openxc.BinaryMessages.ControlCommand.newBuilder();
675 if (hasControlCommand()) {
676 subBuilder.mergeFrom(getControlCommand());
678 input.readMessage(subBuilder, extensionRegistry);
679 setControlCommand(subBuilder.buildPartial());
683 com.openxc.BinaryMessages.CommandResponse.Builder subBuilder = com.openxc.BinaryMessages.CommandResponse.newBuilder();
684 if (hasCommandResponse()) {
685 subBuilder.mergeFrom(getCommandResponse());
687 input.readMessage(subBuilder, extensionRegistry);
688 setCommandResponse(subBuilder.buildPartial());
692 bitField0_ |= 0x00000040;
693 timestamp_ = input.readUInt64();
700 private int bitField0_;
702 // optional .openxc.VehicleMessage.Type type = 1;
703 private com.openxc.BinaryMessages.VehicleMessage.Type type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
704 public boolean hasType() {
705 return ((bitField0_ & 0x00000001) == 0x00000001);
707 public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
710 public Builder setType(com.openxc.BinaryMessages.VehicleMessage.Type value) {
712 throw new NullPointerException();
714 bitField0_ |= 0x00000001;
719 public Builder clearType() {
720 bitField0_ = (bitField0_ & ~0x00000001);
721 type_ = com.openxc.BinaryMessages.VehicleMessage.Type.CAN;
726 // optional .openxc.CanMessage can_message = 2;
727 private com.openxc.BinaryMessages.CanMessage canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
728 private com.google.protobuf.SingleFieldBuilder<
729 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder> canMessageBuilder_;
730 public boolean hasCanMessage() {
731 return ((bitField0_ & 0x00000002) == 0x00000002);
733 public com.openxc.BinaryMessages.CanMessage getCanMessage() {
734 if (canMessageBuilder_ == null) {
737 return canMessageBuilder_.getMessage();
740 public Builder setCanMessage(com.openxc.BinaryMessages.CanMessage value) {
741 if (canMessageBuilder_ == null) {
743 throw new NullPointerException();
748 canMessageBuilder_.setMessage(value);
750 bitField0_ |= 0x00000002;
753 public Builder setCanMessage(
754 com.openxc.BinaryMessages.CanMessage.Builder builderForValue) {
755 if (canMessageBuilder_ == null) {
756 canMessage_ = builderForValue.build();
759 canMessageBuilder_.setMessage(builderForValue.build());
761 bitField0_ |= 0x00000002;
764 public Builder mergeCanMessage(com.openxc.BinaryMessages.CanMessage value) {
765 if (canMessageBuilder_ == null) {
766 if (((bitField0_ & 0x00000002) == 0x00000002) &&
767 canMessage_ != com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) {
769 com.openxc.BinaryMessages.CanMessage.newBuilder(canMessage_).mergeFrom(value).buildPartial();
775 canMessageBuilder_.mergeFrom(value);
777 bitField0_ |= 0x00000002;
780 public Builder clearCanMessage() {
781 if (canMessageBuilder_ == null) {
782 canMessage_ = com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
785 canMessageBuilder_.clear();
787 bitField0_ = (bitField0_ & ~0x00000002);
790 public com.openxc.BinaryMessages.CanMessage.Builder getCanMessageBuilder() {
791 bitField0_ |= 0x00000002;
793 return getCanMessageFieldBuilder().getBuilder();
795 public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() {
796 if (canMessageBuilder_ != null) {
797 return canMessageBuilder_.getMessageOrBuilder();
802 private com.google.protobuf.SingleFieldBuilder<
803 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder>
804 getCanMessageFieldBuilder() {
805 if (canMessageBuilder_ == null) {
806 canMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
807 com.openxc.BinaryMessages.CanMessage, com.openxc.BinaryMessages.CanMessage.Builder, com.openxc.BinaryMessages.CanMessageOrBuilder>(
809 getParentForChildren(),
813 return canMessageBuilder_;
816 // optional .openxc.SimpleMessage simple_message = 3;
817 private com.openxc.BinaryMessages.SimpleMessage simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
818 private com.google.protobuf.SingleFieldBuilder<
819 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder> simpleMessageBuilder_;
820 public boolean hasSimpleMessage() {
821 return ((bitField0_ & 0x00000004) == 0x00000004);
823 public com.openxc.BinaryMessages.SimpleMessage getSimpleMessage() {
824 if (simpleMessageBuilder_ == null) {
825 return simpleMessage_;
827 return simpleMessageBuilder_.getMessage();
830 public Builder setSimpleMessage(com.openxc.BinaryMessages.SimpleMessage value) {
831 if (simpleMessageBuilder_ == null) {
833 throw new NullPointerException();
835 simpleMessage_ = value;
838 simpleMessageBuilder_.setMessage(value);
840 bitField0_ |= 0x00000004;
843 public Builder setSimpleMessage(
844 com.openxc.BinaryMessages.SimpleMessage.Builder builderForValue) {
845 if (simpleMessageBuilder_ == null) {
846 simpleMessage_ = builderForValue.build();
849 simpleMessageBuilder_.setMessage(builderForValue.build());
851 bitField0_ |= 0x00000004;
854 public Builder mergeSimpleMessage(com.openxc.BinaryMessages.SimpleMessage value) {
855 if (simpleMessageBuilder_ == null) {
856 if (((bitField0_ & 0x00000004) == 0x00000004) &&
857 simpleMessage_ != com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance()) {
859 com.openxc.BinaryMessages.SimpleMessage.newBuilder(simpleMessage_).mergeFrom(value).buildPartial();
861 simpleMessage_ = value;
865 simpleMessageBuilder_.mergeFrom(value);
867 bitField0_ |= 0x00000004;
870 public Builder clearSimpleMessage() {
871 if (simpleMessageBuilder_ == null) {
872 simpleMessage_ = com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
875 simpleMessageBuilder_.clear();
877 bitField0_ = (bitField0_ & ~0x00000004);
880 public com.openxc.BinaryMessages.SimpleMessage.Builder getSimpleMessageBuilder() {
881 bitField0_ |= 0x00000004;
883 return getSimpleMessageFieldBuilder().getBuilder();
885 public com.openxc.BinaryMessages.SimpleMessageOrBuilder getSimpleMessageOrBuilder() {
886 if (simpleMessageBuilder_ != null) {
887 return simpleMessageBuilder_.getMessageOrBuilder();
889 return simpleMessage_;
892 private com.google.protobuf.SingleFieldBuilder<
893 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder>
894 getSimpleMessageFieldBuilder() {
895 if (simpleMessageBuilder_ == null) {
896 simpleMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
897 com.openxc.BinaryMessages.SimpleMessage, com.openxc.BinaryMessages.SimpleMessage.Builder, com.openxc.BinaryMessages.SimpleMessageOrBuilder>(
899 getParentForChildren(),
901 simpleMessage_ = null;
903 return simpleMessageBuilder_;
906 // optional .openxc.DiagnosticResponse diagnostic_response = 4;
907 private com.openxc.BinaryMessages.DiagnosticResponse diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
908 private com.google.protobuf.SingleFieldBuilder<
909 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder> diagnosticResponseBuilder_;
910 public boolean hasDiagnosticResponse() {
911 return ((bitField0_ & 0x00000008) == 0x00000008);
913 public com.openxc.BinaryMessages.DiagnosticResponse getDiagnosticResponse() {
914 if (diagnosticResponseBuilder_ == null) {
915 return diagnosticResponse_;
917 return diagnosticResponseBuilder_.getMessage();
920 public Builder setDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
921 if (diagnosticResponseBuilder_ == null) {
923 throw new NullPointerException();
925 diagnosticResponse_ = value;
928 diagnosticResponseBuilder_.setMessage(value);
930 bitField0_ |= 0x00000008;
933 public Builder setDiagnosticResponse(
934 com.openxc.BinaryMessages.DiagnosticResponse.Builder builderForValue) {
935 if (diagnosticResponseBuilder_ == null) {
936 diagnosticResponse_ = builderForValue.build();
939 diagnosticResponseBuilder_.setMessage(builderForValue.build());
941 bitField0_ |= 0x00000008;
944 public Builder mergeDiagnosticResponse(com.openxc.BinaryMessages.DiagnosticResponse value) {
945 if (diagnosticResponseBuilder_ == null) {
946 if (((bitField0_ & 0x00000008) == 0x00000008) &&
947 diagnosticResponse_ != com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) {
948 diagnosticResponse_ =
949 com.openxc.BinaryMessages.DiagnosticResponse.newBuilder(diagnosticResponse_).mergeFrom(value).buildPartial();
951 diagnosticResponse_ = value;
955 diagnosticResponseBuilder_.mergeFrom(value);
957 bitField0_ |= 0x00000008;
960 public Builder clearDiagnosticResponse() {
961 if (diagnosticResponseBuilder_ == null) {
962 diagnosticResponse_ = com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
965 diagnosticResponseBuilder_.clear();
967 bitField0_ = (bitField0_ & ~0x00000008);
970 public com.openxc.BinaryMessages.DiagnosticResponse.Builder getDiagnosticResponseBuilder() {
971 bitField0_ |= 0x00000008;
973 return getDiagnosticResponseFieldBuilder().getBuilder();
975 public com.openxc.BinaryMessages.DiagnosticResponseOrBuilder getDiagnosticResponseOrBuilder() {
976 if (diagnosticResponseBuilder_ != null) {
977 return diagnosticResponseBuilder_.getMessageOrBuilder();
979 return diagnosticResponse_;
982 private com.google.protobuf.SingleFieldBuilder<
983 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>
984 getDiagnosticResponseFieldBuilder() {
985 if (diagnosticResponseBuilder_ == null) {
986 diagnosticResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
987 com.openxc.BinaryMessages.DiagnosticResponse, com.openxc.BinaryMessages.DiagnosticResponse.Builder, com.openxc.BinaryMessages.DiagnosticResponseOrBuilder>(
989 getParentForChildren(),
991 diagnosticResponse_ = null;
993 return diagnosticResponseBuilder_;
996 // optional .openxc.ControlCommand control_command = 5;
997 private com.openxc.BinaryMessages.ControlCommand controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
998 private com.google.protobuf.SingleFieldBuilder<
999 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder> controlCommandBuilder_;
1000 public boolean hasControlCommand() {
1001 return ((bitField0_ & 0x00000010) == 0x00000010);
1003 public com.openxc.BinaryMessages.ControlCommand getControlCommand() {
1004 if (controlCommandBuilder_ == null) {
1005 return controlCommand_;
1007 return controlCommandBuilder_.getMessage();
1010 public Builder setControlCommand(com.openxc.BinaryMessages.ControlCommand value) {
1011 if (controlCommandBuilder_ == null) {
1012 if (value == null) {
1013 throw new NullPointerException();
1015 controlCommand_ = value;
1018 controlCommandBuilder_.setMessage(value);
1020 bitField0_ |= 0x00000010;
1023 public Builder setControlCommand(
1024 com.openxc.BinaryMessages.ControlCommand.Builder builderForValue) {
1025 if (controlCommandBuilder_ == null) {
1026 controlCommand_ = builderForValue.build();
1029 controlCommandBuilder_.setMessage(builderForValue.build());
1031 bitField0_ |= 0x00000010;
1034 public Builder mergeControlCommand(com.openxc.BinaryMessages.ControlCommand value) {
1035 if (controlCommandBuilder_ == null) {
1036 if (((bitField0_ & 0x00000010) == 0x00000010) &&
1037 controlCommand_ != com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) {
1039 com.openxc.BinaryMessages.ControlCommand.newBuilder(controlCommand_).mergeFrom(value).buildPartial();
1041 controlCommand_ = value;
1045 controlCommandBuilder_.mergeFrom(value);
1047 bitField0_ |= 0x00000010;
1050 public Builder clearControlCommand() {
1051 if (controlCommandBuilder_ == null) {
1052 controlCommand_ = com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
1055 controlCommandBuilder_.clear();
1057 bitField0_ = (bitField0_ & ~0x00000010);
1060 public com.openxc.BinaryMessages.ControlCommand.Builder getControlCommandBuilder() {
1061 bitField0_ |= 0x00000010;
1063 return getControlCommandFieldBuilder().getBuilder();
1065 public com.openxc.BinaryMessages.ControlCommandOrBuilder getControlCommandOrBuilder() {
1066 if (controlCommandBuilder_ != null) {
1067 return controlCommandBuilder_.getMessageOrBuilder();
1069 return controlCommand_;
1072 private com.google.protobuf.SingleFieldBuilder<
1073 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder>
1074 getControlCommandFieldBuilder() {
1075 if (controlCommandBuilder_ == null) {
1076 controlCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1077 com.openxc.BinaryMessages.ControlCommand, com.openxc.BinaryMessages.ControlCommand.Builder, com.openxc.BinaryMessages.ControlCommandOrBuilder>(
1079 getParentForChildren(),
1081 controlCommand_ = null;
1083 return controlCommandBuilder_;
1086 // optional .openxc.CommandResponse command_response = 6;
1087 private com.openxc.BinaryMessages.CommandResponse commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
1088 private com.google.protobuf.SingleFieldBuilder<
1089 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder> commandResponseBuilder_;
1090 public boolean hasCommandResponse() {
1091 return ((bitField0_ & 0x00000020) == 0x00000020);
1093 public com.openxc.BinaryMessages.CommandResponse getCommandResponse() {
1094 if (commandResponseBuilder_ == null) {
1095 return commandResponse_;
1097 return commandResponseBuilder_.getMessage();
1100 public Builder setCommandResponse(com.openxc.BinaryMessages.CommandResponse value) {
1101 if (commandResponseBuilder_ == null) {
1102 if (value == null) {
1103 throw new NullPointerException();
1105 commandResponse_ = value;
1108 commandResponseBuilder_.setMessage(value);
1110 bitField0_ |= 0x00000020;
1113 public Builder setCommandResponse(
1114 com.openxc.BinaryMessages.CommandResponse.Builder builderForValue) {
1115 if (commandResponseBuilder_ == null) {
1116 commandResponse_ = builderForValue.build();
1119 commandResponseBuilder_.setMessage(builderForValue.build());
1121 bitField0_ |= 0x00000020;
1124 public Builder mergeCommandResponse(com.openxc.BinaryMessages.CommandResponse value) {
1125 if (commandResponseBuilder_ == null) {
1126 if (((bitField0_ & 0x00000020) == 0x00000020) &&
1127 commandResponse_ != com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) {
1129 com.openxc.BinaryMessages.CommandResponse.newBuilder(commandResponse_).mergeFrom(value).buildPartial();
1131 commandResponse_ = value;
1135 commandResponseBuilder_.mergeFrom(value);
1137 bitField0_ |= 0x00000020;
1140 public Builder clearCommandResponse() {
1141 if (commandResponseBuilder_ == null) {
1142 commandResponse_ = com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
1145 commandResponseBuilder_.clear();
1147 bitField0_ = (bitField0_ & ~0x00000020);
1150 public com.openxc.BinaryMessages.CommandResponse.Builder getCommandResponseBuilder() {
1151 bitField0_ |= 0x00000020;
1153 return getCommandResponseFieldBuilder().getBuilder();
1155 public com.openxc.BinaryMessages.CommandResponseOrBuilder getCommandResponseOrBuilder() {
1156 if (commandResponseBuilder_ != null) {
1157 return commandResponseBuilder_.getMessageOrBuilder();
1159 return commandResponse_;
1162 private com.google.protobuf.SingleFieldBuilder<
1163 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder>
1164 getCommandResponseFieldBuilder() {
1165 if (commandResponseBuilder_ == null) {
1166 commandResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1167 com.openxc.BinaryMessages.CommandResponse, com.openxc.BinaryMessages.CommandResponse.Builder, com.openxc.BinaryMessages.CommandResponseOrBuilder>(
1169 getParentForChildren(),
1171 commandResponse_ = null;
1173 return commandResponseBuilder_;
1176 // optional uint64 timestamp = 7;
1177 private long timestamp_ ;
1178 public boolean hasTimestamp() {
1179 return ((bitField0_ & 0x00000040) == 0x00000040);
1181 public long getTimestamp() {
1184 public Builder setTimestamp(long value) {
1185 bitField0_ |= 0x00000040;
1190 public Builder clearTimestamp() {
1191 bitField0_ = (bitField0_ & ~0x00000040);
1197 // @@protoc_insertion_point(builder_scope:openxc.VehicleMessage)
1201 defaultInstance = new VehicleMessage(true);
1202 defaultInstance.initFields();
1205 // @@protoc_insertion_point(class_scope:openxc.VehicleMessage)
1208 public interface CanMessageOrBuilder
1209 extends com.google.protobuf.MessageOrBuilder {
1211 // optional int32 bus = 1;
1215 // optional uint32 id = 2;
1219 // optional bytes data = 3;
1221 com.google.protobuf.ByteString getData();
1223 // optional .openxc.CanMessage.FrameFormat frame_format = 4;
1224 boolean hasFrameFormat();
1225 com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat();
1227 public static final class CanMessage extends
1228 com.google.protobuf.GeneratedMessage
1229 implements CanMessageOrBuilder {
1230 // Use CanMessage.newBuilder() to construct.
1231 private CanMessage(Builder builder) {
1234 private CanMessage(boolean noInit) {}
1236 private static final CanMessage defaultInstance;
1237 public static CanMessage getDefaultInstance() {
1238 return defaultInstance;
1241 public CanMessage getDefaultInstanceForType() {
1242 return defaultInstance;
1245 public static final com.google.protobuf.Descriptors.Descriptor
1247 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1250 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1251 internalGetFieldAccessorTable() {
1252 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_fieldAccessorTable;
1255 public enum FrameFormat
1256 implements com.google.protobuf.ProtocolMessageEnum {
1261 public static final int STANDARD_VALUE = 1;
1262 public static final int EXTENDED_VALUE = 2;
1265 public final int getNumber() { return value; }
1267 public static FrameFormat valueOf(int value) {
1269 case 1: return STANDARD;
1270 case 2: return EXTENDED;
1271 default: return null;
1275 public static com.google.protobuf.Internal.EnumLiteMap<FrameFormat>
1276 internalGetValueMap() {
1277 return internalValueMap;
1279 private static com.google.protobuf.Internal.EnumLiteMap<FrameFormat>
1281 new com.google.protobuf.Internal.EnumLiteMap<FrameFormat>() {
1282 public FrameFormat findValueByNumber(int number) {
1283 return FrameFormat.valueOf(number);
1287 public final com.google.protobuf.Descriptors.EnumValueDescriptor
1288 getValueDescriptor() {
1289 return getDescriptor().getValues().get(index);
1291 public final com.google.protobuf.Descriptors.EnumDescriptor
1292 getDescriptorForType() {
1293 return getDescriptor();
1295 public static final com.google.protobuf.Descriptors.EnumDescriptor
1297 return com.openxc.BinaryMessages.CanMessage.getDescriptor().getEnumTypes().get(0);
1300 private static final FrameFormat[] VALUES = {
1304 public static FrameFormat valueOf(
1305 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1306 if (desc.getType() != getDescriptor()) {
1307 throw new java.lang.IllegalArgumentException(
1308 "EnumValueDescriptor is not for this type.");
1310 return VALUES[desc.getIndex()];
1313 private final int index;
1314 private final int value;
1316 private FrameFormat(int index, int value) {
1321 // @@protoc_insertion_point(enum_scope:openxc.CanMessage.FrameFormat)
1324 private int bitField0_;
1325 // optional int32 bus = 1;
1326 public static final int BUS_FIELD_NUMBER = 1;
1328 public boolean hasBus() {
1329 return ((bitField0_ & 0x00000001) == 0x00000001);
1331 public int getBus() {
1335 // optional uint32 id = 2;
1336 public static final int ID_FIELD_NUMBER = 2;
1338 public boolean hasId() {
1339 return ((bitField0_ & 0x00000002) == 0x00000002);
1341 public int getId() {
1345 // optional bytes data = 3;
1346 public static final int DATA_FIELD_NUMBER = 3;
1347 private com.google.protobuf.ByteString data_;
1348 public boolean hasData() {
1349 return ((bitField0_ & 0x00000004) == 0x00000004);
1351 public com.google.protobuf.ByteString getData() {
1355 // optional .openxc.CanMessage.FrameFormat frame_format = 4;
1356 public static final int FRAME_FORMAT_FIELD_NUMBER = 4;
1357 private com.openxc.BinaryMessages.CanMessage.FrameFormat frameFormat_;
1358 public boolean hasFrameFormat() {
1359 return ((bitField0_ & 0x00000008) == 0x00000008);
1361 public com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat() {
1362 return frameFormat_;
1365 private void initFields() {
1368 data_ = com.google.protobuf.ByteString.EMPTY;
1369 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1371 private byte memoizedIsInitialized = -1;
1372 public final boolean isInitialized() {
1373 byte isInitialized = memoizedIsInitialized;
1374 if (isInitialized != -1) return isInitialized == 1;
1376 memoizedIsInitialized = 1;
1380 public void writeTo(com.google.protobuf.CodedOutputStream output)
1381 throws java.io.IOException {
1382 getSerializedSize();
1383 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1384 output.writeInt32(1, bus_);
1386 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1387 output.writeUInt32(2, id_);
1389 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1390 output.writeBytes(3, data_);
1392 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1393 output.writeEnum(4, frameFormat_.getNumber());
1395 getUnknownFields().writeTo(output);
1398 private int memoizedSerializedSize = -1;
1399 public int getSerializedSize() {
1400 int size = memoizedSerializedSize;
1401 if (size != -1) return size;
1404 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1405 size += com.google.protobuf.CodedOutputStream
1406 .computeInt32Size(1, bus_);
1408 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1409 size += com.google.protobuf.CodedOutputStream
1410 .computeUInt32Size(2, id_);
1412 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1413 size += com.google.protobuf.CodedOutputStream
1414 .computeBytesSize(3, data_);
1416 if (((bitField0_ & 0x00000008) == 0x00000008)) {
1417 size += com.google.protobuf.CodedOutputStream
1418 .computeEnumSize(4, frameFormat_.getNumber());
1420 size += getUnknownFields().getSerializedSize();
1421 memoizedSerializedSize = size;
1425 private static final long serialVersionUID = 0L;
1427 protected java.lang.Object writeReplace()
1428 throws java.io.ObjectStreamException {
1429 return super.writeReplace();
1432 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1433 com.google.protobuf.ByteString data)
1434 throws com.google.protobuf.InvalidProtocolBufferException {
1435 return newBuilder().mergeFrom(data).buildParsed();
1437 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1438 com.google.protobuf.ByteString data,
1439 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1440 throws com.google.protobuf.InvalidProtocolBufferException {
1441 return newBuilder().mergeFrom(data, extensionRegistry)
1444 public static com.openxc.BinaryMessages.CanMessage parseFrom(byte[] data)
1445 throws com.google.protobuf.InvalidProtocolBufferException {
1446 return newBuilder().mergeFrom(data).buildParsed();
1448 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1450 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1451 throws com.google.protobuf.InvalidProtocolBufferException {
1452 return newBuilder().mergeFrom(data, extensionRegistry)
1455 public static com.openxc.BinaryMessages.CanMessage parseFrom(java.io.InputStream input)
1456 throws java.io.IOException {
1457 return newBuilder().mergeFrom(input).buildParsed();
1459 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1460 java.io.InputStream input,
1461 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1462 throws java.io.IOException {
1463 return newBuilder().mergeFrom(input, extensionRegistry)
1466 public static com.openxc.BinaryMessages.CanMessage parseDelimitedFrom(java.io.InputStream input)
1467 throws java.io.IOException {
1468 Builder builder = newBuilder();
1469 if (builder.mergeDelimitedFrom(input)) {
1470 return builder.buildParsed();
1475 public static com.openxc.BinaryMessages.CanMessage parseDelimitedFrom(
1476 java.io.InputStream input,
1477 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1478 throws java.io.IOException {
1479 Builder builder = newBuilder();
1480 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
1481 return builder.buildParsed();
1486 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1487 com.google.protobuf.CodedInputStream input)
1488 throws java.io.IOException {
1489 return newBuilder().mergeFrom(input).buildParsed();
1491 public static com.openxc.BinaryMessages.CanMessage parseFrom(
1492 com.google.protobuf.CodedInputStream input,
1493 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1494 throws java.io.IOException {
1495 return newBuilder().mergeFrom(input, extensionRegistry)
1499 public static Builder newBuilder() { return Builder.create(); }
1500 public Builder newBuilderForType() { return newBuilder(); }
1501 public static Builder newBuilder(com.openxc.BinaryMessages.CanMessage prototype) {
1502 return newBuilder().mergeFrom(prototype);
1504 public Builder toBuilder() { return newBuilder(this); }
1507 protected Builder newBuilderForType(
1508 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1509 Builder builder = new Builder(parent);
1512 public static final class Builder extends
1513 com.google.protobuf.GeneratedMessage.Builder<Builder>
1514 implements com.openxc.BinaryMessages.CanMessageOrBuilder {
1515 public static final com.google.protobuf.Descriptors.Descriptor
1517 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_descriptor;
1520 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1521 internalGetFieldAccessorTable() {
1522 return com.openxc.BinaryMessages.internal_static_openxc_CanMessage_fieldAccessorTable;
1525 // Construct using com.openxc.BinaryMessages.CanMessage.newBuilder()
1527 maybeForceBuilderInitialization();
1530 private Builder(BuilderParent parent) {
1532 maybeForceBuilderInitialization();
1534 private void maybeForceBuilderInitialization() {
1535 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1538 private static Builder create() {
1539 return new Builder();
1542 public Builder clear() {
1545 bitField0_ = (bitField0_ & ~0x00000001);
1547 bitField0_ = (bitField0_ & ~0x00000002);
1548 data_ = com.google.protobuf.ByteString.EMPTY;
1549 bitField0_ = (bitField0_ & ~0x00000004);
1550 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1551 bitField0_ = (bitField0_ & ~0x00000008);
1555 public Builder clone() {
1556 return create().mergeFrom(buildPartial());
1559 public com.google.protobuf.Descriptors.Descriptor
1560 getDescriptorForType() {
1561 return com.openxc.BinaryMessages.CanMessage.getDescriptor();
1564 public com.openxc.BinaryMessages.CanMessage getDefaultInstanceForType() {
1565 return com.openxc.BinaryMessages.CanMessage.getDefaultInstance();
1568 public com.openxc.BinaryMessages.CanMessage build() {
1569 com.openxc.BinaryMessages.CanMessage result = buildPartial();
1570 if (!result.isInitialized()) {
1571 throw newUninitializedMessageException(result);
1576 private com.openxc.BinaryMessages.CanMessage buildParsed()
1577 throws com.google.protobuf.InvalidProtocolBufferException {
1578 com.openxc.BinaryMessages.CanMessage result = buildPartial();
1579 if (!result.isInitialized()) {
1580 throw newUninitializedMessageException(
1581 result).asInvalidProtocolBufferException();
1586 public com.openxc.BinaryMessages.CanMessage buildPartial() {
1587 com.openxc.BinaryMessages.CanMessage result = new com.openxc.BinaryMessages.CanMessage(this);
1588 int from_bitField0_ = bitField0_;
1589 int to_bitField0_ = 0;
1590 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1591 to_bitField0_ |= 0x00000001;
1594 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1595 to_bitField0_ |= 0x00000002;
1598 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1599 to_bitField0_ |= 0x00000004;
1601 result.data_ = data_;
1602 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1603 to_bitField0_ |= 0x00000008;
1605 result.frameFormat_ = frameFormat_;
1606 result.bitField0_ = to_bitField0_;
1611 public Builder mergeFrom(com.google.protobuf.Message other) {
1612 if (other instanceof com.openxc.BinaryMessages.CanMessage) {
1613 return mergeFrom((com.openxc.BinaryMessages.CanMessage)other);
1615 super.mergeFrom(other);
1620 public Builder mergeFrom(com.openxc.BinaryMessages.CanMessage other) {
1621 if (other == com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) return this;
1622 if (other.hasBus()) {
1623 setBus(other.getBus());
1625 if (other.hasId()) {
1626 setId(other.getId());
1628 if (other.hasData()) {
1629 setData(other.getData());
1631 if (other.hasFrameFormat()) {
1632 setFrameFormat(other.getFrameFormat());
1634 this.mergeUnknownFields(other.getUnknownFields());
1638 public final boolean isInitialized() {
1642 public Builder mergeFrom(
1643 com.google.protobuf.CodedInputStream input,
1644 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1645 throws java.io.IOException {
1646 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1647 com.google.protobuf.UnknownFieldSet.newBuilder(
1648 this.getUnknownFields());
1650 int tag = input.readTag();
1653 this.setUnknownFields(unknownFields.build());
1657 if (!parseUnknownField(input, unknownFields,
1658 extensionRegistry, tag)) {
1659 this.setUnknownFields(unknownFields.build());
1666 bitField0_ |= 0x00000001;
1667 bus_ = input.readInt32();
1671 bitField0_ |= 0x00000002;
1672 id_ = input.readUInt32();
1676 bitField0_ |= 0x00000004;
1677 data_ = input.readBytes();
1681 int rawValue = input.readEnum();
1682 com.openxc.BinaryMessages.CanMessage.FrameFormat value = com.openxc.BinaryMessages.CanMessage.FrameFormat.valueOf(rawValue);
1683 if (value == null) {
1684 unknownFields.mergeVarintField(4, rawValue);
1686 bitField0_ |= 0x00000008;
1687 frameFormat_ = value;
1695 private int bitField0_;
1697 // optional int32 bus = 1;
1699 public boolean hasBus() {
1700 return ((bitField0_ & 0x00000001) == 0x00000001);
1702 public int getBus() {
1705 public Builder setBus(int value) {
1706 bitField0_ |= 0x00000001;
1711 public Builder clearBus() {
1712 bitField0_ = (bitField0_ & ~0x00000001);
1718 // optional uint32 id = 2;
1720 public boolean hasId() {
1721 return ((bitField0_ & 0x00000002) == 0x00000002);
1723 public int getId() {
1726 public Builder setId(int value) {
1727 bitField0_ |= 0x00000002;
1732 public Builder clearId() {
1733 bitField0_ = (bitField0_ & ~0x00000002);
1739 // optional bytes data = 3;
1740 private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
1741 public boolean hasData() {
1742 return ((bitField0_ & 0x00000004) == 0x00000004);
1744 public com.google.protobuf.ByteString getData() {
1747 public Builder setData(com.google.protobuf.ByteString value) {
1748 if (value == null) {
1749 throw new NullPointerException();
1751 bitField0_ |= 0x00000004;
1756 public Builder clearData() {
1757 bitField0_ = (bitField0_ & ~0x00000004);
1758 data_ = getDefaultInstance().getData();
1763 // optional .openxc.CanMessage.FrameFormat frame_format = 4;
1764 private com.openxc.BinaryMessages.CanMessage.FrameFormat frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1765 public boolean hasFrameFormat() {
1766 return ((bitField0_ & 0x00000008) == 0x00000008);
1768 public com.openxc.BinaryMessages.CanMessage.FrameFormat getFrameFormat() {
1769 return frameFormat_;
1771 public Builder setFrameFormat(com.openxc.BinaryMessages.CanMessage.FrameFormat value) {
1772 if (value == null) {
1773 throw new NullPointerException();
1775 bitField0_ |= 0x00000008;
1776 frameFormat_ = value;
1780 public Builder clearFrameFormat() {
1781 bitField0_ = (bitField0_ & ~0x00000008);
1782 frameFormat_ = com.openxc.BinaryMessages.CanMessage.FrameFormat.STANDARD;
1787 // @@protoc_insertion_point(builder_scope:openxc.CanMessage)
1791 defaultInstance = new CanMessage(true);
1792 defaultInstance.initFields();
1795 // @@protoc_insertion_point(class_scope:openxc.CanMessage)
1798 public interface ControlCommandOrBuilder
1799 extends com.google.protobuf.MessageOrBuilder {
1801 // optional .openxc.ControlCommand.Type type = 1;
1803 com.openxc.BinaryMessages.ControlCommand.Type getType();
1805 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
1806 boolean hasDiagnosticRequest();
1807 com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest();
1808 com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder();
1810 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
1811 boolean hasPassthroughModeRequest();
1812 com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest();
1813 com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder();
1815 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
1816 boolean hasAcceptanceFilterBypassCommand();
1817 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand();
1818 com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder();
1820 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
1821 boolean hasPayloadFormatCommand();
1822 com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand();
1823 com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder();
1825 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
1826 boolean hasPredefinedObd2RequestsCommand();
1827 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand();
1828 com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder();
1830 // optional .openxc.ModemConfigurationCommand modem_configuration_command = 7;
1831 boolean hasModemConfigurationCommand();
1832 com.openxc.BinaryMessages.ModemConfigurationCommand getModemConfigurationCommand();
1833 com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder getModemConfigurationCommandOrBuilder();
1835 // optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;
1836 boolean hasRtcConfigurationCommand();
1837 com.openxc.BinaryMessages.RTCConfigurationCommand getRtcConfigurationCommand();
1838 com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder getRtcConfigurationCommandOrBuilder();
1840 public static final class ControlCommand extends
1841 com.google.protobuf.GeneratedMessage
1842 implements ControlCommandOrBuilder {
1843 // Use ControlCommand.newBuilder() to construct.
1844 private ControlCommand(Builder builder) {
1847 private ControlCommand(boolean noInit) {}
1849 private static final ControlCommand defaultInstance;
1850 public static ControlCommand getDefaultInstance() {
1851 return defaultInstance;
1854 public ControlCommand getDefaultInstanceForType() {
1855 return defaultInstance;
1858 public static final com.google.protobuf.Descriptors.Descriptor
1860 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
1863 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1864 internalGetFieldAccessorTable() {
1865 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable;
1869 implements com.google.protobuf.ProtocolMessageEnum {
1874 ACCEPTANCE_FILTER_BYPASS(4, 5),
1875 PAYLOAD_FORMAT(5, 6),
1876 PREDEFINED_OBD2_REQUESTS(6, 7),
1877 MODEM_CONFIGURATION(7, 8),
1878 RTC_CONFIGURATION(8, 9),
1879 SD_MOUNT_STATUS(9, 10),
1882 public static final int VERSION_VALUE = 1;
1883 public static final int DEVICE_ID_VALUE = 2;
1884 public static final int DIAGNOSTIC_VALUE = 3;
1885 public static final int PASSTHROUGH_VALUE = 4;
1886 public static final int ACCEPTANCE_FILTER_BYPASS_VALUE = 5;
1887 public static final int PAYLOAD_FORMAT_VALUE = 6;
1888 public static final int PREDEFINED_OBD2_REQUESTS_VALUE = 7;
1889 public static final int MODEM_CONFIGURATION_VALUE = 8;
1890 public static final int RTC_CONFIGURATION_VALUE = 9;
1891 public static final int SD_MOUNT_STATUS_VALUE = 10;
1894 public final int getNumber() { return value; }
1896 public static Type valueOf(int value) {
1898 case 1: return VERSION;
1899 case 2: return DEVICE_ID;
1900 case 3: return DIAGNOSTIC;
1901 case 4: return PASSTHROUGH;
1902 case 5: return ACCEPTANCE_FILTER_BYPASS;
1903 case 6: return PAYLOAD_FORMAT;
1904 case 7: return PREDEFINED_OBD2_REQUESTS;
1905 case 8: return MODEM_CONFIGURATION;
1906 case 9: return RTC_CONFIGURATION;
1907 case 10: return SD_MOUNT_STATUS;
1908 default: return null;
1912 public static com.google.protobuf.Internal.EnumLiteMap<Type>
1913 internalGetValueMap() {
1914 return internalValueMap;
1916 private static com.google.protobuf.Internal.EnumLiteMap<Type>
1918 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
1919 public Type findValueByNumber(int number) {
1920 return Type.valueOf(number);
1924 public final com.google.protobuf.Descriptors.EnumValueDescriptor
1925 getValueDescriptor() {
1926 return getDescriptor().getValues().get(index);
1928 public final com.google.protobuf.Descriptors.EnumDescriptor
1929 getDescriptorForType() {
1930 return getDescriptor();
1932 public static final com.google.protobuf.Descriptors.EnumDescriptor
1934 return com.openxc.BinaryMessages.ControlCommand.getDescriptor().getEnumTypes().get(0);
1937 private static final Type[] VALUES = {
1938 VERSION, DEVICE_ID, DIAGNOSTIC, PASSTHROUGH, ACCEPTANCE_FILTER_BYPASS, PAYLOAD_FORMAT, PREDEFINED_OBD2_REQUESTS, MODEM_CONFIGURATION, RTC_CONFIGURATION, SD_MOUNT_STATUS,
1941 public static Type valueOf(
1942 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1943 if (desc.getType() != getDescriptor()) {
1944 throw new java.lang.IllegalArgumentException(
1945 "EnumValueDescriptor is not for this type.");
1947 return VALUES[desc.getIndex()];
1950 private final int index;
1951 private final int value;
1953 private Type(int index, int value) {
1958 // @@protoc_insertion_point(enum_scope:openxc.ControlCommand.Type)
1961 private int bitField0_;
1962 // optional .openxc.ControlCommand.Type type = 1;
1963 public static final int TYPE_FIELD_NUMBER = 1;
1964 private com.openxc.BinaryMessages.ControlCommand.Type type_;
1965 public boolean hasType() {
1966 return ((bitField0_ & 0x00000001) == 0x00000001);
1968 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
1972 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
1973 public static final int DIAGNOSTIC_REQUEST_FIELD_NUMBER = 2;
1974 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_;
1975 public boolean hasDiagnosticRequest() {
1976 return ((bitField0_ & 0x00000002) == 0x00000002);
1978 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
1979 return diagnosticRequest_;
1981 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
1982 return diagnosticRequest_;
1985 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
1986 public static final int PASSTHROUGH_MODE_REQUEST_FIELD_NUMBER = 3;
1987 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_;
1988 public boolean hasPassthroughModeRequest() {
1989 return ((bitField0_ & 0x00000004) == 0x00000004);
1991 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
1992 return passthroughModeRequest_;
1994 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
1995 return passthroughModeRequest_;
1998 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
1999 public static final int ACCEPTANCE_FILTER_BYPASS_COMMAND_FIELD_NUMBER = 4;
2000 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_;
2001 public boolean hasAcceptanceFilterBypassCommand() {
2002 return ((bitField0_ & 0x00000008) == 0x00000008);
2004 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2005 return acceptanceFilterBypassCommand_;
2007 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2008 return acceptanceFilterBypassCommand_;
2011 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2012 public static final int PAYLOAD_FORMAT_COMMAND_FIELD_NUMBER = 5;
2013 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_;
2014 public boolean hasPayloadFormatCommand() {
2015 return ((bitField0_ & 0x00000010) == 0x00000010);
2017 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
2018 return payloadFormatCommand_;
2020 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
2021 return payloadFormatCommand_;
2024 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2025 public static final int PREDEFINED_OBD2_REQUESTS_COMMAND_FIELD_NUMBER = 6;
2026 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_;
2027 public boolean hasPredefinedObd2RequestsCommand() {
2028 return ((bitField0_ & 0x00000020) == 0x00000020);
2030 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
2031 return predefinedObd2RequestsCommand_;
2033 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
2034 return predefinedObd2RequestsCommand_;
2037 // optional .openxc.ModemConfigurationCommand modem_configuration_command = 7;
2038 public static final int MODEM_CONFIGURATION_COMMAND_FIELD_NUMBER = 7;
2039 private com.openxc.BinaryMessages.ModemConfigurationCommand modemConfigurationCommand_;
2040 public boolean hasModemConfigurationCommand() {
2041 return ((bitField0_ & 0x00000040) == 0x00000040);
2043 public com.openxc.BinaryMessages.ModemConfigurationCommand getModemConfigurationCommand() {
2044 return modemConfigurationCommand_;
2046 public com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder getModemConfigurationCommandOrBuilder() {
2047 return modemConfigurationCommand_;
2050 // optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;
2051 public static final int RTC_CONFIGURATION_COMMAND_FIELD_NUMBER = 8;
2052 private com.openxc.BinaryMessages.RTCConfigurationCommand rtcConfigurationCommand_;
2053 public boolean hasRtcConfigurationCommand() {
2054 return ((bitField0_ & 0x00000080) == 0x00000080);
2056 public com.openxc.BinaryMessages.RTCConfigurationCommand getRtcConfigurationCommand() {
2057 return rtcConfigurationCommand_;
2059 public com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder getRtcConfigurationCommandOrBuilder() {
2060 return rtcConfigurationCommand_;
2063 private void initFields() {
2064 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2065 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2066 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2067 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2068 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2069 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2070 modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
2071 rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
2073 private byte memoizedIsInitialized = -1;
2074 public final boolean isInitialized() {
2075 byte isInitialized = memoizedIsInitialized;
2076 if (isInitialized != -1) return isInitialized == 1;
2078 memoizedIsInitialized = 1;
2082 public void writeTo(com.google.protobuf.CodedOutputStream output)
2083 throws java.io.IOException {
2084 getSerializedSize();
2085 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2086 output.writeEnum(1, type_.getNumber());
2088 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2089 output.writeMessage(2, diagnosticRequest_);
2091 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2092 output.writeMessage(3, passthroughModeRequest_);
2094 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2095 output.writeMessage(4, acceptanceFilterBypassCommand_);
2097 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2098 output.writeMessage(5, payloadFormatCommand_);
2100 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2101 output.writeMessage(6, predefinedObd2RequestsCommand_);
2103 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2104 output.writeMessage(7, modemConfigurationCommand_);
2106 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2107 output.writeMessage(8, rtcConfigurationCommand_);
2109 getUnknownFields().writeTo(output);
2112 private int memoizedSerializedSize = -1;
2113 public int getSerializedSize() {
2114 int size = memoizedSerializedSize;
2115 if (size != -1) return size;
2118 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2119 size += com.google.protobuf.CodedOutputStream
2120 .computeEnumSize(1, type_.getNumber());
2122 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2123 size += com.google.protobuf.CodedOutputStream
2124 .computeMessageSize(2, diagnosticRequest_);
2126 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2127 size += com.google.protobuf.CodedOutputStream
2128 .computeMessageSize(3, passthroughModeRequest_);
2130 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2131 size += com.google.protobuf.CodedOutputStream
2132 .computeMessageSize(4, acceptanceFilterBypassCommand_);
2134 if (((bitField0_ & 0x00000010) == 0x00000010)) {
2135 size += com.google.protobuf.CodedOutputStream
2136 .computeMessageSize(5, payloadFormatCommand_);
2138 if (((bitField0_ & 0x00000020) == 0x00000020)) {
2139 size += com.google.protobuf.CodedOutputStream
2140 .computeMessageSize(6, predefinedObd2RequestsCommand_);
2142 if (((bitField0_ & 0x00000040) == 0x00000040)) {
2143 size += com.google.protobuf.CodedOutputStream
2144 .computeMessageSize(7, modemConfigurationCommand_);
2146 if (((bitField0_ & 0x00000080) == 0x00000080)) {
2147 size += com.google.protobuf.CodedOutputStream
2148 .computeMessageSize(8, rtcConfigurationCommand_);
2150 size += getUnknownFields().getSerializedSize();
2151 memoizedSerializedSize = size;
2155 private static final long serialVersionUID = 0L;
2157 protected java.lang.Object writeReplace()
2158 throws java.io.ObjectStreamException {
2159 return super.writeReplace();
2162 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2163 com.google.protobuf.ByteString data)
2164 throws com.google.protobuf.InvalidProtocolBufferException {
2165 return newBuilder().mergeFrom(data).buildParsed();
2167 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2168 com.google.protobuf.ByteString data,
2169 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2170 throws com.google.protobuf.InvalidProtocolBufferException {
2171 return newBuilder().mergeFrom(data, extensionRegistry)
2174 public static com.openxc.BinaryMessages.ControlCommand parseFrom(byte[] data)
2175 throws com.google.protobuf.InvalidProtocolBufferException {
2176 return newBuilder().mergeFrom(data).buildParsed();
2178 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2180 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2181 throws com.google.protobuf.InvalidProtocolBufferException {
2182 return newBuilder().mergeFrom(data, extensionRegistry)
2185 public static com.openxc.BinaryMessages.ControlCommand parseFrom(java.io.InputStream input)
2186 throws java.io.IOException {
2187 return newBuilder().mergeFrom(input).buildParsed();
2189 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2190 java.io.InputStream input,
2191 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2192 throws java.io.IOException {
2193 return newBuilder().mergeFrom(input, extensionRegistry)
2196 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(java.io.InputStream input)
2197 throws java.io.IOException {
2198 Builder builder = newBuilder();
2199 if (builder.mergeDelimitedFrom(input)) {
2200 return builder.buildParsed();
2205 public static com.openxc.BinaryMessages.ControlCommand parseDelimitedFrom(
2206 java.io.InputStream input,
2207 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2208 throws java.io.IOException {
2209 Builder builder = newBuilder();
2210 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
2211 return builder.buildParsed();
2216 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2217 com.google.protobuf.CodedInputStream input)
2218 throws java.io.IOException {
2219 return newBuilder().mergeFrom(input).buildParsed();
2221 public static com.openxc.BinaryMessages.ControlCommand parseFrom(
2222 com.google.protobuf.CodedInputStream input,
2223 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2224 throws java.io.IOException {
2225 return newBuilder().mergeFrom(input, extensionRegistry)
2229 public static Builder newBuilder() { return Builder.create(); }
2230 public Builder newBuilderForType() { return newBuilder(); }
2231 public static Builder newBuilder(com.openxc.BinaryMessages.ControlCommand prototype) {
2232 return newBuilder().mergeFrom(prototype);
2234 public Builder toBuilder() { return newBuilder(this); }
2237 protected Builder newBuilderForType(
2238 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2239 Builder builder = new Builder(parent);
2242 public static final class Builder extends
2243 com.google.protobuf.GeneratedMessage.Builder<Builder>
2244 implements com.openxc.BinaryMessages.ControlCommandOrBuilder {
2245 public static final com.google.protobuf.Descriptors.Descriptor
2247 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_descriptor;
2250 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2251 internalGetFieldAccessorTable() {
2252 return com.openxc.BinaryMessages.internal_static_openxc_ControlCommand_fieldAccessorTable;
2255 // Construct using com.openxc.BinaryMessages.ControlCommand.newBuilder()
2257 maybeForceBuilderInitialization();
2260 private Builder(BuilderParent parent) {
2262 maybeForceBuilderInitialization();
2264 private void maybeForceBuilderInitialization() {
2265 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2266 getDiagnosticRequestFieldBuilder();
2267 getPassthroughModeRequestFieldBuilder();
2268 getAcceptanceFilterBypassCommandFieldBuilder();
2269 getPayloadFormatCommandFieldBuilder();
2270 getPredefinedObd2RequestsCommandFieldBuilder();
2271 getModemConfigurationCommandFieldBuilder();
2272 getRtcConfigurationCommandFieldBuilder();
2275 private static Builder create() {
2276 return new Builder();
2279 public Builder clear() {
2281 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2282 bitField0_ = (bitField0_ & ~0x00000001);
2283 if (diagnosticRequestBuilder_ == null) {
2284 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2286 diagnosticRequestBuilder_.clear();
2288 bitField0_ = (bitField0_ & ~0x00000002);
2289 if (passthroughModeRequestBuilder_ == null) {
2290 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2292 passthroughModeRequestBuilder_.clear();
2294 bitField0_ = (bitField0_ & ~0x00000004);
2295 if (acceptanceFilterBypassCommandBuilder_ == null) {
2296 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2298 acceptanceFilterBypassCommandBuilder_.clear();
2300 bitField0_ = (bitField0_ & ~0x00000008);
2301 if (payloadFormatCommandBuilder_ == null) {
2302 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2304 payloadFormatCommandBuilder_.clear();
2306 bitField0_ = (bitField0_ & ~0x00000010);
2307 if (predefinedObd2RequestsCommandBuilder_ == null) {
2308 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2310 predefinedObd2RequestsCommandBuilder_.clear();
2312 bitField0_ = (bitField0_ & ~0x00000020);
2313 if (modemConfigurationCommandBuilder_ == null) {
2314 modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
2316 modemConfigurationCommandBuilder_.clear();
2318 bitField0_ = (bitField0_ & ~0x00000040);
2319 if (rtcConfigurationCommandBuilder_ == null) {
2320 rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
2322 rtcConfigurationCommandBuilder_.clear();
2324 bitField0_ = (bitField0_ & ~0x00000080);
2328 public Builder clone() {
2329 return create().mergeFrom(buildPartial());
2332 public com.google.protobuf.Descriptors.Descriptor
2333 getDescriptorForType() {
2334 return com.openxc.BinaryMessages.ControlCommand.getDescriptor();
2337 public com.openxc.BinaryMessages.ControlCommand getDefaultInstanceForType() {
2338 return com.openxc.BinaryMessages.ControlCommand.getDefaultInstance();
2341 public com.openxc.BinaryMessages.ControlCommand build() {
2342 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2343 if (!result.isInitialized()) {
2344 throw newUninitializedMessageException(result);
2349 private com.openxc.BinaryMessages.ControlCommand buildParsed()
2350 throws com.google.protobuf.InvalidProtocolBufferException {
2351 com.openxc.BinaryMessages.ControlCommand result = buildPartial();
2352 if (!result.isInitialized()) {
2353 throw newUninitializedMessageException(
2354 result).asInvalidProtocolBufferException();
2359 public com.openxc.BinaryMessages.ControlCommand buildPartial() {
2360 com.openxc.BinaryMessages.ControlCommand result = new com.openxc.BinaryMessages.ControlCommand(this);
2361 int from_bitField0_ = bitField0_;
2362 int to_bitField0_ = 0;
2363 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
2364 to_bitField0_ |= 0x00000001;
2366 result.type_ = type_;
2367 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2368 to_bitField0_ |= 0x00000002;
2370 if (diagnosticRequestBuilder_ == null) {
2371 result.diagnosticRequest_ = diagnosticRequest_;
2373 result.diagnosticRequest_ = diagnosticRequestBuilder_.build();
2375 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
2376 to_bitField0_ |= 0x00000004;
2378 if (passthroughModeRequestBuilder_ == null) {
2379 result.passthroughModeRequest_ = passthroughModeRequest_;
2381 result.passthroughModeRequest_ = passthroughModeRequestBuilder_.build();
2383 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
2384 to_bitField0_ |= 0x00000008;
2386 if (acceptanceFilterBypassCommandBuilder_ == null) {
2387 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommand_;
2389 result.acceptanceFilterBypassCommand_ = acceptanceFilterBypassCommandBuilder_.build();
2391 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
2392 to_bitField0_ |= 0x00000010;
2394 if (payloadFormatCommandBuilder_ == null) {
2395 result.payloadFormatCommand_ = payloadFormatCommand_;
2397 result.payloadFormatCommand_ = payloadFormatCommandBuilder_.build();
2399 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
2400 to_bitField0_ |= 0x00000020;
2402 if (predefinedObd2RequestsCommandBuilder_ == null) {
2403 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommand_;
2405 result.predefinedObd2RequestsCommand_ = predefinedObd2RequestsCommandBuilder_.build();
2407 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
2408 to_bitField0_ |= 0x00000040;
2410 if (modemConfigurationCommandBuilder_ == null) {
2411 result.modemConfigurationCommand_ = modemConfigurationCommand_;
2413 result.modemConfigurationCommand_ = modemConfigurationCommandBuilder_.build();
2415 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
2416 to_bitField0_ |= 0x00000080;
2418 if (rtcConfigurationCommandBuilder_ == null) {
2419 result.rtcConfigurationCommand_ = rtcConfigurationCommand_;
2421 result.rtcConfigurationCommand_ = rtcConfigurationCommandBuilder_.build();
2423 result.bitField0_ = to_bitField0_;
2428 public Builder mergeFrom(com.google.protobuf.Message other) {
2429 if (other instanceof com.openxc.BinaryMessages.ControlCommand) {
2430 return mergeFrom((com.openxc.BinaryMessages.ControlCommand)other);
2432 super.mergeFrom(other);
2437 public Builder mergeFrom(com.openxc.BinaryMessages.ControlCommand other) {
2438 if (other == com.openxc.BinaryMessages.ControlCommand.getDefaultInstance()) return this;
2439 if (other.hasType()) {
2440 setType(other.getType());
2442 if (other.hasDiagnosticRequest()) {
2443 mergeDiagnosticRequest(other.getDiagnosticRequest());
2445 if (other.hasPassthroughModeRequest()) {
2446 mergePassthroughModeRequest(other.getPassthroughModeRequest());
2448 if (other.hasAcceptanceFilterBypassCommand()) {
2449 mergeAcceptanceFilterBypassCommand(other.getAcceptanceFilterBypassCommand());
2451 if (other.hasPayloadFormatCommand()) {
2452 mergePayloadFormatCommand(other.getPayloadFormatCommand());
2454 if (other.hasPredefinedObd2RequestsCommand()) {
2455 mergePredefinedObd2RequestsCommand(other.getPredefinedObd2RequestsCommand());
2457 if (other.hasModemConfigurationCommand()) {
2458 mergeModemConfigurationCommand(other.getModemConfigurationCommand());
2460 if (other.hasRtcConfigurationCommand()) {
2461 mergeRtcConfigurationCommand(other.getRtcConfigurationCommand());
2463 this.mergeUnknownFields(other.getUnknownFields());
2467 public final boolean isInitialized() {
2471 public Builder mergeFrom(
2472 com.google.protobuf.CodedInputStream input,
2473 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2474 throws java.io.IOException {
2475 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2476 com.google.protobuf.UnknownFieldSet.newBuilder(
2477 this.getUnknownFields());
2479 int tag = input.readTag();
2482 this.setUnknownFields(unknownFields.build());
2486 if (!parseUnknownField(input, unknownFields,
2487 extensionRegistry, tag)) {
2488 this.setUnknownFields(unknownFields.build());
2495 int rawValue = input.readEnum();
2496 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
2497 if (value == null) {
2498 unknownFields.mergeVarintField(1, rawValue);
2500 bitField0_ |= 0x00000001;
2506 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder subBuilder = com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder();
2507 if (hasDiagnosticRequest()) {
2508 subBuilder.mergeFrom(getDiagnosticRequest());
2510 input.readMessage(subBuilder, extensionRegistry);
2511 setDiagnosticRequest(subBuilder.buildPartial());
2515 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder subBuilder = com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder();
2516 if (hasPassthroughModeRequest()) {
2517 subBuilder.mergeFrom(getPassthroughModeRequest());
2519 input.readMessage(subBuilder, extensionRegistry);
2520 setPassthroughModeRequest(subBuilder.buildPartial());
2524 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder subBuilder = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder();
2525 if (hasAcceptanceFilterBypassCommand()) {
2526 subBuilder.mergeFrom(getAcceptanceFilterBypassCommand());
2528 input.readMessage(subBuilder, extensionRegistry);
2529 setAcceptanceFilterBypassCommand(subBuilder.buildPartial());
2533 com.openxc.BinaryMessages.PayloadFormatCommand.Builder subBuilder = com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder();
2534 if (hasPayloadFormatCommand()) {
2535 subBuilder.mergeFrom(getPayloadFormatCommand());
2537 input.readMessage(subBuilder, extensionRegistry);
2538 setPayloadFormatCommand(subBuilder.buildPartial());
2542 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder subBuilder = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder();
2543 if (hasPredefinedObd2RequestsCommand()) {
2544 subBuilder.mergeFrom(getPredefinedObd2RequestsCommand());
2546 input.readMessage(subBuilder, extensionRegistry);
2547 setPredefinedObd2RequestsCommand(subBuilder.buildPartial());
2551 com.openxc.BinaryMessages.ModemConfigurationCommand.Builder subBuilder = com.openxc.BinaryMessages.ModemConfigurationCommand.newBuilder();
2552 if (hasModemConfigurationCommand()) {
2553 subBuilder.mergeFrom(getModemConfigurationCommand());
2555 input.readMessage(subBuilder, extensionRegistry);
2556 setModemConfigurationCommand(subBuilder.buildPartial());
2560 com.openxc.BinaryMessages.RTCConfigurationCommand.Builder subBuilder = com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder();
2561 if (hasRtcConfigurationCommand()) {
2562 subBuilder.mergeFrom(getRtcConfigurationCommand());
2564 input.readMessage(subBuilder, extensionRegistry);
2565 setRtcConfigurationCommand(subBuilder.buildPartial());
2572 private int bitField0_;
2574 // optional .openxc.ControlCommand.Type type = 1;
2575 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2576 public boolean hasType() {
2577 return ((bitField0_ & 0x00000001) == 0x00000001);
2579 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
2582 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
2583 if (value == null) {
2584 throw new NullPointerException();
2586 bitField0_ |= 0x00000001;
2591 public Builder clearType() {
2592 bitField0_ = (bitField0_ & ~0x00000001);
2593 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
2598 // optional .openxc.DiagnosticControlCommand diagnostic_request = 2;
2599 private com.openxc.BinaryMessages.DiagnosticControlCommand diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2600 private com.google.protobuf.SingleFieldBuilder<
2601 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder> diagnosticRequestBuilder_;
2602 public boolean hasDiagnosticRequest() {
2603 return ((bitField0_ & 0x00000002) == 0x00000002);
2605 public com.openxc.BinaryMessages.DiagnosticControlCommand getDiagnosticRequest() {
2606 if (diagnosticRequestBuilder_ == null) {
2607 return diagnosticRequest_;
2609 return diagnosticRequestBuilder_.getMessage();
2612 public Builder setDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2613 if (diagnosticRequestBuilder_ == null) {
2614 if (value == null) {
2615 throw new NullPointerException();
2617 diagnosticRequest_ = value;
2620 diagnosticRequestBuilder_.setMessage(value);
2622 bitField0_ |= 0x00000002;
2625 public Builder setDiagnosticRequest(
2626 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder builderForValue) {
2627 if (diagnosticRequestBuilder_ == null) {
2628 diagnosticRequest_ = builderForValue.build();
2631 diagnosticRequestBuilder_.setMessage(builderForValue.build());
2633 bitField0_ |= 0x00000002;
2636 public Builder mergeDiagnosticRequest(com.openxc.BinaryMessages.DiagnosticControlCommand value) {
2637 if (diagnosticRequestBuilder_ == null) {
2638 if (((bitField0_ & 0x00000002) == 0x00000002) &&
2639 diagnosticRequest_ != com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) {
2640 diagnosticRequest_ =
2641 com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder(diagnosticRequest_).mergeFrom(value).buildPartial();
2643 diagnosticRequest_ = value;
2647 diagnosticRequestBuilder_.mergeFrom(value);
2649 bitField0_ |= 0x00000002;
2652 public Builder clearDiagnosticRequest() {
2653 if (diagnosticRequestBuilder_ == null) {
2654 diagnosticRequest_ = com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
2657 diagnosticRequestBuilder_.clear();
2659 bitField0_ = (bitField0_ & ~0x00000002);
2662 public com.openxc.BinaryMessages.DiagnosticControlCommand.Builder getDiagnosticRequestBuilder() {
2663 bitField0_ |= 0x00000002;
2665 return getDiagnosticRequestFieldBuilder().getBuilder();
2667 public com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder getDiagnosticRequestOrBuilder() {
2668 if (diagnosticRequestBuilder_ != null) {
2669 return diagnosticRequestBuilder_.getMessageOrBuilder();
2671 return diagnosticRequest_;
2674 private com.google.protobuf.SingleFieldBuilder<
2675 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>
2676 getDiagnosticRequestFieldBuilder() {
2677 if (diagnosticRequestBuilder_ == null) {
2678 diagnosticRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2679 com.openxc.BinaryMessages.DiagnosticControlCommand, com.openxc.BinaryMessages.DiagnosticControlCommand.Builder, com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder>(
2681 getParentForChildren(),
2683 diagnosticRequest_ = null;
2685 return diagnosticRequestBuilder_;
2688 // optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;
2689 private com.openxc.BinaryMessages.PassthroughModeControlCommand passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2690 private com.google.protobuf.SingleFieldBuilder<
2691 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder> passthroughModeRequestBuilder_;
2692 public boolean hasPassthroughModeRequest() {
2693 return ((bitField0_ & 0x00000004) == 0x00000004);
2695 public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() {
2696 if (passthroughModeRequestBuilder_ == null) {
2697 return passthroughModeRequest_;
2699 return passthroughModeRequestBuilder_.getMessage();
2702 public Builder setPassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
2703 if (passthroughModeRequestBuilder_ == null) {
2704 if (value == null) {
2705 throw new NullPointerException();
2707 passthroughModeRequest_ = value;
2710 passthroughModeRequestBuilder_.setMessage(value);
2712 bitField0_ |= 0x00000004;
2715 public Builder setPassthroughModeRequest(
2716 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder builderForValue) {
2717 if (passthroughModeRequestBuilder_ == null) {
2718 passthroughModeRequest_ = builderForValue.build();
2721 passthroughModeRequestBuilder_.setMessage(builderForValue.build());
2723 bitField0_ |= 0x00000004;
2726 public Builder mergePassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) {
2727 if (passthroughModeRequestBuilder_ == null) {
2728 if (((bitField0_ & 0x00000004) == 0x00000004) &&
2729 passthroughModeRequest_ != com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) {
2730 passthroughModeRequest_ =
2731 com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder(passthroughModeRequest_).mergeFrom(value).buildPartial();
2733 passthroughModeRequest_ = value;
2737 passthroughModeRequestBuilder_.mergeFrom(value);
2739 bitField0_ |= 0x00000004;
2742 public Builder clearPassthroughModeRequest() {
2743 if (passthroughModeRequestBuilder_ == null) {
2744 passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
2747 passthroughModeRequestBuilder_.clear();
2749 bitField0_ = (bitField0_ & ~0x00000004);
2752 public com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder getPassthroughModeRequestBuilder() {
2753 bitField0_ |= 0x00000004;
2755 return getPassthroughModeRequestFieldBuilder().getBuilder();
2757 public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() {
2758 if (passthroughModeRequestBuilder_ != null) {
2759 return passthroughModeRequestBuilder_.getMessageOrBuilder();
2761 return passthroughModeRequest_;
2764 private com.google.protobuf.SingleFieldBuilder<
2765 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>
2766 getPassthroughModeRequestFieldBuilder() {
2767 if (passthroughModeRequestBuilder_ == null) {
2768 passthroughModeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2769 com.openxc.BinaryMessages.PassthroughModeControlCommand, com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder, com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder>(
2770 passthroughModeRequest_,
2771 getParentForChildren(),
2773 passthroughModeRequest_ = null;
2775 return passthroughModeRequestBuilder_;
2778 // optional .openxc.AcceptanceFilterBypassCommand acceptance_filter_bypass_command = 4;
2779 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2780 private com.google.protobuf.SingleFieldBuilder<
2781 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder> acceptanceFilterBypassCommandBuilder_;
2782 public boolean hasAcceptanceFilterBypassCommand() {
2783 return ((bitField0_ & 0x00000008) == 0x00000008);
2785 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getAcceptanceFilterBypassCommand() {
2786 if (acceptanceFilterBypassCommandBuilder_ == null) {
2787 return acceptanceFilterBypassCommand_;
2789 return acceptanceFilterBypassCommandBuilder_.getMessage();
2792 public Builder setAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
2793 if (acceptanceFilterBypassCommandBuilder_ == null) {
2794 if (value == null) {
2795 throw new NullPointerException();
2797 acceptanceFilterBypassCommand_ = value;
2800 acceptanceFilterBypassCommandBuilder_.setMessage(value);
2802 bitField0_ |= 0x00000008;
2805 public Builder setAcceptanceFilterBypassCommand(
2806 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder builderForValue) {
2807 if (acceptanceFilterBypassCommandBuilder_ == null) {
2808 acceptanceFilterBypassCommand_ = builderForValue.build();
2811 acceptanceFilterBypassCommandBuilder_.setMessage(builderForValue.build());
2813 bitField0_ |= 0x00000008;
2816 public Builder mergeAcceptanceFilterBypassCommand(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand value) {
2817 if (acceptanceFilterBypassCommandBuilder_ == null) {
2818 if (((bitField0_ & 0x00000008) == 0x00000008) &&
2819 acceptanceFilterBypassCommand_ != com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) {
2820 acceptanceFilterBypassCommand_ =
2821 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder(acceptanceFilterBypassCommand_).mergeFrom(value).buildPartial();
2823 acceptanceFilterBypassCommand_ = value;
2827 acceptanceFilterBypassCommandBuilder_.mergeFrom(value);
2829 bitField0_ |= 0x00000008;
2832 public Builder clearAcceptanceFilterBypassCommand() {
2833 if (acceptanceFilterBypassCommandBuilder_ == null) {
2834 acceptanceFilterBypassCommand_ = com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
2837 acceptanceFilterBypassCommandBuilder_.clear();
2839 bitField0_ = (bitField0_ & ~0x00000008);
2842 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder getAcceptanceFilterBypassCommandBuilder() {
2843 bitField0_ |= 0x00000008;
2845 return getAcceptanceFilterBypassCommandFieldBuilder().getBuilder();
2847 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder getAcceptanceFilterBypassCommandOrBuilder() {
2848 if (acceptanceFilterBypassCommandBuilder_ != null) {
2849 return acceptanceFilterBypassCommandBuilder_.getMessageOrBuilder();
2851 return acceptanceFilterBypassCommand_;
2854 private com.google.protobuf.SingleFieldBuilder<
2855 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>
2856 getAcceptanceFilterBypassCommandFieldBuilder() {
2857 if (acceptanceFilterBypassCommandBuilder_ == null) {
2858 acceptanceFilterBypassCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2859 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand, com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder, com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder>(
2860 acceptanceFilterBypassCommand_,
2861 getParentForChildren(),
2863 acceptanceFilterBypassCommand_ = null;
2865 return acceptanceFilterBypassCommandBuilder_;
2868 // optional .openxc.PayloadFormatCommand payload_format_command = 5;
2869 private com.openxc.BinaryMessages.PayloadFormatCommand payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2870 private com.google.protobuf.SingleFieldBuilder<
2871 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder> payloadFormatCommandBuilder_;
2872 public boolean hasPayloadFormatCommand() {
2873 return ((bitField0_ & 0x00000010) == 0x00000010);
2875 public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() {
2876 if (payloadFormatCommandBuilder_ == null) {
2877 return payloadFormatCommand_;
2879 return payloadFormatCommandBuilder_.getMessage();
2882 public Builder setPayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
2883 if (payloadFormatCommandBuilder_ == null) {
2884 if (value == null) {
2885 throw new NullPointerException();
2887 payloadFormatCommand_ = value;
2890 payloadFormatCommandBuilder_.setMessage(value);
2892 bitField0_ |= 0x00000010;
2895 public Builder setPayloadFormatCommand(
2896 com.openxc.BinaryMessages.PayloadFormatCommand.Builder builderForValue) {
2897 if (payloadFormatCommandBuilder_ == null) {
2898 payloadFormatCommand_ = builderForValue.build();
2901 payloadFormatCommandBuilder_.setMessage(builderForValue.build());
2903 bitField0_ |= 0x00000010;
2906 public Builder mergePayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) {
2907 if (payloadFormatCommandBuilder_ == null) {
2908 if (((bitField0_ & 0x00000010) == 0x00000010) &&
2909 payloadFormatCommand_ != com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) {
2910 payloadFormatCommand_ =
2911 com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder(payloadFormatCommand_).mergeFrom(value).buildPartial();
2913 payloadFormatCommand_ = value;
2917 payloadFormatCommandBuilder_.mergeFrom(value);
2919 bitField0_ |= 0x00000010;
2922 public Builder clearPayloadFormatCommand() {
2923 if (payloadFormatCommandBuilder_ == null) {
2924 payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
2927 payloadFormatCommandBuilder_.clear();
2929 bitField0_ = (bitField0_ & ~0x00000010);
2932 public com.openxc.BinaryMessages.PayloadFormatCommand.Builder getPayloadFormatCommandBuilder() {
2933 bitField0_ |= 0x00000010;
2935 return getPayloadFormatCommandFieldBuilder().getBuilder();
2937 public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() {
2938 if (payloadFormatCommandBuilder_ != null) {
2939 return payloadFormatCommandBuilder_.getMessageOrBuilder();
2941 return payloadFormatCommand_;
2944 private com.google.protobuf.SingleFieldBuilder<
2945 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>
2946 getPayloadFormatCommandFieldBuilder() {
2947 if (payloadFormatCommandBuilder_ == null) {
2948 payloadFormatCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
2949 com.openxc.BinaryMessages.PayloadFormatCommand, com.openxc.BinaryMessages.PayloadFormatCommand.Builder, com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder>(
2950 payloadFormatCommand_,
2951 getParentForChildren(),
2953 payloadFormatCommand_ = null;
2955 return payloadFormatCommandBuilder_;
2958 // optional .openxc.PredefinedObd2RequestsCommand predefined_obd2_requests_command = 6;
2959 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
2960 private com.google.protobuf.SingleFieldBuilder<
2961 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder> predefinedObd2RequestsCommandBuilder_;
2962 public boolean hasPredefinedObd2RequestsCommand() {
2963 return ((bitField0_ & 0x00000020) == 0x00000020);
2965 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getPredefinedObd2RequestsCommand() {
2966 if (predefinedObd2RequestsCommandBuilder_ == null) {
2967 return predefinedObd2RequestsCommand_;
2969 return predefinedObd2RequestsCommandBuilder_.getMessage();
2972 public Builder setPredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
2973 if (predefinedObd2RequestsCommandBuilder_ == null) {
2974 if (value == null) {
2975 throw new NullPointerException();
2977 predefinedObd2RequestsCommand_ = value;
2980 predefinedObd2RequestsCommandBuilder_.setMessage(value);
2982 bitField0_ |= 0x00000020;
2985 public Builder setPredefinedObd2RequestsCommand(
2986 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder builderForValue) {
2987 if (predefinedObd2RequestsCommandBuilder_ == null) {
2988 predefinedObd2RequestsCommand_ = builderForValue.build();
2991 predefinedObd2RequestsCommandBuilder_.setMessage(builderForValue.build());
2993 bitField0_ |= 0x00000020;
2996 public Builder mergePredefinedObd2RequestsCommand(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand value) {
2997 if (predefinedObd2RequestsCommandBuilder_ == null) {
2998 if (((bitField0_ & 0x00000020) == 0x00000020) &&
2999 predefinedObd2RequestsCommand_ != com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) {
3000 predefinedObd2RequestsCommand_ =
3001 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder(predefinedObd2RequestsCommand_).mergeFrom(value).buildPartial();
3003 predefinedObd2RequestsCommand_ = value;
3007 predefinedObd2RequestsCommandBuilder_.mergeFrom(value);
3009 bitField0_ |= 0x00000020;
3012 public Builder clearPredefinedObd2RequestsCommand() {
3013 if (predefinedObd2RequestsCommandBuilder_ == null) {
3014 predefinedObd2RequestsCommand_ = com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
3017 predefinedObd2RequestsCommandBuilder_.clear();
3019 bitField0_ = (bitField0_ & ~0x00000020);
3022 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder getPredefinedObd2RequestsCommandBuilder() {
3023 bitField0_ |= 0x00000020;
3025 return getPredefinedObd2RequestsCommandFieldBuilder().getBuilder();
3027 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder getPredefinedObd2RequestsCommandOrBuilder() {
3028 if (predefinedObd2RequestsCommandBuilder_ != null) {
3029 return predefinedObd2RequestsCommandBuilder_.getMessageOrBuilder();
3031 return predefinedObd2RequestsCommand_;
3034 private com.google.protobuf.SingleFieldBuilder<
3035 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>
3036 getPredefinedObd2RequestsCommandFieldBuilder() {
3037 if (predefinedObd2RequestsCommandBuilder_ == null) {
3038 predefinedObd2RequestsCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3039 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand, com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder, com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder>(
3040 predefinedObd2RequestsCommand_,
3041 getParentForChildren(),
3043 predefinedObd2RequestsCommand_ = null;
3045 return predefinedObd2RequestsCommandBuilder_;
3048 // optional .openxc.ModemConfigurationCommand modem_configuration_command = 7;
3049 private com.openxc.BinaryMessages.ModemConfigurationCommand modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
3050 private com.google.protobuf.SingleFieldBuilder<
3051 com.openxc.BinaryMessages.ModemConfigurationCommand, com.openxc.BinaryMessages.ModemConfigurationCommand.Builder, com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder> modemConfigurationCommandBuilder_;
3052 public boolean hasModemConfigurationCommand() {
3053 return ((bitField0_ & 0x00000040) == 0x00000040);
3055 public com.openxc.BinaryMessages.ModemConfigurationCommand getModemConfigurationCommand() {
3056 if (modemConfigurationCommandBuilder_ == null) {
3057 return modemConfigurationCommand_;
3059 return modemConfigurationCommandBuilder_.getMessage();
3062 public Builder setModemConfigurationCommand(com.openxc.BinaryMessages.ModemConfigurationCommand value) {
3063 if (modemConfigurationCommandBuilder_ == null) {
3064 if (value == null) {
3065 throw new NullPointerException();
3067 modemConfigurationCommand_ = value;
3070 modemConfigurationCommandBuilder_.setMessage(value);
3072 bitField0_ |= 0x00000040;
3075 public Builder setModemConfigurationCommand(
3076 com.openxc.BinaryMessages.ModemConfigurationCommand.Builder builderForValue) {
3077 if (modemConfigurationCommandBuilder_ == null) {
3078 modemConfigurationCommand_ = builderForValue.build();
3081 modemConfigurationCommandBuilder_.setMessage(builderForValue.build());
3083 bitField0_ |= 0x00000040;
3086 public Builder mergeModemConfigurationCommand(com.openxc.BinaryMessages.ModemConfigurationCommand value) {
3087 if (modemConfigurationCommandBuilder_ == null) {
3088 if (((bitField0_ & 0x00000040) == 0x00000040) &&
3089 modemConfigurationCommand_ != com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance()) {
3090 modemConfigurationCommand_ =
3091 com.openxc.BinaryMessages.ModemConfigurationCommand.newBuilder(modemConfigurationCommand_).mergeFrom(value).buildPartial();
3093 modemConfigurationCommand_ = value;
3097 modemConfigurationCommandBuilder_.mergeFrom(value);
3099 bitField0_ |= 0x00000040;
3102 public Builder clearModemConfigurationCommand() {
3103 if (modemConfigurationCommandBuilder_ == null) {
3104 modemConfigurationCommand_ = com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
3107 modemConfigurationCommandBuilder_.clear();
3109 bitField0_ = (bitField0_ & ~0x00000040);
3112 public com.openxc.BinaryMessages.ModemConfigurationCommand.Builder getModemConfigurationCommandBuilder() {
3113 bitField0_ |= 0x00000040;
3115 return getModemConfigurationCommandFieldBuilder().getBuilder();
3117 public com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder getModemConfigurationCommandOrBuilder() {
3118 if (modemConfigurationCommandBuilder_ != null) {
3119 return modemConfigurationCommandBuilder_.getMessageOrBuilder();
3121 return modemConfigurationCommand_;
3124 private com.google.protobuf.SingleFieldBuilder<
3125 com.openxc.BinaryMessages.ModemConfigurationCommand, com.openxc.BinaryMessages.ModemConfigurationCommand.Builder, com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder>
3126 getModemConfigurationCommandFieldBuilder() {
3127 if (modemConfigurationCommandBuilder_ == null) {
3128 modemConfigurationCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3129 com.openxc.BinaryMessages.ModemConfigurationCommand, com.openxc.BinaryMessages.ModemConfigurationCommand.Builder, com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder>(
3130 modemConfigurationCommand_,
3131 getParentForChildren(),
3133 modemConfigurationCommand_ = null;
3135 return modemConfigurationCommandBuilder_;
3138 // optional .openxc.RTCConfigurationCommand rtc_configuration_command = 8;
3139 private com.openxc.BinaryMessages.RTCConfigurationCommand rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
3140 private com.google.protobuf.SingleFieldBuilder<
3141 com.openxc.BinaryMessages.RTCConfigurationCommand, com.openxc.BinaryMessages.RTCConfigurationCommand.Builder, com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder> rtcConfigurationCommandBuilder_;
3142 public boolean hasRtcConfigurationCommand() {
3143 return ((bitField0_ & 0x00000080) == 0x00000080);
3145 public com.openxc.BinaryMessages.RTCConfigurationCommand getRtcConfigurationCommand() {
3146 if (rtcConfigurationCommandBuilder_ == null) {
3147 return rtcConfigurationCommand_;
3149 return rtcConfigurationCommandBuilder_.getMessage();
3152 public Builder setRtcConfigurationCommand(com.openxc.BinaryMessages.RTCConfigurationCommand value) {
3153 if (rtcConfigurationCommandBuilder_ == null) {
3154 if (value == null) {
3155 throw new NullPointerException();
3157 rtcConfigurationCommand_ = value;
3160 rtcConfigurationCommandBuilder_.setMessage(value);
3162 bitField0_ |= 0x00000080;
3165 public Builder setRtcConfigurationCommand(
3166 com.openxc.BinaryMessages.RTCConfigurationCommand.Builder builderForValue) {
3167 if (rtcConfigurationCommandBuilder_ == null) {
3168 rtcConfigurationCommand_ = builderForValue.build();
3171 rtcConfigurationCommandBuilder_.setMessage(builderForValue.build());
3173 bitField0_ |= 0x00000080;
3176 public Builder mergeRtcConfigurationCommand(com.openxc.BinaryMessages.RTCConfigurationCommand value) {
3177 if (rtcConfigurationCommandBuilder_ == null) {
3178 if (((bitField0_ & 0x00000080) == 0x00000080) &&
3179 rtcConfigurationCommand_ != com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance()) {
3180 rtcConfigurationCommand_ =
3181 com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder(rtcConfigurationCommand_).mergeFrom(value).buildPartial();
3183 rtcConfigurationCommand_ = value;
3187 rtcConfigurationCommandBuilder_.mergeFrom(value);
3189 bitField0_ |= 0x00000080;
3192 public Builder clearRtcConfigurationCommand() {
3193 if (rtcConfigurationCommandBuilder_ == null) {
3194 rtcConfigurationCommand_ = com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
3197 rtcConfigurationCommandBuilder_.clear();
3199 bitField0_ = (bitField0_ & ~0x00000080);
3202 public com.openxc.BinaryMessages.RTCConfigurationCommand.Builder getRtcConfigurationCommandBuilder() {
3203 bitField0_ |= 0x00000080;
3205 return getRtcConfigurationCommandFieldBuilder().getBuilder();
3207 public com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder getRtcConfigurationCommandOrBuilder() {
3208 if (rtcConfigurationCommandBuilder_ != null) {
3209 return rtcConfigurationCommandBuilder_.getMessageOrBuilder();
3211 return rtcConfigurationCommand_;
3214 private com.google.protobuf.SingleFieldBuilder<
3215 com.openxc.BinaryMessages.RTCConfigurationCommand, com.openxc.BinaryMessages.RTCConfigurationCommand.Builder, com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder>
3216 getRtcConfigurationCommandFieldBuilder() {
3217 if (rtcConfigurationCommandBuilder_ == null) {
3218 rtcConfigurationCommandBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3219 com.openxc.BinaryMessages.RTCConfigurationCommand, com.openxc.BinaryMessages.RTCConfigurationCommand.Builder, com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder>(
3220 rtcConfigurationCommand_,
3221 getParentForChildren(),
3223 rtcConfigurationCommand_ = null;
3225 return rtcConfigurationCommandBuilder_;
3228 // @@protoc_insertion_point(builder_scope:openxc.ControlCommand)
3232 defaultInstance = new ControlCommand(true);
3233 defaultInstance.initFields();
3236 // @@protoc_insertion_point(class_scope:openxc.ControlCommand)
3239 public interface DiagnosticControlCommandOrBuilder
3240 extends com.google.protobuf.MessageOrBuilder {
3242 // optional .openxc.DiagnosticRequest request = 1;
3243 boolean hasRequest();
3244 com.openxc.BinaryMessages.DiagnosticRequest getRequest();
3245 com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder();
3247 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3248 boolean hasAction();
3249 com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction();
3251 public static final class DiagnosticControlCommand extends
3252 com.google.protobuf.GeneratedMessage
3253 implements DiagnosticControlCommandOrBuilder {
3254 // Use DiagnosticControlCommand.newBuilder() to construct.
3255 private DiagnosticControlCommand(Builder builder) {
3258 private DiagnosticControlCommand(boolean noInit) {}
3260 private static final DiagnosticControlCommand defaultInstance;
3261 public static DiagnosticControlCommand getDefaultInstance() {
3262 return defaultInstance;
3265 public DiagnosticControlCommand getDefaultInstanceForType() {
3266 return defaultInstance;
3269 public static final com.google.protobuf.Descriptors.Descriptor
3271 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3274 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3275 internalGetFieldAccessorTable() {
3276 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
3280 implements com.google.protobuf.ProtocolMessageEnum {
3285 public static final int ADD_VALUE = 1;
3286 public static final int CANCEL_VALUE = 2;
3289 public final int getNumber() { return value; }
3291 public static Action valueOf(int value) {
3294 case 2: return CANCEL;
3295 default: return null;
3299 public static com.google.protobuf.Internal.EnumLiteMap<Action>
3300 internalGetValueMap() {
3301 return internalValueMap;
3303 private static com.google.protobuf.Internal.EnumLiteMap<Action>
3305 new com.google.protobuf.Internal.EnumLiteMap<Action>() {
3306 public Action findValueByNumber(int number) {
3307 return Action.valueOf(number);
3311 public final com.google.protobuf.Descriptors.EnumValueDescriptor
3312 getValueDescriptor() {
3313 return getDescriptor().getValues().get(index);
3315 public final com.google.protobuf.Descriptors.EnumDescriptor
3316 getDescriptorForType() {
3317 return getDescriptor();
3319 public static final com.google.protobuf.Descriptors.EnumDescriptor
3321 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor().getEnumTypes().get(0);
3324 private static final Action[] VALUES = {
3328 public static Action valueOf(
3329 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
3330 if (desc.getType() != getDescriptor()) {
3331 throw new java.lang.IllegalArgumentException(
3332 "EnumValueDescriptor is not for this type.");
3334 return VALUES[desc.getIndex()];
3337 private final int index;
3338 private final int value;
3340 private Action(int index, int value) {
3345 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticControlCommand.Action)
3348 private int bitField0_;
3349 // optional .openxc.DiagnosticRequest request = 1;
3350 public static final int REQUEST_FIELD_NUMBER = 1;
3351 private com.openxc.BinaryMessages.DiagnosticRequest request_;
3352 public boolean hasRequest() {
3353 return ((bitField0_ & 0x00000001) == 0x00000001);
3355 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3358 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3362 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3363 public static final int ACTION_FIELD_NUMBER = 2;
3364 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_;
3365 public boolean hasAction() {
3366 return ((bitField0_ & 0x00000002) == 0x00000002);
3368 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3372 private void initFields() {
3373 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3374 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3376 private byte memoizedIsInitialized = -1;
3377 public final boolean isInitialized() {
3378 byte isInitialized = memoizedIsInitialized;
3379 if (isInitialized != -1) return isInitialized == 1;
3381 memoizedIsInitialized = 1;
3385 public void writeTo(com.google.protobuf.CodedOutputStream output)
3386 throws java.io.IOException {
3387 getSerializedSize();
3388 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3389 output.writeMessage(1, request_);
3391 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3392 output.writeEnum(2, action_.getNumber());
3394 getUnknownFields().writeTo(output);
3397 private int memoizedSerializedSize = -1;
3398 public int getSerializedSize() {
3399 int size = memoizedSerializedSize;
3400 if (size != -1) return size;
3403 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3404 size += com.google.protobuf.CodedOutputStream
3405 .computeMessageSize(1, request_);
3407 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3408 size += com.google.protobuf.CodedOutputStream
3409 .computeEnumSize(2, action_.getNumber());
3411 size += getUnknownFields().getSerializedSize();
3412 memoizedSerializedSize = size;
3416 private static final long serialVersionUID = 0L;
3418 protected java.lang.Object writeReplace()
3419 throws java.io.ObjectStreamException {
3420 return super.writeReplace();
3423 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3424 com.google.protobuf.ByteString data)
3425 throws com.google.protobuf.InvalidProtocolBufferException {
3426 return newBuilder().mergeFrom(data).buildParsed();
3428 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3429 com.google.protobuf.ByteString data,
3430 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3431 throws com.google.protobuf.InvalidProtocolBufferException {
3432 return newBuilder().mergeFrom(data, extensionRegistry)
3435 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(byte[] data)
3436 throws com.google.protobuf.InvalidProtocolBufferException {
3437 return newBuilder().mergeFrom(data).buildParsed();
3439 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3441 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3442 throws com.google.protobuf.InvalidProtocolBufferException {
3443 return newBuilder().mergeFrom(data, extensionRegistry)
3446 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(java.io.InputStream input)
3447 throws java.io.IOException {
3448 return newBuilder().mergeFrom(input).buildParsed();
3450 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3451 java.io.InputStream input,
3452 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3453 throws java.io.IOException {
3454 return newBuilder().mergeFrom(input, extensionRegistry)
3457 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(java.io.InputStream input)
3458 throws java.io.IOException {
3459 Builder builder = newBuilder();
3460 if (builder.mergeDelimitedFrom(input)) {
3461 return builder.buildParsed();
3466 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseDelimitedFrom(
3467 java.io.InputStream input,
3468 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3469 throws java.io.IOException {
3470 Builder builder = newBuilder();
3471 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
3472 return builder.buildParsed();
3477 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3478 com.google.protobuf.CodedInputStream input)
3479 throws java.io.IOException {
3480 return newBuilder().mergeFrom(input).buildParsed();
3482 public static com.openxc.BinaryMessages.DiagnosticControlCommand parseFrom(
3483 com.google.protobuf.CodedInputStream input,
3484 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3485 throws java.io.IOException {
3486 return newBuilder().mergeFrom(input, extensionRegistry)
3490 public static Builder newBuilder() { return Builder.create(); }
3491 public Builder newBuilderForType() { return newBuilder(); }
3492 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticControlCommand prototype) {
3493 return newBuilder().mergeFrom(prototype);
3495 public Builder toBuilder() { return newBuilder(this); }
3498 protected Builder newBuilderForType(
3499 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3500 Builder builder = new Builder(parent);
3503 public static final class Builder extends
3504 com.google.protobuf.GeneratedMessage.Builder<Builder>
3505 implements com.openxc.BinaryMessages.DiagnosticControlCommandOrBuilder {
3506 public static final com.google.protobuf.Descriptors.Descriptor
3508 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_descriptor;
3511 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3512 internalGetFieldAccessorTable() {
3513 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
3516 // Construct using com.openxc.BinaryMessages.DiagnosticControlCommand.newBuilder()
3518 maybeForceBuilderInitialization();
3521 private Builder(BuilderParent parent) {
3523 maybeForceBuilderInitialization();
3525 private void maybeForceBuilderInitialization() {
3526 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3527 getRequestFieldBuilder();
3530 private static Builder create() {
3531 return new Builder();
3534 public Builder clear() {
3536 if (requestBuilder_ == null) {
3537 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3539 requestBuilder_.clear();
3541 bitField0_ = (bitField0_ & ~0x00000001);
3542 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3543 bitField0_ = (bitField0_ & ~0x00000002);
3547 public Builder clone() {
3548 return create().mergeFrom(buildPartial());
3551 public com.google.protobuf.Descriptors.Descriptor
3552 getDescriptorForType() {
3553 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDescriptor();
3556 public com.openxc.BinaryMessages.DiagnosticControlCommand getDefaultInstanceForType() {
3557 return com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance();
3560 public com.openxc.BinaryMessages.DiagnosticControlCommand build() {
3561 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
3562 if (!result.isInitialized()) {
3563 throw newUninitializedMessageException(result);
3568 private com.openxc.BinaryMessages.DiagnosticControlCommand buildParsed()
3569 throws com.google.protobuf.InvalidProtocolBufferException {
3570 com.openxc.BinaryMessages.DiagnosticControlCommand result = buildPartial();
3571 if (!result.isInitialized()) {
3572 throw newUninitializedMessageException(
3573 result).asInvalidProtocolBufferException();
3578 public com.openxc.BinaryMessages.DiagnosticControlCommand buildPartial() {
3579 com.openxc.BinaryMessages.DiagnosticControlCommand result = new com.openxc.BinaryMessages.DiagnosticControlCommand(this);
3580 int from_bitField0_ = bitField0_;
3581 int to_bitField0_ = 0;
3582 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3583 to_bitField0_ |= 0x00000001;
3585 if (requestBuilder_ == null) {
3586 result.request_ = request_;
3588 result.request_ = requestBuilder_.build();
3590 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
3591 to_bitField0_ |= 0x00000002;
3593 result.action_ = action_;
3594 result.bitField0_ = to_bitField0_;
3599 public Builder mergeFrom(com.google.protobuf.Message other) {
3600 if (other instanceof com.openxc.BinaryMessages.DiagnosticControlCommand) {
3601 return mergeFrom((com.openxc.BinaryMessages.DiagnosticControlCommand)other);
3603 super.mergeFrom(other);
3608 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticControlCommand other) {
3609 if (other == com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) return this;
3610 if (other.hasRequest()) {
3611 mergeRequest(other.getRequest());
3613 if (other.hasAction()) {
3614 setAction(other.getAction());
3616 this.mergeUnknownFields(other.getUnknownFields());
3620 public final boolean isInitialized() {
3624 public Builder mergeFrom(
3625 com.google.protobuf.CodedInputStream input,
3626 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3627 throws java.io.IOException {
3628 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3629 com.google.protobuf.UnknownFieldSet.newBuilder(
3630 this.getUnknownFields());
3632 int tag = input.readTag();
3635 this.setUnknownFields(unknownFields.build());
3639 if (!parseUnknownField(input, unknownFields,
3640 extensionRegistry, tag)) {
3641 this.setUnknownFields(unknownFields.build());
3648 com.openxc.BinaryMessages.DiagnosticRequest.Builder subBuilder = com.openxc.BinaryMessages.DiagnosticRequest.newBuilder();
3650 subBuilder.mergeFrom(getRequest());
3652 input.readMessage(subBuilder, extensionRegistry);
3653 setRequest(subBuilder.buildPartial());
3657 int rawValue = input.readEnum();
3658 com.openxc.BinaryMessages.DiagnosticControlCommand.Action value = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.valueOf(rawValue);
3659 if (value == null) {
3660 unknownFields.mergeVarintField(2, rawValue);
3662 bitField0_ |= 0x00000002;
3671 private int bitField0_;
3673 // optional .openxc.DiagnosticRequest request = 1;
3674 private com.openxc.BinaryMessages.DiagnosticRequest request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3675 private com.google.protobuf.SingleFieldBuilder<
3676 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder> requestBuilder_;
3677 public boolean hasRequest() {
3678 return ((bitField0_ & 0x00000001) == 0x00000001);
3680 public com.openxc.BinaryMessages.DiagnosticRequest getRequest() {
3681 if (requestBuilder_ == null) {
3684 return requestBuilder_.getMessage();
3687 public Builder setRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
3688 if (requestBuilder_ == null) {
3689 if (value == null) {
3690 throw new NullPointerException();
3695 requestBuilder_.setMessage(value);
3697 bitField0_ |= 0x00000001;
3700 public Builder setRequest(
3701 com.openxc.BinaryMessages.DiagnosticRequest.Builder builderForValue) {
3702 if (requestBuilder_ == null) {
3703 request_ = builderForValue.build();
3706 requestBuilder_.setMessage(builderForValue.build());
3708 bitField0_ |= 0x00000001;
3711 public Builder mergeRequest(com.openxc.BinaryMessages.DiagnosticRequest value) {
3712 if (requestBuilder_ == null) {
3713 if (((bitField0_ & 0x00000001) == 0x00000001) &&
3714 request_ != com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) {
3716 com.openxc.BinaryMessages.DiagnosticRequest.newBuilder(request_).mergeFrom(value).buildPartial();
3722 requestBuilder_.mergeFrom(value);
3724 bitField0_ |= 0x00000001;
3727 public Builder clearRequest() {
3728 if (requestBuilder_ == null) {
3729 request_ = com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
3732 requestBuilder_.clear();
3734 bitField0_ = (bitField0_ & ~0x00000001);
3737 public com.openxc.BinaryMessages.DiagnosticRequest.Builder getRequestBuilder() {
3738 bitField0_ |= 0x00000001;
3740 return getRequestFieldBuilder().getBuilder();
3742 public com.openxc.BinaryMessages.DiagnosticRequestOrBuilder getRequestOrBuilder() {
3743 if (requestBuilder_ != null) {
3744 return requestBuilder_.getMessageOrBuilder();
3749 private com.google.protobuf.SingleFieldBuilder<
3750 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>
3751 getRequestFieldBuilder() {
3752 if (requestBuilder_ == null) {
3753 requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3754 com.openxc.BinaryMessages.DiagnosticRequest, com.openxc.BinaryMessages.DiagnosticRequest.Builder, com.openxc.BinaryMessages.DiagnosticRequestOrBuilder>(
3756 getParentForChildren(),
3760 return requestBuilder_;
3763 // optional .openxc.DiagnosticControlCommand.Action action = 2;
3764 private com.openxc.BinaryMessages.DiagnosticControlCommand.Action action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3765 public boolean hasAction() {
3766 return ((bitField0_ & 0x00000002) == 0x00000002);
3768 public com.openxc.BinaryMessages.DiagnosticControlCommand.Action getAction() {
3771 public Builder setAction(com.openxc.BinaryMessages.DiagnosticControlCommand.Action value) {
3772 if (value == null) {
3773 throw new NullPointerException();
3775 bitField0_ |= 0x00000002;
3780 public Builder clearAction() {
3781 bitField0_ = (bitField0_ & ~0x00000002);
3782 action_ = com.openxc.BinaryMessages.DiagnosticControlCommand.Action.ADD;
3787 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticControlCommand)
3791 defaultInstance = new DiagnosticControlCommand(true);
3792 defaultInstance.initFields();
3795 // @@protoc_insertion_point(class_scope:openxc.DiagnosticControlCommand)
3798 public interface PassthroughModeControlCommandOrBuilder
3799 extends com.google.protobuf.MessageOrBuilder {
3801 // optional int32 bus = 1;
3805 // optional bool enabled = 2;
3806 boolean hasEnabled();
3807 boolean getEnabled();
3809 public static final class PassthroughModeControlCommand extends
3810 com.google.protobuf.GeneratedMessage
3811 implements PassthroughModeControlCommandOrBuilder {
3812 // Use PassthroughModeControlCommand.newBuilder() to construct.
3813 private PassthroughModeControlCommand(Builder builder) {
3816 private PassthroughModeControlCommand(boolean noInit) {}
3818 private static final PassthroughModeControlCommand defaultInstance;
3819 public static PassthroughModeControlCommand getDefaultInstance() {
3820 return defaultInstance;
3823 public PassthroughModeControlCommand getDefaultInstanceForType() {
3824 return defaultInstance;
3827 public static final com.google.protobuf.Descriptors.Descriptor
3829 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
3832 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3833 internalGetFieldAccessorTable() {
3834 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
3837 private int bitField0_;
3838 // optional int32 bus = 1;
3839 public static final int BUS_FIELD_NUMBER = 1;
3841 public boolean hasBus() {
3842 return ((bitField0_ & 0x00000001) == 0x00000001);
3844 public int getBus() {
3848 // optional bool enabled = 2;
3849 public static final int ENABLED_FIELD_NUMBER = 2;
3850 private boolean enabled_;
3851 public boolean hasEnabled() {
3852 return ((bitField0_ & 0x00000002) == 0x00000002);
3854 public boolean getEnabled() {
3858 private void initFields() {
3862 private byte memoizedIsInitialized = -1;
3863 public final boolean isInitialized() {
3864 byte isInitialized = memoizedIsInitialized;
3865 if (isInitialized != -1) return isInitialized == 1;
3867 memoizedIsInitialized = 1;
3871 public void writeTo(com.google.protobuf.CodedOutputStream output)
3872 throws java.io.IOException {
3873 getSerializedSize();
3874 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3875 output.writeInt32(1, bus_);
3877 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3878 output.writeBool(2, enabled_);
3880 getUnknownFields().writeTo(output);
3883 private int memoizedSerializedSize = -1;
3884 public int getSerializedSize() {
3885 int size = memoizedSerializedSize;
3886 if (size != -1) return size;
3889 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3890 size += com.google.protobuf.CodedOutputStream
3891 .computeInt32Size(1, bus_);
3893 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3894 size += com.google.protobuf.CodedOutputStream
3895 .computeBoolSize(2, enabled_);
3897 size += getUnknownFields().getSerializedSize();
3898 memoizedSerializedSize = size;
3902 private static final long serialVersionUID = 0L;
3904 protected java.lang.Object writeReplace()
3905 throws java.io.ObjectStreamException {
3906 return super.writeReplace();
3909 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3910 com.google.protobuf.ByteString data)
3911 throws com.google.protobuf.InvalidProtocolBufferException {
3912 return newBuilder().mergeFrom(data).buildParsed();
3914 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3915 com.google.protobuf.ByteString data,
3916 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3917 throws com.google.protobuf.InvalidProtocolBufferException {
3918 return newBuilder().mergeFrom(data, extensionRegistry)
3921 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(byte[] data)
3922 throws com.google.protobuf.InvalidProtocolBufferException {
3923 return newBuilder().mergeFrom(data).buildParsed();
3925 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3927 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3928 throws com.google.protobuf.InvalidProtocolBufferException {
3929 return newBuilder().mergeFrom(data, extensionRegistry)
3932 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(java.io.InputStream input)
3933 throws java.io.IOException {
3934 return newBuilder().mergeFrom(input).buildParsed();
3936 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3937 java.io.InputStream input,
3938 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3939 throws java.io.IOException {
3940 return newBuilder().mergeFrom(input, extensionRegistry)
3943 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(java.io.InputStream input)
3944 throws java.io.IOException {
3945 Builder builder = newBuilder();
3946 if (builder.mergeDelimitedFrom(input)) {
3947 return builder.buildParsed();
3952 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseDelimitedFrom(
3953 java.io.InputStream input,
3954 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3955 throws java.io.IOException {
3956 Builder builder = newBuilder();
3957 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
3958 return builder.buildParsed();
3963 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3964 com.google.protobuf.CodedInputStream input)
3965 throws java.io.IOException {
3966 return newBuilder().mergeFrom(input).buildParsed();
3968 public static com.openxc.BinaryMessages.PassthroughModeControlCommand parseFrom(
3969 com.google.protobuf.CodedInputStream input,
3970 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3971 throws java.io.IOException {
3972 return newBuilder().mergeFrom(input, extensionRegistry)
3976 public static Builder newBuilder() { return Builder.create(); }
3977 public Builder newBuilderForType() { return newBuilder(); }
3978 public static Builder newBuilder(com.openxc.BinaryMessages.PassthroughModeControlCommand prototype) {
3979 return newBuilder().mergeFrom(prototype);
3981 public Builder toBuilder() { return newBuilder(this); }
3984 protected Builder newBuilderForType(
3985 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3986 Builder builder = new Builder(parent);
3989 public static final class Builder extends
3990 com.google.protobuf.GeneratedMessage.Builder<Builder>
3991 implements com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder {
3992 public static final com.google.protobuf.Descriptors.Descriptor
3994 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_descriptor;
3997 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3998 internalGetFieldAccessorTable() {
3999 return com.openxc.BinaryMessages.internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
4002 // Construct using com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder()
4004 maybeForceBuilderInitialization();
4007 private Builder(BuilderParent parent) {
4009 maybeForceBuilderInitialization();
4011 private void maybeForceBuilderInitialization() {
4012 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4015 private static Builder create() {
4016 return new Builder();
4019 public Builder clear() {
4022 bitField0_ = (bitField0_ & ~0x00000001);
4024 bitField0_ = (bitField0_ & ~0x00000002);
4028 public Builder clone() {
4029 return create().mergeFrom(buildPartial());
4032 public com.google.protobuf.Descriptors.Descriptor
4033 getDescriptorForType() {
4034 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDescriptor();
4037 public com.openxc.BinaryMessages.PassthroughModeControlCommand getDefaultInstanceForType() {
4038 return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance();
4041 public com.openxc.BinaryMessages.PassthroughModeControlCommand build() {
4042 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4043 if (!result.isInitialized()) {
4044 throw newUninitializedMessageException(result);
4049 private com.openxc.BinaryMessages.PassthroughModeControlCommand buildParsed()
4050 throws com.google.protobuf.InvalidProtocolBufferException {
4051 com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial();
4052 if (!result.isInitialized()) {
4053 throw newUninitializedMessageException(
4054 result).asInvalidProtocolBufferException();
4059 public com.openxc.BinaryMessages.PassthroughModeControlCommand buildPartial() {
4060 com.openxc.BinaryMessages.PassthroughModeControlCommand result = new com.openxc.BinaryMessages.PassthroughModeControlCommand(this);
4061 int from_bitField0_ = bitField0_;
4062 int to_bitField0_ = 0;
4063 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4064 to_bitField0_ |= 0x00000001;
4067 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4068 to_bitField0_ |= 0x00000002;
4070 result.enabled_ = enabled_;
4071 result.bitField0_ = to_bitField0_;
4076 public Builder mergeFrom(com.google.protobuf.Message other) {
4077 if (other instanceof com.openxc.BinaryMessages.PassthroughModeControlCommand) {
4078 return mergeFrom((com.openxc.BinaryMessages.PassthroughModeControlCommand)other);
4080 super.mergeFrom(other);
4085 public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) {
4086 if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this;
4087 if (other.hasBus()) {
4088 setBus(other.getBus());
4090 if (other.hasEnabled()) {
4091 setEnabled(other.getEnabled());
4093 this.mergeUnknownFields(other.getUnknownFields());
4097 public final boolean isInitialized() {
4101 public Builder mergeFrom(
4102 com.google.protobuf.CodedInputStream input,
4103 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4104 throws java.io.IOException {
4105 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4106 com.google.protobuf.UnknownFieldSet.newBuilder(
4107 this.getUnknownFields());
4109 int tag = input.readTag();
4112 this.setUnknownFields(unknownFields.build());
4116 if (!parseUnknownField(input, unknownFields,
4117 extensionRegistry, tag)) {
4118 this.setUnknownFields(unknownFields.build());
4125 bitField0_ |= 0x00000001;
4126 bus_ = input.readInt32();
4130 bitField0_ |= 0x00000002;
4131 enabled_ = input.readBool();
4138 private int bitField0_;
4140 // optional int32 bus = 1;
4142 public boolean hasBus() {
4143 return ((bitField0_ & 0x00000001) == 0x00000001);
4145 public int getBus() {
4148 public Builder setBus(int value) {
4149 bitField0_ |= 0x00000001;
4154 public Builder clearBus() {
4155 bitField0_ = (bitField0_ & ~0x00000001);
4161 // optional bool enabled = 2;
4162 private boolean enabled_ ;
4163 public boolean hasEnabled() {
4164 return ((bitField0_ & 0x00000002) == 0x00000002);
4166 public boolean getEnabled() {
4169 public Builder setEnabled(boolean value) {
4170 bitField0_ |= 0x00000002;
4175 public Builder clearEnabled() {
4176 bitField0_ = (bitField0_ & ~0x00000002);
4182 // @@protoc_insertion_point(builder_scope:openxc.PassthroughModeControlCommand)
4186 defaultInstance = new PassthroughModeControlCommand(true);
4187 defaultInstance.initFields();
4190 // @@protoc_insertion_point(class_scope:openxc.PassthroughModeControlCommand)
4193 public interface AcceptanceFilterBypassCommandOrBuilder
4194 extends com.google.protobuf.MessageOrBuilder {
4196 // optional int32 bus = 1;
4200 // optional bool bypass = 2;
4201 boolean hasBypass();
4202 boolean getBypass();
4204 public static final class AcceptanceFilterBypassCommand extends
4205 com.google.protobuf.GeneratedMessage
4206 implements AcceptanceFilterBypassCommandOrBuilder {
4207 // Use AcceptanceFilterBypassCommand.newBuilder() to construct.
4208 private AcceptanceFilterBypassCommand(Builder builder) {
4211 private AcceptanceFilterBypassCommand(boolean noInit) {}
4213 private static final AcceptanceFilterBypassCommand defaultInstance;
4214 public static AcceptanceFilterBypassCommand getDefaultInstance() {
4215 return defaultInstance;
4218 public AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4219 return defaultInstance;
4222 public static final com.google.protobuf.Descriptors.Descriptor
4224 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4227 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4228 internalGetFieldAccessorTable() {
4229 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
4232 private int bitField0_;
4233 // optional int32 bus = 1;
4234 public static final int BUS_FIELD_NUMBER = 1;
4236 public boolean hasBus() {
4237 return ((bitField0_ & 0x00000001) == 0x00000001);
4239 public int getBus() {
4243 // optional bool bypass = 2;
4244 public static final int BYPASS_FIELD_NUMBER = 2;
4245 private boolean bypass_;
4246 public boolean hasBypass() {
4247 return ((bitField0_ & 0x00000002) == 0x00000002);
4249 public boolean getBypass() {
4253 private void initFields() {
4257 private byte memoizedIsInitialized = -1;
4258 public final boolean isInitialized() {
4259 byte isInitialized = memoizedIsInitialized;
4260 if (isInitialized != -1) return isInitialized == 1;
4262 memoizedIsInitialized = 1;
4266 public void writeTo(com.google.protobuf.CodedOutputStream output)
4267 throws java.io.IOException {
4268 getSerializedSize();
4269 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4270 output.writeInt32(1, bus_);
4272 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4273 output.writeBool(2, bypass_);
4275 getUnknownFields().writeTo(output);
4278 private int memoizedSerializedSize = -1;
4279 public int getSerializedSize() {
4280 int size = memoizedSerializedSize;
4281 if (size != -1) return size;
4284 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4285 size += com.google.protobuf.CodedOutputStream
4286 .computeInt32Size(1, bus_);
4288 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4289 size += com.google.protobuf.CodedOutputStream
4290 .computeBoolSize(2, bypass_);
4292 size += getUnknownFields().getSerializedSize();
4293 memoizedSerializedSize = size;
4297 private static final long serialVersionUID = 0L;
4299 protected java.lang.Object writeReplace()
4300 throws java.io.ObjectStreamException {
4301 return super.writeReplace();
4304 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4305 com.google.protobuf.ByteString data)
4306 throws com.google.protobuf.InvalidProtocolBufferException {
4307 return newBuilder().mergeFrom(data).buildParsed();
4309 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4310 com.google.protobuf.ByteString data,
4311 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4312 throws com.google.protobuf.InvalidProtocolBufferException {
4313 return newBuilder().mergeFrom(data, extensionRegistry)
4316 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(byte[] data)
4317 throws com.google.protobuf.InvalidProtocolBufferException {
4318 return newBuilder().mergeFrom(data).buildParsed();
4320 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4322 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4323 throws com.google.protobuf.InvalidProtocolBufferException {
4324 return newBuilder().mergeFrom(data, extensionRegistry)
4327 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(java.io.InputStream input)
4328 throws java.io.IOException {
4329 return newBuilder().mergeFrom(input).buildParsed();
4331 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4332 java.io.InputStream input,
4333 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4334 throws java.io.IOException {
4335 return newBuilder().mergeFrom(input, extensionRegistry)
4338 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(java.io.InputStream input)
4339 throws java.io.IOException {
4340 Builder builder = newBuilder();
4341 if (builder.mergeDelimitedFrom(input)) {
4342 return builder.buildParsed();
4347 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseDelimitedFrom(
4348 java.io.InputStream input,
4349 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4350 throws java.io.IOException {
4351 Builder builder = newBuilder();
4352 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
4353 return builder.buildParsed();
4358 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4359 com.google.protobuf.CodedInputStream input)
4360 throws java.io.IOException {
4361 return newBuilder().mergeFrom(input).buildParsed();
4363 public static com.openxc.BinaryMessages.AcceptanceFilterBypassCommand parseFrom(
4364 com.google.protobuf.CodedInputStream input,
4365 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4366 throws java.io.IOException {
4367 return newBuilder().mergeFrom(input, extensionRegistry)
4371 public static Builder newBuilder() { return Builder.create(); }
4372 public Builder newBuilderForType() { return newBuilder(); }
4373 public static Builder newBuilder(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand prototype) {
4374 return newBuilder().mergeFrom(prototype);
4376 public Builder toBuilder() { return newBuilder(this); }
4379 protected Builder newBuilderForType(
4380 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4381 Builder builder = new Builder(parent);
4384 public static final class Builder extends
4385 com.google.protobuf.GeneratedMessage.Builder<Builder>
4386 implements com.openxc.BinaryMessages.AcceptanceFilterBypassCommandOrBuilder {
4387 public static final com.google.protobuf.Descriptors.Descriptor
4389 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
4392 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4393 internalGetFieldAccessorTable() {
4394 return com.openxc.BinaryMessages.internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
4397 // Construct using com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.newBuilder()
4399 maybeForceBuilderInitialization();
4402 private Builder(BuilderParent parent) {
4404 maybeForceBuilderInitialization();
4406 private void maybeForceBuilderInitialization() {
4407 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4410 private static Builder create() {
4411 return new Builder();
4414 public Builder clear() {
4417 bitField0_ = (bitField0_ & ~0x00000001);
4419 bitField0_ = (bitField0_ & ~0x00000002);
4423 public Builder clone() {
4424 return create().mergeFrom(buildPartial());
4427 public com.google.protobuf.Descriptors.Descriptor
4428 getDescriptorForType() {
4429 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDescriptor();
4432 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand getDefaultInstanceForType() {
4433 return com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance();
4436 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand build() {
4437 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
4438 if (!result.isInitialized()) {
4439 throw newUninitializedMessageException(result);
4444 private com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildParsed()
4445 throws com.google.protobuf.InvalidProtocolBufferException {
4446 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = buildPartial();
4447 if (!result.isInitialized()) {
4448 throw newUninitializedMessageException(
4449 result).asInvalidProtocolBufferException();
4454 public com.openxc.BinaryMessages.AcceptanceFilterBypassCommand buildPartial() {
4455 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand result = new com.openxc.BinaryMessages.AcceptanceFilterBypassCommand(this);
4456 int from_bitField0_ = bitField0_;
4457 int to_bitField0_ = 0;
4458 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4459 to_bitField0_ |= 0x00000001;
4462 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4463 to_bitField0_ |= 0x00000002;
4465 result.bypass_ = bypass_;
4466 result.bitField0_ = to_bitField0_;
4471 public Builder mergeFrom(com.google.protobuf.Message other) {
4472 if (other instanceof com.openxc.BinaryMessages.AcceptanceFilterBypassCommand) {
4473 return mergeFrom((com.openxc.BinaryMessages.AcceptanceFilterBypassCommand)other);
4475 super.mergeFrom(other);
4480 public Builder mergeFrom(com.openxc.BinaryMessages.AcceptanceFilterBypassCommand other) {
4481 if (other == com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.getDefaultInstance()) return this;
4482 if (other.hasBus()) {
4483 setBus(other.getBus());
4485 if (other.hasBypass()) {
4486 setBypass(other.getBypass());
4488 this.mergeUnknownFields(other.getUnknownFields());
4492 public final boolean isInitialized() {
4496 public Builder mergeFrom(
4497 com.google.protobuf.CodedInputStream input,
4498 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4499 throws java.io.IOException {
4500 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4501 com.google.protobuf.UnknownFieldSet.newBuilder(
4502 this.getUnknownFields());
4504 int tag = input.readTag();
4507 this.setUnknownFields(unknownFields.build());
4511 if (!parseUnknownField(input, unknownFields,
4512 extensionRegistry, tag)) {
4513 this.setUnknownFields(unknownFields.build());
4520 bitField0_ |= 0x00000001;
4521 bus_ = input.readInt32();
4525 bitField0_ |= 0x00000002;
4526 bypass_ = input.readBool();
4533 private int bitField0_;
4535 // optional int32 bus = 1;
4537 public boolean hasBus() {
4538 return ((bitField0_ & 0x00000001) == 0x00000001);
4540 public int getBus() {
4543 public Builder setBus(int value) {
4544 bitField0_ |= 0x00000001;
4549 public Builder clearBus() {
4550 bitField0_ = (bitField0_ & ~0x00000001);
4556 // optional bool bypass = 2;
4557 private boolean bypass_ ;
4558 public boolean hasBypass() {
4559 return ((bitField0_ & 0x00000002) == 0x00000002);
4561 public boolean getBypass() {
4564 public Builder setBypass(boolean value) {
4565 bitField0_ |= 0x00000002;
4570 public Builder clearBypass() {
4571 bitField0_ = (bitField0_ & ~0x00000002);
4577 // @@protoc_insertion_point(builder_scope:openxc.AcceptanceFilterBypassCommand)
4581 defaultInstance = new AcceptanceFilterBypassCommand(true);
4582 defaultInstance.initFields();
4585 // @@protoc_insertion_point(class_scope:openxc.AcceptanceFilterBypassCommand)
4588 public interface PayloadFormatCommandOrBuilder
4589 extends com.google.protobuf.MessageOrBuilder {
4591 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
4592 boolean hasFormat();
4593 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat();
4595 public static final class PayloadFormatCommand extends
4596 com.google.protobuf.GeneratedMessage
4597 implements PayloadFormatCommandOrBuilder {
4598 // Use PayloadFormatCommand.newBuilder() to construct.
4599 private PayloadFormatCommand(Builder builder) {
4602 private PayloadFormatCommand(boolean noInit) {}
4604 private static final PayloadFormatCommand defaultInstance;
4605 public static PayloadFormatCommand getDefaultInstance() {
4606 return defaultInstance;
4609 public PayloadFormatCommand getDefaultInstanceForType() {
4610 return defaultInstance;
4613 public static final com.google.protobuf.Descriptors.Descriptor
4615 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
4618 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4619 internalGetFieldAccessorTable() {
4620 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
4623 public enum PayloadFormat
4624 implements com.google.protobuf.ProtocolMessageEnum {
4630 public static final int JSON_VALUE = 1;
4631 public static final int PROTOBUF_VALUE = 2;
4632 public static final int MESSAGEPACK_VALUE = 3;
4635 public final int getNumber() { return value; }
4637 public static PayloadFormat valueOf(int value) {
4639 case 1: return JSON;
4640 case 2: return PROTOBUF;
4641 case 3: return MESSAGEPACK;
4642 default: return null;
4646 public static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
4647 internalGetValueMap() {
4648 return internalValueMap;
4650 private static com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>
4652 new com.google.protobuf.Internal.EnumLiteMap<PayloadFormat>() {
4653 public PayloadFormat findValueByNumber(int number) {
4654 return PayloadFormat.valueOf(number);
4658 public final com.google.protobuf.Descriptors.EnumValueDescriptor
4659 getValueDescriptor() {
4660 return getDescriptor().getValues().get(index);
4662 public final com.google.protobuf.Descriptors.EnumDescriptor
4663 getDescriptorForType() {
4664 return getDescriptor();
4666 public static final com.google.protobuf.Descriptors.EnumDescriptor
4668 return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor().getEnumTypes().get(0);
4671 private static final PayloadFormat[] VALUES = {
4672 JSON, PROTOBUF, MESSAGEPACK,
4675 public static PayloadFormat valueOf(
4676 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
4677 if (desc.getType() != getDescriptor()) {
4678 throw new java.lang.IllegalArgumentException(
4679 "EnumValueDescriptor is not for this type.");
4681 return VALUES[desc.getIndex()];
4684 private final int index;
4685 private final int value;
4687 private PayloadFormat(int index, int value) {
4692 // @@protoc_insertion_point(enum_scope:openxc.PayloadFormatCommand.PayloadFormat)
4695 private int bitField0_;
4696 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
4697 public static final int FORMAT_FIELD_NUMBER = 1;
4698 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_;
4699 public boolean hasFormat() {
4700 return ((bitField0_ & 0x00000001) == 0x00000001);
4702 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
4706 private void initFields() {
4707 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4709 private byte memoizedIsInitialized = -1;
4710 public final boolean isInitialized() {
4711 byte isInitialized = memoizedIsInitialized;
4712 if (isInitialized != -1) return isInitialized == 1;
4714 memoizedIsInitialized = 1;
4718 public void writeTo(com.google.protobuf.CodedOutputStream output)
4719 throws java.io.IOException {
4720 getSerializedSize();
4721 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4722 output.writeEnum(1, format_.getNumber());
4724 getUnknownFields().writeTo(output);
4727 private int memoizedSerializedSize = -1;
4728 public int getSerializedSize() {
4729 int size = memoizedSerializedSize;
4730 if (size != -1) return size;
4733 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4734 size += com.google.protobuf.CodedOutputStream
4735 .computeEnumSize(1, format_.getNumber());
4737 size += getUnknownFields().getSerializedSize();
4738 memoizedSerializedSize = size;
4742 private static final long serialVersionUID = 0L;
4744 protected java.lang.Object writeReplace()
4745 throws java.io.ObjectStreamException {
4746 return super.writeReplace();
4749 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4750 com.google.protobuf.ByteString data)
4751 throws com.google.protobuf.InvalidProtocolBufferException {
4752 return newBuilder().mergeFrom(data).buildParsed();
4754 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4755 com.google.protobuf.ByteString data,
4756 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4757 throws com.google.protobuf.InvalidProtocolBufferException {
4758 return newBuilder().mergeFrom(data, extensionRegistry)
4761 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(byte[] data)
4762 throws com.google.protobuf.InvalidProtocolBufferException {
4763 return newBuilder().mergeFrom(data).buildParsed();
4765 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4767 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4768 throws com.google.protobuf.InvalidProtocolBufferException {
4769 return newBuilder().mergeFrom(data, extensionRegistry)
4772 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(java.io.InputStream input)
4773 throws java.io.IOException {
4774 return newBuilder().mergeFrom(input).buildParsed();
4776 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4777 java.io.InputStream input,
4778 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4779 throws java.io.IOException {
4780 return newBuilder().mergeFrom(input, extensionRegistry)
4783 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(java.io.InputStream input)
4784 throws java.io.IOException {
4785 Builder builder = newBuilder();
4786 if (builder.mergeDelimitedFrom(input)) {
4787 return builder.buildParsed();
4792 public static com.openxc.BinaryMessages.PayloadFormatCommand parseDelimitedFrom(
4793 java.io.InputStream input,
4794 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4795 throws java.io.IOException {
4796 Builder builder = newBuilder();
4797 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
4798 return builder.buildParsed();
4803 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4804 com.google.protobuf.CodedInputStream input)
4805 throws java.io.IOException {
4806 return newBuilder().mergeFrom(input).buildParsed();
4808 public static com.openxc.BinaryMessages.PayloadFormatCommand parseFrom(
4809 com.google.protobuf.CodedInputStream input,
4810 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4811 throws java.io.IOException {
4812 return newBuilder().mergeFrom(input, extensionRegistry)
4816 public static Builder newBuilder() { return Builder.create(); }
4817 public Builder newBuilderForType() { return newBuilder(); }
4818 public static Builder newBuilder(com.openxc.BinaryMessages.PayloadFormatCommand prototype) {
4819 return newBuilder().mergeFrom(prototype);
4821 public Builder toBuilder() { return newBuilder(this); }
4824 protected Builder newBuilderForType(
4825 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4826 Builder builder = new Builder(parent);
4829 public static final class Builder extends
4830 com.google.protobuf.GeneratedMessage.Builder<Builder>
4831 implements com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder {
4832 public static final com.google.protobuf.Descriptors.Descriptor
4834 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_descriptor;
4837 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4838 internalGetFieldAccessorTable() {
4839 return com.openxc.BinaryMessages.internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
4842 // Construct using com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder()
4844 maybeForceBuilderInitialization();
4847 private Builder(BuilderParent parent) {
4849 maybeForceBuilderInitialization();
4851 private void maybeForceBuilderInitialization() {
4852 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4855 private static Builder create() {
4856 return new Builder();
4859 public Builder clear() {
4861 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4862 bitField0_ = (bitField0_ & ~0x00000001);
4866 public Builder clone() {
4867 return create().mergeFrom(buildPartial());
4870 public com.google.protobuf.Descriptors.Descriptor
4871 getDescriptorForType() {
4872 return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor();
4875 public com.openxc.BinaryMessages.PayloadFormatCommand getDefaultInstanceForType() {
4876 return com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance();
4879 public com.openxc.BinaryMessages.PayloadFormatCommand build() {
4880 com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial();
4881 if (!result.isInitialized()) {
4882 throw newUninitializedMessageException(result);
4887 private com.openxc.BinaryMessages.PayloadFormatCommand buildParsed()
4888 throws com.google.protobuf.InvalidProtocolBufferException {
4889 com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial();
4890 if (!result.isInitialized()) {
4891 throw newUninitializedMessageException(
4892 result).asInvalidProtocolBufferException();
4897 public com.openxc.BinaryMessages.PayloadFormatCommand buildPartial() {
4898 com.openxc.BinaryMessages.PayloadFormatCommand result = new com.openxc.BinaryMessages.PayloadFormatCommand(this);
4899 int from_bitField0_ = bitField0_;
4900 int to_bitField0_ = 0;
4901 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4902 to_bitField0_ |= 0x00000001;
4904 result.format_ = format_;
4905 result.bitField0_ = to_bitField0_;
4910 public Builder mergeFrom(com.google.protobuf.Message other) {
4911 if (other instanceof com.openxc.BinaryMessages.PayloadFormatCommand) {
4912 return mergeFrom((com.openxc.BinaryMessages.PayloadFormatCommand)other);
4914 super.mergeFrom(other);
4919 public Builder mergeFrom(com.openxc.BinaryMessages.PayloadFormatCommand other) {
4920 if (other == com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) return this;
4921 if (other.hasFormat()) {
4922 setFormat(other.getFormat());
4924 this.mergeUnknownFields(other.getUnknownFields());
4928 public final boolean isInitialized() {
4932 public Builder mergeFrom(
4933 com.google.protobuf.CodedInputStream input,
4934 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4935 throws java.io.IOException {
4936 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4937 com.google.protobuf.UnknownFieldSet.newBuilder(
4938 this.getUnknownFields());
4940 int tag = input.readTag();
4943 this.setUnknownFields(unknownFields.build());
4947 if (!parseUnknownField(input, unknownFields,
4948 extensionRegistry, tag)) {
4949 this.setUnknownFields(unknownFields.build());
4956 int rawValue = input.readEnum();
4957 com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.valueOf(rawValue);
4958 if (value == null) {
4959 unknownFields.mergeVarintField(1, rawValue);
4961 bitField0_ |= 0x00000001;
4970 private int bitField0_;
4972 // optional .openxc.PayloadFormatCommand.PayloadFormat format = 1;
4973 private com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4974 public boolean hasFormat() {
4975 return ((bitField0_ & 0x00000001) == 0x00000001);
4977 public com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat getFormat() {
4980 public Builder setFormat(com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat value) {
4981 if (value == null) {
4982 throw new NullPointerException();
4984 bitField0_ |= 0x00000001;
4989 public Builder clearFormat() {
4990 bitField0_ = (bitField0_ & ~0x00000001);
4991 format_ = com.openxc.BinaryMessages.PayloadFormatCommand.PayloadFormat.JSON;
4996 // @@protoc_insertion_point(builder_scope:openxc.PayloadFormatCommand)
5000 defaultInstance = new PayloadFormatCommand(true);
5001 defaultInstance.initFields();
5004 // @@protoc_insertion_point(class_scope:openxc.PayloadFormatCommand)
5007 public interface PredefinedObd2RequestsCommandOrBuilder
5008 extends com.google.protobuf.MessageOrBuilder {
5010 // optional bool enabled = 1;
5011 boolean hasEnabled();
5012 boolean getEnabled();
5014 public static final class PredefinedObd2RequestsCommand extends
5015 com.google.protobuf.GeneratedMessage
5016 implements PredefinedObd2RequestsCommandOrBuilder {
5017 // Use PredefinedObd2RequestsCommand.newBuilder() to construct.
5018 private PredefinedObd2RequestsCommand(Builder builder) {
5021 private PredefinedObd2RequestsCommand(boolean noInit) {}
5023 private static final PredefinedObd2RequestsCommand defaultInstance;
5024 public static PredefinedObd2RequestsCommand getDefaultInstance() {
5025 return defaultInstance;
5028 public PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5029 return defaultInstance;
5032 public static final com.google.protobuf.Descriptors.Descriptor
5034 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5037 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5038 internalGetFieldAccessorTable() {
5039 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
5042 private int bitField0_;
5043 // optional bool enabled = 1;
5044 public static final int ENABLED_FIELD_NUMBER = 1;
5045 private boolean enabled_;
5046 public boolean hasEnabled() {
5047 return ((bitField0_ & 0x00000001) == 0x00000001);
5049 public boolean getEnabled() {
5053 private void initFields() {
5056 private byte memoizedIsInitialized = -1;
5057 public final boolean isInitialized() {
5058 byte isInitialized = memoizedIsInitialized;
5059 if (isInitialized != -1) return isInitialized == 1;
5061 memoizedIsInitialized = 1;
5065 public void writeTo(com.google.protobuf.CodedOutputStream output)
5066 throws java.io.IOException {
5067 getSerializedSize();
5068 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5069 output.writeBool(1, enabled_);
5071 getUnknownFields().writeTo(output);
5074 private int memoizedSerializedSize = -1;
5075 public int getSerializedSize() {
5076 int size = memoizedSerializedSize;
5077 if (size != -1) return size;
5080 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5081 size += com.google.protobuf.CodedOutputStream
5082 .computeBoolSize(1, enabled_);
5084 size += getUnknownFields().getSerializedSize();
5085 memoizedSerializedSize = size;
5089 private static final long serialVersionUID = 0L;
5091 protected java.lang.Object writeReplace()
5092 throws java.io.ObjectStreamException {
5093 return super.writeReplace();
5096 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5097 com.google.protobuf.ByteString data)
5098 throws com.google.protobuf.InvalidProtocolBufferException {
5099 return newBuilder().mergeFrom(data).buildParsed();
5101 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5102 com.google.protobuf.ByteString data,
5103 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5104 throws com.google.protobuf.InvalidProtocolBufferException {
5105 return newBuilder().mergeFrom(data, extensionRegistry)
5108 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(byte[] data)
5109 throws com.google.protobuf.InvalidProtocolBufferException {
5110 return newBuilder().mergeFrom(data).buildParsed();
5112 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5114 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5115 throws com.google.protobuf.InvalidProtocolBufferException {
5116 return newBuilder().mergeFrom(data, extensionRegistry)
5119 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(java.io.InputStream input)
5120 throws java.io.IOException {
5121 return newBuilder().mergeFrom(input).buildParsed();
5123 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5124 java.io.InputStream input,
5125 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5126 throws java.io.IOException {
5127 return newBuilder().mergeFrom(input, extensionRegistry)
5130 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(java.io.InputStream input)
5131 throws java.io.IOException {
5132 Builder builder = newBuilder();
5133 if (builder.mergeDelimitedFrom(input)) {
5134 return builder.buildParsed();
5139 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseDelimitedFrom(
5140 java.io.InputStream input,
5141 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5142 throws java.io.IOException {
5143 Builder builder = newBuilder();
5144 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
5145 return builder.buildParsed();
5150 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5151 com.google.protobuf.CodedInputStream input)
5152 throws java.io.IOException {
5153 return newBuilder().mergeFrom(input).buildParsed();
5155 public static com.openxc.BinaryMessages.PredefinedObd2RequestsCommand parseFrom(
5156 com.google.protobuf.CodedInputStream input,
5157 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5158 throws java.io.IOException {
5159 return newBuilder().mergeFrom(input, extensionRegistry)
5163 public static Builder newBuilder() { return Builder.create(); }
5164 public Builder newBuilderForType() { return newBuilder(); }
5165 public static Builder newBuilder(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand prototype) {
5166 return newBuilder().mergeFrom(prototype);
5168 public Builder toBuilder() { return newBuilder(this); }
5171 protected Builder newBuilderForType(
5172 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5173 Builder builder = new Builder(parent);
5176 public static final class Builder extends
5177 com.google.protobuf.GeneratedMessage.Builder<Builder>
5178 implements com.openxc.BinaryMessages.PredefinedObd2RequestsCommandOrBuilder {
5179 public static final com.google.protobuf.Descriptors.Descriptor
5181 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
5184 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5185 internalGetFieldAccessorTable() {
5186 return com.openxc.BinaryMessages.internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
5189 // Construct using com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.newBuilder()
5191 maybeForceBuilderInitialization();
5194 private Builder(BuilderParent parent) {
5196 maybeForceBuilderInitialization();
5198 private void maybeForceBuilderInitialization() {
5199 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5202 private static Builder create() {
5203 return new Builder();
5206 public Builder clear() {
5209 bitField0_ = (bitField0_ & ~0x00000001);
5213 public Builder clone() {
5214 return create().mergeFrom(buildPartial());
5217 public com.google.protobuf.Descriptors.Descriptor
5218 getDescriptorForType() {
5219 return com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDescriptor();
5222 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand getDefaultInstanceForType() {
5223 return com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance();
5226 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand build() {
5227 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial();
5228 if (!result.isInitialized()) {
5229 throw newUninitializedMessageException(result);
5234 private com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildParsed()
5235 throws com.google.protobuf.InvalidProtocolBufferException {
5236 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = buildPartial();
5237 if (!result.isInitialized()) {
5238 throw newUninitializedMessageException(
5239 result).asInvalidProtocolBufferException();
5244 public com.openxc.BinaryMessages.PredefinedObd2RequestsCommand buildPartial() {
5245 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand result = new com.openxc.BinaryMessages.PredefinedObd2RequestsCommand(this);
5246 int from_bitField0_ = bitField0_;
5247 int to_bitField0_ = 0;
5248 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5249 to_bitField0_ |= 0x00000001;
5251 result.enabled_ = enabled_;
5252 result.bitField0_ = to_bitField0_;
5257 public Builder mergeFrom(com.google.protobuf.Message other) {
5258 if (other instanceof com.openxc.BinaryMessages.PredefinedObd2RequestsCommand) {
5259 return mergeFrom((com.openxc.BinaryMessages.PredefinedObd2RequestsCommand)other);
5261 super.mergeFrom(other);
5266 public Builder mergeFrom(com.openxc.BinaryMessages.PredefinedObd2RequestsCommand other) {
5267 if (other == com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.getDefaultInstance()) return this;
5268 if (other.hasEnabled()) {
5269 setEnabled(other.getEnabled());
5271 this.mergeUnknownFields(other.getUnknownFields());
5275 public final boolean isInitialized() {
5279 public Builder mergeFrom(
5280 com.google.protobuf.CodedInputStream input,
5281 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5282 throws java.io.IOException {
5283 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5284 com.google.protobuf.UnknownFieldSet.newBuilder(
5285 this.getUnknownFields());
5287 int tag = input.readTag();
5290 this.setUnknownFields(unknownFields.build());
5294 if (!parseUnknownField(input, unknownFields,
5295 extensionRegistry, tag)) {
5296 this.setUnknownFields(unknownFields.build());
5303 bitField0_ |= 0x00000001;
5304 enabled_ = input.readBool();
5311 private int bitField0_;
5313 // optional bool enabled = 1;
5314 private boolean enabled_ ;
5315 public boolean hasEnabled() {
5316 return ((bitField0_ & 0x00000001) == 0x00000001);
5318 public boolean getEnabled() {
5321 public Builder setEnabled(boolean value) {
5322 bitField0_ |= 0x00000001;
5327 public Builder clearEnabled() {
5328 bitField0_ = (bitField0_ & ~0x00000001);
5334 // @@protoc_insertion_point(builder_scope:openxc.PredefinedObd2RequestsCommand)
5338 defaultInstance = new PredefinedObd2RequestsCommand(true);
5339 defaultInstance.initFields();
5342 // @@protoc_insertion_point(class_scope:openxc.PredefinedObd2RequestsCommand)
5345 public interface NetworkOperatorSettingsOrBuilder
5346 extends com.google.protobuf.MessageOrBuilder {
5348 // optional bool allowDataRoaming = 1;
5349 boolean hasAllowDataRoaming();
5350 boolean getAllowDataRoaming();
5352 // optional .openxc.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode = 2;
5353 boolean hasOperatorSelectMode();
5354 com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode getOperatorSelectMode();
5356 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor networkDescriptor = 3;
5357 boolean hasNetworkDescriptor();
5358 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getNetworkDescriptor();
5359 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder getNetworkDescriptorOrBuilder();
5361 public static final class NetworkOperatorSettings extends
5362 com.google.protobuf.GeneratedMessage
5363 implements NetworkOperatorSettingsOrBuilder {
5364 // Use NetworkOperatorSettings.newBuilder() to construct.
5365 private NetworkOperatorSettings(Builder builder) {
5368 private NetworkOperatorSettings(boolean noInit) {}
5370 private static final NetworkOperatorSettings defaultInstance;
5371 public static NetworkOperatorSettings getDefaultInstance() {
5372 return defaultInstance;
5375 public NetworkOperatorSettings getDefaultInstanceForType() {
5376 return defaultInstance;
5379 public static final com.google.protobuf.Descriptors.Descriptor
5381 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_descriptor;
5384 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5385 internalGetFieldAccessorTable() {
5386 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable;
5389 public enum OperatorSelectMode
5390 implements com.google.protobuf.ProtocolMessageEnum {
5395 MANUAL_AUTOMATIC(4, 4),
5398 public static final int AUTOMATIC_VALUE = 0;
5399 public static final int MANUAL_VALUE = 1;
5400 public static final int DEREGISTER_VALUE = 2;
5401 public static final int SET_ONLY_VALUE = 3;
5402 public static final int MANUAL_AUTOMATIC_VALUE = 4;
5405 public final int getNumber() { return value; }
5407 public static OperatorSelectMode valueOf(int value) {
5409 case 0: return AUTOMATIC;
5410 case 1: return MANUAL;
5411 case 2: return DEREGISTER;
5412 case 3: return SET_ONLY;
5413 case 4: return MANUAL_AUTOMATIC;
5414 default: return null;
5418 public static com.google.protobuf.Internal.EnumLiteMap<OperatorSelectMode>
5419 internalGetValueMap() {
5420 return internalValueMap;
5422 private static com.google.protobuf.Internal.EnumLiteMap<OperatorSelectMode>
5424 new com.google.protobuf.Internal.EnumLiteMap<OperatorSelectMode>() {
5425 public OperatorSelectMode findValueByNumber(int number) {
5426 return OperatorSelectMode.valueOf(number);
5430 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5431 getValueDescriptor() {
5432 return getDescriptor().getValues().get(index);
5434 public final com.google.protobuf.Descriptors.EnumDescriptor
5435 getDescriptorForType() {
5436 return getDescriptor();
5438 public static final com.google.protobuf.Descriptors.EnumDescriptor
5440 return com.openxc.BinaryMessages.NetworkOperatorSettings.getDescriptor().getEnumTypes().get(0);
5443 private static final OperatorSelectMode[] VALUES = {
5444 AUTOMATIC, MANUAL, DEREGISTER, SET_ONLY, MANUAL_AUTOMATIC,
5447 public static OperatorSelectMode valueOf(
5448 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5449 if (desc.getType() != getDescriptor()) {
5450 throw new java.lang.IllegalArgumentException(
5451 "EnumValueDescriptor is not for this type.");
5453 return VALUES[desc.getIndex()];
5456 private final int index;
5457 private final int value;
5459 private OperatorSelectMode(int index, int value) {
5464 // @@protoc_insertion_point(enum_scope:openxc.NetworkOperatorSettings.OperatorSelectMode)
5467 public interface NetworkDescriptorOrBuilder
5468 extends com.google.protobuf.MessageOrBuilder {
5470 // optional uint32 PLMN = 1;
5474 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType = 2;
5475 boolean hasNetworkType();
5476 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType getNetworkType();
5478 public static final class NetworkDescriptor extends
5479 com.google.protobuf.GeneratedMessage
5480 implements NetworkDescriptorOrBuilder {
5481 // Use NetworkDescriptor.newBuilder() to construct.
5482 private NetworkDescriptor(Builder builder) {
5485 private NetworkDescriptor(boolean noInit) {}
5487 private static final NetworkDescriptor defaultInstance;
5488 public static NetworkDescriptor getDefaultInstance() {
5489 return defaultInstance;
5492 public NetworkDescriptor getDefaultInstanceForType() {
5493 return defaultInstance;
5496 public static final com.google.protobuf.Descriptors.Descriptor
5498 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor;
5501 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5502 internalGetFieldAccessorTable() {
5503 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable;
5506 public enum NetworkType
5507 implements com.google.protobuf.ProtocolMessageEnum {
5512 public static final int GSM_VALUE = 0;
5513 public static final int UTRAN_VALUE = 2;
5516 public final int getNumber() { return value; }
5518 public static NetworkType valueOf(int value) {
5521 case 2: return UTRAN;
5522 default: return null;
5526 public static com.google.protobuf.Internal.EnumLiteMap<NetworkType>
5527 internalGetValueMap() {
5528 return internalValueMap;
5530 private static com.google.protobuf.Internal.EnumLiteMap<NetworkType>
5532 new com.google.protobuf.Internal.EnumLiteMap<NetworkType>() {
5533 public NetworkType findValueByNumber(int number) {
5534 return NetworkType.valueOf(number);
5538 public final com.google.protobuf.Descriptors.EnumValueDescriptor
5539 getValueDescriptor() {
5540 return getDescriptor().getValues().get(index);
5542 public final com.google.protobuf.Descriptors.EnumDescriptor
5543 getDescriptorForType() {
5544 return getDescriptor();
5546 public static final com.google.protobuf.Descriptors.EnumDescriptor
5548 return com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDescriptor().getEnumTypes().get(0);
5551 private static final NetworkType[] VALUES = {
5555 public static NetworkType valueOf(
5556 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
5557 if (desc.getType() != getDescriptor()) {
5558 throw new java.lang.IllegalArgumentException(
5559 "EnumValueDescriptor is not for this type.");
5561 return VALUES[desc.getIndex()];
5564 private final int index;
5565 private final int value;
5567 private NetworkType(int index, int value) {
5572 // @@protoc_insertion_point(enum_scope:openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType)
5575 private int bitField0_;
5576 // optional uint32 PLMN = 1;
5577 public static final int PLMN_FIELD_NUMBER = 1;
5579 public boolean hasPLMN() {
5580 return ((bitField0_ & 0x00000001) == 0x00000001);
5582 public int getPLMN() {
5586 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType = 2;
5587 public static final int NETWORKTYPE_FIELD_NUMBER = 2;
5588 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType_;
5589 public boolean hasNetworkType() {
5590 return ((bitField0_ & 0x00000002) == 0x00000002);
5592 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType getNetworkType() {
5593 return networkType_;
5596 private void initFields() {
5598 networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5600 private byte memoizedIsInitialized = -1;
5601 public final boolean isInitialized() {
5602 byte isInitialized = memoizedIsInitialized;
5603 if (isInitialized != -1) return isInitialized == 1;
5605 memoizedIsInitialized = 1;
5609 public void writeTo(com.google.protobuf.CodedOutputStream output)
5610 throws java.io.IOException {
5611 getSerializedSize();
5612 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5613 output.writeUInt32(1, pLMN_);
5615 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5616 output.writeEnum(2, networkType_.getNumber());
5618 getUnknownFields().writeTo(output);
5621 private int memoizedSerializedSize = -1;
5622 public int getSerializedSize() {
5623 int size = memoizedSerializedSize;
5624 if (size != -1) return size;
5627 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5628 size += com.google.protobuf.CodedOutputStream
5629 .computeUInt32Size(1, pLMN_);
5631 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5632 size += com.google.protobuf.CodedOutputStream
5633 .computeEnumSize(2, networkType_.getNumber());
5635 size += getUnknownFields().getSerializedSize();
5636 memoizedSerializedSize = size;
5640 private static final long serialVersionUID = 0L;
5642 protected java.lang.Object writeReplace()
5643 throws java.io.ObjectStreamException {
5644 return super.writeReplace();
5647 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5648 com.google.protobuf.ByteString data)
5649 throws com.google.protobuf.InvalidProtocolBufferException {
5650 return newBuilder().mergeFrom(data).buildParsed();
5652 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5653 com.google.protobuf.ByteString data,
5654 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5655 throws com.google.protobuf.InvalidProtocolBufferException {
5656 return newBuilder().mergeFrom(data, extensionRegistry)
5659 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(byte[] data)
5660 throws com.google.protobuf.InvalidProtocolBufferException {
5661 return newBuilder().mergeFrom(data).buildParsed();
5663 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5665 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5666 throws com.google.protobuf.InvalidProtocolBufferException {
5667 return newBuilder().mergeFrom(data, extensionRegistry)
5670 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(java.io.InputStream input)
5671 throws java.io.IOException {
5672 return newBuilder().mergeFrom(input).buildParsed();
5674 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5675 java.io.InputStream input,
5676 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5677 throws java.io.IOException {
5678 return newBuilder().mergeFrom(input, extensionRegistry)
5681 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseDelimitedFrom(java.io.InputStream input)
5682 throws java.io.IOException {
5683 Builder builder = newBuilder();
5684 if (builder.mergeDelimitedFrom(input)) {
5685 return builder.buildParsed();
5690 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseDelimitedFrom(
5691 java.io.InputStream input,
5692 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5693 throws java.io.IOException {
5694 Builder builder = newBuilder();
5695 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
5696 return builder.buildParsed();
5701 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5702 com.google.protobuf.CodedInputStream input)
5703 throws java.io.IOException {
5704 return newBuilder().mergeFrom(input).buildParsed();
5706 public static com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor parseFrom(
5707 com.google.protobuf.CodedInputStream input,
5708 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5709 throws java.io.IOException {
5710 return newBuilder().mergeFrom(input, extensionRegistry)
5714 public static Builder newBuilder() { return Builder.create(); }
5715 public Builder newBuilderForType() { return newBuilder(); }
5716 public static Builder newBuilder(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor prototype) {
5717 return newBuilder().mergeFrom(prototype);
5719 public Builder toBuilder() { return newBuilder(this); }
5722 protected Builder newBuilderForType(
5723 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5724 Builder builder = new Builder(parent);
5727 public static final class Builder extends
5728 com.google.protobuf.GeneratedMessage.Builder<Builder>
5729 implements com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder {
5730 public static final com.google.protobuf.Descriptors.Descriptor
5732 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor;
5735 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5736 internalGetFieldAccessorTable() {
5737 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable;
5740 // Construct using com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.newBuilder()
5742 maybeForceBuilderInitialization();
5745 private Builder(BuilderParent parent) {
5747 maybeForceBuilderInitialization();
5749 private void maybeForceBuilderInitialization() {
5750 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5753 private static Builder create() {
5754 return new Builder();
5757 public Builder clear() {
5760 bitField0_ = (bitField0_ & ~0x00000001);
5761 networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5762 bitField0_ = (bitField0_ & ~0x00000002);
5766 public Builder clone() {
5767 return create().mergeFrom(buildPartial());
5770 public com.google.protobuf.Descriptors.Descriptor
5771 getDescriptorForType() {
5772 return com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDescriptor();
5775 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getDefaultInstanceForType() {
5776 return com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
5779 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor build() {
5780 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor result = buildPartial();
5781 if (!result.isInitialized()) {
5782 throw newUninitializedMessageException(result);
5787 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor buildParsed()
5788 throws com.google.protobuf.InvalidProtocolBufferException {
5789 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor result = buildPartial();
5790 if (!result.isInitialized()) {
5791 throw newUninitializedMessageException(
5792 result).asInvalidProtocolBufferException();
5797 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor buildPartial() {
5798 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor result = new com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor(this);
5799 int from_bitField0_ = bitField0_;
5800 int to_bitField0_ = 0;
5801 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
5802 to_bitField0_ |= 0x00000001;
5804 result.pLMN_ = pLMN_;
5805 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
5806 to_bitField0_ |= 0x00000002;
5808 result.networkType_ = networkType_;
5809 result.bitField0_ = to_bitField0_;
5814 public Builder mergeFrom(com.google.protobuf.Message other) {
5815 if (other instanceof com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor) {
5816 return mergeFrom((com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor)other);
5818 super.mergeFrom(other);
5823 public Builder mergeFrom(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor other) {
5824 if (other == com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance()) return this;
5825 if (other.hasPLMN()) {
5826 setPLMN(other.getPLMN());
5828 if (other.hasNetworkType()) {
5829 setNetworkType(other.getNetworkType());
5831 this.mergeUnknownFields(other.getUnknownFields());
5835 public final boolean isInitialized() {
5839 public Builder mergeFrom(
5840 com.google.protobuf.CodedInputStream input,
5841 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5842 throws java.io.IOException {
5843 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5844 com.google.protobuf.UnknownFieldSet.newBuilder(
5845 this.getUnknownFields());
5847 int tag = input.readTag();
5850 this.setUnknownFields(unknownFields.build());
5854 if (!parseUnknownField(input, unknownFields,
5855 extensionRegistry, tag)) {
5856 this.setUnknownFields(unknownFields.build());
5863 bitField0_ |= 0x00000001;
5864 pLMN_ = input.readUInt32();
5868 int rawValue = input.readEnum();
5869 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType value = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.valueOf(rawValue);
5870 if (value == null) {
5871 unknownFields.mergeVarintField(2, rawValue);
5873 bitField0_ |= 0x00000002;
5874 networkType_ = value;
5882 private int bitField0_;
5884 // optional uint32 PLMN = 1;
5886 public boolean hasPLMN() {
5887 return ((bitField0_ & 0x00000001) == 0x00000001);
5889 public int getPLMN() {
5892 public Builder setPLMN(int value) {
5893 bitField0_ |= 0x00000001;
5898 public Builder clearPLMN() {
5899 bitField0_ = (bitField0_ & ~0x00000001);
5905 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType = 2;
5906 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5907 public boolean hasNetworkType() {
5908 return ((bitField0_ & 0x00000002) == 0x00000002);
5910 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType getNetworkType() {
5911 return networkType_;
5913 public Builder setNetworkType(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType value) {
5914 if (value == null) {
5915 throw new NullPointerException();
5917 bitField0_ |= 0x00000002;
5918 networkType_ = value;
5922 public Builder clearNetworkType() {
5923 bitField0_ = (bitField0_ & ~0x00000002);
5924 networkType_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.NetworkType.GSM;
5929 // @@protoc_insertion_point(builder_scope:openxc.NetworkOperatorSettings.NetworkDescriptor)
5933 defaultInstance = new NetworkDescriptor(true);
5934 defaultInstance.initFields();
5937 // @@protoc_insertion_point(class_scope:openxc.NetworkOperatorSettings.NetworkDescriptor)
5940 private int bitField0_;
5941 // optional bool allowDataRoaming = 1;
5942 public static final int ALLOWDATAROAMING_FIELD_NUMBER = 1;
5943 private boolean allowDataRoaming_;
5944 public boolean hasAllowDataRoaming() {
5945 return ((bitField0_ & 0x00000001) == 0x00000001);
5947 public boolean getAllowDataRoaming() {
5948 return allowDataRoaming_;
5951 // optional .openxc.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode = 2;
5952 public static final int OPERATORSELECTMODE_FIELD_NUMBER = 2;
5953 private com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode_;
5954 public boolean hasOperatorSelectMode() {
5955 return ((bitField0_ & 0x00000002) == 0x00000002);
5957 public com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode getOperatorSelectMode() {
5958 return operatorSelectMode_;
5961 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor networkDescriptor = 3;
5962 public static final int NETWORKDESCRIPTOR_FIELD_NUMBER = 3;
5963 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor networkDescriptor_;
5964 public boolean hasNetworkDescriptor() {
5965 return ((bitField0_ & 0x00000004) == 0x00000004);
5967 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getNetworkDescriptor() {
5968 return networkDescriptor_;
5970 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder getNetworkDescriptorOrBuilder() {
5971 return networkDescriptor_;
5974 private void initFields() {
5975 allowDataRoaming_ = false;
5976 operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
5977 networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
5979 private byte memoizedIsInitialized = -1;
5980 public final boolean isInitialized() {
5981 byte isInitialized = memoizedIsInitialized;
5982 if (isInitialized != -1) return isInitialized == 1;
5984 memoizedIsInitialized = 1;
5988 public void writeTo(com.google.protobuf.CodedOutputStream output)
5989 throws java.io.IOException {
5990 getSerializedSize();
5991 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5992 output.writeBool(1, allowDataRoaming_);
5994 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5995 output.writeEnum(2, operatorSelectMode_.getNumber());
5997 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5998 output.writeMessage(3, networkDescriptor_);
6000 getUnknownFields().writeTo(output);
6003 private int memoizedSerializedSize = -1;
6004 public int getSerializedSize() {
6005 int size = memoizedSerializedSize;
6006 if (size != -1) return size;
6009 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6010 size += com.google.protobuf.CodedOutputStream
6011 .computeBoolSize(1, allowDataRoaming_);
6013 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6014 size += com.google.protobuf.CodedOutputStream
6015 .computeEnumSize(2, operatorSelectMode_.getNumber());
6017 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6018 size += com.google.protobuf.CodedOutputStream
6019 .computeMessageSize(3, networkDescriptor_);
6021 size += getUnknownFields().getSerializedSize();
6022 memoizedSerializedSize = size;
6026 private static final long serialVersionUID = 0L;
6028 protected java.lang.Object writeReplace()
6029 throws java.io.ObjectStreamException {
6030 return super.writeReplace();
6033 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6034 com.google.protobuf.ByteString data)
6035 throws com.google.protobuf.InvalidProtocolBufferException {
6036 return newBuilder().mergeFrom(data).buildParsed();
6038 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6039 com.google.protobuf.ByteString data,
6040 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6041 throws com.google.protobuf.InvalidProtocolBufferException {
6042 return newBuilder().mergeFrom(data, extensionRegistry)
6045 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(byte[] data)
6046 throws com.google.protobuf.InvalidProtocolBufferException {
6047 return newBuilder().mergeFrom(data).buildParsed();
6049 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6051 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6052 throws com.google.protobuf.InvalidProtocolBufferException {
6053 return newBuilder().mergeFrom(data, extensionRegistry)
6056 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(java.io.InputStream input)
6057 throws java.io.IOException {
6058 return newBuilder().mergeFrom(input).buildParsed();
6060 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6061 java.io.InputStream input,
6062 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6063 throws java.io.IOException {
6064 return newBuilder().mergeFrom(input, extensionRegistry)
6067 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseDelimitedFrom(java.io.InputStream input)
6068 throws java.io.IOException {
6069 Builder builder = newBuilder();
6070 if (builder.mergeDelimitedFrom(input)) {
6071 return builder.buildParsed();
6076 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseDelimitedFrom(
6077 java.io.InputStream input,
6078 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6079 throws java.io.IOException {
6080 Builder builder = newBuilder();
6081 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
6082 return builder.buildParsed();
6087 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6088 com.google.protobuf.CodedInputStream input)
6089 throws java.io.IOException {
6090 return newBuilder().mergeFrom(input).buildParsed();
6092 public static com.openxc.BinaryMessages.NetworkOperatorSettings parseFrom(
6093 com.google.protobuf.CodedInputStream input,
6094 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6095 throws java.io.IOException {
6096 return newBuilder().mergeFrom(input, extensionRegistry)
6100 public static Builder newBuilder() { return Builder.create(); }
6101 public Builder newBuilderForType() { return newBuilder(); }
6102 public static Builder newBuilder(com.openxc.BinaryMessages.NetworkOperatorSettings prototype) {
6103 return newBuilder().mergeFrom(prototype);
6105 public Builder toBuilder() { return newBuilder(this); }
6108 protected Builder newBuilderForType(
6109 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6110 Builder builder = new Builder(parent);
6113 public static final class Builder extends
6114 com.google.protobuf.GeneratedMessage.Builder<Builder>
6115 implements com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder {
6116 public static final com.google.protobuf.Descriptors.Descriptor
6118 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_descriptor;
6121 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6122 internalGetFieldAccessorTable() {
6123 return com.openxc.BinaryMessages.internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable;
6126 // Construct using com.openxc.BinaryMessages.NetworkOperatorSettings.newBuilder()
6128 maybeForceBuilderInitialization();
6131 private Builder(BuilderParent parent) {
6133 maybeForceBuilderInitialization();
6135 private void maybeForceBuilderInitialization() {
6136 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6137 getNetworkDescriptorFieldBuilder();
6140 private static Builder create() {
6141 return new Builder();
6144 public Builder clear() {
6146 allowDataRoaming_ = false;
6147 bitField0_ = (bitField0_ & ~0x00000001);
6148 operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
6149 bitField0_ = (bitField0_ & ~0x00000002);
6150 if (networkDescriptorBuilder_ == null) {
6151 networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
6153 networkDescriptorBuilder_.clear();
6155 bitField0_ = (bitField0_ & ~0x00000004);
6159 public Builder clone() {
6160 return create().mergeFrom(buildPartial());
6163 public com.google.protobuf.Descriptors.Descriptor
6164 getDescriptorForType() {
6165 return com.openxc.BinaryMessages.NetworkOperatorSettings.getDescriptor();
6168 public com.openxc.BinaryMessages.NetworkOperatorSettings getDefaultInstanceForType() {
6169 return com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
6172 public com.openxc.BinaryMessages.NetworkOperatorSettings build() {
6173 com.openxc.BinaryMessages.NetworkOperatorSettings result = buildPartial();
6174 if (!result.isInitialized()) {
6175 throw newUninitializedMessageException(result);
6180 private com.openxc.BinaryMessages.NetworkOperatorSettings buildParsed()
6181 throws com.google.protobuf.InvalidProtocolBufferException {
6182 com.openxc.BinaryMessages.NetworkOperatorSettings result = buildPartial();
6183 if (!result.isInitialized()) {
6184 throw newUninitializedMessageException(
6185 result).asInvalidProtocolBufferException();
6190 public com.openxc.BinaryMessages.NetworkOperatorSettings buildPartial() {
6191 com.openxc.BinaryMessages.NetworkOperatorSettings result = new com.openxc.BinaryMessages.NetworkOperatorSettings(this);
6192 int from_bitField0_ = bitField0_;
6193 int to_bitField0_ = 0;
6194 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6195 to_bitField0_ |= 0x00000001;
6197 result.allowDataRoaming_ = allowDataRoaming_;
6198 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6199 to_bitField0_ |= 0x00000002;
6201 result.operatorSelectMode_ = operatorSelectMode_;
6202 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6203 to_bitField0_ |= 0x00000004;
6205 if (networkDescriptorBuilder_ == null) {
6206 result.networkDescriptor_ = networkDescriptor_;
6208 result.networkDescriptor_ = networkDescriptorBuilder_.build();
6210 result.bitField0_ = to_bitField0_;
6215 public Builder mergeFrom(com.google.protobuf.Message other) {
6216 if (other instanceof com.openxc.BinaryMessages.NetworkOperatorSettings) {
6217 return mergeFrom((com.openxc.BinaryMessages.NetworkOperatorSettings)other);
6219 super.mergeFrom(other);
6224 public Builder mergeFrom(com.openxc.BinaryMessages.NetworkOperatorSettings other) {
6225 if (other == com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance()) return this;
6226 if (other.hasAllowDataRoaming()) {
6227 setAllowDataRoaming(other.getAllowDataRoaming());
6229 if (other.hasOperatorSelectMode()) {
6230 setOperatorSelectMode(other.getOperatorSelectMode());
6232 if (other.hasNetworkDescriptor()) {
6233 mergeNetworkDescriptor(other.getNetworkDescriptor());
6235 this.mergeUnknownFields(other.getUnknownFields());
6239 public final boolean isInitialized() {
6243 public Builder mergeFrom(
6244 com.google.protobuf.CodedInputStream input,
6245 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6246 throws java.io.IOException {
6247 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6248 com.google.protobuf.UnknownFieldSet.newBuilder(
6249 this.getUnknownFields());
6251 int tag = input.readTag();
6254 this.setUnknownFields(unknownFields.build());
6258 if (!parseUnknownField(input, unknownFields,
6259 extensionRegistry, tag)) {
6260 this.setUnknownFields(unknownFields.build());
6267 bitField0_ |= 0x00000001;
6268 allowDataRoaming_ = input.readBool();
6272 int rawValue = input.readEnum();
6273 com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode value = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.valueOf(rawValue);
6274 if (value == null) {
6275 unknownFields.mergeVarintField(2, rawValue);
6277 bitField0_ |= 0x00000002;
6278 operatorSelectMode_ = value;
6283 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder subBuilder = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.newBuilder();
6284 if (hasNetworkDescriptor()) {
6285 subBuilder.mergeFrom(getNetworkDescriptor());
6287 input.readMessage(subBuilder, extensionRegistry);
6288 setNetworkDescriptor(subBuilder.buildPartial());
6295 private int bitField0_;
6297 // optional bool allowDataRoaming = 1;
6298 private boolean allowDataRoaming_ ;
6299 public boolean hasAllowDataRoaming() {
6300 return ((bitField0_ & 0x00000001) == 0x00000001);
6302 public boolean getAllowDataRoaming() {
6303 return allowDataRoaming_;
6305 public Builder setAllowDataRoaming(boolean value) {
6306 bitField0_ |= 0x00000001;
6307 allowDataRoaming_ = value;
6311 public Builder clearAllowDataRoaming() {
6312 bitField0_ = (bitField0_ & ~0x00000001);
6313 allowDataRoaming_ = false;
6318 // optional .openxc.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode = 2;
6319 private com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
6320 public boolean hasOperatorSelectMode() {
6321 return ((bitField0_ & 0x00000002) == 0x00000002);
6323 public com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode getOperatorSelectMode() {
6324 return operatorSelectMode_;
6326 public Builder setOperatorSelectMode(com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode value) {
6327 if (value == null) {
6328 throw new NullPointerException();
6330 bitField0_ |= 0x00000002;
6331 operatorSelectMode_ = value;
6335 public Builder clearOperatorSelectMode() {
6336 bitField0_ = (bitField0_ & ~0x00000002);
6337 operatorSelectMode_ = com.openxc.BinaryMessages.NetworkOperatorSettings.OperatorSelectMode.AUTOMATIC;
6342 // optional .openxc.NetworkOperatorSettings.NetworkDescriptor networkDescriptor = 3;
6343 private com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
6344 private com.google.protobuf.SingleFieldBuilder<
6345 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder> networkDescriptorBuilder_;
6346 public boolean hasNetworkDescriptor() {
6347 return ((bitField0_ & 0x00000004) == 0x00000004);
6349 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor getNetworkDescriptor() {
6350 if (networkDescriptorBuilder_ == null) {
6351 return networkDescriptor_;
6353 return networkDescriptorBuilder_.getMessage();
6356 public Builder setNetworkDescriptor(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor value) {
6357 if (networkDescriptorBuilder_ == null) {
6358 if (value == null) {
6359 throw new NullPointerException();
6361 networkDescriptor_ = value;
6364 networkDescriptorBuilder_.setMessage(value);
6366 bitField0_ |= 0x00000004;
6369 public Builder setNetworkDescriptor(
6370 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder builderForValue) {
6371 if (networkDescriptorBuilder_ == null) {
6372 networkDescriptor_ = builderForValue.build();
6375 networkDescriptorBuilder_.setMessage(builderForValue.build());
6377 bitField0_ |= 0x00000004;
6380 public Builder mergeNetworkDescriptor(com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor value) {
6381 if (networkDescriptorBuilder_ == null) {
6382 if (((bitField0_ & 0x00000004) == 0x00000004) &&
6383 networkDescriptor_ != com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance()) {
6384 networkDescriptor_ =
6385 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.newBuilder(networkDescriptor_).mergeFrom(value).buildPartial();
6387 networkDescriptor_ = value;
6391 networkDescriptorBuilder_.mergeFrom(value);
6393 bitField0_ |= 0x00000004;
6396 public Builder clearNetworkDescriptor() {
6397 if (networkDescriptorBuilder_ == null) {
6398 networkDescriptor_ = com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.getDefaultInstance();
6401 networkDescriptorBuilder_.clear();
6403 bitField0_ = (bitField0_ & ~0x00000004);
6406 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder getNetworkDescriptorBuilder() {
6407 bitField0_ |= 0x00000004;
6409 return getNetworkDescriptorFieldBuilder().getBuilder();
6411 public com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder getNetworkDescriptorOrBuilder() {
6412 if (networkDescriptorBuilder_ != null) {
6413 return networkDescriptorBuilder_.getMessageOrBuilder();
6415 return networkDescriptor_;
6418 private com.google.protobuf.SingleFieldBuilder<
6419 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder>
6420 getNetworkDescriptorFieldBuilder() {
6421 if (networkDescriptorBuilder_ == null) {
6422 networkDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6423 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder, com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptorOrBuilder>(
6425 getParentForChildren(),
6427 networkDescriptor_ = null;
6429 return networkDescriptorBuilder_;
6432 // @@protoc_insertion_point(builder_scope:openxc.NetworkOperatorSettings)
6436 defaultInstance = new NetworkOperatorSettings(true);
6437 defaultInstance.initFields();
6440 // @@protoc_insertion_point(class_scope:openxc.NetworkOperatorSettings)
6443 public interface NetworkDataSettingsOrBuilder
6444 extends com.google.protobuf.MessageOrBuilder {
6446 // optional string APN = 1;
6450 public static final class NetworkDataSettings extends
6451 com.google.protobuf.GeneratedMessage
6452 implements NetworkDataSettingsOrBuilder {
6453 // Use NetworkDataSettings.newBuilder() to construct.
6454 private NetworkDataSettings(Builder builder) {
6457 private NetworkDataSettings(boolean noInit) {}
6459 private static final NetworkDataSettings defaultInstance;
6460 public static NetworkDataSettings getDefaultInstance() {
6461 return defaultInstance;
6464 public NetworkDataSettings getDefaultInstanceForType() {
6465 return defaultInstance;
6468 public static final com.google.protobuf.Descriptors.Descriptor
6470 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_descriptor;
6473 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6474 internalGetFieldAccessorTable() {
6475 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_fieldAccessorTable;
6478 private int bitField0_;
6479 // optional string APN = 1;
6480 public static final int APN_FIELD_NUMBER = 1;
6481 private java.lang.Object aPN_;
6482 public boolean hasAPN() {
6483 return ((bitField0_ & 0x00000001) == 0x00000001);
6485 public String getAPN() {
6486 java.lang.Object ref = aPN_;
6487 if (ref instanceof String) {
6488 return (String) ref;
6490 com.google.protobuf.ByteString bs =
6491 (com.google.protobuf.ByteString) ref;
6492 String s = bs.toStringUtf8();
6493 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
6499 private com.google.protobuf.ByteString getAPNBytes() {
6500 java.lang.Object ref = aPN_;
6501 if (ref instanceof String) {
6502 com.google.protobuf.ByteString b =
6503 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
6507 return (com.google.protobuf.ByteString) ref;
6511 private void initFields() {
6514 private byte memoizedIsInitialized = -1;
6515 public final boolean isInitialized() {
6516 byte isInitialized = memoizedIsInitialized;
6517 if (isInitialized != -1) return isInitialized == 1;
6519 memoizedIsInitialized = 1;
6523 public void writeTo(com.google.protobuf.CodedOutputStream output)
6524 throws java.io.IOException {
6525 getSerializedSize();
6526 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6527 output.writeBytes(1, getAPNBytes());
6529 getUnknownFields().writeTo(output);
6532 private int memoizedSerializedSize = -1;
6533 public int getSerializedSize() {
6534 int size = memoizedSerializedSize;
6535 if (size != -1) return size;
6538 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6539 size += com.google.protobuf.CodedOutputStream
6540 .computeBytesSize(1, getAPNBytes());
6542 size += getUnknownFields().getSerializedSize();
6543 memoizedSerializedSize = size;
6547 private static final long serialVersionUID = 0L;
6549 protected java.lang.Object writeReplace()
6550 throws java.io.ObjectStreamException {
6551 return super.writeReplace();
6554 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6555 com.google.protobuf.ByteString data)
6556 throws com.google.protobuf.InvalidProtocolBufferException {
6557 return newBuilder().mergeFrom(data).buildParsed();
6559 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6560 com.google.protobuf.ByteString data,
6561 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6562 throws com.google.protobuf.InvalidProtocolBufferException {
6563 return newBuilder().mergeFrom(data, extensionRegistry)
6566 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(byte[] data)
6567 throws com.google.protobuf.InvalidProtocolBufferException {
6568 return newBuilder().mergeFrom(data).buildParsed();
6570 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6572 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6573 throws com.google.protobuf.InvalidProtocolBufferException {
6574 return newBuilder().mergeFrom(data, extensionRegistry)
6577 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(java.io.InputStream input)
6578 throws java.io.IOException {
6579 return newBuilder().mergeFrom(input).buildParsed();
6581 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6582 java.io.InputStream input,
6583 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6584 throws java.io.IOException {
6585 return newBuilder().mergeFrom(input, extensionRegistry)
6588 public static com.openxc.BinaryMessages.NetworkDataSettings parseDelimitedFrom(java.io.InputStream input)
6589 throws java.io.IOException {
6590 Builder builder = newBuilder();
6591 if (builder.mergeDelimitedFrom(input)) {
6592 return builder.buildParsed();
6597 public static com.openxc.BinaryMessages.NetworkDataSettings parseDelimitedFrom(
6598 java.io.InputStream input,
6599 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6600 throws java.io.IOException {
6601 Builder builder = newBuilder();
6602 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
6603 return builder.buildParsed();
6608 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6609 com.google.protobuf.CodedInputStream input)
6610 throws java.io.IOException {
6611 return newBuilder().mergeFrom(input).buildParsed();
6613 public static com.openxc.BinaryMessages.NetworkDataSettings parseFrom(
6614 com.google.protobuf.CodedInputStream input,
6615 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6616 throws java.io.IOException {
6617 return newBuilder().mergeFrom(input, extensionRegistry)
6621 public static Builder newBuilder() { return Builder.create(); }
6622 public Builder newBuilderForType() { return newBuilder(); }
6623 public static Builder newBuilder(com.openxc.BinaryMessages.NetworkDataSettings prototype) {
6624 return newBuilder().mergeFrom(prototype);
6626 public Builder toBuilder() { return newBuilder(this); }
6629 protected Builder newBuilderForType(
6630 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6631 Builder builder = new Builder(parent);
6634 public static final class Builder extends
6635 com.google.protobuf.GeneratedMessage.Builder<Builder>
6636 implements com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder {
6637 public static final com.google.protobuf.Descriptors.Descriptor
6639 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_descriptor;
6642 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6643 internalGetFieldAccessorTable() {
6644 return com.openxc.BinaryMessages.internal_static_openxc_NetworkDataSettings_fieldAccessorTable;
6647 // Construct using com.openxc.BinaryMessages.NetworkDataSettings.newBuilder()
6649 maybeForceBuilderInitialization();
6652 private Builder(BuilderParent parent) {
6654 maybeForceBuilderInitialization();
6656 private void maybeForceBuilderInitialization() {
6657 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6660 private static Builder create() {
6661 return new Builder();
6664 public Builder clear() {
6667 bitField0_ = (bitField0_ & ~0x00000001);
6671 public Builder clone() {
6672 return create().mergeFrom(buildPartial());
6675 public com.google.protobuf.Descriptors.Descriptor
6676 getDescriptorForType() {
6677 return com.openxc.BinaryMessages.NetworkDataSettings.getDescriptor();
6680 public com.openxc.BinaryMessages.NetworkDataSettings getDefaultInstanceForType() {
6681 return com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
6684 public com.openxc.BinaryMessages.NetworkDataSettings build() {
6685 com.openxc.BinaryMessages.NetworkDataSettings result = buildPartial();
6686 if (!result.isInitialized()) {
6687 throw newUninitializedMessageException(result);
6692 private com.openxc.BinaryMessages.NetworkDataSettings buildParsed()
6693 throws com.google.protobuf.InvalidProtocolBufferException {
6694 com.openxc.BinaryMessages.NetworkDataSettings result = buildPartial();
6695 if (!result.isInitialized()) {
6696 throw newUninitializedMessageException(
6697 result).asInvalidProtocolBufferException();
6702 public com.openxc.BinaryMessages.NetworkDataSettings buildPartial() {
6703 com.openxc.BinaryMessages.NetworkDataSettings result = new com.openxc.BinaryMessages.NetworkDataSettings(this);
6704 int from_bitField0_ = bitField0_;
6705 int to_bitField0_ = 0;
6706 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6707 to_bitField0_ |= 0x00000001;
6710 result.bitField0_ = to_bitField0_;
6715 public Builder mergeFrom(com.google.protobuf.Message other) {
6716 if (other instanceof com.openxc.BinaryMessages.NetworkDataSettings) {
6717 return mergeFrom((com.openxc.BinaryMessages.NetworkDataSettings)other);
6719 super.mergeFrom(other);
6724 public Builder mergeFrom(com.openxc.BinaryMessages.NetworkDataSettings other) {
6725 if (other == com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance()) return this;
6726 if (other.hasAPN()) {
6727 setAPN(other.getAPN());
6729 this.mergeUnknownFields(other.getUnknownFields());
6733 public final boolean isInitialized() {
6737 public Builder mergeFrom(
6738 com.google.protobuf.CodedInputStream input,
6739 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6740 throws java.io.IOException {
6741 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6742 com.google.protobuf.UnknownFieldSet.newBuilder(
6743 this.getUnknownFields());
6745 int tag = input.readTag();
6748 this.setUnknownFields(unknownFields.build());
6752 if (!parseUnknownField(input, unknownFields,
6753 extensionRegistry, tag)) {
6754 this.setUnknownFields(unknownFields.build());
6761 bitField0_ |= 0x00000001;
6762 aPN_ = input.readBytes();
6769 private int bitField0_;
6771 // optional string APN = 1;
6772 private java.lang.Object aPN_ = "";
6773 public boolean hasAPN() {
6774 return ((bitField0_ & 0x00000001) == 0x00000001);
6776 public String getAPN() {
6777 java.lang.Object ref = aPN_;
6778 if (!(ref instanceof String)) {
6779 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
6783 return (String) ref;
6786 public Builder setAPN(String value) {
6787 if (value == null) {
6788 throw new NullPointerException();
6790 bitField0_ |= 0x00000001;
6795 public Builder clearAPN() {
6796 bitField0_ = (bitField0_ & ~0x00000001);
6797 aPN_ = getDefaultInstance().getAPN();
6801 void setAPN(com.google.protobuf.ByteString value) {
6802 bitField0_ |= 0x00000001;
6807 // @@protoc_insertion_point(builder_scope:openxc.NetworkDataSettings)
6811 defaultInstance = new NetworkDataSettings(true);
6812 defaultInstance.initFields();
6815 // @@protoc_insertion_point(class_scope:openxc.NetworkDataSettings)
6818 public interface ServerConnectSettingsOrBuilder
6819 extends com.google.protobuf.MessageOrBuilder {
6821 // optional string host = 1;
6825 // optional uint32 port = 2;
6829 public static final class ServerConnectSettings extends
6830 com.google.protobuf.GeneratedMessage
6831 implements ServerConnectSettingsOrBuilder {
6832 // Use ServerConnectSettings.newBuilder() to construct.
6833 private ServerConnectSettings(Builder builder) {
6836 private ServerConnectSettings(boolean noInit) {}
6838 private static final ServerConnectSettings defaultInstance;
6839 public static ServerConnectSettings getDefaultInstance() {
6840 return defaultInstance;
6843 public ServerConnectSettings getDefaultInstanceForType() {
6844 return defaultInstance;
6847 public static final com.google.protobuf.Descriptors.Descriptor
6849 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_descriptor;
6852 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6853 internalGetFieldAccessorTable() {
6854 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_fieldAccessorTable;
6857 private int bitField0_;
6858 // optional string host = 1;
6859 public static final int HOST_FIELD_NUMBER = 1;
6860 private java.lang.Object host_;
6861 public boolean hasHost() {
6862 return ((bitField0_ & 0x00000001) == 0x00000001);
6864 public String getHost() {
6865 java.lang.Object ref = host_;
6866 if (ref instanceof String) {
6867 return (String) ref;
6869 com.google.protobuf.ByteString bs =
6870 (com.google.protobuf.ByteString) ref;
6871 String s = bs.toStringUtf8();
6872 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
6878 private com.google.protobuf.ByteString getHostBytes() {
6879 java.lang.Object ref = host_;
6880 if (ref instanceof String) {
6881 com.google.protobuf.ByteString b =
6882 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
6886 return (com.google.protobuf.ByteString) ref;
6890 // optional uint32 port = 2;
6891 public static final int PORT_FIELD_NUMBER = 2;
6893 public boolean hasPort() {
6894 return ((bitField0_ & 0x00000002) == 0x00000002);
6896 public int getPort() {
6900 private void initFields() {
6904 private byte memoizedIsInitialized = -1;
6905 public final boolean isInitialized() {
6906 byte isInitialized = memoizedIsInitialized;
6907 if (isInitialized != -1) return isInitialized == 1;
6909 memoizedIsInitialized = 1;
6913 public void writeTo(com.google.protobuf.CodedOutputStream output)
6914 throws java.io.IOException {
6915 getSerializedSize();
6916 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6917 output.writeBytes(1, getHostBytes());
6919 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6920 output.writeUInt32(2, port_);
6922 getUnknownFields().writeTo(output);
6925 private int memoizedSerializedSize = -1;
6926 public int getSerializedSize() {
6927 int size = memoizedSerializedSize;
6928 if (size != -1) return size;
6931 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6932 size += com.google.protobuf.CodedOutputStream
6933 .computeBytesSize(1, getHostBytes());
6935 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6936 size += com.google.protobuf.CodedOutputStream
6937 .computeUInt32Size(2, port_);
6939 size += getUnknownFields().getSerializedSize();
6940 memoizedSerializedSize = size;
6944 private static final long serialVersionUID = 0L;
6946 protected java.lang.Object writeReplace()
6947 throws java.io.ObjectStreamException {
6948 return super.writeReplace();
6951 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6952 com.google.protobuf.ByteString data)
6953 throws com.google.protobuf.InvalidProtocolBufferException {
6954 return newBuilder().mergeFrom(data).buildParsed();
6956 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6957 com.google.protobuf.ByteString data,
6958 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6959 throws com.google.protobuf.InvalidProtocolBufferException {
6960 return newBuilder().mergeFrom(data, extensionRegistry)
6963 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(byte[] data)
6964 throws com.google.protobuf.InvalidProtocolBufferException {
6965 return newBuilder().mergeFrom(data).buildParsed();
6967 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6969 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6970 throws com.google.protobuf.InvalidProtocolBufferException {
6971 return newBuilder().mergeFrom(data, extensionRegistry)
6974 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(java.io.InputStream input)
6975 throws java.io.IOException {
6976 return newBuilder().mergeFrom(input).buildParsed();
6978 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
6979 java.io.InputStream input,
6980 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6981 throws java.io.IOException {
6982 return newBuilder().mergeFrom(input, extensionRegistry)
6985 public static com.openxc.BinaryMessages.ServerConnectSettings parseDelimitedFrom(java.io.InputStream input)
6986 throws java.io.IOException {
6987 Builder builder = newBuilder();
6988 if (builder.mergeDelimitedFrom(input)) {
6989 return builder.buildParsed();
6994 public static com.openxc.BinaryMessages.ServerConnectSettings parseDelimitedFrom(
6995 java.io.InputStream input,
6996 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6997 throws java.io.IOException {
6998 Builder builder = newBuilder();
6999 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
7000 return builder.buildParsed();
7005 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
7006 com.google.protobuf.CodedInputStream input)
7007 throws java.io.IOException {
7008 return newBuilder().mergeFrom(input).buildParsed();
7010 public static com.openxc.BinaryMessages.ServerConnectSettings parseFrom(
7011 com.google.protobuf.CodedInputStream input,
7012 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7013 throws java.io.IOException {
7014 return newBuilder().mergeFrom(input, extensionRegistry)
7018 public static Builder newBuilder() { return Builder.create(); }
7019 public Builder newBuilderForType() { return newBuilder(); }
7020 public static Builder newBuilder(com.openxc.BinaryMessages.ServerConnectSettings prototype) {
7021 return newBuilder().mergeFrom(prototype);
7023 public Builder toBuilder() { return newBuilder(this); }
7026 protected Builder newBuilderForType(
7027 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7028 Builder builder = new Builder(parent);
7031 public static final class Builder extends
7032 com.google.protobuf.GeneratedMessage.Builder<Builder>
7033 implements com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder {
7034 public static final com.google.protobuf.Descriptors.Descriptor
7036 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_descriptor;
7039 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7040 internalGetFieldAccessorTable() {
7041 return com.openxc.BinaryMessages.internal_static_openxc_ServerConnectSettings_fieldAccessorTable;
7044 // Construct using com.openxc.BinaryMessages.ServerConnectSettings.newBuilder()
7046 maybeForceBuilderInitialization();
7049 private Builder(BuilderParent parent) {
7051 maybeForceBuilderInitialization();
7053 private void maybeForceBuilderInitialization() {
7054 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7057 private static Builder create() {
7058 return new Builder();
7061 public Builder clear() {
7064 bitField0_ = (bitField0_ & ~0x00000001);
7066 bitField0_ = (bitField0_ & ~0x00000002);
7070 public Builder clone() {
7071 return create().mergeFrom(buildPartial());
7074 public com.google.protobuf.Descriptors.Descriptor
7075 getDescriptorForType() {
7076 return com.openxc.BinaryMessages.ServerConnectSettings.getDescriptor();
7079 public com.openxc.BinaryMessages.ServerConnectSettings getDefaultInstanceForType() {
7080 return com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7083 public com.openxc.BinaryMessages.ServerConnectSettings build() {
7084 com.openxc.BinaryMessages.ServerConnectSettings result = buildPartial();
7085 if (!result.isInitialized()) {
7086 throw newUninitializedMessageException(result);
7091 private com.openxc.BinaryMessages.ServerConnectSettings buildParsed()
7092 throws com.google.protobuf.InvalidProtocolBufferException {
7093 com.openxc.BinaryMessages.ServerConnectSettings result = buildPartial();
7094 if (!result.isInitialized()) {
7095 throw newUninitializedMessageException(
7096 result).asInvalidProtocolBufferException();
7101 public com.openxc.BinaryMessages.ServerConnectSettings buildPartial() {
7102 com.openxc.BinaryMessages.ServerConnectSettings result = new com.openxc.BinaryMessages.ServerConnectSettings(this);
7103 int from_bitField0_ = bitField0_;
7104 int to_bitField0_ = 0;
7105 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7106 to_bitField0_ |= 0x00000001;
7108 result.host_ = host_;
7109 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7110 to_bitField0_ |= 0x00000002;
7112 result.port_ = port_;
7113 result.bitField0_ = to_bitField0_;
7118 public Builder mergeFrom(com.google.protobuf.Message other) {
7119 if (other instanceof com.openxc.BinaryMessages.ServerConnectSettings) {
7120 return mergeFrom((com.openxc.BinaryMessages.ServerConnectSettings)other);
7122 super.mergeFrom(other);
7127 public Builder mergeFrom(com.openxc.BinaryMessages.ServerConnectSettings other) {
7128 if (other == com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance()) return this;
7129 if (other.hasHost()) {
7130 setHost(other.getHost());
7132 if (other.hasPort()) {
7133 setPort(other.getPort());
7135 this.mergeUnknownFields(other.getUnknownFields());
7139 public final boolean isInitialized() {
7143 public Builder mergeFrom(
7144 com.google.protobuf.CodedInputStream input,
7145 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7146 throws java.io.IOException {
7147 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7148 com.google.protobuf.UnknownFieldSet.newBuilder(
7149 this.getUnknownFields());
7151 int tag = input.readTag();
7154 this.setUnknownFields(unknownFields.build());
7158 if (!parseUnknownField(input, unknownFields,
7159 extensionRegistry, tag)) {
7160 this.setUnknownFields(unknownFields.build());
7167 bitField0_ |= 0x00000001;
7168 host_ = input.readBytes();
7172 bitField0_ |= 0x00000002;
7173 port_ = input.readUInt32();
7180 private int bitField0_;
7182 // optional string host = 1;
7183 private java.lang.Object host_ = "";
7184 public boolean hasHost() {
7185 return ((bitField0_ & 0x00000001) == 0x00000001);
7187 public String getHost() {
7188 java.lang.Object ref = host_;
7189 if (!(ref instanceof String)) {
7190 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
7194 return (String) ref;
7197 public Builder setHost(String value) {
7198 if (value == null) {
7199 throw new NullPointerException();
7201 bitField0_ |= 0x00000001;
7206 public Builder clearHost() {
7207 bitField0_ = (bitField0_ & ~0x00000001);
7208 host_ = getDefaultInstance().getHost();
7212 void setHost(com.google.protobuf.ByteString value) {
7213 bitField0_ |= 0x00000001;
7218 // optional uint32 port = 2;
7220 public boolean hasPort() {
7221 return ((bitField0_ & 0x00000002) == 0x00000002);
7223 public int getPort() {
7226 public Builder setPort(int value) {
7227 bitField0_ |= 0x00000002;
7232 public Builder clearPort() {
7233 bitField0_ = (bitField0_ & ~0x00000002);
7239 // @@protoc_insertion_point(builder_scope:openxc.ServerConnectSettings)
7243 defaultInstance = new ServerConnectSettings(true);
7244 defaultInstance.initFields();
7247 // @@protoc_insertion_point(class_scope:openxc.ServerConnectSettings)
7250 public interface ModemConfigurationCommandOrBuilder
7251 extends com.google.protobuf.MessageOrBuilder {
7253 // optional .openxc.NetworkOperatorSettings networkOperatorSettings = 1;
7254 boolean hasNetworkOperatorSettings();
7255 com.openxc.BinaryMessages.NetworkOperatorSettings getNetworkOperatorSettings();
7256 com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder getNetworkOperatorSettingsOrBuilder();
7258 // optional .openxc.NetworkDataSettings networkDataSettings = 2;
7259 boolean hasNetworkDataSettings();
7260 com.openxc.BinaryMessages.NetworkDataSettings getNetworkDataSettings();
7261 com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder getNetworkDataSettingsOrBuilder();
7263 // optional .openxc.ServerConnectSettings serverConnectSettings = 3;
7264 boolean hasServerConnectSettings();
7265 com.openxc.BinaryMessages.ServerConnectSettings getServerConnectSettings();
7266 com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder getServerConnectSettingsOrBuilder();
7268 public static final class ModemConfigurationCommand extends
7269 com.google.protobuf.GeneratedMessage
7270 implements ModemConfigurationCommandOrBuilder {
7271 // Use ModemConfigurationCommand.newBuilder() to construct.
7272 private ModemConfigurationCommand(Builder builder) {
7275 private ModemConfigurationCommand(boolean noInit) {}
7277 private static final ModemConfigurationCommand defaultInstance;
7278 public static ModemConfigurationCommand getDefaultInstance() {
7279 return defaultInstance;
7282 public ModemConfigurationCommand getDefaultInstanceForType() {
7283 return defaultInstance;
7286 public static final com.google.protobuf.Descriptors.Descriptor
7288 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_descriptor;
7291 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7292 internalGetFieldAccessorTable() {
7293 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable;
7296 private int bitField0_;
7297 // optional .openxc.NetworkOperatorSettings networkOperatorSettings = 1;
7298 public static final int NETWORKOPERATORSETTINGS_FIELD_NUMBER = 1;
7299 private com.openxc.BinaryMessages.NetworkOperatorSettings networkOperatorSettings_;
7300 public boolean hasNetworkOperatorSettings() {
7301 return ((bitField0_ & 0x00000001) == 0x00000001);
7303 public com.openxc.BinaryMessages.NetworkOperatorSettings getNetworkOperatorSettings() {
7304 return networkOperatorSettings_;
7306 public com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder getNetworkOperatorSettingsOrBuilder() {
7307 return networkOperatorSettings_;
7310 // optional .openxc.NetworkDataSettings networkDataSettings = 2;
7311 public static final int NETWORKDATASETTINGS_FIELD_NUMBER = 2;
7312 private com.openxc.BinaryMessages.NetworkDataSettings networkDataSettings_;
7313 public boolean hasNetworkDataSettings() {
7314 return ((bitField0_ & 0x00000002) == 0x00000002);
7316 public com.openxc.BinaryMessages.NetworkDataSettings getNetworkDataSettings() {
7317 return networkDataSettings_;
7319 public com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder getNetworkDataSettingsOrBuilder() {
7320 return networkDataSettings_;
7323 // optional .openxc.ServerConnectSettings serverConnectSettings = 3;
7324 public static final int SERVERCONNECTSETTINGS_FIELD_NUMBER = 3;
7325 private com.openxc.BinaryMessages.ServerConnectSettings serverConnectSettings_;
7326 public boolean hasServerConnectSettings() {
7327 return ((bitField0_ & 0x00000004) == 0x00000004);
7329 public com.openxc.BinaryMessages.ServerConnectSettings getServerConnectSettings() {
7330 return serverConnectSettings_;
7332 public com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder getServerConnectSettingsOrBuilder() {
7333 return serverConnectSettings_;
7336 private void initFields() {
7337 networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7338 networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7339 serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7341 private byte memoizedIsInitialized = -1;
7342 public final boolean isInitialized() {
7343 byte isInitialized = memoizedIsInitialized;
7344 if (isInitialized != -1) return isInitialized == 1;
7346 memoizedIsInitialized = 1;
7350 public void writeTo(com.google.protobuf.CodedOutputStream output)
7351 throws java.io.IOException {
7352 getSerializedSize();
7353 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7354 output.writeMessage(1, networkOperatorSettings_);
7356 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7357 output.writeMessage(2, networkDataSettings_);
7359 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7360 output.writeMessage(3, serverConnectSettings_);
7362 getUnknownFields().writeTo(output);
7365 private int memoizedSerializedSize = -1;
7366 public int getSerializedSize() {
7367 int size = memoizedSerializedSize;
7368 if (size != -1) return size;
7371 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7372 size += com.google.protobuf.CodedOutputStream
7373 .computeMessageSize(1, networkOperatorSettings_);
7375 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7376 size += com.google.protobuf.CodedOutputStream
7377 .computeMessageSize(2, networkDataSettings_);
7379 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7380 size += com.google.protobuf.CodedOutputStream
7381 .computeMessageSize(3, serverConnectSettings_);
7383 size += getUnknownFields().getSerializedSize();
7384 memoizedSerializedSize = size;
7388 private static final long serialVersionUID = 0L;
7390 protected java.lang.Object writeReplace()
7391 throws java.io.ObjectStreamException {
7392 return super.writeReplace();
7395 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7396 com.google.protobuf.ByteString data)
7397 throws com.google.protobuf.InvalidProtocolBufferException {
7398 return newBuilder().mergeFrom(data).buildParsed();
7400 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7401 com.google.protobuf.ByteString data,
7402 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7403 throws com.google.protobuf.InvalidProtocolBufferException {
7404 return newBuilder().mergeFrom(data, extensionRegistry)
7407 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(byte[] data)
7408 throws com.google.protobuf.InvalidProtocolBufferException {
7409 return newBuilder().mergeFrom(data).buildParsed();
7411 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7413 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7414 throws com.google.protobuf.InvalidProtocolBufferException {
7415 return newBuilder().mergeFrom(data, extensionRegistry)
7418 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(java.io.InputStream input)
7419 throws java.io.IOException {
7420 return newBuilder().mergeFrom(input).buildParsed();
7422 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7423 java.io.InputStream input,
7424 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7425 throws java.io.IOException {
7426 return newBuilder().mergeFrom(input, extensionRegistry)
7429 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseDelimitedFrom(java.io.InputStream input)
7430 throws java.io.IOException {
7431 Builder builder = newBuilder();
7432 if (builder.mergeDelimitedFrom(input)) {
7433 return builder.buildParsed();
7438 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseDelimitedFrom(
7439 java.io.InputStream input,
7440 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7441 throws java.io.IOException {
7442 Builder builder = newBuilder();
7443 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
7444 return builder.buildParsed();
7449 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7450 com.google.protobuf.CodedInputStream input)
7451 throws java.io.IOException {
7452 return newBuilder().mergeFrom(input).buildParsed();
7454 public static com.openxc.BinaryMessages.ModemConfigurationCommand parseFrom(
7455 com.google.protobuf.CodedInputStream input,
7456 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7457 throws java.io.IOException {
7458 return newBuilder().mergeFrom(input, extensionRegistry)
7462 public static Builder newBuilder() { return Builder.create(); }
7463 public Builder newBuilderForType() { return newBuilder(); }
7464 public static Builder newBuilder(com.openxc.BinaryMessages.ModemConfigurationCommand prototype) {
7465 return newBuilder().mergeFrom(prototype);
7467 public Builder toBuilder() { return newBuilder(this); }
7470 protected Builder newBuilderForType(
7471 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7472 Builder builder = new Builder(parent);
7475 public static final class Builder extends
7476 com.google.protobuf.GeneratedMessage.Builder<Builder>
7477 implements com.openxc.BinaryMessages.ModemConfigurationCommandOrBuilder {
7478 public static final com.google.protobuf.Descriptors.Descriptor
7480 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_descriptor;
7483 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7484 internalGetFieldAccessorTable() {
7485 return com.openxc.BinaryMessages.internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable;
7488 // Construct using com.openxc.BinaryMessages.ModemConfigurationCommand.newBuilder()
7490 maybeForceBuilderInitialization();
7493 private Builder(BuilderParent parent) {
7495 maybeForceBuilderInitialization();
7497 private void maybeForceBuilderInitialization() {
7498 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7499 getNetworkOperatorSettingsFieldBuilder();
7500 getNetworkDataSettingsFieldBuilder();
7501 getServerConnectSettingsFieldBuilder();
7504 private static Builder create() {
7505 return new Builder();
7508 public Builder clear() {
7510 if (networkOperatorSettingsBuilder_ == null) {
7511 networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7513 networkOperatorSettingsBuilder_.clear();
7515 bitField0_ = (bitField0_ & ~0x00000001);
7516 if (networkDataSettingsBuilder_ == null) {
7517 networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7519 networkDataSettingsBuilder_.clear();
7521 bitField0_ = (bitField0_ & ~0x00000002);
7522 if (serverConnectSettingsBuilder_ == null) {
7523 serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7525 serverConnectSettingsBuilder_.clear();
7527 bitField0_ = (bitField0_ & ~0x00000004);
7531 public Builder clone() {
7532 return create().mergeFrom(buildPartial());
7535 public com.google.protobuf.Descriptors.Descriptor
7536 getDescriptorForType() {
7537 return com.openxc.BinaryMessages.ModemConfigurationCommand.getDescriptor();
7540 public com.openxc.BinaryMessages.ModemConfigurationCommand getDefaultInstanceForType() {
7541 return com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance();
7544 public com.openxc.BinaryMessages.ModemConfigurationCommand build() {
7545 com.openxc.BinaryMessages.ModemConfigurationCommand result = buildPartial();
7546 if (!result.isInitialized()) {
7547 throw newUninitializedMessageException(result);
7552 private com.openxc.BinaryMessages.ModemConfigurationCommand buildParsed()
7553 throws com.google.protobuf.InvalidProtocolBufferException {
7554 com.openxc.BinaryMessages.ModemConfigurationCommand result = buildPartial();
7555 if (!result.isInitialized()) {
7556 throw newUninitializedMessageException(
7557 result).asInvalidProtocolBufferException();
7562 public com.openxc.BinaryMessages.ModemConfigurationCommand buildPartial() {
7563 com.openxc.BinaryMessages.ModemConfigurationCommand result = new com.openxc.BinaryMessages.ModemConfigurationCommand(this);
7564 int from_bitField0_ = bitField0_;
7565 int to_bitField0_ = 0;
7566 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7567 to_bitField0_ |= 0x00000001;
7569 if (networkOperatorSettingsBuilder_ == null) {
7570 result.networkOperatorSettings_ = networkOperatorSettings_;
7572 result.networkOperatorSettings_ = networkOperatorSettingsBuilder_.build();
7574 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7575 to_bitField0_ |= 0x00000002;
7577 if (networkDataSettingsBuilder_ == null) {
7578 result.networkDataSettings_ = networkDataSettings_;
7580 result.networkDataSettings_ = networkDataSettingsBuilder_.build();
7582 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7583 to_bitField0_ |= 0x00000004;
7585 if (serverConnectSettingsBuilder_ == null) {
7586 result.serverConnectSettings_ = serverConnectSettings_;
7588 result.serverConnectSettings_ = serverConnectSettingsBuilder_.build();
7590 result.bitField0_ = to_bitField0_;
7595 public Builder mergeFrom(com.google.protobuf.Message other) {
7596 if (other instanceof com.openxc.BinaryMessages.ModemConfigurationCommand) {
7597 return mergeFrom((com.openxc.BinaryMessages.ModemConfigurationCommand)other);
7599 super.mergeFrom(other);
7604 public Builder mergeFrom(com.openxc.BinaryMessages.ModemConfigurationCommand other) {
7605 if (other == com.openxc.BinaryMessages.ModemConfigurationCommand.getDefaultInstance()) return this;
7606 if (other.hasNetworkOperatorSettings()) {
7607 mergeNetworkOperatorSettings(other.getNetworkOperatorSettings());
7609 if (other.hasNetworkDataSettings()) {
7610 mergeNetworkDataSettings(other.getNetworkDataSettings());
7612 if (other.hasServerConnectSettings()) {
7613 mergeServerConnectSettings(other.getServerConnectSettings());
7615 this.mergeUnknownFields(other.getUnknownFields());
7619 public final boolean isInitialized() {
7623 public Builder mergeFrom(
7624 com.google.protobuf.CodedInputStream input,
7625 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7626 throws java.io.IOException {
7627 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7628 com.google.protobuf.UnknownFieldSet.newBuilder(
7629 this.getUnknownFields());
7631 int tag = input.readTag();
7634 this.setUnknownFields(unknownFields.build());
7638 if (!parseUnknownField(input, unknownFields,
7639 extensionRegistry, tag)) {
7640 this.setUnknownFields(unknownFields.build());
7647 com.openxc.BinaryMessages.NetworkOperatorSettings.Builder subBuilder = com.openxc.BinaryMessages.NetworkOperatorSettings.newBuilder();
7648 if (hasNetworkOperatorSettings()) {
7649 subBuilder.mergeFrom(getNetworkOperatorSettings());
7651 input.readMessage(subBuilder, extensionRegistry);
7652 setNetworkOperatorSettings(subBuilder.buildPartial());
7656 com.openxc.BinaryMessages.NetworkDataSettings.Builder subBuilder = com.openxc.BinaryMessages.NetworkDataSettings.newBuilder();
7657 if (hasNetworkDataSettings()) {
7658 subBuilder.mergeFrom(getNetworkDataSettings());
7660 input.readMessage(subBuilder, extensionRegistry);
7661 setNetworkDataSettings(subBuilder.buildPartial());
7665 com.openxc.BinaryMessages.ServerConnectSettings.Builder subBuilder = com.openxc.BinaryMessages.ServerConnectSettings.newBuilder();
7666 if (hasServerConnectSettings()) {
7667 subBuilder.mergeFrom(getServerConnectSettings());
7669 input.readMessage(subBuilder, extensionRegistry);
7670 setServerConnectSettings(subBuilder.buildPartial());
7677 private int bitField0_;
7679 // optional .openxc.NetworkOperatorSettings networkOperatorSettings = 1;
7680 private com.openxc.BinaryMessages.NetworkOperatorSettings networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7681 private com.google.protobuf.SingleFieldBuilder<
7682 com.openxc.BinaryMessages.NetworkOperatorSettings, com.openxc.BinaryMessages.NetworkOperatorSettings.Builder, com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder> networkOperatorSettingsBuilder_;
7683 public boolean hasNetworkOperatorSettings() {
7684 return ((bitField0_ & 0x00000001) == 0x00000001);
7686 public com.openxc.BinaryMessages.NetworkOperatorSettings getNetworkOperatorSettings() {
7687 if (networkOperatorSettingsBuilder_ == null) {
7688 return networkOperatorSettings_;
7690 return networkOperatorSettingsBuilder_.getMessage();
7693 public Builder setNetworkOperatorSettings(com.openxc.BinaryMessages.NetworkOperatorSettings value) {
7694 if (networkOperatorSettingsBuilder_ == null) {
7695 if (value == null) {
7696 throw new NullPointerException();
7698 networkOperatorSettings_ = value;
7701 networkOperatorSettingsBuilder_.setMessage(value);
7703 bitField0_ |= 0x00000001;
7706 public Builder setNetworkOperatorSettings(
7707 com.openxc.BinaryMessages.NetworkOperatorSettings.Builder builderForValue) {
7708 if (networkOperatorSettingsBuilder_ == null) {
7709 networkOperatorSettings_ = builderForValue.build();
7712 networkOperatorSettingsBuilder_.setMessage(builderForValue.build());
7714 bitField0_ |= 0x00000001;
7717 public Builder mergeNetworkOperatorSettings(com.openxc.BinaryMessages.NetworkOperatorSettings value) {
7718 if (networkOperatorSettingsBuilder_ == null) {
7719 if (((bitField0_ & 0x00000001) == 0x00000001) &&
7720 networkOperatorSettings_ != com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance()) {
7721 networkOperatorSettings_ =
7722 com.openxc.BinaryMessages.NetworkOperatorSettings.newBuilder(networkOperatorSettings_).mergeFrom(value).buildPartial();
7724 networkOperatorSettings_ = value;
7728 networkOperatorSettingsBuilder_.mergeFrom(value);
7730 bitField0_ |= 0x00000001;
7733 public Builder clearNetworkOperatorSettings() {
7734 if (networkOperatorSettingsBuilder_ == null) {
7735 networkOperatorSettings_ = com.openxc.BinaryMessages.NetworkOperatorSettings.getDefaultInstance();
7738 networkOperatorSettingsBuilder_.clear();
7740 bitField0_ = (bitField0_ & ~0x00000001);
7743 public com.openxc.BinaryMessages.NetworkOperatorSettings.Builder getNetworkOperatorSettingsBuilder() {
7744 bitField0_ |= 0x00000001;
7746 return getNetworkOperatorSettingsFieldBuilder().getBuilder();
7748 public com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder getNetworkOperatorSettingsOrBuilder() {
7749 if (networkOperatorSettingsBuilder_ != null) {
7750 return networkOperatorSettingsBuilder_.getMessageOrBuilder();
7752 return networkOperatorSettings_;
7755 private com.google.protobuf.SingleFieldBuilder<
7756 com.openxc.BinaryMessages.NetworkOperatorSettings, com.openxc.BinaryMessages.NetworkOperatorSettings.Builder, com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder>
7757 getNetworkOperatorSettingsFieldBuilder() {
7758 if (networkOperatorSettingsBuilder_ == null) {
7759 networkOperatorSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7760 com.openxc.BinaryMessages.NetworkOperatorSettings, com.openxc.BinaryMessages.NetworkOperatorSettings.Builder, com.openxc.BinaryMessages.NetworkOperatorSettingsOrBuilder>(
7761 networkOperatorSettings_,
7762 getParentForChildren(),
7764 networkOperatorSettings_ = null;
7766 return networkOperatorSettingsBuilder_;
7769 // optional .openxc.NetworkDataSettings networkDataSettings = 2;
7770 private com.openxc.BinaryMessages.NetworkDataSettings networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7771 private com.google.protobuf.SingleFieldBuilder<
7772 com.openxc.BinaryMessages.NetworkDataSettings, com.openxc.BinaryMessages.NetworkDataSettings.Builder, com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder> networkDataSettingsBuilder_;
7773 public boolean hasNetworkDataSettings() {
7774 return ((bitField0_ & 0x00000002) == 0x00000002);
7776 public com.openxc.BinaryMessages.NetworkDataSettings getNetworkDataSettings() {
7777 if (networkDataSettingsBuilder_ == null) {
7778 return networkDataSettings_;
7780 return networkDataSettingsBuilder_.getMessage();
7783 public Builder setNetworkDataSettings(com.openxc.BinaryMessages.NetworkDataSettings value) {
7784 if (networkDataSettingsBuilder_ == null) {
7785 if (value == null) {
7786 throw new NullPointerException();
7788 networkDataSettings_ = value;
7791 networkDataSettingsBuilder_.setMessage(value);
7793 bitField0_ |= 0x00000002;
7796 public Builder setNetworkDataSettings(
7797 com.openxc.BinaryMessages.NetworkDataSettings.Builder builderForValue) {
7798 if (networkDataSettingsBuilder_ == null) {
7799 networkDataSettings_ = builderForValue.build();
7802 networkDataSettingsBuilder_.setMessage(builderForValue.build());
7804 bitField0_ |= 0x00000002;
7807 public Builder mergeNetworkDataSettings(com.openxc.BinaryMessages.NetworkDataSettings value) {
7808 if (networkDataSettingsBuilder_ == null) {
7809 if (((bitField0_ & 0x00000002) == 0x00000002) &&
7810 networkDataSettings_ != com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance()) {
7811 networkDataSettings_ =
7812 com.openxc.BinaryMessages.NetworkDataSettings.newBuilder(networkDataSettings_).mergeFrom(value).buildPartial();
7814 networkDataSettings_ = value;
7818 networkDataSettingsBuilder_.mergeFrom(value);
7820 bitField0_ |= 0x00000002;
7823 public Builder clearNetworkDataSettings() {
7824 if (networkDataSettingsBuilder_ == null) {
7825 networkDataSettings_ = com.openxc.BinaryMessages.NetworkDataSettings.getDefaultInstance();
7828 networkDataSettingsBuilder_.clear();
7830 bitField0_ = (bitField0_ & ~0x00000002);
7833 public com.openxc.BinaryMessages.NetworkDataSettings.Builder getNetworkDataSettingsBuilder() {
7834 bitField0_ |= 0x00000002;
7836 return getNetworkDataSettingsFieldBuilder().getBuilder();
7838 public com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder getNetworkDataSettingsOrBuilder() {
7839 if (networkDataSettingsBuilder_ != null) {
7840 return networkDataSettingsBuilder_.getMessageOrBuilder();
7842 return networkDataSettings_;
7845 private com.google.protobuf.SingleFieldBuilder<
7846 com.openxc.BinaryMessages.NetworkDataSettings, com.openxc.BinaryMessages.NetworkDataSettings.Builder, com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder>
7847 getNetworkDataSettingsFieldBuilder() {
7848 if (networkDataSettingsBuilder_ == null) {
7849 networkDataSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7850 com.openxc.BinaryMessages.NetworkDataSettings, com.openxc.BinaryMessages.NetworkDataSettings.Builder, com.openxc.BinaryMessages.NetworkDataSettingsOrBuilder>(
7851 networkDataSettings_,
7852 getParentForChildren(),
7854 networkDataSettings_ = null;
7856 return networkDataSettingsBuilder_;
7859 // optional .openxc.ServerConnectSettings serverConnectSettings = 3;
7860 private com.openxc.BinaryMessages.ServerConnectSettings serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7861 private com.google.protobuf.SingleFieldBuilder<
7862 com.openxc.BinaryMessages.ServerConnectSettings, com.openxc.BinaryMessages.ServerConnectSettings.Builder, com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder> serverConnectSettingsBuilder_;
7863 public boolean hasServerConnectSettings() {
7864 return ((bitField0_ & 0x00000004) == 0x00000004);
7866 public com.openxc.BinaryMessages.ServerConnectSettings getServerConnectSettings() {
7867 if (serverConnectSettingsBuilder_ == null) {
7868 return serverConnectSettings_;
7870 return serverConnectSettingsBuilder_.getMessage();
7873 public Builder setServerConnectSettings(com.openxc.BinaryMessages.ServerConnectSettings value) {
7874 if (serverConnectSettingsBuilder_ == null) {
7875 if (value == null) {
7876 throw new NullPointerException();
7878 serverConnectSettings_ = value;
7881 serverConnectSettingsBuilder_.setMessage(value);
7883 bitField0_ |= 0x00000004;
7886 public Builder setServerConnectSettings(
7887 com.openxc.BinaryMessages.ServerConnectSettings.Builder builderForValue) {
7888 if (serverConnectSettingsBuilder_ == null) {
7889 serverConnectSettings_ = builderForValue.build();
7892 serverConnectSettingsBuilder_.setMessage(builderForValue.build());
7894 bitField0_ |= 0x00000004;
7897 public Builder mergeServerConnectSettings(com.openxc.BinaryMessages.ServerConnectSettings value) {
7898 if (serverConnectSettingsBuilder_ == null) {
7899 if (((bitField0_ & 0x00000004) == 0x00000004) &&
7900 serverConnectSettings_ != com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance()) {
7901 serverConnectSettings_ =
7902 com.openxc.BinaryMessages.ServerConnectSettings.newBuilder(serverConnectSettings_).mergeFrom(value).buildPartial();
7904 serverConnectSettings_ = value;
7908 serverConnectSettingsBuilder_.mergeFrom(value);
7910 bitField0_ |= 0x00000004;
7913 public Builder clearServerConnectSettings() {
7914 if (serverConnectSettingsBuilder_ == null) {
7915 serverConnectSettings_ = com.openxc.BinaryMessages.ServerConnectSettings.getDefaultInstance();
7918 serverConnectSettingsBuilder_.clear();
7920 bitField0_ = (bitField0_ & ~0x00000004);
7923 public com.openxc.BinaryMessages.ServerConnectSettings.Builder getServerConnectSettingsBuilder() {
7924 bitField0_ |= 0x00000004;
7926 return getServerConnectSettingsFieldBuilder().getBuilder();
7928 public com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder getServerConnectSettingsOrBuilder() {
7929 if (serverConnectSettingsBuilder_ != null) {
7930 return serverConnectSettingsBuilder_.getMessageOrBuilder();
7932 return serverConnectSettings_;
7935 private com.google.protobuf.SingleFieldBuilder<
7936 com.openxc.BinaryMessages.ServerConnectSettings, com.openxc.BinaryMessages.ServerConnectSettings.Builder, com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder>
7937 getServerConnectSettingsFieldBuilder() {
7938 if (serverConnectSettingsBuilder_ == null) {
7939 serverConnectSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
7940 com.openxc.BinaryMessages.ServerConnectSettings, com.openxc.BinaryMessages.ServerConnectSettings.Builder, com.openxc.BinaryMessages.ServerConnectSettingsOrBuilder>(
7941 serverConnectSettings_,
7942 getParentForChildren(),
7944 serverConnectSettings_ = null;
7946 return serverConnectSettingsBuilder_;
7949 // @@protoc_insertion_point(builder_scope:openxc.ModemConfigurationCommand)
7953 defaultInstance = new ModemConfigurationCommand(true);
7954 defaultInstance.initFields();
7957 // @@protoc_insertion_point(class_scope:openxc.ModemConfigurationCommand)
7960 public interface RTCConfigurationCommandOrBuilder
7961 extends com.google.protobuf.MessageOrBuilder {
7963 // optional uint32 unix_time = 1;
7964 boolean hasUnixTime();
7967 public static final class RTCConfigurationCommand extends
7968 com.google.protobuf.GeneratedMessage
7969 implements RTCConfigurationCommandOrBuilder {
7970 // Use RTCConfigurationCommand.newBuilder() to construct.
7971 private RTCConfigurationCommand(Builder builder) {
7974 private RTCConfigurationCommand(boolean noInit) {}
7976 private static final RTCConfigurationCommand defaultInstance;
7977 public static RTCConfigurationCommand getDefaultInstance() {
7978 return defaultInstance;
7981 public RTCConfigurationCommand getDefaultInstanceForType() {
7982 return defaultInstance;
7985 public static final com.google.protobuf.Descriptors.Descriptor
7987 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_descriptor;
7990 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7991 internalGetFieldAccessorTable() {
7992 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable;
7995 private int bitField0_;
7996 // optional uint32 unix_time = 1;
7997 public static final int UNIX_TIME_FIELD_NUMBER = 1;
7998 private int unixTime_;
7999 public boolean hasUnixTime() {
8000 return ((bitField0_ & 0x00000001) == 0x00000001);
8002 public int getUnixTime() {
8006 private void initFields() {
8009 private byte memoizedIsInitialized = -1;
8010 public final boolean isInitialized() {
8011 byte isInitialized = memoizedIsInitialized;
8012 if (isInitialized != -1) return isInitialized == 1;
8014 memoizedIsInitialized = 1;
8018 public void writeTo(com.google.protobuf.CodedOutputStream output)
8019 throws java.io.IOException {
8020 getSerializedSize();
8021 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8022 output.writeUInt32(1, unixTime_);
8024 getUnknownFields().writeTo(output);
8027 private int memoizedSerializedSize = -1;
8028 public int getSerializedSize() {
8029 int size = memoizedSerializedSize;
8030 if (size != -1) return size;
8033 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8034 size += com.google.protobuf.CodedOutputStream
8035 .computeUInt32Size(1, unixTime_);
8037 size += getUnknownFields().getSerializedSize();
8038 memoizedSerializedSize = size;
8042 private static final long serialVersionUID = 0L;
8044 protected java.lang.Object writeReplace()
8045 throws java.io.ObjectStreamException {
8046 return super.writeReplace();
8049 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8050 com.google.protobuf.ByteString data)
8051 throws com.google.protobuf.InvalidProtocolBufferException {
8052 return newBuilder().mergeFrom(data).buildParsed();
8054 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8055 com.google.protobuf.ByteString data,
8056 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8057 throws com.google.protobuf.InvalidProtocolBufferException {
8058 return newBuilder().mergeFrom(data, extensionRegistry)
8061 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(byte[] data)
8062 throws com.google.protobuf.InvalidProtocolBufferException {
8063 return newBuilder().mergeFrom(data).buildParsed();
8065 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8067 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8068 throws com.google.protobuf.InvalidProtocolBufferException {
8069 return newBuilder().mergeFrom(data, extensionRegistry)
8072 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(java.io.InputStream input)
8073 throws java.io.IOException {
8074 return newBuilder().mergeFrom(input).buildParsed();
8076 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8077 java.io.InputStream input,
8078 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8079 throws java.io.IOException {
8080 return newBuilder().mergeFrom(input, extensionRegistry)
8083 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseDelimitedFrom(java.io.InputStream input)
8084 throws java.io.IOException {
8085 Builder builder = newBuilder();
8086 if (builder.mergeDelimitedFrom(input)) {
8087 return builder.buildParsed();
8092 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseDelimitedFrom(
8093 java.io.InputStream input,
8094 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8095 throws java.io.IOException {
8096 Builder builder = newBuilder();
8097 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
8098 return builder.buildParsed();
8103 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8104 com.google.protobuf.CodedInputStream input)
8105 throws java.io.IOException {
8106 return newBuilder().mergeFrom(input).buildParsed();
8108 public static com.openxc.BinaryMessages.RTCConfigurationCommand parseFrom(
8109 com.google.protobuf.CodedInputStream input,
8110 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8111 throws java.io.IOException {
8112 return newBuilder().mergeFrom(input, extensionRegistry)
8116 public static Builder newBuilder() { return Builder.create(); }
8117 public Builder newBuilderForType() { return newBuilder(); }
8118 public static Builder newBuilder(com.openxc.BinaryMessages.RTCConfigurationCommand prototype) {
8119 return newBuilder().mergeFrom(prototype);
8121 public Builder toBuilder() { return newBuilder(this); }
8124 protected Builder newBuilderForType(
8125 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8126 Builder builder = new Builder(parent);
8129 public static final class Builder extends
8130 com.google.protobuf.GeneratedMessage.Builder<Builder>
8131 implements com.openxc.BinaryMessages.RTCConfigurationCommandOrBuilder {
8132 public static final com.google.protobuf.Descriptors.Descriptor
8134 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_descriptor;
8137 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8138 internalGetFieldAccessorTable() {
8139 return com.openxc.BinaryMessages.internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable;
8142 // Construct using com.openxc.BinaryMessages.RTCConfigurationCommand.newBuilder()
8144 maybeForceBuilderInitialization();
8147 private Builder(BuilderParent parent) {
8149 maybeForceBuilderInitialization();
8151 private void maybeForceBuilderInitialization() {
8152 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8155 private static Builder create() {
8156 return new Builder();
8159 public Builder clear() {
8162 bitField0_ = (bitField0_ & ~0x00000001);
8166 public Builder clone() {
8167 return create().mergeFrom(buildPartial());
8170 public com.google.protobuf.Descriptors.Descriptor
8171 getDescriptorForType() {
8172 return com.openxc.BinaryMessages.RTCConfigurationCommand.getDescriptor();
8175 public com.openxc.BinaryMessages.RTCConfigurationCommand getDefaultInstanceForType() {
8176 return com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance();
8179 public com.openxc.BinaryMessages.RTCConfigurationCommand build() {
8180 com.openxc.BinaryMessages.RTCConfigurationCommand result = buildPartial();
8181 if (!result.isInitialized()) {
8182 throw newUninitializedMessageException(result);
8187 private com.openxc.BinaryMessages.RTCConfigurationCommand buildParsed()
8188 throws com.google.protobuf.InvalidProtocolBufferException {
8189 com.openxc.BinaryMessages.RTCConfigurationCommand result = buildPartial();
8190 if (!result.isInitialized()) {
8191 throw newUninitializedMessageException(
8192 result).asInvalidProtocolBufferException();
8197 public com.openxc.BinaryMessages.RTCConfigurationCommand buildPartial() {
8198 com.openxc.BinaryMessages.RTCConfigurationCommand result = new com.openxc.BinaryMessages.RTCConfigurationCommand(this);
8199 int from_bitField0_ = bitField0_;
8200 int to_bitField0_ = 0;
8201 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8202 to_bitField0_ |= 0x00000001;
8204 result.unixTime_ = unixTime_;
8205 result.bitField0_ = to_bitField0_;
8210 public Builder mergeFrom(com.google.protobuf.Message other) {
8211 if (other instanceof com.openxc.BinaryMessages.RTCConfigurationCommand) {
8212 return mergeFrom((com.openxc.BinaryMessages.RTCConfigurationCommand)other);
8214 super.mergeFrom(other);
8219 public Builder mergeFrom(com.openxc.BinaryMessages.RTCConfigurationCommand other) {
8220 if (other == com.openxc.BinaryMessages.RTCConfigurationCommand.getDefaultInstance()) return this;
8221 if (other.hasUnixTime()) {
8222 setUnixTime(other.getUnixTime());
8224 this.mergeUnknownFields(other.getUnknownFields());
8228 public final boolean isInitialized() {
8232 public Builder mergeFrom(
8233 com.google.protobuf.CodedInputStream input,
8234 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8235 throws java.io.IOException {
8236 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8237 com.google.protobuf.UnknownFieldSet.newBuilder(
8238 this.getUnknownFields());
8240 int tag = input.readTag();
8243 this.setUnknownFields(unknownFields.build());
8247 if (!parseUnknownField(input, unknownFields,
8248 extensionRegistry, tag)) {
8249 this.setUnknownFields(unknownFields.build());
8256 bitField0_ |= 0x00000001;
8257 unixTime_ = input.readUInt32();
8264 private int bitField0_;
8266 // optional uint32 unix_time = 1;
8267 private int unixTime_ ;
8268 public boolean hasUnixTime() {
8269 return ((bitField0_ & 0x00000001) == 0x00000001);
8271 public int getUnixTime() {
8274 public Builder setUnixTime(int value) {
8275 bitField0_ |= 0x00000001;
8280 public Builder clearUnixTime() {
8281 bitField0_ = (bitField0_ & ~0x00000001);
8287 // @@protoc_insertion_point(builder_scope:openxc.RTCConfigurationCommand)
8291 defaultInstance = new RTCConfigurationCommand(true);
8292 defaultInstance.initFields();
8295 // @@protoc_insertion_point(class_scope:openxc.RTCConfigurationCommand)
8298 public interface CommandResponseOrBuilder
8299 extends com.google.protobuf.MessageOrBuilder {
8301 // optional .openxc.ControlCommand.Type type = 1;
8303 com.openxc.BinaryMessages.ControlCommand.Type getType();
8305 // optional string message = 2;
8306 boolean hasMessage();
8307 String getMessage();
8309 // optional bool status = 3;
8310 boolean hasStatus();
8311 boolean getStatus();
8313 public static final class CommandResponse extends
8314 com.google.protobuf.GeneratedMessage
8315 implements CommandResponseOrBuilder {
8316 // Use CommandResponse.newBuilder() to construct.
8317 private CommandResponse(Builder builder) {
8320 private CommandResponse(boolean noInit) {}
8322 private static final CommandResponse defaultInstance;
8323 public static CommandResponse getDefaultInstance() {
8324 return defaultInstance;
8327 public CommandResponse getDefaultInstanceForType() {
8328 return defaultInstance;
8331 public static final com.google.protobuf.Descriptors.Descriptor
8333 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
8336 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8337 internalGetFieldAccessorTable() {
8338 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable;
8341 private int bitField0_;
8342 // optional .openxc.ControlCommand.Type type = 1;
8343 public static final int TYPE_FIELD_NUMBER = 1;
8344 private com.openxc.BinaryMessages.ControlCommand.Type type_;
8345 public boolean hasType() {
8346 return ((bitField0_ & 0x00000001) == 0x00000001);
8348 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
8352 // optional string message = 2;
8353 public static final int MESSAGE_FIELD_NUMBER = 2;
8354 private java.lang.Object message_;
8355 public boolean hasMessage() {
8356 return ((bitField0_ & 0x00000002) == 0x00000002);
8358 public String getMessage() {
8359 java.lang.Object ref = message_;
8360 if (ref instanceof String) {
8361 return (String) ref;
8363 com.google.protobuf.ByteString bs =
8364 (com.google.protobuf.ByteString) ref;
8365 String s = bs.toStringUtf8();
8366 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
8372 private com.google.protobuf.ByteString getMessageBytes() {
8373 java.lang.Object ref = message_;
8374 if (ref instanceof String) {
8375 com.google.protobuf.ByteString b =
8376 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
8380 return (com.google.protobuf.ByteString) ref;
8384 // optional bool status = 3;
8385 public static final int STATUS_FIELD_NUMBER = 3;
8386 private boolean status_;
8387 public boolean hasStatus() {
8388 return ((bitField0_ & 0x00000004) == 0x00000004);
8390 public boolean getStatus() {
8394 private void initFields() {
8395 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8399 private byte memoizedIsInitialized = -1;
8400 public final boolean isInitialized() {
8401 byte isInitialized = memoizedIsInitialized;
8402 if (isInitialized != -1) return isInitialized == 1;
8404 memoizedIsInitialized = 1;
8408 public void writeTo(com.google.protobuf.CodedOutputStream output)
8409 throws java.io.IOException {
8410 getSerializedSize();
8411 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8412 output.writeEnum(1, type_.getNumber());
8414 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8415 output.writeBytes(2, getMessageBytes());
8417 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8418 output.writeBool(3, status_);
8420 getUnknownFields().writeTo(output);
8423 private int memoizedSerializedSize = -1;
8424 public int getSerializedSize() {
8425 int size = memoizedSerializedSize;
8426 if (size != -1) return size;
8429 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8430 size += com.google.protobuf.CodedOutputStream
8431 .computeEnumSize(1, type_.getNumber());
8433 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8434 size += com.google.protobuf.CodedOutputStream
8435 .computeBytesSize(2, getMessageBytes());
8437 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8438 size += com.google.protobuf.CodedOutputStream
8439 .computeBoolSize(3, status_);
8441 size += getUnknownFields().getSerializedSize();
8442 memoizedSerializedSize = size;
8446 private static final long serialVersionUID = 0L;
8448 protected java.lang.Object writeReplace()
8449 throws java.io.ObjectStreamException {
8450 return super.writeReplace();
8453 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8454 com.google.protobuf.ByteString data)
8455 throws com.google.protobuf.InvalidProtocolBufferException {
8456 return newBuilder().mergeFrom(data).buildParsed();
8458 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8459 com.google.protobuf.ByteString data,
8460 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8461 throws com.google.protobuf.InvalidProtocolBufferException {
8462 return newBuilder().mergeFrom(data, extensionRegistry)
8465 public static com.openxc.BinaryMessages.CommandResponse parseFrom(byte[] data)
8466 throws com.google.protobuf.InvalidProtocolBufferException {
8467 return newBuilder().mergeFrom(data).buildParsed();
8469 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8471 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8472 throws com.google.protobuf.InvalidProtocolBufferException {
8473 return newBuilder().mergeFrom(data, extensionRegistry)
8476 public static com.openxc.BinaryMessages.CommandResponse parseFrom(java.io.InputStream input)
8477 throws java.io.IOException {
8478 return newBuilder().mergeFrom(input).buildParsed();
8480 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8481 java.io.InputStream input,
8482 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8483 throws java.io.IOException {
8484 return newBuilder().mergeFrom(input, extensionRegistry)
8487 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(java.io.InputStream input)
8488 throws java.io.IOException {
8489 Builder builder = newBuilder();
8490 if (builder.mergeDelimitedFrom(input)) {
8491 return builder.buildParsed();
8496 public static com.openxc.BinaryMessages.CommandResponse parseDelimitedFrom(
8497 java.io.InputStream input,
8498 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8499 throws java.io.IOException {
8500 Builder builder = newBuilder();
8501 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
8502 return builder.buildParsed();
8507 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8508 com.google.protobuf.CodedInputStream input)
8509 throws java.io.IOException {
8510 return newBuilder().mergeFrom(input).buildParsed();
8512 public static com.openxc.BinaryMessages.CommandResponse parseFrom(
8513 com.google.protobuf.CodedInputStream input,
8514 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8515 throws java.io.IOException {
8516 return newBuilder().mergeFrom(input, extensionRegistry)
8520 public static Builder newBuilder() { return Builder.create(); }
8521 public Builder newBuilderForType() { return newBuilder(); }
8522 public static Builder newBuilder(com.openxc.BinaryMessages.CommandResponse prototype) {
8523 return newBuilder().mergeFrom(prototype);
8525 public Builder toBuilder() { return newBuilder(this); }
8528 protected Builder newBuilderForType(
8529 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
8530 Builder builder = new Builder(parent);
8533 public static final class Builder extends
8534 com.google.protobuf.GeneratedMessage.Builder<Builder>
8535 implements com.openxc.BinaryMessages.CommandResponseOrBuilder {
8536 public static final com.google.protobuf.Descriptors.Descriptor
8538 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_descriptor;
8541 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8542 internalGetFieldAccessorTable() {
8543 return com.openxc.BinaryMessages.internal_static_openxc_CommandResponse_fieldAccessorTable;
8546 // Construct using com.openxc.BinaryMessages.CommandResponse.newBuilder()
8548 maybeForceBuilderInitialization();
8551 private Builder(BuilderParent parent) {
8553 maybeForceBuilderInitialization();
8555 private void maybeForceBuilderInitialization() {
8556 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
8559 private static Builder create() {
8560 return new Builder();
8563 public Builder clear() {
8565 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8566 bitField0_ = (bitField0_ & ~0x00000001);
8568 bitField0_ = (bitField0_ & ~0x00000002);
8570 bitField0_ = (bitField0_ & ~0x00000004);
8574 public Builder clone() {
8575 return create().mergeFrom(buildPartial());
8578 public com.google.protobuf.Descriptors.Descriptor
8579 getDescriptorForType() {
8580 return com.openxc.BinaryMessages.CommandResponse.getDescriptor();
8583 public com.openxc.BinaryMessages.CommandResponse getDefaultInstanceForType() {
8584 return com.openxc.BinaryMessages.CommandResponse.getDefaultInstance();
8587 public com.openxc.BinaryMessages.CommandResponse build() {
8588 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
8589 if (!result.isInitialized()) {
8590 throw newUninitializedMessageException(result);
8595 private com.openxc.BinaryMessages.CommandResponse buildParsed()
8596 throws com.google.protobuf.InvalidProtocolBufferException {
8597 com.openxc.BinaryMessages.CommandResponse result = buildPartial();
8598 if (!result.isInitialized()) {
8599 throw newUninitializedMessageException(
8600 result).asInvalidProtocolBufferException();
8605 public com.openxc.BinaryMessages.CommandResponse buildPartial() {
8606 com.openxc.BinaryMessages.CommandResponse result = new com.openxc.BinaryMessages.CommandResponse(this);
8607 int from_bitField0_ = bitField0_;
8608 int to_bitField0_ = 0;
8609 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
8610 to_bitField0_ |= 0x00000001;
8612 result.type_ = type_;
8613 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
8614 to_bitField0_ |= 0x00000002;
8616 result.message_ = message_;
8617 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
8618 to_bitField0_ |= 0x00000004;
8620 result.status_ = status_;
8621 result.bitField0_ = to_bitField0_;
8626 public Builder mergeFrom(com.google.protobuf.Message other) {
8627 if (other instanceof com.openxc.BinaryMessages.CommandResponse) {
8628 return mergeFrom((com.openxc.BinaryMessages.CommandResponse)other);
8630 super.mergeFrom(other);
8635 public Builder mergeFrom(com.openxc.BinaryMessages.CommandResponse other) {
8636 if (other == com.openxc.BinaryMessages.CommandResponse.getDefaultInstance()) return this;
8637 if (other.hasType()) {
8638 setType(other.getType());
8640 if (other.hasMessage()) {
8641 setMessage(other.getMessage());
8643 if (other.hasStatus()) {
8644 setStatus(other.getStatus());
8646 this.mergeUnknownFields(other.getUnknownFields());
8650 public final boolean isInitialized() {
8654 public Builder mergeFrom(
8655 com.google.protobuf.CodedInputStream input,
8656 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
8657 throws java.io.IOException {
8658 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
8659 com.google.protobuf.UnknownFieldSet.newBuilder(
8660 this.getUnknownFields());
8662 int tag = input.readTag();
8665 this.setUnknownFields(unknownFields.build());
8669 if (!parseUnknownField(input, unknownFields,
8670 extensionRegistry, tag)) {
8671 this.setUnknownFields(unknownFields.build());
8678 int rawValue = input.readEnum();
8679 com.openxc.BinaryMessages.ControlCommand.Type value = com.openxc.BinaryMessages.ControlCommand.Type.valueOf(rawValue);
8680 if (value == null) {
8681 unknownFields.mergeVarintField(1, rawValue);
8683 bitField0_ |= 0x00000001;
8689 bitField0_ |= 0x00000002;
8690 message_ = input.readBytes();
8694 bitField0_ |= 0x00000004;
8695 status_ = input.readBool();
8702 private int bitField0_;
8704 // optional .openxc.ControlCommand.Type type = 1;
8705 private com.openxc.BinaryMessages.ControlCommand.Type type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8706 public boolean hasType() {
8707 return ((bitField0_ & 0x00000001) == 0x00000001);
8709 public com.openxc.BinaryMessages.ControlCommand.Type getType() {
8712 public Builder setType(com.openxc.BinaryMessages.ControlCommand.Type value) {
8713 if (value == null) {
8714 throw new NullPointerException();
8716 bitField0_ |= 0x00000001;
8721 public Builder clearType() {
8722 bitField0_ = (bitField0_ & ~0x00000001);
8723 type_ = com.openxc.BinaryMessages.ControlCommand.Type.VERSION;
8728 // optional string message = 2;
8729 private java.lang.Object message_ = "";
8730 public boolean hasMessage() {
8731 return ((bitField0_ & 0x00000002) == 0x00000002);
8733 public String getMessage() {
8734 java.lang.Object ref = message_;
8735 if (!(ref instanceof String)) {
8736 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
8740 return (String) ref;
8743 public Builder setMessage(String value) {
8744 if (value == null) {
8745 throw new NullPointerException();
8747 bitField0_ |= 0x00000002;
8752 public Builder clearMessage() {
8753 bitField0_ = (bitField0_ & ~0x00000002);
8754 message_ = getDefaultInstance().getMessage();
8758 void setMessage(com.google.protobuf.ByteString value) {
8759 bitField0_ |= 0x00000002;
8764 // optional bool status = 3;
8765 private boolean status_ ;
8766 public boolean hasStatus() {
8767 return ((bitField0_ & 0x00000004) == 0x00000004);
8769 public boolean getStatus() {
8772 public Builder setStatus(boolean value) {
8773 bitField0_ |= 0x00000004;
8778 public Builder clearStatus() {
8779 bitField0_ = (bitField0_ & ~0x00000004);
8785 // @@protoc_insertion_point(builder_scope:openxc.CommandResponse)
8789 defaultInstance = new CommandResponse(true);
8790 defaultInstance.initFields();
8793 // @@protoc_insertion_point(class_scope:openxc.CommandResponse)
8796 public interface DiagnosticRequestOrBuilder
8797 extends com.google.protobuf.MessageOrBuilder {
8799 // optional int32 bus = 1;
8803 // optional uint32 message_id = 2;
8804 boolean hasMessageId();
8807 // optional uint32 mode = 3;
8811 // optional uint32 pid = 4;
8815 // optional bytes payload = 5;
8816 boolean hasPayload();
8817 com.google.protobuf.ByteString getPayload();
8819 // optional bool multiple_responses = 6;
8820 boolean hasMultipleResponses();
8821 boolean getMultipleResponses();
8823 // optional double frequency = 7;
8824 boolean hasFrequency();
8825 double getFrequency();
8827 // optional string name = 8;
8831 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
8832 boolean hasDecodedType();
8833 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType();
8835 public static final class DiagnosticRequest extends
8836 com.google.protobuf.GeneratedMessage
8837 implements DiagnosticRequestOrBuilder {
8838 // Use DiagnosticRequest.newBuilder() to construct.
8839 private DiagnosticRequest(Builder builder) {
8842 private DiagnosticRequest(boolean noInit) {}
8844 private static final DiagnosticRequest defaultInstance;
8845 public static DiagnosticRequest getDefaultInstance() {
8846 return defaultInstance;
8849 public DiagnosticRequest getDefaultInstanceForType() {
8850 return defaultInstance;
8853 public static final com.google.protobuf.Descriptors.Descriptor
8855 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
8858 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
8859 internalGetFieldAccessorTable() {
8860 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
8863 public enum DecodedType
8864 implements com.google.protobuf.ProtocolMessageEnum {
8869 public static final int NONE_VALUE = 1;
8870 public static final int OBD2_VALUE = 2;
8873 public final int getNumber() { return value; }
8875 public static DecodedType valueOf(int value) {
8877 case 1: return NONE;
8878 case 2: return OBD2;
8879 default: return null;
8883 public static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
8884 internalGetValueMap() {
8885 return internalValueMap;
8887 private static com.google.protobuf.Internal.EnumLiteMap<DecodedType>
8889 new com.google.protobuf.Internal.EnumLiteMap<DecodedType>() {
8890 public DecodedType findValueByNumber(int number) {
8891 return DecodedType.valueOf(number);
8895 public final com.google.protobuf.Descriptors.EnumValueDescriptor
8896 getValueDescriptor() {
8897 return getDescriptor().getValues().get(index);
8899 public final com.google.protobuf.Descriptors.EnumDescriptor
8900 getDescriptorForType() {
8901 return getDescriptor();
8903 public static final com.google.protobuf.Descriptors.EnumDescriptor
8905 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor().getEnumTypes().get(0);
8908 private static final DecodedType[] VALUES = {
8912 public static DecodedType valueOf(
8913 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
8914 if (desc.getType() != getDescriptor()) {
8915 throw new java.lang.IllegalArgumentException(
8916 "EnumValueDescriptor is not for this type.");
8918 return VALUES[desc.getIndex()];
8921 private final int index;
8922 private final int value;
8924 private DecodedType(int index, int value) {
8929 // @@protoc_insertion_point(enum_scope:openxc.DiagnosticRequest.DecodedType)
8932 private int bitField0_;
8933 // optional int32 bus = 1;
8934 public static final int BUS_FIELD_NUMBER = 1;
8936 public boolean hasBus() {
8937 return ((bitField0_ & 0x00000001) == 0x00000001);
8939 public int getBus() {
8943 // optional uint32 message_id = 2;
8944 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
8945 private int messageId_;
8946 public boolean hasMessageId() {
8947 return ((bitField0_ & 0x00000002) == 0x00000002);
8949 public int getMessageId() {
8953 // optional uint32 mode = 3;
8954 public static final int MODE_FIELD_NUMBER = 3;
8956 public boolean hasMode() {
8957 return ((bitField0_ & 0x00000004) == 0x00000004);
8959 public int getMode() {
8963 // optional uint32 pid = 4;
8964 public static final int PID_FIELD_NUMBER = 4;
8966 public boolean hasPid() {
8967 return ((bitField0_ & 0x00000008) == 0x00000008);
8969 public int getPid() {
8973 // optional bytes payload = 5;
8974 public static final int PAYLOAD_FIELD_NUMBER = 5;
8975 private com.google.protobuf.ByteString payload_;
8976 public boolean hasPayload() {
8977 return ((bitField0_ & 0x00000010) == 0x00000010);
8979 public com.google.protobuf.ByteString getPayload() {
8983 // optional bool multiple_responses = 6;
8984 public static final int MULTIPLE_RESPONSES_FIELD_NUMBER = 6;
8985 private boolean multipleResponses_;
8986 public boolean hasMultipleResponses() {
8987 return ((bitField0_ & 0x00000020) == 0x00000020);
8989 public boolean getMultipleResponses() {
8990 return multipleResponses_;
8993 // optional double frequency = 7;
8994 public static final int FREQUENCY_FIELD_NUMBER = 7;
8995 private double frequency_;
8996 public boolean hasFrequency() {
8997 return ((bitField0_ & 0x00000040) == 0x00000040);
8999 public double getFrequency() {
9003 // optional string name = 8;
9004 public static final int NAME_FIELD_NUMBER = 8;
9005 private java.lang.Object name_;
9006 public boolean hasName() {
9007 return ((bitField0_ & 0x00000080) == 0x00000080);
9009 public String getName() {
9010 java.lang.Object ref = name_;
9011 if (ref instanceof String) {
9012 return (String) ref;
9014 com.google.protobuf.ByteString bs =
9015 (com.google.protobuf.ByteString) ref;
9016 String s = bs.toStringUtf8();
9017 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
9023 private com.google.protobuf.ByteString getNameBytes() {
9024 java.lang.Object ref = name_;
9025 if (ref instanceof String) {
9026 com.google.protobuf.ByteString b =
9027 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
9031 return (com.google.protobuf.ByteString) ref;
9035 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
9036 public static final int DECODED_TYPE_FIELD_NUMBER = 9;
9037 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_;
9038 public boolean hasDecodedType() {
9039 return ((bitField0_ & 0x00000100) == 0x00000100);
9041 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
9042 return decodedType_;
9045 private void initFields() {
9050 payload_ = com.google.protobuf.ByteString.EMPTY;
9051 multipleResponses_ = false;
9054 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9056 private byte memoizedIsInitialized = -1;
9057 public final boolean isInitialized() {
9058 byte isInitialized = memoizedIsInitialized;
9059 if (isInitialized != -1) return isInitialized == 1;
9061 memoizedIsInitialized = 1;
9065 public void writeTo(com.google.protobuf.CodedOutputStream output)
9066 throws java.io.IOException {
9067 getSerializedSize();
9068 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9069 output.writeInt32(1, bus_);
9071 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9072 output.writeUInt32(2, messageId_);
9074 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9075 output.writeUInt32(3, mode_);
9077 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9078 output.writeUInt32(4, pid_);
9080 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9081 output.writeBytes(5, payload_);
9083 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9084 output.writeBool(6, multipleResponses_);
9086 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9087 output.writeDouble(7, frequency_);
9089 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9090 output.writeBytes(8, getNameBytes());
9092 if (((bitField0_ & 0x00000100) == 0x00000100)) {
9093 output.writeEnum(9, decodedType_.getNumber());
9095 getUnknownFields().writeTo(output);
9098 private int memoizedSerializedSize = -1;
9099 public int getSerializedSize() {
9100 int size = memoizedSerializedSize;
9101 if (size != -1) return size;
9104 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9105 size += com.google.protobuf.CodedOutputStream
9106 .computeInt32Size(1, bus_);
9108 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9109 size += com.google.protobuf.CodedOutputStream
9110 .computeUInt32Size(2, messageId_);
9112 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9113 size += com.google.protobuf.CodedOutputStream
9114 .computeUInt32Size(3, mode_);
9116 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9117 size += com.google.protobuf.CodedOutputStream
9118 .computeUInt32Size(4, pid_);
9120 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9121 size += com.google.protobuf.CodedOutputStream
9122 .computeBytesSize(5, payload_);
9124 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9125 size += com.google.protobuf.CodedOutputStream
9126 .computeBoolSize(6, multipleResponses_);
9128 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9129 size += com.google.protobuf.CodedOutputStream
9130 .computeDoubleSize(7, frequency_);
9132 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9133 size += com.google.protobuf.CodedOutputStream
9134 .computeBytesSize(8, getNameBytes());
9136 if (((bitField0_ & 0x00000100) == 0x00000100)) {
9137 size += com.google.protobuf.CodedOutputStream
9138 .computeEnumSize(9, decodedType_.getNumber());
9140 size += getUnknownFields().getSerializedSize();
9141 memoizedSerializedSize = size;
9145 private static final long serialVersionUID = 0L;
9147 protected java.lang.Object writeReplace()
9148 throws java.io.ObjectStreamException {
9149 return super.writeReplace();
9152 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9153 com.google.protobuf.ByteString data)
9154 throws com.google.protobuf.InvalidProtocolBufferException {
9155 return newBuilder().mergeFrom(data).buildParsed();
9157 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9158 com.google.protobuf.ByteString data,
9159 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9160 throws com.google.protobuf.InvalidProtocolBufferException {
9161 return newBuilder().mergeFrom(data, extensionRegistry)
9164 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(byte[] data)
9165 throws com.google.protobuf.InvalidProtocolBufferException {
9166 return newBuilder().mergeFrom(data).buildParsed();
9168 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9170 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9171 throws com.google.protobuf.InvalidProtocolBufferException {
9172 return newBuilder().mergeFrom(data, extensionRegistry)
9175 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(java.io.InputStream input)
9176 throws java.io.IOException {
9177 return newBuilder().mergeFrom(input).buildParsed();
9179 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9180 java.io.InputStream input,
9181 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9182 throws java.io.IOException {
9183 return newBuilder().mergeFrom(input, extensionRegistry)
9186 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(java.io.InputStream input)
9187 throws java.io.IOException {
9188 Builder builder = newBuilder();
9189 if (builder.mergeDelimitedFrom(input)) {
9190 return builder.buildParsed();
9195 public static com.openxc.BinaryMessages.DiagnosticRequest parseDelimitedFrom(
9196 java.io.InputStream input,
9197 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9198 throws java.io.IOException {
9199 Builder builder = newBuilder();
9200 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
9201 return builder.buildParsed();
9206 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9207 com.google.protobuf.CodedInputStream input)
9208 throws java.io.IOException {
9209 return newBuilder().mergeFrom(input).buildParsed();
9211 public static com.openxc.BinaryMessages.DiagnosticRequest parseFrom(
9212 com.google.protobuf.CodedInputStream input,
9213 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9214 throws java.io.IOException {
9215 return newBuilder().mergeFrom(input, extensionRegistry)
9219 public static Builder newBuilder() { return Builder.create(); }
9220 public Builder newBuilderForType() { return newBuilder(); }
9221 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticRequest prototype) {
9222 return newBuilder().mergeFrom(prototype);
9224 public Builder toBuilder() { return newBuilder(this); }
9227 protected Builder newBuilderForType(
9228 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
9229 Builder builder = new Builder(parent);
9232 public static final class Builder extends
9233 com.google.protobuf.GeneratedMessage.Builder<Builder>
9234 implements com.openxc.BinaryMessages.DiagnosticRequestOrBuilder {
9235 public static final com.google.protobuf.Descriptors.Descriptor
9237 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_descriptor;
9240 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9241 internalGetFieldAccessorTable() {
9242 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
9245 // Construct using com.openxc.BinaryMessages.DiagnosticRequest.newBuilder()
9247 maybeForceBuilderInitialization();
9250 private Builder(BuilderParent parent) {
9252 maybeForceBuilderInitialization();
9254 private void maybeForceBuilderInitialization() {
9255 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
9258 private static Builder create() {
9259 return new Builder();
9262 public Builder clear() {
9265 bitField0_ = (bitField0_ & ~0x00000001);
9267 bitField0_ = (bitField0_ & ~0x00000002);
9269 bitField0_ = (bitField0_ & ~0x00000004);
9271 bitField0_ = (bitField0_ & ~0x00000008);
9272 payload_ = com.google.protobuf.ByteString.EMPTY;
9273 bitField0_ = (bitField0_ & ~0x00000010);
9274 multipleResponses_ = false;
9275 bitField0_ = (bitField0_ & ~0x00000020);
9277 bitField0_ = (bitField0_ & ~0x00000040);
9279 bitField0_ = (bitField0_ & ~0x00000080);
9280 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9281 bitField0_ = (bitField0_ & ~0x00000100);
9285 public Builder clone() {
9286 return create().mergeFrom(buildPartial());
9289 public com.google.protobuf.Descriptors.Descriptor
9290 getDescriptorForType() {
9291 return com.openxc.BinaryMessages.DiagnosticRequest.getDescriptor();
9294 public com.openxc.BinaryMessages.DiagnosticRequest getDefaultInstanceForType() {
9295 return com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance();
9298 public com.openxc.BinaryMessages.DiagnosticRequest build() {
9299 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
9300 if (!result.isInitialized()) {
9301 throw newUninitializedMessageException(result);
9306 private com.openxc.BinaryMessages.DiagnosticRequest buildParsed()
9307 throws com.google.protobuf.InvalidProtocolBufferException {
9308 com.openxc.BinaryMessages.DiagnosticRequest result = buildPartial();
9309 if (!result.isInitialized()) {
9310 throw newUninitializedMessageException(
9311 result).asInvalidProtocolBufferException();
9316 public com.openxc.BinaryMessages.DiagnosticRequest buildPartial() {
9317 com.openxc.BinaryMessages.DiagnosticRequest result = new com.openxc.BinaryMessages.DiagnosticRequest(this);
9318 int from_bitField0_ = bitField0_;
9319 int to_bitField0_ = 0;
9320 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
9321 to_bitField0_ |= 0x00000001;
9324 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
9325 to_bitField0_ |= 0x00000002;
9327 result.messageId_ = messageId_;
9328 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
9329 to_bitField0_ |= 0x00000004;
9331 result.mode_ = mode_;
9332 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
9333 to_bitField0_ |= 0x00000008;
9336 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
9337 to_bitField0_ |= 0x00000010;
9339 result.payload_ = payload_;
9340 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
9341 to_bitField0_ |= 0x00000020;
9343 result.multipleResponses_ = multipleResponses_;
9344 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
9345 to_bitField0_ |= 0x00000040;
9347 result.frequency_ = frequency_;
9348 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
9349 to_bitField0_ |= 0x00000080;
9351 result.name_ = name_;
9352 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
9353 to_bitField0_ |= 0x00000100;
9355 result.decodedType_ = decodedType_;
9356 result.bitField0_ = to_bitField0_;
9361 public Builder mergeFrom(com.google.protobuf.Message other) {
9362 if (other instanceof com.openxc.BinaryMessages.DiagnosticRequest) {
9363 return mergeFrom((com.openxc.BinaryMessages.DiagnosticRequest)other);
9365 super.mergeFrom(other);
9370 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticRequest other) {
9371 if (other == com.openxc.BinaryMessages.DiagnosticRequest.getDefaultInstance()) return this;
9372 if (other.hasBus()) {
9373 setBus(other.getBus());
9375 if (other.hasMessageId()) {
9376 setMessageId(other.getMessageId());
9378 if (other.hasMode()) {
9379 setMode(other.getMode());
9381 if (other.hasPid()) {
9382 setPid(other.getPid());
9384 if (other.hasPayload()) {
9385 setPayload(other.getPayload());
9387 if (other.hasMultipleResponses()) {
9388 setMultipleResponses(other.getMultipleResponses());
9390 if (other.hasFrequency()) {
9391 setFrequency(other.getFrequency());
9393 if (other.hasName()) {
9394 setName(other.getName());
9396 if (other.hasDecodedType()) {
9397 setDecodedType(other.getDecodedType());
9399 this.mergeUnknownFields(other.getUnknownFields());
9403 public final boolean isInitialized() {
9407 public Builder mergeFrom(
9408 com.google.protobuf.CodedInputStream input,
9409 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9410 throws java.io.IOException {
9411 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
9412 com.google.protobuf.UnknownFieldSet.newBuilder(
9413 this.getUnknownFields());
9415 int tag = input.readTag();
9418 this.setUnknownFields(unknownFields.build());
9422 if (!parseUnknownField(input, unknownFields,
9423 extensionRegistry, tag)) {
9424 this.setUnknownFields(unknownFields.build());
9431 bitField0_ |= 0x00000001;
9432 bus_ = input.readInt32();
9436 bitField0_ |= 0x00000002;
9437 messageId_ = input.readUInt32();
9441 bitField0_ |= 0x00000004;
9442 mode_ = input.readUInt32();
9446 bitField0_ |= 0x00000008;
9447 pid_ = input.readUInt32();
9451 bitField0_ |= 0x00000010;
9452 payload_ = input.readBytes();
9456 bitField0_ |= 0x00000020;
9457 multipleResponses_ = input.readBool();
9461 bitField0_ |= 0x00000040;
9462 frequency_ = input.readDouble();
9466 bitField0_ |= 0x00000080;
9467 name_ = input.readBytes();
9471 int rawValue = input.readEnum();
9472 com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.valueOf(rawValue);
9473 if (value == null) {
9474 unknownFields.mergeVarintField(9, rawValue);
9476 bitField0_ |= 0x00000100;
9477 decodedType_ = value;
9485 private int bitField0_;
9487 // optional int32 bus = 1;
9489 public boolean hasBus() {
9490 return ((bitField0_ & 0x00000001) == 0x00000001);
9492 public int getBus() {
9495 public Builder setBus(int value) {
9496 bitField0_ |= 0x00000001;
9501 public Builder clearBus() {
9502 bitField0_ = (bitField0_ & ~0x00000001);
9508 // optional uint32 message_id = 2;
9509 private int messageId_ ;
9510 public boolean hasMessageId() {
9511 return ((bitField0_ & 0x00000002) == 0x00000002);
9513 public int getMessageId() {
9516 public Builder setMessageId(int value) {
9517 bitField0_ |= 0x00000002;
9522 public Builder clearMessageId() {
9523 bitField0_ = (bitField0_ & ~0x00000002);
9529 // optional uint32 mode = 3;
9531 public boolean hasMode() {
9532 return ((bitField0_ & 0x00000004) == 0x00000004);
9534 public int getMode() {
9537 public Builder setMode(int value) {
9538 bitField0_ |= 0x00000004;
9543 public Builder clearMode() {
9544 bitField0_ = (bitField0_ & ~0x00000004);
9550 // optional uint32 pid = 4;
9552 public boolean hasPid() {
9553 return ((bitField0_ & 0x00000008) == 0x00000008);
9555 public int getPid() {
9558 public Builder setPid(int value) {
9559 bitField0_ |= 0x00000008;
9564 public Builder clearPid() {
9565 bitField0_ = (bitField0_ & ~0x00000008);
9571 // optional bytes payload = 5;
9572 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
9573 public boolean hasPayload() {
9574 return ((bitField0_ & 0x00000010) == 0x00000010);
9576 public com.google.protobuf.ByteString getPayload() {
9579 public Builder setPayload(com.google.protobuf.ByteString value) {
9580 if (value == null) {
9581 throw new NullPointerException();
9583 bitField0_ |= 0x00000010;
9588 public Builder clearPayload() {
9589 bitField0_ = (bitField0_ & ~0x00000010);
9590 payload_ = getDefaultInstance().getPayload();
9595 // optional bool multiple_responses = 6;
9596 private boolean multipleResponses_ ;
9597 public boolean hasMultipleResponses() {
9598 return ((bitField0_ & 0x00000020) == 0x00000020);
9600 public boolean getMultipleResponses() {
9601 return multipleResponses_;
9603 public Builder setMultipleResponses(boolean value) {
9604 bitField0_ |= 0x00000020;
9605 multipleResponses_ = value;
9609 public Builder clearMultipleResponses() {
9610 bitField0_ = (bitField0_ & ~0x00000020);
9611 multipleResponses_ = false;
9616 // optional double frequency = 7;
9617 private double frequency_ ;
9618 public boolean hasFrequency() {
9619 return ((bitField0_ & 0x00000040) == 0x00000040);
9621 public double getFrequency() {
9624 public Builder setFrequency(double value) {
9625 bitField0_ |= 0x00000040;
9630 public Builder clearFrequency() {
9631 bitField0_ = (bitField0_ & ~0x00000040);
9637 // optional string name = 8;
9638 private java.lang.Object name_ = "";
9639 public boolean hasName() {
9640 return ((bitField0_ & 0x00000080) == 0x00000080);
9642 public String getName() {
9643 java.lang.Object ref = name_;
9644 if (!(ref instanceof String)) {
9645 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
9649 return (String) ref;
9652 public Builder setName(String value) {
9653 if (value == null) {
9654 throw new NullPointerException();
9656 bitField0_ |= 0x00000080;
9661 public Builder clearName() {
9662 bitField0_ = (bitField0_ & ~0x00000080);
9663 name_ = getDefaultInstance().getName();
9667 void setName(com.google.protobuf.ByteString value) {
9668 bitField0_ |= 0x00000080;
9673 // optional .openxc.DiagnosticRequest.DecodedType decoded_type = 9;
9674 private com.openxc.BinaryMessages.DiagnosticRequest.DecodedType decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9675 public boolean hasDecodedType() {
9676 return ((bitField0_ & 0x00000100) == 0x00000100);
9678 public com.openxc.BinaryMessages.DiagnosticRequest.DecodedType getDecodedType() {
9679 return decodedType_;
9681 public Builder setDecodedType(com.openxc.BinaryMessages.DiagnosticRequest.DecodedType value) {
9682 if (value == null) {
9683 throw new NullPointerException();
9685 bitField0_ |= 0x00000100;
9686 decodedType_ = value;
9690 public Builder clearDecodedType() {
9691 bitField0_ = (bitField0_ & ~0x00000100);
9692 decodedType_ = com.openxc.BinaryMessages.DiagnosticRequest.DecodedType.NONE;
9697 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticRequest)
9701 defaultInstance = new DiagnosticRequest(true);
9702 defaultInstance.initFields();
9705 // @@protoc_insertion_point(class_scope:openxc.DiagnosticRequest)
9708 public interface DiagnosticResponseOrBuilder
9709 extends com.google.protobuf.MessageOrBuilder {
9711 // optional int32 bus = 1;
9715 // optional uint32 message_id = 2;
9716 boolean hasMessageId();
9719 // optional uint32 mode = 3;
9723 // optional uint32 pid = 4;
9727 // optional bool success = 5;
9728 boolean hasSuccess();
9729 boolean getSuccess();
9731 // optional uint32 negative_response_code = 6;
9732 boolean hasNegativeResponseCode();
9733 int getNegativeResponseCode();
9735 // optional bytes payload = 7;
9736 boolean hasPayload();
9737 com.google.protobuf.ByteString getPayload();
9739 // optional double value = 8;
9743 public static final class DiagnosticResponse extends
9744 com.google.protobuf.GeneratedMessage
9745 implements DiagnosticResponseOrBuilder {
9746 // Use DiagnosticResponse.newBuilder() to construct.
9747 private DiagnosticResponse(Builder builder) {
9750 private DiagnosticResponse(boolean noInit) {}
9752 private static final DiagnosticResponse defaultInstance;
9753 public static DiagnosticResponse getDefaultInstance() {
9754 return defaultInstance;
9757 public DiagnosticResponse getDefaultInstanceForType() {
9758 return defaultInstance;
9761 public static final com.google.protobuf.Descriptors.Descriptor
9763 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
9766 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
9767 internalGetFieldAccessorTable() {
9768 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
9771 private int bitField0_;
9772 // optional int32 bus = 1;
9773 public static final int BUS_FIELD_NUMBER = 1;
9775 public boolean hasBus() {
9776 return ((bitField0_ & 0x00000001) == 0x00000001);
9778 public int getBus() {
9782 // optional uint32 message_id = 2;
9783 public static final int MESSAGE_ID_FIELD_NUMBER = 2;
9784 private int messageId_;
9785 public boolean hasMessageId() {
9786 return ((bitField0_ & 0x00000002) == 0x00000002);
9788 public int getMessageId() {
9792 // optional uint32 mode = 3;
9793 public static final int MODE_FIELD_NUMBER = 3;
9795 public boolean hasMode() {
9796 return ((bitField0_ & 0x00000004) == 0x00000004);
9798 public int getMode() {
9802 // optional uint32 pid = 4;
9803 public static final int PID_FIELD_NUMBER = 4;
9805 public boolean hasPid() {
9806 return ((bitField0_ & 0x00000008) == 0x00000008);
9808 public int getPid() {
9812 // optional bool success = 5;
9813 public static final int SUCCESS_FIELD_NUMBER = 5;
9814 private boolean success_;
9815 public boolean hasSuccess() {
9816 return ((bitField0_ & 0x00000010) == 0x00000010);
9818 public boolean getSuccess() {
9822 // optional uint32 negative_response_code = 6;
9823 public static final int NEGATIVE_RESPONSE_CODE_FIELD_NUMBER = 6;
9824 private int negativeResponseCode_;
9825 public boolean hasNegativeResponseCode() {
9826 return ((bitField0_ & 0x00000020) == 0x00000020);
9828 public int getNegativeResponseCode() {
9829 return negativeResponseCode_;
9832 // optional bytes payload = 7;
9833 public static final int PAYLOAD_FIELD_NUMBER = 7;
9834 private com.google.protobuf.ByteString payload_;
9835 public boolean hasPayload() {
9836 return ((bitField0_ & 0x00000040) == 0x00000040);
9838 public com.google.protobuf.ByteString getPayload() {
9842 // optional double value = 8;
9843 public static final int VALUE_FIELD_NUMBER = 8;
9844 private double value_;
9845 public boolean hasValue() {
9846 return ((bitField0_ & 0x00000080) == 0x00000080);
9848 public double getValue() {
9852 private void initFields() {
9858 negativeResponseCode_ = 0;
9859 payload_ = com.google.protobuf.ByteString.EMPTY;
9862 private byte memoizedIsInitialized = -1;
9863 public final boolean isInitialized() {
9864 byte isInitialized = memoizedIsInitialized;
9865 if (isInitialized != -1) return isInitialized == 1;
9867 memoizedIsInitialized = 1;
9871 public void writeTo(com.google.protobuf.CodedOutputStream output)
9872 throws java.io.IOException {
9873 getSerializedSize();
9874 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9875 output.writeInt32(1, bus_);
9877 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9878 output.writeUInt32(2, messageId_);
9880 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9881 output.writeUInt32(3, mode_);
9883 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9884 output.writeUInt32(4, pid_);
9886 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9887 output.writeBool(5, success_);
9889 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9890 output.writeUInt32(6, negativeResponseCode_);
9892 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9893 output.writeBytes(7, payload_);
9895 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9896 output.writeDouble(8, value_);
9898 getUnknownFields().writeTo(output);
9901 private int memoizedSerializedSize = -1;
9902 public int getSerializedSize() {
9903 int size = memoizedSerializedSize;
9904 if (size != -1) return size;
9907 if (((bitField0_ & 0x00000001) == 0x00000001)) {
9908 size += com.google.protobuf.CodedOutputStream
9909 .computeInt32Size(1, bus_);
9911 if (((bitField0_ & 0x00000002) == 0x00000002)) {
9912 size += com.google.protobuf.CodedOutputStream
9913 .computeUInt32Size(2, messageId_);
9915 if (((bitField0_ & 0x00000004) == 0x00000004)) {
9916 size += com.google.protobuf.CodedOutputStream
9917 .computeUInt32Size(3, mode_);
9919 if (((bitField0_ & 0x00000008) == 0x00000008)) {
9920 size += com.google.protobuf.CodedOutputStream
9921 .computeUInt32Size(4, pid_);
9923 if (((bitField0_ & 0x00000010) == 0x00000010)) {
9924 size += com.google.protobuf.CodedOutputStream
9925 .computeBoolSize(5, success_);
9927 if (((bitField0_ & 0x00000020) == 0x00000020)) {
9928 size += com.google.protobuf.CodedOutputStream
9929 .computeUInt32Size(6, negativeResponseCode_);
9931 if (((bitField0_ & 0x00000040) == 0x00000040)) {
9932 size += com.google.protobuf.CodedOutputStream
9933 .computeBytesSize(7, payload_);
9935 if (((bitField0_ & 0x00000080) == 0x00000080)) {
9936 size += com.google.protobuf.CodedOutputStream
9937 .computeDoubleSize(8, value_);
9939 size += getUnknownFields().getSerializedSize();
9940 memoizedSerializedSize = size;
9944 private static final long serialVersionUID = 0L;
9946 protected java.lang.Object writeReplace()
9947 throws java.io.ObjectStreamException {
9948 return super.writeReplace();
9951 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9952 com.google.protobuf.ByteString data)
9953 throws com.google.protobuf.InvalidProtocolBufferException {
9954 return newBuilder().mergeFrom(data).buildParsed();
9956 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9957 com.google.protobuf.ByteString data,
9958 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9959 throws com.google.protobuf.InvalidProtocolBufferException {
9960 return newBuilder().mergeFrom(data, extensionRegistry)
9963 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(byte[] data)
9964 throws com.google.protobuf.InvalidProtocolBufferException {
9965 return newBuilder().mergeFrom(data).buildParsed();
9967 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9969 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9970 throws com.google.protobuf.InvalidProtocolBufferException {
9971 return newBuilder().mergeFrom(data, extensionRegistry)
9974 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(java.io.InputStream input)
9975 throws java.io.IOException {
9976 return newBuilder().mergeFrom(input).buildParsed();
9978 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
9979 java.io.InputStream input,
9980 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9981 throws java.io.IOException {
9982 return newBuilder().mergeFrom(input, extensionRegistry)
9985 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(java.io.InputStream input)
9986 throws java.io.IOException {
9987 Builder builder = newBuilder();
9988 if (builder.mergeDelimitedFrom(input)) {
9989 return builder.buildParsed();
9994 public static com.openxc.BinaryMessages.DiagnosticResponse parseDelimitedFrom(
9995 java.io.InputStream input,
9996 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
9997 throws java.io.IOException {
9998 Builder builder = newBuilder();
9999 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
10000 return builder.buildParsed();
10005 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
10006 com.google.protobuf.CodedInputStream input)
10007 throws java.io.IOException {
10008 return newBuilder().mergeFrom(input).buildParsed();
10010 public static com.openxc.BinaryMessages.DiagnosticResponse parseFrom(
10011 com.google.protobuf.CodedInputStream input,
10012 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10013 throws java.io.IOException {
10014 return newBuilder().mergeFrom(input, extensionRegistry)
10018 public static Builder newBuilder() { return Builder.create(); }
10019 public Builder newBuilderForType() { return newBuilder(); }
10020 public static Builder newBuilder(com.openxc.BinaryMessages.DiagnosticResponse prototype) {
10021 return newBuilder().mergeFrom(prototype);
10023 public Builder toBuilder() { return newBuilder(this); }
10025 @java.lang.Override
10026 protected Builder newBuilderForType(
10027 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10028 Builder builder = new Builder(parent);
10031 public static final class Builder extends
10032 com.google.protobuf.GeneratedMessage.Builder<Builder>
10033 implements com.openxc.BinaryMessages.DiagnosticResponseOrBuilder {
10034 public static final com.google.protobuf.Descriptors.Descriptor
10036 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_descriptor;
10039 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10040 internalGetFieldAccessorTable() {
10041 return com.openxc.BinaryMessages.internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
10044 // Construct using com.openxc.BinaryMessages.DiagnosticResponse.newBuilder()
10045 private Builder() {
10046 maybeForceBuilderInitialization();
10049 private Builder(BuilderParent parent) {
10051 maybeForceBuilderInitialization();
10053 private void maybeForceBuilderInitialization() {
10054 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
10057 private static Builder create() {
10058 return new Builder();
10061 public Builder clear() {
10064 bitField0_ = (bitField0_ & ~0x00000001);
10066 bitField0_ = (bitField0_ & ~0x00000002);
10068 bitField0_ = (bitField0_ & ~0x00000004);
10070 bitField0_ = (bitField0_ & ~0x00000008);
10072 bitField0_ = (bitField0_ & ~0x00000010);
10073 negativeResponseCode_ = 0;
10074 bitField0_ = (bitField0_ & ~0x00000020);
10075 payload_ = com.google.protobuf.ByteString.EMPTY;
10076 bitField0_ = (bitField0_ & ~0x00000040);
10078 bitField0_ = (bitField0_ & ~0x00000080);
10082 public Builder clone() {
10083 return create().mergeFrom(buildPartial());
10086 public com.google.protobuf.Descriptors.Descriptor
10087 getDescriptorForType() {
10088 return com.openxc.BinaryMessages.DiagnosticResponse.getDescriptor();
10091 public com.openxc.BinaryMessages.DiagnosticResponse getDefaultInstanceForType() {
10092 return com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance();
10095 public com.openxc.BinaryMessages.DiagnosticResponse build() {
10096 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
10097 if (!result.isInitialized()) {
10098 throw newUninitializedMessageException(result);
10103 private com.openxc.BinaryMessages.DiagnosticResponse buildParsed()
10104 throws com.google.protobuf.InvalidProtocolBufferException {
10105 com.openxc.BinaryMessages.DiagnosticResponse result = buildPartial();
10106 if (!result.isInitialized()) {
10107 throw newUninitializedMessageException(
10108 result).asInvalidProtocolBufferException();
10113 public com.openxc.BinaryMessages.DiagnosticResponse buildPartial() {
10114 com.openxc.BinaryMessages.DiagnosticResponse result = new com.openxc.BinaryMessages.DiagnosticResponse(this);
10115 int from_bitField0_ = bitField0_;
10116 int to_bitField0_ = 0;
10117 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
10118 to_bitField0_ |= 0x00000001;
10120 result.bus_ = bus_;
10121 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
10122 to_bitField0_ |= 0x00000002;
10124 result.messageId_ = messageId_;
10125 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
10126 to_bitField0_ |= 0x00000004;
10128 result.mode_ = mode_;
10129 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
10130 to_bitField0_ |= 0x00000008;
10132 result.pid_ = pid_;
10133 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
10134 to_bitField0_ |= 0x00000010;
10136 result.success_ = success_;
10137 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
10138 to_bitField0_ |= 0x00000020;
10140 result.negativeResponseCode_ = negativeResponseCode_;
10141 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
10142 to_bitField0_ |= 0x00000040;
10144 result.payload_ = payload_;
10145 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
10146 to_bitField0_ |= 0x00000080;
10148 result.value_ = value_;
10149 result.bitField0_ = to_bitField0_;
10154 public Builder mergeFrom(com.google.protobuf.Message other) {
10155 if (other instanceof com.openxc.BinaryMessages.DiagnosticResponse) {
10156 return mergeFrom((com.openxc.BinaryMessages.DiagnosticResponse)other);
10158 super.mergeFrom(other);
10163 public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticResponse other) {
10164 if (other == com.openxc.BinaryMessages.DiagnosticResponse.getDefaultInstance()) return this;
10165 if (other.hasBus()) {
10166 setBus(other.getBus());
10168 if (other.hasMessageId()) {
10169 setMessageId(other.getMessageId());
10171 if (other.hasMode()) {
10172 setMode(other.getMode());
10174 if (other.hasPid()) {
10175 setPid(other.getPid());
10177 if (other.hasSuccess()) {
10178 setSuccess(other.getSuccess());
10180 if (other.hasNegativeResponseCode()) {
10181 setNegativeResponseCode(other.getNegativeResponseCode());
10183 if (other.hasPayload()) {
10184 setPayload(other.getPayload());
10186 if (other.hasValue()) {
10187 setValue(other.getValue());
10189 this.mergeUnknownFields(other.getUnknownFields());
10193 public final boolean isInitialized() {
10197 public Builder mergeFrom(
10198 com.google.protobuf.CodedInputStream input,
10199 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10200 throws java.io.IOException {
10201 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
10202 com.google.protobuf.UnknownFieldSet.newBuilder(
10203 this.getUnknownFields());
10205 int tag = input.readTag();
10208 this.setUnknownFields(unknownFields.build());
10212 if (!parseUnknownField(input, unknownFields,
10213 extensionRegistry, tag)) {
10214 this.setUnknownFields(unknownFields.build());
10221 bitField0_ |= 0x00000001;
10222 bus_ = input.readInt32();
10226 bitField0_ |= 0x00000002;
10227 messageId_ = input.readUInt32();
10231 bitField0_ |= 0x00000004;
10232 mode_ = input.readUInt32();
10236 bitField0_ |= 0x00000008;
10237 pid_ = input.readUInt32();
10241 bitField0_ |= 0x00000010;
10242 success_ = input.readBool();
10246 bitField0_ |= 0x00000020;
10247 negativeResponseCode_ = input.readUInt32();
10251 bitField0_ |= 0x00000040;
10252 payload_ = input.readBytes();
10256 bitField0_ |= 0x00000080;
10257 value_ = input.readDouble();
10264 private int bitField0_;
10266 // optional int32 bus = 1;
10268 public boolean hasBus() {
10269 return ((bitField0_ & 0x00000001) == 0x00000001);
10271 public int getBus() {
10274 public Builder setBus(int value) {
10275 bitField0_ |= 0x00000001;
10280 public Builder clearBus() {
10281 bitField0_ = (bitField0_ & ~0x00000001);
10287 // optional uint32 message_id = 2;
10288 private int messageId_ ;
10289 public boolean hasMessageId() {
10290 return ((bitField0_ & 0x00000002) == 0x00000002);
10292 public int getMessageId() {
10295 public Builder setMessageId(int value) {
10296 bitField0_ |= 0x00000002;
10297 messageId_ = value;
10301 public Builder clearMessageId() {
10302 bitField0_ = (bitField0_ & ~0x00000002);
10308 // optional uint32 mode = 3;
10309 private int mode_ ;
10310 public boolean hasMode() {
10311 return ((bitField0_ & 0x00000004) == 0x00000004);
10313 public int getMode() {
10316 public Builder setMode(int value) {
10317 bitField0_ |= 0x00000004;
10322 public Builder clearMode() {
10323 bitField0_ = (bitField0_ & ~0x00000004);
10329 // optional uint32 pid = 4;
10331 public boolean hasPid() {
10332 return ((bitField0_ & 0x00000008) == 0x00000008);
10334 public int getPid() {
10337 public Builder setPid(int value) {
10338 bitField0_ |= 0x00000008;
10343 public Builder clearPid() {
10344 bitField0_ = (bitField0_ & ~0x00000008);
10350 // optional bool success = 5;
10351 private boolean success_ ;
10352 public boolean hasSuccess() {
10353 return ((bitField0_ & 0x00000010) == 0x00000010);
10355 public boolean getSuccess() {
10358 public Builder setSuccess(boolean value) {
10359 bitField0_ |= 0x00000010;
10364 public Builder clearSuccess() {
10365 bitField0_ = (bitField0_ & ~0x00000010);
10371 // optional uint32 negative_response_code = 6;
10372 private int negativeResponseCode_ ;
10373 public boolean hasNegativeResponseCode() {
10374 return ((bitField0_ & 0x00000020) == 0x00000020);
10376 public int getNegativeResponseCode() {
10377 return negativeResponseCode_;
10379 public Builder setNegativeResponseCode(int value) {
10380 bitField0_ |= 0x00000020;
10381 negativeResponseCode_ = value;
10385 public Builder clearNegativeResponseCode() {
10386 bitField0_ = (bitField0_ & ~0x00000020);
10387 negativeResponseCode_ = 0;
10392 // optional bytes payload = 7;
10393 private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
10394 public boolean hasPayload() {
10395 return ((bitField0_ & 0x00000040) == 0x00000040);
10397 public com.google.protobuf.ByteString getPayload() {
10400 public Builder setPayload(com.google.protobuf.ByteString value) {
10401 if (value == null) {
10402 throw new NullPointerException();
10404 bitField0_ |= 0x00000040;
10409 public Builder clearPayload() {
10410 bitField0_ = (bitField0_ & ~0x00000040);
10411 payload_ = getDefaultInstance().getPayload();
10416 // optional double value = 8;
10417 private double value_ ;
10418 public boolean hasValue() {
10419 return ((bitField0_ & 0x00000080) == 0x00000080);
10421 public double getValue() {
10424 public Builder setValue(double value) {
10425 bitField0_ |= 0x00000080;
10430 public Builder clearValue() {
10431 bitField0_ = (bitField0_ & ~0x00000080);
10437 // @@protoc_insertion_point(builder_scope:openxc.DiagnosticResponse)
10441 defaultInstance = new DiagnosticResponse(true);
10442 defaultInstance.initFields();
10445 // @@protoc_insertion_point(class_scope:openxc.DiagnosticResponse)
10448 public interface DynamicFieldOrBuilder
10449 extends com.google.protobuf.MessageOrBuilder {
10451 // optional .openxc.DynamicField.Type type = 1;
10453 com.openxc.BinaryMessages.DynamicField.Type getType();
10455 // optional string string_value = 2;
10456 boolean hasStringValue();
10457 String getStringValue();
10459 // optional double numeric_value = 3;
10460 boolean hasNumericValue();
10461 double getNumericValue();
10463 // optional bool boolean_value = 4;
10464 boolean hasBooleanValue();
10465 boolean getBooleanValue();
10467 public static final class DynamicField extends
10468 com.google.protobuf.GeneratedMessage
10469 implements DynamicFieldOrBuilder {
10470 // Use DynamicField.newBuilder() to construct.
10471 private DynamicField(Builder builder) {
10474 private DynamicField(boolean noInit) {}
10476 private static final DynamicField defaultInstance;
10477 public static DynamicField getDefaultInstance() {
10478 return defaultInstance;
10481 public DynamicField getDefaultInstanceForType() {
10482 return defaultInstance;
10485 public static final com.google.protobuf.Descriptors.Descriptor
10487 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
10490 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10491 internalGetFieldAccessorTable() {
10492 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable;
10496 implements com.google.protobuf.ProtocolMessageEnum {
10502 public static final int STRING_VALUE = 1;
10503 public static final int NUM_VALUE = 2;
10504 public static final int BOOL_VALUE = 3;
10507 public final int getNumber() { return value; }
10509 public static Type valueOf(int value) {
10511 case 1: return STRING;
10512 case 2: return NUM;
10513 case 3: return BOOL;
10514 default: return null;
10518 public static com.google.protobuf.Internal.EnumLiteMap<Type>
10519 internalGetValueMap() {
10520 return internalValueMap;
10522 private static com.google.protobuf.Internal.EnumLiteMap<Type>
10524 new com.google.protobuf.Internal.EnumLiteMap<Type>() {
10525 public Type findValueByNumber(int number) {
10526 return Type.valueOf(number);
10530 public final com.google.protobuf.Descriptors.EnumValueDescriptor
10531 getValueDescriptor() {
10532 return getDescriptor().getValues().get(index);
10534 public final com.google.protobuf.Descriptors.EnumDescriptor
10535 getDescriptorForType() {
10536 return getDescriptor();
10538 public static final com.google.protobuf.Descriptors.EnumDescriptor
10540 return com.openxc.BinaryMessages.DynamicField.getDescriptor().getEnumTypes().get(0);
10543 private static final Type[] VALUES = {
10547 public static Type valueOf(
10548 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
10549 if (desc.getType() != getDescriptor()) {
10550 throw new java.lang.IllegalArgumentException(
10551 "EnumValueDescriptor is not for this type.");
10553 return VALUES[desc.getIndex()];
10556 private final int index;
10557 private final int value;
10559 private Type(int index, int value) {
10560 this.index = index;
10561 this.value = value;
10564 // @@protoc_insertion_point(enum_scope:openxc.DynamicField.Type)
10567 private int bitField0_;
10568 // optional .openxc.DynamicField.Type type = 1;
10569 public static final int TYPE_FIELD_NUMBER = 1;
10570 private com.openxc.BinaryMessages.DynamicField.Type type_;
10571 public boolean hasType() {
10572 return ((bitField0_ & 0x00000001) == 0x00000001);
10574 public com.openxc.BinaryMessages.DynamicField.Type getType() {
10578 // optional string string_value = 2;
10579 public static final int STRING_VALUE_FIELD_NUMBER = 2;
10580 private java.lang.Object stringValue_;
10581 public boolean hasStringValue() {
10582 return ((bitField0_ & 0x00000002) == 0x00000002);
10584 public String getStringValue() {
10585 java.lang.Object ref = stringValue_;
10586 if (ref instanceof String) {
10587 return (String) ref;
10589 com.google.protobuf.ByteString bs =
10590 (com.google.protobuf.ByteString) ref;
10591 String s = bs.toStringUtf8();
10592 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
10598 private com.google.protobuf.ByteString getStringValueBytes() {
10599 java.lang.Object ref = stringValue_;
10600 if (ref instanceof String) {
10601 com.google.protobuf.ByteString b =
10602 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
10606 return (com.google.protobuf.ByteString) ref;
10610 // optional double numeric_value = 3;
10611 public static final int NUMERIC_VALUE_FIELD_NUMBER = 3;
10612 private double numericValue_;
10613 public boolean hasNumericValue() {
10614 return ((bitField0_ & 0x00000004) == 0x00000004);
10616 public double getNumericValue() {
10617 return numericValue_;
10620 // optional bool boolean_value = 4;
10621 public static final int BOOLEAN_VALUE_FIELD_NUMBER = 4;
10622 private boolean booleanValue_;
10623 public boolean hasBooleanValue() {
10624 return ((bitField0_ & 0x00000008) == 0x00000008);
10626 public boolean getBooleanValue() {
10627 return booleanValue_;
10630 private void initFields() {
10631 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10633 numericValue_ = 0D;
10634 booleanValue_ = false;
10636 private byte memoizedIsInitialized = -1;
10637 public final boolean isInitialized() {
10638 byte isInitialized = memoizedIsInitialized;
10639 if (isInitialized != -1) return isInitialized == 1;
10641 memoizedIsInitialized = 1;
10645 public void writeTo(com.google.protobuf.CodedOutputStream output)
10646 throws java.io.IOException {
10647 getSerializedSize();
10648 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10649 output.writeEnum(1, type_.getNumber());
10651 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10652 output.writeBytes(2, getStringValueBytes());
10654 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10655 output.writeDouble(3, numericValue_);
10657 if (((bitField0_ & 0x00000008) == 0x00000008)) {
10658 output.writeBool(4, booleanValue_);
10660 getUnknownFields().writeTo(output);
10663 private int memoizedSerializedSize = -1;
10664 public int getSerializedSize() {
10665 int size = memoizedSerializedSize;
10666 if (size != -1) return size;
10669 if (((bitField0_ & 0x00000001) == 0x00000001)) {
10670 size += com.google.protobuf.CodedOutputStream
10671 .computeEnumSize(1, type_.getNumber());
10673 if (((bitField0_ & 0x00000002) == 0x00000002)) {
10674 size += com.google.protobuf.CodedOutputStream
10675 .computeBytesSize(2, getStringValueBytes());
10677 if (((bitField0_ & 0x00000004) == 0x00000004)) {
10678 size += com.google.protobuf.CodedOutputStream
10679 .computeDoubleSize(3, numericValue_);
10681 if (((bitField0_ & 0x00000008) == 0x00000008)) {
10682 size += com.google.protobuf.CodedOutputStream
10683 .computeBoolSize(4, booleanValue_);
10685 size += getUnknownFields().getSerializedSize();
10686 memoizedSerializedSize = size;
10690 private static final long serialVersionUID = 0L;
10691 @java.lang.Override
10692 protected java.lang.Object writeReplace()
10693 throws java.io.ObjectStreamException {
10694 return super.writeReplace();
10697 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10698 com.google.protobuf.ByteString data)
10699 throws com.google.protobuf.InvalidProtocolBufferException {
10700 return newBuilder().mergeFrom(data).buildParsed();
10702 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10703 com.google.protobuf.ByteString data,
10704 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10705 throws com.google.protobuf.InvalidProtocolBufferException {
10706 return newBuilder().mergeFrom(data, extensionRegistry)
10709 public static com.openxc.BinaryMessages.DynamicField parseFrom(byte[] data)
10710 throws com.google.protobuf.InvalidProtocolBufferException {
10711 return newBuilder().mergeFrom(data).buildParsed();
10713 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10715 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10716 throws com.google.protobuf.InvalidProtocolBufferException {
10717 return newBuilder().mergeFrom(data, extensionRegistry)
10720 public static com.openxc.BinaryMessages.DynamicField parseFrom(java.io.InputStream input)
10721 throws java.io.IOException {
10722 return newBuilder().mergeFrom(input).buildParsed();
10724 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10725 java.io.InputStream input,
10726 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10727 throws java.io.IOException {
10728 return newBuilder().mergeFrom(input, extensionRegistry)
10731 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(java.io.InputStream input)
10732 throws java.io.IOException {
10733 Builder builder = newBuilder();
10734 if (builder.mergeDelimitedFrom(input)) {
10735 return builder.buildParsed();
10740 public static com.openxc.BinaryMessages.DynamicField parseDelimitedFrom(
10741 java.io.InputStream input,
10742 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10743 throws java.io.IOException {
10744 Builder builder = newBuilder();
10745 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
10746 return builder.buildParsed();
10751 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10752 com.google.protobuf.CodedInputStream input)
10753 throws java.io.IOException {
10754 return newBuilder().mergeFrom(input).buildParsed();
10756 public static com.openxc.BinaryMessages.DynamicField parseFrom(
10757 com.google.protobuf.CodedInputStream input,
10758 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10759 throws java.io.IOException {
10760 return newBuilder().mergeFrom(input, extensionRegistry)
10764 public static Builder newBuilder() { return Builder.create(); }
10765 public Builder newBuilderForType() { return newBuilder(); }
10766 public static Builder newBuilder(com.openxc.BinaryMessages.DynamicField prototype) {
10767 return newBuilder().mergeFrom(prototype);
10769 public Builder toBuilder() { return newBuilder(this); }
10771 @java.lang.Override
10772 protected Builder newBuilderForType(
10773 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
10774 Builder builder = new Builder(parent);
10777 public static final class Builder extends
10778 com.google.protobuf.GeneratedMessage.Builder<Builder>
10779 implements com.openxc.BinaryMessages.DynamicFieldOrBuilder {
10780 public static final com.google.protobuf.Descriptors.Descriptor
10782 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_descriptor;
10785 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
10786 internalGetFieldAccessorTable() {
10787 return com.openxc.BinaryMessages.internal_static_openxc_DynamicField_fieldAccessorTable;
10790 // Construct using com.openxc.BinaryMessages.DynamicField.newBuilder()
10791 private Builder() {
10792 maybeForceBuilderInitialization();
10795 private Builder(BuilderParent parent) {
10797 maybeForceBuilderInitialization();
10799 private void maybeForceBuilderInitialization() {
10800 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
10803 private static Builder create() {
10804 return new Builder();
10807 public Builder clear() {
10809 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10810 bitField0_ = (bitField0_ & ~0x00000001);
10812 bitField0_ = (bitField0_ & ~0x00000002);
10813 numericValue_ = 0D;
10814 bitField0_ = (bitField0_ & ~0x00000004);
10815 booleanValue_ = false;
10816 bitField0_ = (bitField0_ & ~0x00000008);
10820 public Builder clone() {
10821 return create().mergeFrom(buildPartial());
10824 public com.google.protobuf.Descriptors.Descriptor
10825 getDescriptorForType() {
10826 return com.openxc.BinaryMessages.DynamicField.getDescriptor();
10829 public com.openxc.BinaryMessages.DynamicField getDefaultInstanceForType() {
10830 return com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
10833 public com.openxc.BinaryMessages.DynamicField build() {
10834 com.openxc.BinaryMessages.DynamicField result = buildPartial();
10835 if (!result.isInitialized()) {
10836 throw newUninitializedMessageException(result);
10841 private com.openxc.BinaryMessages.DynamicField buildParsed()
10842 throws com.google.protobuf.InvalidProtocolBufferException {
10843 com.openxc.BinaryMessages.DynamicField result = buildPartial();
10844 if (!result.isInitialized()) {
10845 throw newUninitializedMessageException(
10846 result).asInvalidProtocolBufferException();
10851 public com.openxc.BinaryMessages.DynamicField buildPartial() {
10852 com.openxc.BinaryMessages.DynamicField result = new com.openxc.BinaryMessages.DynamicField(this);
10853 int from_bitField0_ = bitField0_;
10854 int to_bitField0_ = 0;
10855 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
10856 to_bitField0_ |= 0x00000001;
10858 result.type_ = type_;
10859 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
10860 to_bitField0_ |= 0x00000002;
10862 result.stringValue_ = stringValue_;
10863 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
10864 to_bitField0_ |= 0x00000004;
10866 result.numericValue_ = numericValue_;
10867 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
10868 to_bitField0_ |= 0x00000008;
10870 result.booleanValue_ = booleanValue_;
10871 result.bitField0_ = to_bitField0_;
10876 public Builder mergeFrom(com.google.protobuf.Message other) {
10877 if (other instanceof com.openxc.BinaryMessages.DynamicField) {
10878 return mergeFrom((com.openxc.BinaryMessages.DynamicField)other);
10880 super.mergeFrom(other);
10885 public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) {
10886 if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this;
10887 if (other.hasType()) {
10888 setType(other.getType());
10890 if (other.hasStringValue()) {
10891 setStringValue(other.getStringValue());
10893 if (other.hasNumericValue()) {
10894 setNumericValue(other.getNumericValue());
10896 if (other.hasBooleanValue()) {
10897 setBooleanValue(other.getBooleanValue());
10899 this.mergeUnknownFields(other.getUnknownFields());
10903 public final boolean isInitialized() {
10907 public Builder mergeFrom(
10908 com.google.protobuf.CodedInputStream input,
10909 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
10910 throws java.io.IOException {
10911 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
10912 com.google.protobuf.UnknownFieldSet.newBuilder(
10913 this.getUnknownFields());
10915 int tag = input.readTag();
10918 this.setUnknownFields(unknownFields.build());
10922 if (!parseUnknownField(input, unknownFields,
10923 extensionRegistry, tag)) {
10924 this.setUnknownFields(unknownFields.build());
10931 int rawValue = input.readEnum();
10932 com.openxc.BinaryMessages.DynamicField.Type value = com.openxc.BinaryMessages.DynamicField.Type.valueOf(rawValue);
10933 if (value == null) {
10934 unknownFields.mergeVarintField(1, rawValue);
10936 bitField0_ |= 0x00000001;
10942 bitField0_ |= 0x00000002;
10943 stringValue_ = input.readBytes();
10947 bitField0_ |= 0x00000004;
10948 numericValue_ = input.readDouble();
10952 bitField0_ |= 0x00000008;
10953 booleanValue_ = input.readBool();
10960 private int bitField0_;
10962 // optional .openxc.DynamicField.Type type = 1;
10963 private com.openxc.BinaryMessages.DynamicField.Type type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10964 public boolean hasType() {
10965 return ((bitField0_ & 0x00000001) == 0x00000001);
10967 public com.openxc.BinaryMessages.DynamicField.Type getType() {
10970 public Builder setType(com.openxc.BinaryMessages.DynamicField.Type value) {
10971 if (value == null) {
10972 throw new NullPointerException();
10974 bitField0_ |= 0x00000001;
10979 public Builder clearType() {
10980 bitField0_ = (bitField0_ & ~0x00000001);
10981 type_ = com.openxc.BinaryMessages.DynamicField.Type.STRING;
10986 // optional string string_value = 2;
10987 private java.lang.Object stringValue_ = "";
10988 public boolean hasStringValue() {
10989 return ((bitField0_ & 0x00000002) == 0x00000002);
10991 public String getStringValue() {
10992 java.lang.Object ref = stringValue_;
10993 if (!(ref instanceof String)) {
10994 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
10998 return (String) ref;
11001 public Builder setStringValue(String value) {
11002 if (value == null) {
11003 throw new NullPointerException();
11005 bitField0_ |= 0x00000002;
11006 stringValue_ = value;
11010 public Builder clearStringValue() {
11011 bitField0_ = (bitField0_ & ~0x00000002);
11012 stringValue_ = getDefaultInstance().getStringValue();
11016 void setStringValue(com.google.protobuf.ByteString value) {
11017 bitField0_ |= 0x00000002;
11018 stringValue_ = value;
11022 // optional double numeric_value = 3;
11023 private double numericValue_ ;
11024 public boolean hasNumericValue() {
11025 return ((bitField0_ & 0x00000004) == 0x00000004);
11027 public double getNumericValue() {
11028 return numericValue_;
11030 public Builder setNumericValue(double value) {
11031 bitField0_ |= 0x00000004;
11032 numericValue_ = value;
11036 public Builder clearNumericValue() {
11037 bitField0_ = (bitField0_ & ~0x00000004);
11038 numericValue_ = 0D;
11043 // optional bool boolean_value = 4;
11044 private boolean booleanValue_ ;
11045 public boolean hasBooleanValue() {
11046 return ((bitField0_ & 0x00000008) == 0x00000008);
11048 public boolean getBooleanValue() {
11049 return booleanValue_;
11051 public Builder setBooleanValue(boolean value) {
11052 bitField0_ |= 0x00000008;
11053 booleanValue_ = value;
11057 public Builder clearBooleanValue() {
11058 bitField0_ = (bitField0_ & ~0x00000008);
11059 booleanValue_ = false;
11064 // @@protoc_insertion_point(builder_scope:openxc.DynamicField)
11068 defaultInstance = new DynamicField(true);
11069 defaultInstance.initFields();
11072 // @@protoc_insertion_point(class_scope:openxc.DynamicField)
11075 public interface SimpleMessageOrBuilder
11076 extends com.google.protobuf.MessageOrBuilder {
11078 // optional string name = 1;
11082 // optional .openxc.DynamicField value = 2;
11083 boolean hasValue();
11084 com.openxc.BinaryMessages.DynamicField getValue();
11085 com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder();
11087 // optional .openxc.DynamicField event = 3;
11088 boolean hasEvent();
11089 com.openxc.BinaryMessages.DynamicField getEvent();
11090 com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder();
11092 public static final class SimpleMessage extends
11093 com.google.protobuf.GeneratedMessage
11094 implements SimpleMessageOrBuilder {
11095 // Use SimpleMessage.newBuilder() to construct.
11096 private SimpleMessage(Builder builder) {
11099 private SimpleMessage(boolean noInit) {}
11101 private static final SimpleMessage defaultInstance;
11102 public static SimpleMessage getDefaultInstance() {
11103 return defaultInstance;
11106 public SimpleMessage getDefaultInstanceForType() {
11107 return defaultInstance;
11110 public static final com.google.protobuf.Descriptors.Descriptor
11112 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
11115 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
11116 internalGetFieldAccessorTable() {
11117 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable;
11120 private int bitField0_;
11121 // optional string name = 1;
11122 public static final int NAME_FIELD_NUMBER = 1;
11123 private java.lang.Object name_;
11124 public boolean hasName() {
11125 return ((bitField0_ & 0x00000001) == 0x00000001);
11127 public String getName() {
11128 java.lang.Object ref = name_;
11129 if (ref instanceof String) {
11130 return (String) ref;
11132 com.google.protobuf.ByteString bs =
11133 (com.google.protobuf.ByteString) ref;
11134 String s = bs.toStringUtf8();
11135 if (com.google.protobuf.Internal.isValidUtf8(bs)) {
11141 private com.google.protobuf.ByteString getNameBytes() {
11142 java.lang.Object ref = name_;
11143 if (ref instanceof String) {
11144 com.google.protobuf.ByteString b =
11145 com.google.protobuf.ByteString.copyFromUtf8((String) ref);
11149 return (com.google.protobuf.ByteString) ref;
11153 // optional .openxc.DynamicField value = 2;
11154 public static final int VALUE_FIELD_NUMBER = 2;
11155 private com.openxc.BinaryMessages.DynamicField value_;
11156 public boolean hasValue() {
11157 return ((bitField0_ & 0x00000002) == 0x00000002);
11159 public com.openxc.BinaryMessages.DynamicField getValue() {
11162 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
11166 // optional .openxc.DynamicField event = 3;
11167 public static final int EVENT_FIELD_NUMBER = 3;
11168 private com.openxc.BinaryMessages.DynamicField event_;
11169 public boolean hasEvent() {
11170 return ((bitField0_ & 0x00000004) == 0x00000004);
11172 public com.openxc.BinaryMessages.DynamicField getEvent() {
11175 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
11179 private void initFields() {
11181 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11182 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11184 private byte memoizedIsInitialized = -1;
11185 public final boolean isInitialized() {
11186 byte isInitialized = memoizedIsInitialized;
11187 if (isInitialized != -1) return isInitialized == 1;
11189 memoizedIsInitialized = 1;
11193 public void writeTo(com.google.protobuf.CodedOutputStream output)
11194 throws java.io.IOException {
11195 getSerializedSize();
11196 if (((bitField0_ & 0x00000001) == 0x00000001)) {
11197 output.writeBytes(1, getNameBytes());
11199 if (((bitField0_ & 0x00000002) == 0x00000002)) {
11200 output.writeMessage(2, value_);
11202 if (((bitField0_ & 0x00000004) == 0x00000004)) {
11203 output.writeMessage(3, event_);
11205 getUnknownFields().writeTo(output);
11208 private int memoizedSerializedSize = -1;
11209 public int getSerializedSize() {
11210 int size = memoizedSerializedSize;
11211 if (size != -1) return size;
11214 if (((bitField0_ & 0x00000001) == 0x00000001)) {
11215 size += com.google.protobuf.CodedOutputStream
11216 .computeBytesSize(1, getNameBytes());
11218 if (((bitField0_ & 0x00000002) == 0x00000002)) {
11219 size += com.google.protobuf.CodedOutputStream
11220 .computeMessageSize(2, value_);
11222 if (((bitField0_ & 0x00000004) == 0x00000004)) {
11223 size += com.google.protobuf.CodedOutputStream
11224 .computeMessageSize(3, event_);
11226 size += getUnknownFields().getSerializedSize();
11227 memoizedSerializedSize = size;
11231 private static final long serialVersionUID = 0L;
11232 @java.lang.Override
11233 protected java.lang.Object writeReplace()
11234 throws java.io.ObjectStreamException {
11235 return super.writeReplace();
11238 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11239 com.google.protobuf.ByteString data)
11240 throws com.google.protobuf.InvalidProtocolBufferException {
11241 return newBuilder().mergeFrom(data).buildParsed();
11243 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11244 com.google.protobuf.ByteString data,
11245 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11246 throws com.google.protobuf.InvalidProtocolBufferException {
11247 return newBuilder().mergeFrom(data, extensionRegistry)
11250 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(byte[] data)
11251 throws com.google.protobuf.InvalidProtocolBufferException {
11252 return newBuilder().mergeFrom(data).buildParsed();
11254 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11256 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11257 throws com.google.protobuf.InvalidProtocolBufferException {
11258 return newBuilder().mergeFrom(data, extensionRegistry)
11261 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(java.io.InputStream input)
11262 throws java.io.IOException {
11263 return newBuilder().mergeFrom(input).buildParsed();
11265 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11266 java.io.InputStream input,
11267 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11268 throws java.io.IOException {
11269 return newBuilder().mergeFrom(input, extensionRegistry)
11272 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(java.io.InputStream input)
11273 throws java.io.IOException {
11274 Builder builder = newBuilder();
11275 if (builder.mergeDelimitedFrom(input)) {
11276 return builder.buildParsed();
11281 public static com.openxc.BinaryMessages.SimpleMessage parseDelimitedFrom(
11282 java.io.InputStream input,
11283 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11284 throws java.io.IOException {
11285 Builder builder = newBuilder();
11286 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
11287 return builder.buildParsed();
11292 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11293 com.google.protobuf.CodedInputStream input)
11294 throws java.io.IOException {
11295 return newBuilder().mergeFrom(input).buildParsed();
11297 public static com.openxc.BinaryMessages.SimpleMessage parseFrom(
11298 com.google.protobuf.CodedInputStream input,
11299 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11300 throws java.io.IOException {
11301 return newBuilder().mergeFrom(input, extensionRegistry)
11305 public static Builder newBuilder() { return Builder.create(); }
11306 public Builder newBuilderForType() { return newBuilder(); }
11307 public static Builder newBuilder(com.openxc.BinaryMessages.SimpleMessage prototype) {
11308 return newBuilder().mergeFrom(prototype);
11310 public Builder toBuilder() { return newBuilder(this); }
11312 @java.lang.Override
11313 protected Builder newBuilderForType(
11314 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
11315 Builder builder = new Builder(parent);
11318 public static final class Builder extends
11319 com.google.protobuf.GeneratedMessage.Builder<Builder>
11320 implements com.openxc.BinaryMessages.SimpleMessageOrBuilder {
11321 public static final com.google.protobuf.Descriptors.Descriptor
11323 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_descriptor;
11326 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
11327 internalGetFieldAccessorTable() {
11328 return com.openxc.BinaryMessages.internal_static_openxc_SimpleMessage_fieldAccessorTable;
11331 // Construct using com.openxc.BinaryMessages.SimpleMessage.newBuilder()
11332 private Builder() {
11333 maybeForceBuilderInitialization();
11336 private Builder(BuilderParent parent) {
11338 maybeForceBuilderInitialization();
11340 private void maybeForceBuilderInitialization() {
11341 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
11342 getValueFieldBuilder();
11343 getEventFieldBuilder();
11346 private static Builder create() {
11347 return new Builder();
11350 public Builder clear() {
11353 bitField0_ = (bitField0_ & ~0x00000001);
11354 if (valueBuilder_ == null) {
11355 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11357 valueBuilder_.clear();
11359 bitField0_ = (bitField0_ & ~0x00000002);
11360 if (eventBuilder_ == null) {
11361 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11363 eventBuilder_.clear();
11365 bitField0_ = (bitField0_ & ~0x00000004);
11369 public Builder clone() {
11370 return create().mergeFrom(buildPartial());
11373 public com.google.protobuf.Descriptors.Descriptor
11374 getDescriptorForType() {
11375 return com.openxc.BinaryMessages.SimpleMessage.getDescriptor();
11378 public com.openxc.BinaryMessages.SimpleMessage getDefaultInstanceForType() {
11379 return com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance();
11382 public com.openxc.BinaryMessages.SimpleMessage build() {
11383 com.openxc.BinaryMessages.SimpleMessage result = buildPartial();
11384 if (!result.isInitialized()) {
11385 throw newUninitializedMessageException(result);
11390 private com.openxc.BinaryMessages.SimpleMessage buildParsed()
11391 throws com.google.protobuf.InvalidProtocolBufferException {
11392 com.openxc.BinaryMessages.SimpleMessage result = buildPartial();
11393 if (!result.isInitialized()) {
11394 throw newUninitializedMessageException(
11395 result).asInvalidProtocolBufferException();
11400 public com.openxc.BinaryMessages.SimpleMessage buildPartial() {
11401 com.openxc.BinaryMessages.SimpleMessage result = new com.openxc.BinaryMessages.SimpleMessage(this);
11402 int from_bitField0_ = bitField0_;
11403 int to_bitField0_ = 0;
11404 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
11405 to_bitField0_ |= 0x00000001;
11407 result.name_ = name_;
11408 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
11409 to_bitField0_ |= 0x00000002;
11411 if (valueBuilder_ == null) {
11412 result.value_ = value_;
11414 result.value_ = valueBuilder_.build();
11416 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
11417 to_bitField0_ |= 0x00000004;
11419 if (eventBuilder_ == null) {
11420 result.event_ = event_;
11422 result.event_ = eventBuilder_.build();
11424 result.bitField0_ = to_bitField0_;
11429 public Builder mergeFrom(com.google.protobuf.Message other) {
11430 if (other instanceof com.openxc.BinaryMessages.SimpleMessage) {
11431 return mergeFrom((com.openxc.BinaryMessages.SimpleMessage)other);
11433 super.mergeFrom(other);
11438 public Builder mergeFrom(com.openxc.BinaryMessages.SimpleMessage other) {
11439 if (other == com.openxc.BinaryMessages.SimpleMessage.getDefaultInstance()) return this;
11440 if (other.hasName()) {
11441 setName(other.getName());
11443 if (other.hasValue()) {
11444 mergeValue(other.getValue());
11446 if (other.hasEvent()) {
11447 mergeEvent(other.getEvent());
11449 this.mergeUnknownFields(other.getUnknownFields());
11453 public final boolean isInitialized() {
11457 public Builder mergeFrom(
11458 com.google.protobuf.CodedInputStream input,
11459 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
11460 throws java.io.IOException {
11461 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
11462 com.google.protobuf.UnknownFieldSet.newBuilder(
11463 this.getUnknownFields());
11465 int tag = input.readTag();
11468 this.setUnknownFields(unknownFields.build());
11472 if (!parseUnknownField(input, unknownFields,
11473 extensionRegistry, tag)) {
11474 this.setUnknownFields(unknownFields.build());
11481 bitField0_ |= 0x00000001;
11482 name_ = input.readBytes();
11486 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = com.openxc.BinaryMessages.DynamicField.newBuilder();
11488 subBuilder.mergeFrom(getValue());
11490 input.readMessage(subBuilder, extensionRegistry);
11491 setValue(subBuilder.buildPartial());
11495 com.openxc.BinaryMessages.DynamicField.Builder subBuilder = com.openxc.BinaryMessages.DynamicField.newBuilder();
11497 subBuilder.mergeFrom(getEvent());
11499 input.readMessage(subBuilder, extensionRegistry);
11500 setEvent(subBuilder.buildPartial());
11507 private int bitField0_;
11509 // optional string name = 1;
11510 private java.lang.Object name_ = "";
11511 public boolean hasName() {
11512 return ((bitField0_ & 0x00000001) == 0x00000001);
11514 public String getName() {
11515 java.lang.Object ref = name_;
11516 if (!(ref instanceof String)) {
11517 String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
11521 return (String) ref;
11524 public Builder setName(String value) {
11525 if (value == null) {
11526 throw new NullPointerException();
11528 bitField0_ |= 0x00000001;
11533 public Builder clearName() {
11534 bitField0_ = (bitField0_ & ~0x00000001);
11535 name_ = getDefaultInstance().getName();
11539 void setName(com.google.protobuf.ByteString value) {
11540 bitField0_ |= 0x00000001;
11545 // optional .openxc.DynamicField value = 2;
11546 private com.openxc.BinaryMessages.DynamicField value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11547 private com.google.protobuf.SingleFieldBuilder<
11548 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> valueBuilder_;
11549 public boolean hasValue() {
11550 return ((bitField0_ & 0x00000002) == 0x00000002);
11552 public com.openxc.BinaryMessages.DynamicField getValue() {
11553 if (valueBuilder_ == null) {
11556 return valueBuilder_.getMessage();
11559 public Builder setValue(com.openxc.BinaryMessages.DynamicField value) {
11560 if (valueBuilder_ == null) {
11561 if (value == null) {
11562 throw new NullPointerException();
11567 valueBuilder_.setMessage(value);
11569 bitField0_ |= 0x00000002;
11572 public Builder setValue(
11573 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
11574 if (valueBuilder_ == null) {
11575 value_ = builderForValue.build();
11578 valueBuilder_.setMessage(builderForValue.build());
11580 bitField0_ |= 0x00000002;
11583 public Builder mergeValue(com.openxc.BinaryMessages.DynamicField value) {
11584 if (valueBuilder_ == null) {
11585 if (((bitField0_ & 0x00000002) == 0x00000002) &&
11586 value_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
11588 com.openxc.BinaryMessages.DynamicField.newBuilder(value_).mergeFrom(value).buildPartial();
11594 valueBuilder_.mergeFrom(value);
11596 bitField0_ |= 0x00000002;
11599 public Builder clearValue() {
11600 if (valueBuilder_ == null) {
11601 value_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11604 valueBuilder_.clear();
11606 bitField0_ = (bitField0_ & ~0x00000002);
11609 public com.openxc.BinaryMessages.DynamicField.Builder getValueBuilder() {
11610 bitField0_ |= 0x00000002;
11612 return getValueFieldBuilder().getBuilder();
11614 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getValueOrBuilder() {
11615 if (valueBuilder_ != null) {
11616 return valueBuilder_.getMessageOrBuilder();
11621 private com.google.protobuf.SingleFieldBuilder<
11622 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
11623 getValueFieldBuilder() {
11624 if (valueBuilder_ == null) {
11625 valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
11626 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
11628 getParentForChildren(),
11632 return valueBuilder_;
11635 // optional .openxc.DynamicField event = 3;
11636 private com.openxc.BinaryMessages.DynamicField event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11637 private com.google.protobuf.SingleFieldBuilder<
11638 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder> eventBuilder_;
11639 public boolean hasEvent() {
11640 return ((bitField0_ & 0x00000004) == 0x00000004);
11642 public com.openxc.BinaryMessages.DynamicField getEvent() {
11643 if (eventBuilder_ == null) {
11646 return eventBuilder_.getMessage();
11649 public Builder setEvent(com.openxc.BinaryMessages.DynamicField value) {
11650 if (eventBuilder_ == null) {
11651 if (value == null) {
11652 throw new NullPointerException();
11657 eventBuilder_.setMessage(value);
11659 bitField0_ |= 0x00000004;
11662 public Builder setEvent(
11663 com.openxc.BinaryMessages.DynamicField.Builder builderForValue) {
11664 if (eventBuilder_ == null) {
11665 event_ = builderForValue.build();
11668 eventBuilder_.setMessage(builderForValue.build());
11670 bitField0_ |= 0x00000004;
11673 public Builder mergeEvent(com.openxc.BinaryMessages.DynamicField value) {
11674 if (eventBuilder_ == null) {
11675 if (((bitField0_ & 0x00000004) == 0x00000004) &&
11676 event_ != com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) {
11678 com.openxc.BinaryMessages.DynamicField.newBuilder(event_).mergeFrom(value).buildPartial();
11684 eventBuilder_.mergeFrom(value);
11686 bitField0_ |= 0x00000004;
11689 public Builder clearEvent() {
11690 if (eventBuilder_ == null) {
11691 event_ = com.openxc.BinaryMessages.DynamicField.getDefaultInstance();
11694 eventBuilder_.clear();
11696 bitField0_ = (bitField0_ & ~0x00000004);
11699 public com.openxc.BinaryMessages.DynamicField.Builder getEventBuilder() {
11700 bitField0_ |= 0x00000004;
11702 return getEventFieldBuilder().getBuilder();
11704 public com.openxc.BinaryMessages.DynamicFieldOrBuilder getEventOrBuilder() {
11705 if (eventBuilder_ != null) {
11706 return eventBuilder_.getMessageOrBuilder();
11711 private com.google.protobuf.SingleFieldBuilder<
11712 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>
11713 getEventFieldBuilder() {
11714 if (eventBuilder_ == null) {
11715 eventBuilder_ = new com.google.protobuf.SingleFieldBuilder<
11716 com.openxc.BinaryMessages.DynamicField, com.openxc.BinaryMessages.DynamicField.Builder, com.openxc.BinaryMessages.DynamicFieldOrBuilder>(
11718 getParentForChildren(),
11722 return eventBuilder_;
11725 // @@protoc_insertion_point(builder_scope:openxc.SimpleMessage)
11729 defaultInstance = new SimpleMessage(true);
11730 defaultInstance.initFields();
11733 // @@protoc_insertion_point(class_scope:openxc.SimpleMessage)
11736 private static com.google.protobuf.Descriptors.Descriptor
11737 internal_static_openxc_VehicleMessage_descriptor;
11739 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11740 internal_static_openxc_VehicleMessage_fieldAccessorTable;
11741 private static com.google.protobuf.Descriptors.Descriptor
11742 internal_static_openxc_CanMessage_descriptor;
11744 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11745 internal_static_openxc_CanMessage_fieldAccessorTable;
11746 private static com.google.protobuf.Descriptors.Descriptor
11747 internal_static_openxc_ControlCommand_descriptor;
11749 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11750 internal_static_openxc_ControlCommand_fieldAccessorTable;
11751 private static com.google.protobuf.Descriptors.Descriptor
11752 internal_static_openxc_DiagnosticControlCommand_descriptor;
11754 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11755 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable;
11756 private static com.google.protobuf.Descriptors.Descriptor
11757 internal_static_openxc_PassthroughModeControlCommand_descriptor;
11759 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11760 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable;
11761 private static com.google.protobuf.Descriptors.Descriptor
11762 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor;
11764 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11765 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable;
11766 private static com.google.protobuf.Descriptors.Descriptor
11767 internal_static_openxc_PayloadFormatCommand_descriptor;
11769 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11770 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable;
11771 private static com.google.protobuf.Descriptors.Descriptor
11772 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor;
11774 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11775 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable;
11776 private static com.google.protobuf.Descriptors.Descriptor
11777 internal_static_openxc_NetworkOperatorSettings_descriptor;
11779 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11780 internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable;
11781 private static com.google.protobuf.Descriptors.Descriptor
11782 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor;
11784 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11785 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable;
11786 private static com.google.protobuf.Descriptors.Descriptor
11787 internal_static_openxc_NetworkDataSettings_descriptor;
11789 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11790 internal_static_openxc_NetworkDataSettings_fieldAccessorTable;
11791 private static com.google.protobuf.Descriptors.Descriptor
11792 internal_static_openxc_ServerConnectSettings_descriptor;
11794 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11795 internal_static_openxc_ServerConnectSettings_fieldAccessorTable;
11796 private static com.google.protobuf.Descriptors.Descriptor
11797 internal_static_openxc_ModemConfigurationCommand_descriptor;
11799 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11800 internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable;
11801 private static com.google.protobuf.Descriptors.Descriptor
11802 internal_static_openxc_RTCConfigurationCommand_descriptor;
11804 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11805 internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable;
11806 private static com.google.protobuf.Descriptors.Descriptor
11807 internal_static_openxc_CommandResponse_descriptor;
11809 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11810 internal_static_openxc_CommandResponse_fieldAccessorTable;
11811 private static com.google.protobuf.Descriptors.Descriptor
11812 internal_static_openxc_DiagnosticRequest_descriptor;
11814 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11815 internal_static_openxc_DiagnosticRequest_fieldAccessorTable;
11816 private static com.google.protobuf.Descriptors.Descriptor
11817 internal_static_openxc_DiagnosticResponse_descriptor;
11819 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11820 internal_static_openxc_DiagnosticResponse_fieldAccessorTable;
11821 private static com.google.protobuf.Descriptors.Descriptor
11822 internal_static_openxc_DynamicField_descriptor;
11824 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11825 internal_static_openxc_DynamicField_fieldAccessorTable;
11826 private static com.google.protobuf.Descriptors.Descriptor
11827 internal_static_openxc_SimpleMessage_descriptor;
11829 com.google.protobuf.GeneratedMessage.FieldAccessorTable
11830 internal_static_openxc_SimpleMessage_fieldAccessorTable;
11832 public static com.google.protobuf.Descriptors.FileDescriptor
11836 private static com.google.protobuf.Descriptors.FileDescriptor
11839 java.lang.String[] descriptorData = {
11840 "\n\014openxc.proto\022\006openxc\"\233\003\n\016VehicleMessag" +
11841 "e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
11842 "Type\022\'\n\013can_message\030\002 \001(\0132\022.openxc.CanMe" +
11843 "ssage\022-\n\016simple_message\030\003 \001(\0132\025.openxc.S" +
11844 "impleMessage\0227\n\023diagnostic_response\030\004 \001(" +
11845 "\0132\032.openxc.DiagnosticResponse\022/\n\017control" +
11846 "_command\030\005 \001(\0132\026.openxc.ControlCommand\0221" +
11847 "\n\020command_response\030\006 \001(\0132\027.openxc.Comman" +
11848 "dResponse\022\021\n\ttimestamp\030\007 \001(\004\"V\n\004Type\022\007\n\003" +
11849 "CAN\020\001\022\n\n\006SIMPLE\020\002\022\016\n\nDIAGNOSTIC\020\003\022\023\n\017CON",
11850 "TROL_COMMAND\020\004\022\024\n\020COMMAND_RESPONSE\020\005\"\224\001\n" +
11851 "\nCanMessage\022\013\n\003bus\030\001 \001(\005\022\n\n\002id\030\002 \001(\r\022\014\n\004" +
11852 "data\030\003 \001(\014\0224\n\014frame_format\030\004 \001(\0162\036.openx" +
11853 "c.CanMessage.FrameFormat\")\n\013FrameFormat\022" +
11854 "\014\n\010STANDARD\020\001\022\014\n\010EXTENDED\020\002\"\211\006\n\016ControlC" +
11855 "ommand\022)\n\004type\030\001 \001(\0162\033.openxc.ControlCom" +
11856 "mand.Type\022<\n\022diagnostic_request\030\002 \001(\0132 ." +
11857 "openxc.DiagnosticControlCommand\022G\n\030passt" +
11858 "hrough_mode_request\030\003 \001(\0132%.openxc.Passt" +
11859 "hroughModeControlCommand\022O\n acceptance_f",
11860 "ilter_bypass_command\030\004 \001(\0132%.openxc.Acce" +
11861 "ptanceFilterBypassCommand\022<\n\026payload_for" +
11862 "mat_command\030\005 \001(\0132\034.openxc.PayloadFormat" +
11863 "Command\022O\n predefined_obd2_requests_comm" +
11864 "and\030\006 \001(\0132%.openxc.PredefinedObd2Request" +
11865 "sCommand\022F\n\033modem_configuration_command\030" +
11866 "\007 \001(\0132!.openxc.ModemConfigurationCommand" +
11867 "\022B\n\031rtc_configuration_command\030\010 \001(\0132\037.op" +
11868 "enxc.RTCConfigurationCommand\"\330\001\n\004Type\022\013\n" +
11869 "\007VERSION\020\001\022\r\n\tDEVICE_ID\020\002\022\016\n\nDIAGNOSTIC\020",
11870 "\003\022\017\n\013PASSTHROUGH\020\004\022\034\n\030ACCEPTANCE_FILTER_" +
11871 "BYPASS\020\005\022\022\n\016PAYLOAD_FORMAT\020\006\022\034\n\030PREDEFIN" +
11872 "ED_OBD2_REQUESTS\020\007\022\027\n\023MODEM_CONFIGURATIO" +
11873 "N\020\010\022\025\n\021RTC_CONFIGURATION\020\t\022\023\n\017SD_MOUNT_S" +
11874 "TATUS\020\n\"\236\001\n\030DiagnosticControlCommand\022*\n\007" +
11875 "request\030\001 \001(\0132\031.openxc.DiagnosticRequest" +
11876 "\0227\n\006action\030\002 \001(\0162\'.openxc.DiagnosticCont" +
11877 "rolCommand.Action\"\035\n\006Action\022\007\n\003ADD\020\001\022\n\n\006" +
11878 "CANCEL\020\002\"=\n\035PassthroughModeControlComman" +
11879 "d\022\013\n\003bus\030\001 \001(\005\022\017\n\007enabled\030\002 \001(\010\"<\n\035Accep",
11880 "tanceFilterBypassCommand\022\013\n\003bus\030\001 \001(\005\022\016\n" +
11881 "\006bypass\030\002 \001(\010\"\214\001\n\024PayloadFormatCommand\022:" +
11882 "\n\006format\030\001 \001(\0162*.openxc.PayloadFormatCom" +
11883 "mand.PayloadFormat\"8\n\rPayloadFormat\022\010\n\004J" +
11884 "SON\020\001\022\014\n\010PROTOBUF\020\002\022\017\n\013MESSAGEPACK\020\003\"0\n\035" +
11885 "PredefinedObd2RequestsCommand\022\017\n\007enabled" +
11886 "\030\001 \001(\010\"\321\003\n\027NetworkOperatorSettings\022\030\n\020al" +
11887 "lowDataRoaming\030\001 \001(\010\022N\n\022operatorSelectMo" +
11888 "de\030\002 \001(\01622.openxc.NetworkOperatorSetting" +
11889 "s.OperatorSelectMode\022L\n\021networkDescripto",
11890 "r\030\003 \001(\01321.openxc.NetworkOperatorSettings" +
11891 ".NetworkDescriptor\032\230\001\n\021NetworkDescriptor" +
11892 "\022\014\n\004PLMN\030\001 \001(\r\022R\n\013networkType\030\002 \001(\0162=.op" +
11893 "enxc.NetworkOperatorSettings.NetworkDesc" +
11894 "riptor.NetworkType\"!\n\013NetworkType\022\007\n\003GSM" +
11895 "\020\000\022\t\n\005UTRAN\020\002\"c\n\022OperatorSelectMode\022\r\n\tA" +
11896 "UTOMATIC\020\000\022\n\n\006MANUAL\020\001\022\016\n\nDEREGISTER\020\002\022\014" +
11897 "\n\010SET_ONLY\020\003\022\024\n\020MANUAL_AUTOMATIC\020\004\"\"\n\023Ne" +
11898 "tworkDataSettings\022\013\n\003APN\030\001 \001(\t\"3\n\025Server" +
11899 "ConnectSettings\022\014\n\004host\030\001 \001(\t\022\014\n\004port\030\002 ",
11900 "\001(\r\"\325\001\n\031ModemConfigurationCommand\022@\n\027net" +
11901 "workOperatorSettings\030\001 \001(\0132\037.openxc.Netw" +
11902 "orkOperatorSettings\0228\n\023networkDataSettin" +
11903 "gs\030\002 \001(\0132\033.openxc.NetworkDataSettings\022<\n" +
11904 "\025serverConnectSettings\030\003 \001(\0132\035.openxc.Se" +
11905 "rverConnectSettings\",\n\027RTCConfigurationC" +
11906 "ommand\022\021\n\tunix_time\030\001 \001(\r\"]\n\017CommandResp" +
11907 "onse\022)\n\004type\030\001 \001(\0162\033.openxc.ControlComma" +
11908 "nd.Type\022\017\n\007message\030\002 \001(\t\022\016\n\006status\030\003 \001(\010" +
11909 "\"\375\001\n\021DiagnosticRequest\022\013\n\003bus\030\001 \001(\005\022\022\n\nm",
11910 "essage_id\030\002 \001(\r\022\014\n\004mode\030\003 \001(\r\022\013\n\003pid\030\004 \001" +
11911 "(\r\022\017\n\007payload\030\005 \001(\014\022\032\n\022multiple_response" +
11912 "s\030\006 \001(\010\022\021\n\tfrequency\030\007 \001(\001\022\014\n\004name\030\010 \001(\t" +
11913 "\022;\n\014decoded_type\030\t \001(\0162%.openxc.Diagnost" +
11914 "icRequest.DecodedType\"!\n\013DecodedType\022\010\n\004" +
11915 "NONE\020\001\022\010\n\004OBD2\020\002\"\241\001\n\022DiagnosticResponse\022" +
11916 "\013\n\003bus\030\001 \001(\005\022\022\n\nmessage_id\030\002 \001(\r\022\014\n\004mode" +
11917 "\030\003 \001(\r\022\013\n\003pid\030\004 \001(\r\022\017\n\007success\030\005 \001(\010\022\036\n\026" +
11918 "negative_response_code\030\006 \001(\r\022\017\n\007payload\030" +
11919 "\007 \001(\014\022\r\n\005value\030\010 \001(\001\"\242\001\n\014DynamicField\022\'\n",
11920 "\004type\030\001 \001(\0162\031.openxc.DynamicField.Type\022\024" +
11921 "\n\014string_value\030\002 \001(\t\022\025\n\rnumeric_value\030\003 " +
11922 "\001(\001\022\025\n\rboolean_value\030\004 \001(\010\"%\n\004Type\022\n\n\006ST" +
11923 "RING\020\001\022\007\n\003NUM\020\002\022\010\n\004BOOL\020\003\"g\n\rSimpleMessa" +
11924 "ge\022\014\n\004name\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.openxc" +
11925 ".DynamicField\022#\n\005event\030\003 \001(\0132\024.openxc.Dy" +
11926 "namicFieldB\034\n\ncom.openxcB\016BinaryMessages"
11928 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
11929 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
11930 public com.google.protobuf.ExtensionRegistry assignDescriptors(
11931 com.google.protobuf.Descriptors.FileDescriptor root) {
11933 internal_static_openxc_VehicleMessage_descriptor =
11934 getDescriptor().getMessageTypes().get(0);
11935 internal_static_openxc_VehicleMessage_fieldAccessorTable = new
11936 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11937 internal_static_openxc_VehicleMessage_descriptor,
11938 new java.lang.String[] { "Type", "CanMessage", "SimpleMessage", "DiagnosticResponse", "ControlCommand", "CommandResponse", "Timestamp", },
11939 com.openxc.BinaryMessages.VehicleMessage.class,
11940 com.openxc.BinaryMessages.VehicleMessage.Builder.class);
11941 internal_static_openxc_CanMessage_descriptor =
11942 getDescriptor().getMessageTypes().get(1);
11943 internal_static_openxc_CanMessage_fieldAccessorTable = new
11944 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11945 internal_static_openxc_CanMessage_descriptor,
11946 new java.lang.String[] { "Bus", "Id", "Data", "FrameFormat", },
11947 com.openxc.BinaryMessages.CanMessage.class,
11948 com.openxc.BinaryMessages.CanMessage.Builder.class);
11949 internal_static_openxc_ControlCommand_descriptor =
11950 getDescriptor().getMessageTypes().get(2);
11951 internal_static_openxc_ControlCommand_fieldAccessorTable = new
11952 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11953 internal_static_openxc_ControlCommand_descriptor,
11954 new java.lang.String[] { "Type", "DiagnosticRequest", "PassthroughModeRequest", "AcceptanceFilterBypassCommand", "PayloadFormatCommand", "PredefinedObd2RequestsCommand", "ModemConfigurationCommand", "RtcConfigurationCommand", },
11955 com.openxc.BinaryMessages.ControlCommand.class,
11956 com.openxc.BinaryMessages.ControlCommand.Builder.class);
11957 internal_static_openxc_DiagnosticControlCommand_descriptor =
11958 getDescriptor().getMessageTypes().get(3);
11959 internal_static_openxc_DiagnosticControlCommand_fieldAccessorTable = new
11960 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11961 internal_static_openxc_DiagnosticControlCommand_descriptor,
11962 new java.lang.String[] { "Request", "Action", },
11963 com.openxc.BinaryMessages.DiagnosticControlCommand.class,
11964 com.openxc.BinaryMessages.DiagnosticControlCommand.Builder.class);
11965 internal_static_openxc_PassthroughModeControlCommand_descriptor =
11966 getDescriptor().getMessageTypes().get(4);
11967 internal_static_openxc_PassthroughModeControlCommand_fieldAccessorTable = new
11968 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11969 internal_static_openxc_PassthroughModeControlCommand_descriptor,
11970 new java.lang.String[] { "Bus", "Enabled", },
11971 com.openxc.BinaryMessages.PassthroughModeControlCommand.class,
11972 com.openxc.BinaryMessages.PassthroughModeControlCommand.Builder.class);
11973 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor =
11974 getDescriptor().getMessageTypes().get(5);
11975 internal_static_openxc_AcceptanceFilterBypassCommand_fieldAccessorTable = new
11976 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11977 internal_static_openxc_AcceptanceFilterBypassCommand_descriptor,
11978 new java.lang.String[] { "Bus", "Bypass", },
11979 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.class,
11980 com.openxc.BinaryMessages.AcceptanceFilterBypassCommand.Builder.class);
11981 internal_static_openxc_PayloadFormatCommand_descriptor =
11982 getDescriptor().getMessageTypes().get(6);
11983 internal_static_openxc_PayloadFormatCommand_fieldAccessorTable = new
11984 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11985 internal_static_openxc_PayloadFormatCommand_descriptor,
11986 new java.lang.String[] { "Format", },
11987 com.openxc.BinaryMessages.PayloadFormatCommand.class,
11988 com.openxc.BinaryMessages.PayloadFormatCommand.Builder.class);
11989 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor =
11990 getDescriptor().getMessageTypes().get(7);
11991 internal_static_openxc_PredefinedObd2RequestsCommand_fieldAccessorTable = new
11992 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
11993 internal_static_openxc_PredefinedObd2RequestsCommand_descriptor,
11994 new java.lang.String[] { "Enabled", },
11995 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.class,
11996 com.openxc.BinaryMessages.PredefinedObd2RequestsCommand.Builder.class);
11997 internal_static_openxc_NetworkOperatorSettings_descriptor =
11998 getDescriptor().getMessageTypes().get(8);
11999 internal_static_openxc_NetworkOperatorSettings_fieldAccessorTable = new
12000 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12001 internal_static_openxc_NetworkOperatorSettings_descriptor,
12002 new java.lang.String[] { "AllowDataRoaming", "OperatorSelectMode", "NetworkDescriptor", },
12003 com.openxc.BinaryMessages.NetworkOperatorSettings.class,
12004 com.openxc.BinaryMessages.NetworkOperatorSettings.Builder.class);
12005 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor =
12006 internal_static_openxc_NetworkOperatorSettings_descriptor.getNestedTypes().get(0);
12007 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_fieldAccessorTable = new
12008 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12009 internal_static_openxc_NetworkOperatorSettings_NetworkDescriptor_descriptor,
12010 new java.lang.String[] { "PLMN", "NetworkType", },
12011 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.class,
12012 com.openxc.BinaryMessages.NetworkOperatorSettings.NetworkDescriptor.Builder.class);
12013 internal_static_openxc_NetworkDataSettings_descriptor =
12014 getDescriptor().getMessageTypes().get(9);
12015 internal_static_openxc_NetworkDataSettings_fieldAccessorTable = new
12016 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12017 internal_static_openxc_NetworkDataSettings_descriptor,
12018 new java.lang.String[] { "APN", },
12019 com.openxc.BinaryMessages.NetworkDataSettings.class,
12020 com.openxc.BinaryMessages.NetworkDataSettings.Builder.class);
12021 internal_static_openxc_ServerConnectSettings_descriptor =
12022 getDescriptor().getMessageTypes().get(10);
12023 internal_static_openxc_ServerConnectSettings_fieldAccessorTable = new
12024 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12025 internal_static_openxc_ServerConnectSettings_descriptor,
12026 new java.lang.String[] { "Host", "Port", },
12027 com.openxc.BinaryMessages.ServerConnectSettings.class,
12028 com.openxc.BinaryMessages.ServerConnectSettings.Builder.class);
12029 internal_static_openxc_ModemConfigurationCommand_descriptor =
12030 getDescriptor().getMessageTypes().get(11);
12031 internal_static_openxc_ModemConfigurationCommand_fieldAccessorTable = new
12032 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12033 internal_static_openxc_ModemConfigurationCommand_descriptor,
12034 new java.lang.String[] { "NetworkOperatorSettings", "NetworkDataSettings", "ServerConnectSettings", },
12035 com.openxc.BinaryMessages.ModemConfigurationCommand.class,
12036 com.openxc.BinaryMessages.ModemConfigurationCommand.Builder.class);
12037 internal_static_openxc_RTCConfigurationCommand_descriptor =
12038 getDescriptor().getMessageTypes().get(12);
12039 internal_static_openxc_RTCConfigurationCommand_fieldAccessorTable = new
12040 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12041 internal_static_openxc_RTCConfigurationCommand_descriptor,
12042 new java.lang.String[] { "UnixTime", },
12043 com.openxc.BinaryMessages.RTCConfigurationCommand.class,
12044 com.openxc.BinaryMessages.RTCConfigurationCommand.Builder.class);
12045 internal_static_openxc_CommandResponse_descriptor =
12046 getDescriptor().getMessageTypes().get(13);
12047 internal_static_openxc_CommandResponse_fieldAccessorTable = new
12048 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12049 internal_static_openxc_CommandResponse_descriptor,
12050 new java.lang.String[] { "Type", "Message", "Status", },
12051 com.openxc.BinaryMessages.CommandResponse.class,
12052 com.openxc.BinaryMessages.CommandResponse.Builder.class);
12053 internal_static_openxc_DiagnosticRequest_descriptor =
12054 getDescriptor().getMessageTypes().get(14);
12055 internal_static_openxc_DiagnosticRequest_fieldAccessorTable = new
12056 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12057 internal_static_openxc_DiagnosticRequest_descriptor,
12058 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Payload", "MultipleResponses", "Frequency", "Name", "DecodedType", },
12059 com.openxc.BinaryMessages.DiagnosticRequest.class,
12060 com.openxc.BinaryMessages.DiagnosticRequest.Builder.class);
12061 internal_static_openxc_DiagnosticResponse_descriptor =
12062 getDescriptor().getMessageTypes().get(15);
12063 internal_static_openxc_DiagnosticResponse_fieldAccessorTable = new
12064 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12065 internal_static_openxc_DiagnosticResponse_descriptor,
12066 new java.lang.String[] { "Bus", "MessageId", "Mode", "Pid", "Success", "NegativeResponseCode", "Payload", "Value", },
12067 com.openxc.BinaryMessages.DiagnosticResponse.class,
12068 com.openxc.BinaryMessages.DiagnosticResponse.Builder.class);
12069 internal_static_openxc_DynamicField_descriptor =
12070 getDescriptor().getMessageTypes().get(16);
12071 internal_static_openxc_DynamicField_fieldAccessorTable = new
12072 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12073 internal_static_openxc_DynamicField_descriptor,
12074 new java.lang.String[] { "Type", "StringValue", "NumericValue", "BooleanValue", },
12075 com.openxc.BinaryMessages.DynamicField.class,
12076 com.openxc.BinaryMessages.DynamicField.Builder.class);
12077 internal_static_openxc_SimpleMessage_descriptor =
12078 getDescriptor().getMessageTypes().get(17);
12079 internal_static_openxc_SimpleMessage_fieldAccessorTable = new
12080 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
12081 internal_static_openxc_SimpleMessage_descriptor,
12082 new java.lang.String[] { "Name", "Value", "Event", },
12083 com.openxc.BinaryMessages.SimpleMessage.class,
12084 com.openxc.BinaryMessages.SimpleMessage.Builder.class);
12088 com.google.protobuf.Descriptors.FileDescriptor
12089 .internalBuildGeneratedFileFrom(descriptorData,
12090 new com.google.protobuf.Descriptors.FileDescriptor[] {
12094 // @@protoc_insertion_point(outer_class_scope)