// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: openxc.proto
package com.openxc;
public final class BinaryMessages {
private BinaryMessages() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface VehicleMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .openxc.VehicleMessage.Type type = 1;
/**
* optional .openxc.VehicleMessage.Type type = 1;
*/
boolean hasType();
/**
* optional .openxc.VehicleMessage.Type type = 1;
*/
com.openxc.BinaryMessages.VehicleMessage.Type getType();
// optional .openxc.RawMessage raw_message = 2;
/**
* optional .openxc.RawMessage raw_message = 2;
*/
boolean hasRawMessage();
/**
* optional .openxc.RawMessage raw_message = 2;
*/
com.openxc.BinaryMessages.RawMessage getRawMessage();
/**
* optional .openxc.RawMessage raw_message = 2;
*/
com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder();
// optional .openxc.StringMessage string_message = 3;
/**
* optional .openxc.StringMessage string_message = 3;
*/
boolean hasStringMessage();
/**
* optional .openxc.StringMessage string_message = 3;
*/
com.openxc.BinaryMessages.StringMessage getStringMessage();
/**
* optional .openxc.StringMessage string_message = 3;
*/
com.openxc.BinaryMessages.StringMessageOrBuilder getStringMessageOrBuilder();
// optional .openxc.NumericMessage numeric_message = 4;
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
boolean hasNumericMessage();
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
com.openxc.BinaryMessages.NumericMessage getNumericMessage();
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
com.openxc.BinaryMessages.NumericMessageOrBuilder getNumericMessageOrBuilder();
// optional .openxc.BooleanMessage boolean_message = 5;
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
boolean hasBooleanMessage();
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
com.openxc.BinaryMessages.BooleanMessage getBooleanMessage();
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
com.openxc.BinaryMessages.BooleanMessageOrBuilder getBooleanMessageOrBuilder();
// optional .openxc.EventedStringMessage evented_string_message = 6;
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
boolean hasEventedStringMessage();
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
com.openxc.BinaryMessages.EventedStringMessage getEventedStringMessage();
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
com.openxc.BinaryMessages.EventedStringMessageOrBuilder getEventedStringMessageOrBuilder();
// optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
boolean hasEventedBooleanMessage();
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
com.openxc.BinaryMessages.EventedBooleanMessage getEventedBooleanMessage();
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder getEventedBooleanMessageOrBuilder();
// optional .openxc.EventedNumericMessage evented_numeric_message = 8;
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
boolean hasEventedNumericMessage();
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
com.openxc.BinaryMessages.EventedNumericMessage getEventedNumericMessage();
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
com.openxc.BinaryMessages.EventedNumericMessageOrBuilder getEventedNumericMessageOrBuilder();
}
/**
* Protobuf type {@code openxc.VehicleMessage}
*/
public static final class VehicleMessage extends
com.google.protobuf.GeneratedMessage
implements VehicleMessageOrBuilder {
// Use VehicleMessage.newBuilder() to construct.
private VehicleMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private VehicleMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final VehicleMessage defaultInstance;
public static VehicleMessage getDefaultInstance() {
return defaultInstance;
}
public VehicleMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VehicleMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.openxc.BinaryMessages.VehicleMessage.Type value = com.openxc.BinaryMessages.VehicleMessage.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = value;
}
break;
}
case 18: {
com.openxc.BinaryMessages.RawMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = rawMessage_.toBuilder();
}
rawMessage_ = input.readMessage(com.openxc.BinaryMessages.RawMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rawMessage_);
rawMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.openxc.BinaryMessages.StringMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = stringMessage_.toBuilder();
}
stringMessage_ = input.readMessage(com.openxc.BinaryMessages.StringMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stringMessage_);
stringMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.openxc.BinaryMessages.NumericMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = numericMessage_.toBuilder();
}
numericMessage_ = input.readMessage(com.openxc.BinaryMessages.NumericMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(numericMessage_);
numericMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
com.openxc.BinaryMessages.BooleanMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = booleanMessage_.toBuilder();
}
booleanMessage_ = input.readMessage(com.openxc.BinaryMessages.BooleanMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(booleanMessage_);
booleanMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
com.openxc.BinaryMessages.EventedStringMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = eventedStringMessage_.toBuilder();
}
eventedStringMessage_ = input.readMessage(com.openxc.BinaryMessages.EventedStringMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(eventedStringMessage_);
eventedStringMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 58: {
com.openxc.BinaryMessages.EventedBooleanMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = eventedBooleanMessage_.toBuilder();
}
eventedBooleanMessage_ = input.readMessage(com.openxc.BinaryMessages.EventedBooleanMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(eventedBooleanMessage_);
eventedBooleanMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 66: {
com.openxc.BinaryMessages.EventedNumericMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = eventedNumericMessage_.toBuilder();
}
eventedNumericMessage_ = input.readMessage(com.openxc.BinaryMessages.EventedNumericMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(eventedNumericMessage_);
eventedNumericMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public VehicleMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VehicleMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code openxc.VehicleMessage.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* RAW = 1;
*/
RAW(0, 1),
/**
* STRING = 2;
*/
STRING(1, 2),
/**
* BOOL = 3;
*/
BOOL(2, 3),
/**
* NUM = 4;
*/
NUM(3, 4),
/**
* EVENTED_NUM = 5;
*/
EVENTED_NUM(4, 5),
/**
* EVENTED_STRING = 6;
*/
EVENTED_STRING(5, 6),
/**
* EVENTED_BOOL = 7;
*/
EVENTED_BOOL(6, 7),
;
/**
* RAW = 1;
*/
public static final int RAW_VALUE = 1;
/**
* STRING = 2;
*/
public static final int STRING_VALUE = 2;
/**
* BOOL = 3;
*/
public static final int BOOL_VALUE = 3;
/**
* NUM = 4;
*/
public static final int NUM_VALUE = 4;
/**
* EVENTED_NUM = 5;
*/
public static final int EVENTED_NUM_VALUE = 5;
/**
* EVENTED_STRING = 6;
*/
public static final int EVENTED_STRING_VALUE = 6;
/**
* EVENTED_BOOL = 7;
*/
public static final int EVENTED_BOOL_VALUE = 7;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 1: return RAW;
case 2: return STRING;
case 3: return BOOL;
case 4: return NUM;
case 5: return EVENTED_NUM;
case 6: return EVENTED_STRING;
case 7: return EVENTED_BOOL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.openxc.BinaryMessages.VehicleMessage.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:openxc.VehicleMessage.Type)
}
private int bitField0_;
// optional .openxc.VehicleMessage.Type type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private com.openxc.BinaryMessages.VehicleMessage.Type type_;
/**
* optional .openxc.VehicleMessage.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .openxc.VehicleMessage.Type type = 1;
*/
public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
return type_;
}
// optional .openxc.RawMessage raw_message = 2;
public static final int RAW_MESSAGE_FIELD_NUMBER = 2;
private com.openxc.BinaryMessages.RawMessage rawMessage_;
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public boolean hasRawMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public com.openxc.BinaryMessages.RawMessage getRawMessage() {
return rawMessage_;
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder() {
return rawMessage_;
}
// optional .openxc.StringMessage string_message = 3;
public static final int STRING_MESSAGE_FIELD_NUMBER = 3;
private com.openxc.BinaryMessages.StringMessage stringMessage_;
/**
* optional .openxc.StringMessage string_message = 3;
*/
public boolean hasStringMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
public com.openxc.BinaryMessages.StringMessage getStringMessage() {
return stringMessage_;
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
public com.openxc.BinaryMessages.StringMessageOrBuilder getStringMessageOrBuilder() {
return stringMessage_;
}
// optional .openxc.NumericMessage numeric_message = 4;
public static final int NUMERIC_MESSAGE_FIELD_NUMBER = 4;
private com.openxc.BinaryMessages.NumericMessage numericMessage_;
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public boolean hasNumericMessage() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public com.openxc.BinaryMessages.NumericMessage getNumericMessage() {
return numericMessage_;
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public com.openxc.BinaryMessages.NumericMessageOrBuilder getNumericMessageOrBuilder() {
return numericMessage_;
}
// optional .openxc.BooleanMessage boolean_message = 5;
public static final int BOOLEAN_MESSAGE_FIELD_NUMBER = 5;
private com.openxc.BinaryMessages.BooleanMessage booleanMessage_;
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public boolean hasBooleanMessage() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public com.openxc.BinaryMessages.BooleanMessage getBooleanMessage() {
return booleanMessage_;
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public com.openxc.BinaryMessages.BooleanMessageOrBuilder getBooleanMessageOrBuilder() {
return booleanMessage_;
}
// optional .openxc.EventedStringMessage evented_string_message = 6;
public static final int EVENTED_STRING_MESSAGE_FIELD_NUMBER = 6;
private com.openxc.BinaryMessages.EventedStringMessage eventedStringMessage_;
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public boolean hasEventedStringMessage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public com.openxc.BinaryMessages.EventedStringMessage getEventedStringMessage() {
return eventedStringMessage_;
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public com.openxc.BinaryMessages.EventedStringMessageOrBuilder getEventedStringMessageOrBuilder() {
return eventedStringMessage_;
}
// optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
public static final int EVENTED_BOOLEAN_MESSAGE_FIELD_NUMBER = 7;
private com.openxc.BinaryMessages.EventedBooleanMessage eventedBooleanMessage_;
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public boolean hasEventedBooleanMessage() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public com.openxc.BinaryMessages.EventedBooleanMessage getEventedBooleanMessage() {
return eventedBooleanMessage_;
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder getEventedBooleanMessageOrBuilder() {
return eventedBooleanMessage_;
}
// optional .openxc.EventedNumericMessage evented_numeric_message = 8;
public static final int EVENTED_NUMERIC_MESSAGE_FIELD_NUMBER = 8;
private com.openxc.BinaryMessages.EventedNumericMessage eventedNumericMessage_;
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public boolean hasEventedNumericMessage() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public com.openxc.BinaryMessages.EventedNumericMessage getEventedNumericMessage() {
return eventedNumericMessage_;
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public com.openxc.BinaryMessages.EventedNumericMessageOrBuilder getEventedNumericMessageOrBuilder() {
return eventedNumericMessage_;
}
private void initFields() {
type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
stringMessage_ = com.openxc.BinaryMessages.StringMessage.getDefaultInstance();
numericMessage_ = com.openxc.BinaryMessages.NumericMessage.getDefaultInstance();
booleanMessage_ = com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance();
eventedStringMessage_ = com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance();
eventedBooleanMessage_ = com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance();
eventedNumericMessage_ = com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, rawMessage_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, stringMessage_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, numericMessage_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, booleanMessage_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, eventedStringMessage_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(7, eventedBooleanMessage_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(8, eventedNumericMessage_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, rawMessage_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, stringMessage_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, numericMessage_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, booleanMessage_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, eventedStringMessage_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, eventedBooleanMessage_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, eventedNumericMessage_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.VehicleMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.VehicleMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.openxc.BinaryMessages.VehicleMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.VehicleMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.openxc.BinaryMessages.VehicleMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code openxc.VehicleMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.openxc.BinaryMessages.VehicleMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.VehicleMessage.class, com.openxc.BinaryMessages.VehicleMessage.Builder.class);
}
// Construct using com.openxc.BinaryMessages.VehicleMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRawMessageFieldBuilder();
getStringMessageFieldBuilder();
getNumericMessageFieldBuilder();
getBooleanMessageFieldBuilder();
getEventedStringMessageFieldBuilder();
getEventedBooleanMessageFieldBuilder();
getEventedNumericMessageFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
bitField0_ = (bitField0_ & ~0x00000001);
if (rawMessageBuilder_ == null) {
rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
} else {
rawMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (stringMessageBuilder_ == null) {
stringMessage_ = com.openxc.BinaryMessages.StringMessage.getDefaultInstance();
} else {
stringMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (numericMessageBuilder_ == null) {
numericMessage_ = com.openxc.BinaryMessages.NumericMessage.getDefaultInstance();
} else {
numericMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (booleanMessageBuilder_ == null) {
booleanMessage_ = com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance();
} else {
booleanMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (eventedStringMessageBuilder_ == null) {
eventedStringMessage_ = com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance();
} else {
eventedStringMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (eventedBooleanMessageBuilder_ == null) {
eventedBooleanMessage_ = com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance();
} else {
eventedBooleanMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (eventedNumericMessageBuilder_ == null) {
eventedNumericMessage_ = com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance();
} else {
eventedNumericMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.openxc.BinaryMessages.internal_static_openxc_VehicleMessage_descriptor;
}
public com.openxc.BinaryMessages.VehicleMessage getDefaultInstanceForType() {
return com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance();
}
public com.openxc.BinaryMessages.VehicleMessage build() {
com.openxc.BinaryMessages.VehicleMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.openxc.BinaryMessages.VehicleMessage buildPartial() {
com.openxc.BinaryMessages.VehicleMessage result = new com.openxc.BinaryMessages.VehicleMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (rawMessageBuilder_ == null) {
result.rawMessage_ = rawMessage_;
} else {
result.rawMessage_ = rawMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (stringMessageBuilder_ == null) {
result.stringMessage_ = stringMessage_;
} else {
result.stringMessage_ = stringMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (numericMessageBuilder_ == null) {
result.numericMessage_ = numericMessage_;
} else {
result.numericMessage_ = numericMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (booleanMessageBuilder_ == null) {
result.booleanMessage_ = booleanMessage_;
} else {
result.booleanMessage_ = booleanMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (eventedStringMessageBuilder_ == null) {
result.eventedStringMessage_ = eventedStringMessage_;
} else {
result.eventedStringMessage_ = eventedStringMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (eventedBooleanMessageBuilder_ == null) {
result.eventedBooleanMessage_ = eventedBooleanMessage_;
} else {
result.eventedBooleanMessage_ = eventedBooleanMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (eventedNumericMessageBuilder_ == null) {
result.eventedNumericMessage_ = eventedNumericMessage_;
} else {
result.eventedNumericMessage_ = eventedNumericMessageBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.openxc.BinaryMessages.VehicleMessage) {
return mergeFrom((com.openxc.BinaryMessages.VehicleMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.openxc.BinaryMessages.VehicleMessage other) {
if (other == com.openxc.BinaryMessages.VehicleMessage.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasRawMessage()) {
mergeRawMessage(other.getRawMessage());
}
if (other.hasStringMessage()) {
mergeStringMessage(other.getStringMessage());
}
if (other.hasNumericMessage()) {
mergeNumericMessage(other.getNumericMessage());
}
if (other.hasBooleanMessage()) {
mergeBooleanMessage(other.getBooleanMessage());
}
if (other.hasEventedStringMessage()) {
mergeEventedStringMessage(other.getEventedStringMessage());
}
if (other.hasEventedBooleanMessage()) {
mergeEventedBooleanMessage(other.getEventedBooleanMessage());
}
if (other.hasEventedNumericMessage()) {
mergeEventedNumericMessage(other.getEventedNumericMessage());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.openxc.BinaryMessages.VehicleMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.openxc.BinaryMessages.VehicleMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .openxc.VehicleMessage.Type type = 1;
private com.openxc.BinaryMessages.VehicleMessage.Type type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
/**
* optional .openxc.VehicleMessage.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .openxc.VehicleMessage.Type type = 1;
*/
public com.openxc.BinaryMessages.VehicleMessage.Type getType() {
return type_;
}
/**
* optional .openxc.VehicleMessage.Type type = 1;
*/
public Builder setType(com.openxc.BinaryMessages.VehicleMessage.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* optional .openxc.VehicleMessage.Type type = 1;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = com.openxc.BinaryMessages.VehicleMessage.Type.RAW;
onChanged();
return this;
}
// optional .openxc.RawMessage raw_message = 2;
private com.openxc.BinaryMessages.RawMessage rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder> rawMessageBuilder_;
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public boolean hasRawMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public com.openxc.BinaryMessages.RawMessage getRawMessage() {
if (rawMessageBuilder_ == null) {
return rawMessage_;
} else {
return rawMessageBuilder_.getMessage();
}
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public Builder setRawMessage(com.openxc.BinaryMessages.RawMessage value) {
if (rawMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rawMessage_ = value;
onChanged();
} else {
rawMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public Builder setRawMessage(
com.openxc.BinaryMessages.RawMessage.Builder builderForValue) {
if (rawMessageBuilder_ == null) {
rawMessage_ = builderForValue.build();
onChanged();
} else {
rawMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public Builder mergeRawMessage(com.openxc.BinaryMessages.RawMessage value) {
if (rawMessageBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
rawMessage_ != com.openxc.BinaryMessages.RawMessage.getDefaultInstance()) {
rawMessage_ =
com.openxc.BinaryMessages.RawMessage.newBuilder(rawMessage_).mergeFrom(value).buildPartial();
} else {
rawMessage_ = value;
}
onChanged();
} else {
rawMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public Builder clearRawMessage() {
if (rawMessageBuilder_ == null) {
rawMessage_ = com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
onChanged();
} else {
rawMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public com.openxc.BinaryMessages.RawMessage.Builder getRawMessageBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRawMessageFieldBuilder().getBuilder();
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
public com.openxc.BinaryMessages.RawMessageOrBuilder getRawMessageOrBuilder() {
if (rawMessageBuilder_ != null) {
return rawMessageBuilder_.getMessageOrBuilder();
} else {
return rawMessage_;
}
}
/**
* optional .openxc.RawMessage raw_message = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder>
getRawMessageFieldBuilder() {
if (rawMessageBuilder_ == null) {
rawMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.RawMessage, com.openxc.BinaryMessages.RawMessage.Builder, com.openxc.BinaryMessages.RawMessageOrBuilder>(
rawMessage_,
getParentForChildren(),
isClean());
rawMessage_ = null;
}
return rawMessageBuilder_;
}
// optional .openxc.StringMessage string_message = 3;
private com.openxc.BinaryMessages.StringMessage stringMessage_ = com.openxc.BinaryMessages.StringMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.StringMessage, com.openxc.BinaryMessages.StringMessage.Builder, com.openxc.BinaryMessages.StringMessageOrBuilder> stringMessageBuilder_;
/**
* optional .openxc.StringMessage string_message = 3;
*/
public boolean hasStringMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
public com.openxc.BinaryMessages.StringMessage getStringMessage() {
if (stringMessageBuilder_ == null) {
return stringMessage_;
} else {
return stringMessageBuilder_.getMessage();
}
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
public Builder setStringMessage(com.openxc.BinaryMessages.StringMessage value) {
if (stringMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stringMessage_ = value;
onChanged();
} else {
stringMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
public Builder setStringMessage(
com.openxc.BinaryMessages.StringMessage.Builder builderForValue) {
if (stringMessageBuilder_ == null) {
stringMessage_ = builderForValue.build();
onChanged();
} else {
stringMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
public Builder mergeStringMessage(com.openxc.BinaryMessages.StringMessage value) {
if (stringMessageBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
stringMessage_ != com.openxc.BinaryMessages.StringMessage.getDefaultInstance()) {
stringMessage_ =
com.openxc.BinaryMessages.StringMessage.newBuilder(stringMessage_).mergeFrom(value).buildPartial();
} else {
stringMessage_ = value;
}
onChanged();
} else {
stringMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
public Builder clearStringMessage() {
if (stringMessageBuilder_ == null) {
stringMessage_ = com.openxc.BinaryMessages.StringMessage.getDefaultInstance();
onChanged();
} else {
stringMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
public com.openxc.BinaryMessages.StringMessage.Builder getStringMessageBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getStringMessageFieldBuilder().getBuilder();
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
public com.openxc.BinaryMessages.StringMessageOrBuilder getStringMessageOrBuilder() {
if (stringMessageBuilder_ != null) {
return stringMessageBuilder_.getMessageOrBuilder();
} else {
return stringMessage_;
}
}
/**
* optional .openxc.StringMessage string_message = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.StringMessage, com.openxc.BinaryMessages.StringMessage.Builder, com.openxc.BinaryMessages.StringMessageOrBuilder>
getStringMessageFieldBuilder() {
if (stringMessageBuilder_ == null) {
stringMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.StringMessage, com.openxc.BinaryMessages.StringMessage.Builder, com.openxc.BinaryMessages.StringMessageOrBuilder>(
stringMessage_,
getParentForChildren(),
isClean());
stringMessage_ = null;
}
return stringMessageBuilder_;
}
// optional .openxc.NumericMessage numeric_message = 4;
private com.openxc.BinaryMessages.NumericMessage numericMessage_ = com.openxc.BinaryMessages.NumericMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.NumericMessage, com.openxc.BinaryMessages.NumericMessage.Builder, com.openxc.BinaryMessages.NumericMessageOrBuilder> numericMessageBuilder_;
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public boolean hasNumericMessage() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public com.openxc.BinaryMessages.NumericMessage getNumericMessage() {
if (numericMessageBuilder_ == null) {
return numericMessage_;
} else {
return numericMessageBuilder_.getMessage();
}
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public Builder setNumericMessage(com.openxc.BinaryMessages.NumericMessage value) {
if (numericMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
numericMessage_ = value;
onChanged();
} else {
numericMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public Builder setNumericMessage(
com.openxc.BinaryMessages.NumericMessage.Builder builderForValue) {
if (numericMessageBuilder_ == null) {
numericMessage_ = builderForValue.build();
onChanged();
} else {
numericMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public Builder mergeNumericMessage(com.openxc.BinaryMessages.NumericMessage value) {
if (numericMessageBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
numericMessage_ != com.openxc.BinaryMessages.NumericMessage.getDefaultInstance()) {
numericMessage_ =
com.openxc.BinaryMessages.NumericMessage.newBuilder(numericMessage_).mergeFrom(value).buildPartial();
} else {
numericMessage_ = value;
}
onChanged();
} else {
numericMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public Builder clearNumericMessage() {
if (numericMessageBuilder_ == null) {
numericMessage_ = com.openxc.BinaryMessages.NumericMessage.getDefaultInstance();
onChanged();
} else {
numericMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public com.openxc.BinaryMessages.NumericMessage.Builder getNumericMessageBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getNumericMessageFieldBuilder().getBuilder();
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
public com.openxc.BinaryMessages.NumericMessageOrBuilder getNumericMessageOrBuilder() {
if (numericMessageBuilder_ != null) {
return numericMessageBuilder_.getMessageOrBuilder();
} else {
return numericMessage_;
}
}
/**
* optional .openxc.NumericMessage numeric_message = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.NumericMessage, com.openxc.BinaryMessages.NumericMessage.Builder, com.openxc.BinaryMessages.NumericMessageOrBuilder>
getNumericMessageFieldBuilder() {
if (numericMessageBuilder_ == null) {
numericMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.NumericMessage, com.openxc.BinaryMessages.NumericMessage.Builder, com.openxc.BinaryMessages.NumericMessageOrBuilder>(
numericMessage_,
getParentForChildren(),
isClean());
numericMessage_ = null;
}
return numericMessageBuilder_;
}
// optional .openxc.BooleanMessage boolean_message = 5;
private com.openxc.BinaryMessages.BooleanMessage booleanMessage_ = com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.BooleanMessage, com.openxc.BinaryMessages.BooleanMessage.Builder, com.openxc.BinaryMessages.BooleanMessageOrBuilder> booleanMessageBuilder_;
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public boolean hasBooleanMessage() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public com.openxc.BinaryMessages.BooleanMessage getBooleanMessage() {
if (booleanMessageBuilder_ == null) {
return booleanMessage_;
} else {
return booleanMessageBuilder_.getMessage();
}
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public Builder setBooleanMessage(com.openxc.BinaryMessages.BooleanMessage value) {
if (booleanMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
booleanMessage_ = value;
onChanged();
} else {
booleanMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public Builder setBooleanMessage(
com.openxc.BinaryMessages.BooleanMessage.Builder builderForValue) {
if (booleanMessageBuilder_ == null) {
booleanMessage_ = builderForValue.build();
onChanged();
} else {
booleanMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public Builder mergeBooleanMessage(com.openxc.BinaryMessages.BooleanMessage value) {
if (booleanMessageBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
booleanMessage_ != com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance()) {
booleanMessage_ =
com.openxc.BinaryMessages.BooleanMessage.newBuilder(booleanMessage_).mergeFrom(value).buildPartial();
} else {
booleanMessage_ = value;
}
onChanged();
} else {
booleanMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public Builder clearBooleanMessage() {
if (booleanMessageBuilder_ == null) {
booleanMessage_ = com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance();
onChanged();
} else {
booleanMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public com.openxc.BinaryMessages.BooleanMessage.Builder getBooleanMessageBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getBooleanMessageFieldBuilder().getBuilder();
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
public com.openxc.BinaryMessages.BooleanMessageOrBuilder getBooleanMessageOrBuilder() {
if (booleanMessageBuilder_ != null) {
return booleanMessageBuilder_.getMessageOrBuilder();
} else {
return booleanMessage_;
}
}
/**
* optional .openxc.BooleanMessage boolean_message = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.BooleanMessage, com.openxc.BinaryMessages.BooleanMessage.Builder, com.openxc.BinaryMessages.BooleanMessageOrBuilder>
getBooleanMessageFieldBuilder() {
if (booleanMessageBuilder_ == null) {
booleanMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.BooleanMessage, com.openxc.BinaryMessages.BooleanMessage.Builder, com.openxc.BinaryMessages.BooleanMessageOrBuilder>(
booleanMessage_,
getParentForChildren(),
isClean());
booleanMessage_ = null;
}
return booleanMessageBuilder_;
}
// optional .openxc.EventedStringMessage evented_string_message = 6;
private com.openxc.BinaryMessages.EventedStringMessage eventedStringMessage_ = com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.EventedStringMessage, com.openxc.BinaryMessages.EventedStringMessage.Builder, com.openxc.BinaryMessages.EventedStringMessageOrBuilder> eventedStringMessageBuilder_;
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public boolean hasEventedStringMessage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public com.openxc.BinaryMessages.EventedStringMessage getEventedStringMessage() {
if (eventedStringMessageBuilder_ == null) {
return eventedStringMessage_;
} else {
return eventedStringMessageBuilder_.getMessage();
}
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public Builder setEventedStringMessage(com.openxc.BinaryMessages.EventedStringMessage value) {
if (eventedStringMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventedStringMessage_ = value;
onChanged();
} else {
eventedStringMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public Builder setEventedStringMessage(
com.openxc.BinaryMessages.EventedStringMessage.Builder builderForValue) {
if (eventedStringMessageBuilder_ == null) {
eventedStringMessage_ = builderForValue.build();
onChanged();
} else {
eventedStringMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public Builder mergeEventedStringMessage(com.openxc.BinaryMessages.EventedStringMessage value) {
if (eventedStringMessageBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
eventedStringMessage_ != com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance()) {
eventedStringMessage_ =
com.openxc.BinaryMessages.EventedStringMessage.newBuilder(eventedStringMessage_).mergeFrom(value).buildPartial();
} else {
eventedStringMessage_ = value;
}
onChanged();
} else {
eventedStringMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public Builder clearEventedStringMessage() {
if (eventedStringMessageBuilder_ == null) {
eventedStringMessage_ = com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance();
onChanged();
} else {
eventedStringMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public com.openxc.BinaryMessages.EventedStringMessage.Builder getEventedStringMessageBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getEventedStringMessageFieldBuilder().getBuilder();
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
public com.openxc.BinaryMessages.EventedStringMessageOrBuilder getEventedStringMessageOrBuilder() {
if (eventedStringMessageBuilder_ != null) {
return eventedStringMessageBuilder_.getMessageOrBuilder();
} else {
return eventedStringMessage_;
}
}
/**
* optional .openxc.EventedStringMessage evented_string_message = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.EventedStringMessage, com.openxc.BinaryMessages.EventedStringMessage.Builder, com.openxc.BinaryMessages.EventedStringMessageOrBuilder>
getEventedStringMessageFieldBuilder() {
if (eventedStringMessageBuilder_ == null) {
eventedStringMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.EventedStringMessage, com.openxc.BinaryMessages.EventedStringMessage.Builder, com.openxc.BinaryMessages.EventedStringMessageOrBuilder>(
eventedStringMessage_,
getParentForChildren(),
isClean());
eventedStringMessage_ = null;
}
return eventedStringMessageBuilder_;
}
// optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
private com.openxc.BinaryMessages.EventedBooleanMessage eventedBooleanMessage_ = com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.EventedBooleanMessage, com.openxc.BinaryMessages.EventedBooleanMessage.Builder, com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder> eventedBooleanMessageBuilder_;
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public boolean hasEventedBooleanMessage() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public com.openxc.BinaryMessages.EventedBooleanMessage getEventedBooleanMessage() {
if (eventedBooleanMessageBuilder_ == null) {
return eventedBooleanMessage_;
} else {
return eventedBooleanMessageBuilder_.getMessage();
}
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public Builder setEventedBooleanMessage(com.openxc.BinaryMessages.EventedBooleanMessage value) {
if (eventedBooleanMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventedBooleanMessage_ = value;
onChanged();
} else {
eventedBooleanMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public Builder setEventedBooleanMessage(
com.openxc.BinaryMessages.EventedBooleanMessage.Builder builderForValue) {
if (eventedBooleanMessageBuilder_ == null) {
eventedBooleanMessage_ = builderForValue.build();
onChanged();
} else {
eventedBooleanMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public Builder mergeEventedBooleanMessage(com.openxc.BinaryMessages.EventedBooleanMessage value) {
if (eventedBooleanMessageBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
eventedBooleanMessage_ != com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance()) {
eventedBooleanMessage_ =
com.openxc.BinaryMessages.EventedBooleanMessage.newBuilder(eventedBooleanMessage_).mergeFrom(value).buildPartial();
} else {
eventedBooleanMessage_ = value;
}
onChanged();
} else {
eventedBooleanMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public Builder clearEventedBooleanMessage() {
if (eventedBooleanMessageBuilder_ == null) {
eventedBooleanMessage_ = com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance();
onChanged();
} else {
eventedBooleanMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public com.openxc.BinaryMessages.EventedBooleanMessage.Builder getEventedBooleanMessageBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getEventedBooleanMessageFieldBuilder().getBuilder();
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
public com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder getEventedBooleanMessageOrBuilder() {
if (eventedBooleanMessageBuilder_ != null) {
return eventedBooleanMessageBuilder_.getMessageOrBuilder();
} else {
return eventedBooleanMessage_;
}
}
/**
* optional .openxc.EventedBooleanMessage evented_boolean_message = 7;
*/
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.EventedBooleanMessage, com.openxc.BinaryMessages.EventedBooleanMessage.Builder, com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder>
getEventedBooleanMessageFieldBuilder() {
if (eventedBooleanMessageBuilder_ == null) {
eventedBooleanMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.EventedBooleanMessage, com.openxc.BinaryMessages.EventedBooleanMessage.Builder, com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder>(
eventedBooleanMessage_,
getParentForChildren(),
isClean());
eventedBooleanMessage_ = null;
}
return eventedBooleanMessageBuilder_;
}
// optional .openxc.EventedNumericMessage evented_numeric_message = 8;
private com.openxc.BinaryMessages.EventedNumericMessage eventedNumericMessage_ = com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.EventedNumericMessage, com.openxc.BinaryMessages.EventedNumericMessage.Builder, com.openxc.BinaryMessages.EventedNumericMessageOrBuilder> eventedNumericMessageBuilder_;
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public boolean hasEventedNumericMessage() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public com.openxc.BinaryMessages.EventedNumericMessage getEventedNumericMessage() {
if (eventedNumericMessageBuilder_ == null) {
return eventedNumericMessage_;
} else {
return eventedNumericMessageBuilder_.getMessage();
}
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public Builder setEventedNumericMessage(com.openxc.BinaryMessages.EventedNumericMessage value) {
if (eventedNumericMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventedNumericMessage_ = value;
onChanged();
} else {
eventedNumericMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public Builder setEventedNumericMessage(
com.openxc.BinaryMessages.EventedNumericMessage.Builder builderForValue) {
if (eventedNumericMessageBuilder_ == null) {
eventedNumericMessage_ = builderForValue.build();
onChanged();
} else {
eventedNumericMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public Builder mergeEventedNumericMessage(com.openxc.BinaryMessages.EventedNumericMessage value) {
if (eventedNumericMessageBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
eventedNumericMessage_ != com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance()) {
eventedNumericMessage_ =
com.openxc.BinaryMessages.EventedNumericMessage.newBuilder(eventedNumericMessage_).mergeFrom(value).buildPartial();
} else {
eventedNumericMessage_ = value;
}
onChanged();
} else {
eventedNumericMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public Builder clearEventedNumericMessage() {
if (eventedNumericMessageBuilder_ == null) {
eventedNumericMessage_ = com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance();
onChanged();
} else {
eventedNumericMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public com.openxc.BinaryMessages.EventedNumericMessage.Builder getEventedNumericMessageBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getEventedNumericMessageFieldBuilder().getBuilder();
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
public com.openxc.BinaryMessages.EventedNumericMessageOrBuilder getEventedNumericMessageOrBuilder() {
if (eventedNumericMessageBuilder_ != null) {
return eventedNumericMessageBuilder_.getMessageOrBuilder();
} else {
return eventedNumericMessage_;
}
}
/**
* optional .openxc.EventedNumericMessage evented_numeric_message = 8;
*/
private com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.EventedNumericMessage, com.openxc.BinaryMessages.EventedNumericMessage.Builder, com.openxc.BinaryMessages.EventedNumericMessageOrBuilder>
getEventedNumericMessageFieldBuilder() {
if (eventedNumericMessageBuilder_ == null) {
eventedNumericMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.openxc.BinaryMessages.EventedNumericMessage, com.openxc.BinaryMessages.EventedNumericMessage.Builder, com.openxc.BinaryMessages.EventedNumericMessageOrBuilder>(
eventedNumericMessage_,
getParentForChildren(),
isClean());
eventedNumericMessage_ = null;
}
return eventedNumericMessageBuilder_;
}
// @@protoc_insertion_point(builder_scope:openxc.VehicleMessage)
}
static {
defaultInstance = new VehicleMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:openxc.VehicleMessage)
}
public interface RawMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 bus = 1;
/**
* optional int32 bus = 1;
*/
boolean hasBus();
/**
* optional int32 bus = 1;
*/
int getBus();
// optional uint32 message_id = 2;
/**
* optional uint32 message_id = 2;
*/
boolean hasMessageId();
/**
* optional uint32 message_id = 2;
*/
int getMessageId();
}
/**
* Protobuf type {@code openxc.RawMessage}
*/
public static final class RawMessage extends
com.google.protobuf.GeneratedMessage
implements RawMessageOrBuilder {
// Use RawMessage.newBuilder() to construct.
private RawMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RawMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RawMessage defaultInstance;
public static RawMessage getDefaultInstance() {
return defaultInstance;
}
public RawMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RawMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
bus_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
messageId_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.RawMessage.class, com.openxc.BinaryMessages.RawMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RawMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RawMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 bus = 1;
public static final int BUS_FIELD_NUMBER = 1;
private int bus_;
/**
* optional int32 bus = 1;
*/
public boolean hasBus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 bus = 1;
*/
public int getBus() {
return bus_;
}
// optional uint32 message_id = 2;
public static final int MESSAGE_ID_FIELD_NUMBER = 2;
private int messageId_;
/**
* optional uint32 message_id = 2;
*/
public boolean hasMessageId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 message_id = 2;
*/
public int getMessageId() {
return messageId_;
}
private void initFields() {
bus_ = 0;
messageId_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, bus_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, messageId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, bus_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, messageId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.openxc.BinaryMessages.RawMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.RawMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.RawMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.RawMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.RawMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.RawMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.RawMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.openxc.BinaryMessages.RawMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.RawMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.RawMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.openxc.BinaryMessages.RawMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code openxc.RawMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.openxc.BinaryMessages.RawMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.RawMessage.class, com.openxc.BinaryMessages.RawMessage.Builder.class);
}
// Construct using com.openxc.BinaryMessages.RawMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
bus_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
messageId_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.openxc.BinaryMessages.internal_static_openxc_RawMessage_descriptor;
}
public com.openxc.BinaryMessages.RawMessage getDefaultInstanceForType() {
return com.openxc.BinaryMessages.RawMessage.getDefaultInstance();
}
public com.openxc.BinaryMessages.RawMessage build() {
com.openxc.BinaryMessages.RawMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.openxc.BinaryMessages.RawMessage buildPartial() {
com.openxc.BinaryMessages.RawMessage result = new com.openxc.BinaryMessages.RawMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bus_ = bus_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.messageId_ = messageId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.openxc.BinaryMessages.RawMessage) {
return mergeFrom((com.openxc.BinaryMessages.RawMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.openxc.BinaryMessages.RawMessage other) {
if (other == com.openxc.BinaryMessages.RawMessage.getDefaultInstance()) return this;
if (other.hasBus()) {
setBus(other.getBus());
}
if (other.hasMessageId()) {
setMessageId(other.getMessageId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.openxc.BinaryMessages.RawMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.openxc.BinaryMessages.RawMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 bus = 1;
private int bus_ ;
/**
* optional int32 bus = 1;
*/
public boolean hasBus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 bus = 1;
*/
public int getBus() {
return bus_;
}
/**
* optional int32 bus = 1;
*/
public Builder setBus(int value) {
bitField0_ |= 0x00000001;
bus_ = value;
onChanged();
return this;
}
/**
* optional int32 bus = 1;
*/
public Builder clearBus() {
bitField0_ = (bitField0_ & ~0x00000001);
bus_ = 0;
onChanged();
return this;
}
// optional uint32 message_id = 2;
private int messageId_ ;
/**
* optional uint32 message_id = 2;
*/
public boolean hasMessageId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 message_id = 2;
*/
public int getMessageId() {
return messageId_;
}
/**
* optional uint32 message_id = 2;
*/
public Builder setMessageId(int value) {
bitField0_ |= 0x00000002;
messageId_ = value;
onChanged();
return this;
}
/**
* optional uint32 message_id = 2;
*/
public Builder clearMessageId() {
bitField0_ = (bitField0_ & ~0x00000002);
messageId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:openxc.RawMessage)
}
static {
defaultInstance = new RawMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:openxc.RawMessage)
}
public interface StringMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string name = 1;
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional string value = 2;
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code openxc.StringMessage}
*/
public static final class StringMessage extends
com.google.protobuf.GeneratedMessage
implements StringMessageOrBuilder {
// Use StringMessage.newBuilder() to construct.
private StringMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StringMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StringMessage defaultInstance;
public static StringMessage getDefaultInstance() {
return defaultInstance;
}
public StringMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
value_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.StringMessage.class, com.openxc.BinaryMessages.StringMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StringMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StringMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
private java.lang.Object value_;
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
name_ = "";
value_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getValueBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getValueBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.openxc.BinaryMessages.StringMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.StringMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.StringMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.StringMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.StringMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.StringMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.StringMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.openxc.BinaryMessages.StringMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.StringMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.StringMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.openxc.BinaryMessages.StringMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code openxc.StringMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.openxc.BinaryMessages.StringMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.StringMessage.class, com.openxc.BinaryMessages.StringMessage.Builder.class);
}
// Construct using com.openxc.BinaryMessages.StringMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.openxc.BinaryMessages.internal_static_openxc_StringMessage_descriptor;
}
public com.openxc.BinaryMessages.StringMessage getDefaultInstanceForType() {
return com.openxc.BinaryMessages.StringMessage.getDefaultInstance();
}
public com.openxc.BinaryMessages.StringMessage build() {
com.openxc.BinaryMessages.StringMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.openxc.BinaryMessages.StringMessage buildPartial() {
com.openxc.BinaryMessages.StringMessage result = new com.openxc.BinaryMessages.StringMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.openxc.BinaryMessages.StringMessage) {
return mergeFrom((com.openxc.BinaryMessages.StringMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.openxc.BinaryMessages.StringMessage other) {
if (other == com.openxc.BinaryMessages.StringMessage.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.openxc.BinaryMessages.StringMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.openxc.BinaryMessages.StringMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string name = 1;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// optional string value = 2;
private java.lang.Object value_ = "";
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:openxc.StringMessage)
}
static {
defaultInstance = new StringMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:openxc.StringMessage)
}
public interface NumericMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string name = 1;
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional double value = 2;
/**
* optional double value = 2;
*/
boolean hasValue();
/**
* optional double value = 2;
*/
double getValue();
}
/**
* Protobuf type {@code openxc.NumericMessage}
*/
public static final class NumericMessage extends
com.google.protobuf.GeneratedMessage
implements NumericMessageOrBuilder {
// Use NumericMessage.newBuilder() to construct.
private NumericMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NumericMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NumericMessage defaultInstance;
public static NumericMessage getDefaultInstance() {
return defaultInstance;
}
public NumericMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NumericMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 17: {
bitField0_ |= 0x00000002;
value_ = input.readDouble();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.NumericMessage.class, com.openxc.BinaryMessages.NumericMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NumericMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NumericMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional double value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
private double value_;
/**
* optional double value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double value = 2;
*/
public double getValue() {
return value_;
}
private void initFields() {
name_ = "";
value_ = 0D;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, value_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.openxc.BinaryMessages.NumericMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.NumericMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.NumericMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.NumericMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.NumericMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.NumericMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.NumericMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.openxc.BinaryMessages.NumericMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.NumericMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.NumericMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.openxc.BinaryMessages.NumericMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code openxc.NumericMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.openxc.BinaryMessages.NumericMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.NumericMessage.class, com.openxc.BinaryMessages.NumericMessage.Builder.class);
}
// Construct using com.openxc.BinaryMessages.NumericMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.openxc.BinaryMessages.internal_static_openxc_NumericMessage_descriptor;
}
public com.openxc.BinaryMessages.NumericMessage getDefaultInstanceForType() {
return com.openxc.BinaryMessages.NumericMessage.getDefaultInstance();
}
public com.openxc.BinaryMessages.NumericMessage build() {
com.openxc.BinaryMessages.NumericMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.openxc.BinaryMessages.NumericMessage buildPartial() {
com.openxc.BinaryMessages.NumericMessage result = new com.openxc.BinaryMessages.NumericMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.openxc.BinaryMessages.NumericMessage) {
return mergeFrom((com.openxc.BinaryMessages.NumericMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.openxc.BinaryMessages.NumericMessage other) {
if (other == com.openxc.BinaryMessages.NumericMessage.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.openxc.BinaryMessages.NumericMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.openxc.BinaryMessages.NumericMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string name = 1;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// optional double value = 2;
private double value_ ;
/**
* optional double value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double value = 2;
*/
public double getValue() {
return value_;
}
/**
* optional double value = 2;
*/
public Builder setValue(double value) {
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional double value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = 0D;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:openxc.NumericMessage)
}
static {
defaultInstance = new NumericMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:openxc.NumericMessage)
}
public interface BooleanMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string name = 1;
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional bool value = 2;
/**
* optional bool value = 2;
*/
boolean hasValue();
/**
* optional bool value = 2;
*/
boolean getValue();
}
/**
* Protobuf type {@code openxc.BooleanMessage}
*/
public static final class BooleanMessage extends
com.google.protobuf.GeneratedMessage
implements BooleanMessageOrBuilder {
// Use BooleanMessage.newBuilder() to construct.
private BooleanMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BooleanMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BooleanMessage defaultInstance;
public static BooleanMessage getDefaultInstance() {
return defaultInstance;
}
public BooleanMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BooleanMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
value_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.BooleanMessage.class, com.openxc.BinaryMessages.BooleanMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BooleanMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BooleanMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
private boolean value_;
/**
* optional bool value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool value = 2;
*/
public boolean getValue() {
return value_;
}
private void initFields() {
name_ = "";
value_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, value_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.openxc.BinaryMessages.BooleanMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.BooleanMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.BooleanMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.BooleanMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.BooleanMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.BooleanMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.BooleanMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.openxc.BinaryMessages.BooleanMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.BooleanMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.BooleanMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.openxc.BinaryMessages.BooleanMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code openxc.BooleanMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.openxc.BinaryMessages.BooleanMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.BooleanMessage.class, com.openxc.BinaryMessages.BooleanMessage.Builder.class);
}
// Construct using com.openxc.BinaryMessages.BooleanMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.openxc.BinaryMessages.internal_static_openxc_BooleanMessage_descriptor;
}
public com.openxc.BinaryMessages.BooleanMessage getDefaultInstanceForType() {
return com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance();
}
public com.openxc.BinaryMessages.BooleanMessage build() {
com.openxc.BinaryMessages.BooleanMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.openxc.BinaryMessages.BooleanMessage buildPartial() {
com.openxc.BinaryMessages.BooleanMessage result = new com.openxc.BinaryMessages.BooleanMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.openxc.BinaryMessages.BooleanMessage) {
return mergeFrom((com.openxc.BinaryMessages.BooleanMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.openxc.BinaryMessages.BooleanMessage other) {
if (other == com.openxc.BinaryMessages.BooleanMessage.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.openxc.BinaryMessages.BooleanMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.openxc.BinaryMessages.BooleanMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string name = 1;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// optional bool value = 2;
private boolean value_ ;
/**
* optional bool value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool value = 2;
*/
public boolean getValue() {
return value_;
}
/**
* optional bool value = 2;
*/
public Builder setValue(boolean value) {
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional bool value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:openxc.BooleanMessage)
}
static {
defaultInstance = new BooleanMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:openxc.BooleanMessage)
}
public interface EventedStringMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string name = 1;
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional string value = 2;
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
// optional string event = 3;
/**
* optional string event = 3;
*/
boolean hasEvent();
/**
* optional string event = 3;
*/
java.lang.String getEvent();
/**
* optional string event = 3;
*/
com.google.protobuf.ByteString
getEventBytes();
}
/**
* Protobuf type {@code openxc.EventedStringMessage}
*/
public static final class EventedStringMessage extends
com.google.protobuf.GeneratedMessage
implements EventedStringMessageOrBuilder {
// Use EventedStringMessage.newBuilder() to construct.
private EventedStringMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private EventedStringMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final EventedStringMessage defaultInstance;
public static EventedStringMessage getDefaultInstance() {
return defaultInstance;
}
public EventedStringMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventedStringMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
value_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
event_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.EventedStringMessage.class, com.openxc.BinaryMessages.EventedStringMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public EventedStringMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventedStringMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
private java.lang.Object value_;
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string event = 3;
public static final int EVENT_FIELD_NUMBER = 3;
private java.lang.Object event_;
/**
* optional string event = 3;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string event = 3;
*/
public java.lang.String getEvent() {
java.lang.Object ref = event_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
event_ = s;
}
return s;
}
}
/**
* optional string event = 3;
*/
public com.google.protobuf.ByteString
getEventBytes() {
java.lang.Object ref = event_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
event_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
name_ = "";
value_ = "";
event_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getValueBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getEventBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getValueBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getEventBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedStringMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.openxc.BinaryMessages.EventedStringMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.EventedStringMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.openxc.BinaryMessages.EventedStringMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code openxc.EventedStringMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.openxc.BinaryMessages.EventedStringMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.EventedStringMessage.class, com.openxc.BinaryMessages.EventedStringMessage.Builder.class);
}
// Construct using com.openxc.BinaryMessages.EventedStringMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
event_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedStringMessage_descriptor;
}
public com.openxc.BinaryMessages.EventedStringMessage getDefaultInstanceForType() {
return com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance();
}
public com.openxc.BinaryMessages.EventedStringMessage build() {
com.openxc.BinaryMessages.EventedStringMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.openxc.BinaryMessages.EventedStringMessage buildPartial() {
com.openxc.BinaryMessages.EventedStringMessage result = new com.openxc.BinaryMessages.EventedStringMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.event_ = event_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.openxc.BinaryMessages.EventedStringMessage) {
return mergeFrom((com.openxc.BinaryMessages.EventedStringMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.openxc.BinaryMessages.EventedStringMessage other) {
if (other == com.openxc.BinaryMessages.EventedStringMessage.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
if (other.hasEvent()) {
bitField0_ |= 0x00000004;
event_ = other.event_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.openxc.BinaryMessages.EventedStringMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.openxc.BinaryMessages.EventedStringMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string name = 1;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// optional string value = 2;
private java.lang.Object value_ = "";
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
// optional string event = 3;
private java.lang.Object event_ = "";
/**
* optional string event = 3;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string event = 3;
*/
public java.lang.String getEvent() {
java.lang.Object ref = event_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
event_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string event = 3;
*/
public com.google.protobuf.ByteString
getEventBytes() {
java.lang.Object ref = event_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
event_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string event = 3;
*/
public Builder setEvent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
event_ = value;
onChanged();
return this;
}
/**
* optional string event = 3;
*/
public Builder clearEvent() {
bitField0_ = (bitField0_ & ~0x00000004);
event_ = getDefaultInstance().getEvent();
onChanged();
return this;
}
/**
* optional string event = 3;
*/
public Builder setEventBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
event_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:openxc.EventedStringMessage)
}
static {
defaultInstance = new EventedStringMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:openxc.EventedStringMessage)
}
public interface EventedBooleanMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string name = 1;
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional string value = 2;
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
// optional bool event = 3;
/**
* optional bool event = 3;
*/
boolean hasEvent();
/**
* optional bool event = 3;
*/
boolean getEvent();
}
/**
* Protobuf type {@code openxc.EventedBooleanMessage}
*/
public static final class EventedBooleanMessage extends
com.google.protobuf.GeneratedMessage
implements EventedBooleanMessageOrBuilder {
// Use EventedBooleanMessage.newBuilder() to construct.
private EventedBooleanMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private EventedBooleanMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final EventedBooleanMessage defaultInstance;
public static EventedBooleanMessage getDefaultInstance() {
return defaultInstance;
}
public EventedBooleanMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventedBooleanMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
value_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
event_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.EventedBooleanMessage.class, com.openxc.BinaryMessages.EventedBooleanMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public EventedBooleanMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventedBooleanMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
private java.lang.Object value_;
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool event = 3;
public static final int EVENT_FIELD_NUMBER = 3;
private boolean event_;
/**
* optional bool event = 3;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool event = 3;
*/
public boolean getEvent() {
return event_;
}
private void initFields() {
name_ = "";
value_ = "";
event_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getValueBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, event_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getValueBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, event_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.EventedBooleanMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.openxc.BinaryMessages.EventedBooleanMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code openxc.EventedBooleanMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.openxc.BinaryMessages.EventedBooleanMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.EventedBooleanMessage.class, com.openxc.BinaryMessages.EventedBooleanMessage.Builder.class);
}
// Construct using com.openxc.BinaryMessages.EventedBooleanMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
event_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedBooleanMessage_descriptor;
}
public com.openxc.BinaryMessages.EventedBooleanMessage getDefaultInstanceForType() {
return com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance();
}
public com.openxc.BinaryMessages.EventedBooleanMessage build() {
com.openxc.BinaryMessages.EventedBooleanMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.openxc.BinaryMessages.EventedBooleanMessage buildPartial() {
com.openxc.BinaryMessages.EventedBooleanMessage result = new com.openxc.BinaryMessages.EventedBooleanMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.event_ = event_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.openxc.BinaryMessages.EventedBooleanMessage) {
return mergeFrom((com.openxc.BinaryMessages.EventedBooleanMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.openxc.BinaryMessages.EventedBooleanMessage other) {
if (other == com.openxc.BinaryMessages.EventedBooleanMessage.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
if (other.hasEvent()) {
setEvent(other.getEvent());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.openxc.BinaryMessages.EventedBooleanMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.openxc.BinaryMessages.EventedBooleanMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string name = 1;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// optional string value = 2;
private java.lang.Object value_ = "";
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
// optional bool event = 3;
private boolean event_ ;
/**
* optional bool event = 3;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool event = 3;
*/
public boolean getEvent() {
return event_;
}
/**
* optional bool event = 3;
*/
public Builder setEvent(boolean value) {
bitField0_ |= 0x00000004;
event_ = value;
onChanged();
return this;
}
/**
* optional bool event = 3;
*/
public Builder clearEvent() {
bitField0_ = (bitField0_ & ~0x00000004);
event_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:openxc.EventedBooleanMessage)
}
static {
defaultInstance = new EventedBooleanMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:openxc.EventedBooleanMessage)
}
public interface EventedNumericMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string name = 1;
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional string value = 2;
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
// optional double event = 3;
/**
* optional double event = 3;
*/
boolean hasEvent();
/**
* optional double event = 3;
*/
double getEvent();
}
/**
* Protobuf type {@code openxc.EventedNumericMessage}
*/
public static final class EventedNumericMessage extends
com.google.protobuf.GeneratedMessage
implements EventedNumericMessageOrBuilder {
// Use EventedNumericMessage.newBuilder() to construct.
private EventedNumericMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private EventedNumericMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final EventedNumericMessage defaultInstance;
public static EventedNumericMessage getDefaultInstance() {
return defaultInstance;
}
public EventedNumericMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventedNumericMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
value_ = input.readBytes();
break;
}
case 25: {
bitField0_ |= 0x00000004;
event_ = input.readDouble();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.EventedNumericMessage.class, com.openxc.BinaryMessages.EventedNumericMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public EventedNumericMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventedNumericMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
private java.lang.Object value_;
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional double event = 3;
public static final int EVENT_FIELD_NUMBER = 3;
private double event_;
/**
* optional double event = 3;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional double event = 3;
*/
public double getEvent() {
return event_;
}
private void initFields() {
name_ = "";
value_ = "";
event_ = 0D;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getValueBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeDouble(3, event_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getValueBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, event_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.openxc.BinaryMessages.EventedNumericMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.openxc.BinaryMessages.EventedNumericMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code openxc.EventedNumericMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.openxc.BinaryMessages.EventedNumericMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.openxc.BinaryMessages.EventedNumericMessage.class, com.openxc.BinaryMessages.EventedNumericMessage.Builder.class);
}
// Construct using com.openxc.BinaryMessages.EventedNumericMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
event_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.openxc.BinaryMessages.internal_static_openxc_EventedNumericMessage_descriptor;
}
public com.openxc.BinaryMessages.EventedNumericMessage getDefaultInstanceForType() {
return com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance();
}
public com.openxc.BinaryMessages.EventedNumericMessage build() {
com.openxc.BinaryMessages.EventedNumericMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.openxc.BinaryMessages.EventedNumericMessage buildPartial() {
com.openxc.BinaryMessages.EventedNumericMessage result = new com.openxc.BinaryMessages.EventedNumericMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.event_ = event_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.openxc.BinaryMessages.EventedNumericMessage) {
return mergeFrom((com.openxc.BinaryMessages.EventedNumericMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.openxc.BinaryMessages.EventedNumericMessage other) {
if (other == com.openxc.BinaryMessages.EventedNumericMessage.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
if (other.hasEvent()) {
setEvent(other.getEvent());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.openxc.BinaryMessages.EventedNumericMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.openxc.BinaryMessages.EventedNumericMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string name = 1;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// optional string value = 2;
private java.lang.Object value_ = "";
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
// optional double event = 3;
private double event_ ;
/**
* optional double event = 3;
*/
public boolean hasEvent() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional double event = 3;
*/
public double getEvent() {
return event_;
}
/**
* optional double event = 3;
*/
public Builder setEvent(double value) {
bitField0_ |= 0x00000004;
event_ = value;
onChanged();
return this;
}
/**
* optional double event = 3;
*/
public Builder clearEvent() {
bitField0_ = (bitField0_ & ~0x00000004);
event_ = 0D;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:openxc.EventedNumericMessage)
}
static {
defaultInstance = new EventedNumericMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:openxc.EventedNumericMessage)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_openxc_VehicleMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_openxc_VehicleMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_openxc_RawMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_openxc_RawMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_openxc_StringMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_openxc_StringMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_openxc_NumericMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_openxc_NumericMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_openxc_BooleanMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_openxc_BooleanMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_openxc_EventedStringMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_openxc_EventedStringMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_openxc_EventedBooleanMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_openxc_EventedBooleanMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_openxc_EventedNumericMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_openxc_EventedNumericMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\014openxc.proto\022\006openxc\"\232\004\n\016VehicleMessag" +
"e\022)\n\004type\030\001 \001(\0162\033.openxc.VehicleMessage." +
"Type\022\'\n\013raw_message\030\002 \001(\0132\022.openxc.RawMe" +
"ssage\022-\n\016string_message\030\003 \001(\0132\025.openxc.S" +
"tringMessage\022/\n\017numeric_message\030\004 \001(\0132\026." +
"openxc.NumericMessage\022/\n\017boolean_message" +
"\030\005 \001(\0132\026.openxc.BooleanMessage\022<\n\026evente" +
"d_string_message\030\006 \001(\0132\034.openxc.EventedS" +
"tringMessage\022>\n\027evented_boolean_message\030" +
"\007 \001(\0132\035.openxc.EventedBooleanMessage\022>\n\027",
"evented_numeric_message\030\010 \001(\0132\035.openxc.E" +
"ventedNumericMessage\"e\n\004Type\022\007\n\003RAW\020\001\022\n\n" +
"\006STRING\020\002\022\010\n\004BOOL\020\003\022\007\n\003NUM\020\004\022\017\n\013EVENTED_" +
"NUM\020\005\022\022\n\016EVENTED_STRING\020\006\022\020\n\014EVENTED_BOO" +
"L\020\007\"-\n\nRawMessage\022\013\n\003bus\030\001 \001(\005\022\022\n\nmessag" +
"e_id\030\002 \001(\r\",\n\rStringMessage\022\014\n\004name\030\001 \001(" +
"\t\022\r\n\005value\030\002 \001(\t\"-\n\016NumericMessage\022\014\n\004na" +
"me\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\"-\n\016BooleanMessag" +
"e\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\010\"B\n\024Evente" +
"dStringMessage\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 ",
"\001(\t\022\r\n\005event\030\003 \001(\t\"C\n\025EventedBooleanMess" +
"age\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\r\n\005even" +
"t\030\003 \001(\010\"C\n\025EventedNumericMessage\022\014\n\004name" +
"\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\r\n\005event\030\003 \001(\001B\034\n\n" +
"com.openxcB\016BinaryMessages"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_openxc_VehicleMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_openxc_VehicleMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_openxc_VehicleMessage_descriptor,
new java.lang.String[] { "Type", "RawMessage", "StringMessage", "NumericMessage", "BooleanMessage", "EventedStringMessage", "EventedBooleanMessage", "EventedNumericMessage", });
internal_static_openxc_RawMessage_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_openxc_RawMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_openxc_RawMessage_descriptor,
new java.lang.String[] { "Bus", "MessageId", });
internal_static_openxc_StringMessage_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_openxc_StringMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_openxc_StringMessage_descriptor,
new java.lang.String[] { "Name", "Value", });
internal_static_openxc_NumericMessage_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_openxc_NumericMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_openxc_NumericMessage_descriptor,
new java.lang.String[] { "Name", "Value", });
internal_static_openxc_BooleanMessage_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_openxc_BooleanMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_openxc_BooleanMessage_descriptor,
new java.lang.String[] { "Name", "Value", });
internal_static_openxc_EventedStringMessage_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_openxc_EventedStringMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_openxc_EventedStringMessage_descriptor,
new java.lang.String[] { "Name", "Value", "Event", });
internal_static_openxc_EventedBooleanMessage_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_openxc_EventedBooleanMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_openxc_EventedBooleanMessage_descriptor,
new java.lang.String[] { "Name", "Value", "Event", });
internal_static_openxc_EventedNumericMessage_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_openxc_EventedNumericMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_openxc_EventedNumericMessage_descriptor,
new java.lang.String[] { "Name", "Value", "Event", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}