// Generated by the protocol buffer compiler. DO NOT EDIT! // source: packet.proto package gazebo.msgs; public final class GzPacket { private GzPacket() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface PacketOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .gazebo.msgs.Time stamp = 1; /** * required .gazebo.msgs.Time stamp = 1; */ boolean hasStamp(); /** * required .gazebo.msgs.Time stamp = 1; */ gazebo.msgs.GzTime.Time getStamp(); /** * required .gazebo.msgs.Time stamp = 1; */ gazebo.msgs.GzTime.TimeOrBuilder getStampOrBuilder(); // required string type = 2; /** * required string type = 2; */ boolean hasType(); /** * required string type = 2; */ java.lang.String getType(); /** * required string type = 2; */ com.google.protobuf.ByteString getTypeBytes(); // required bytes serialized_data = 3; /** * required bytes serialized_data = 3; */ boolean hasSerializedData(); /** * required bytes serialized_data = 3; */ com.google.protobuf.ByteString getSerializedData(); } /** * Protobuf type {@code gazebo.msgs.Packet} */ public static final class Packet extends com.google.protobuf.GeneratedMessage implements PacketOrBuilder { // Use Packet.newBuilder() to construct. private Packet(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Packet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Packet defaultInstance; public static Packet getDefaultInstance() { return defaultInstance; } public Packet getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Packet( 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: { gazebo.msgs.GzTime.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = stamp_.toBuilder(); } stamp_ = input.readMessage(gazebo.msgs.GzTime.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stamp_); stamp_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { bitField0_ |= 0x00000002; type_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; serializedData_ = 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 gazebo.msgs.GzPacket.internal_static_gazebo_msgs_Packet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return gazebo.msgs.GzPacket.internal_static_gazebo_msgs_Packet_fieldAccessorTable .ensureFieldAccessorsInitialized( gazebo.msgs.GzPacket.Packet.class, gazebo.msgs.GzPacket.Packet.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Packet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Packet(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required .gazebo.msgs.Time stamp = 1; public static final int STAMP_FIELD_NUMBER = 1; private gazebo.msgs.GzTime.Time stamp_; /** * required .gazebo.msgs.Time stamp = 1; */ public boolean hasStamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .gazebo.msgs.Time stamp = 1; */ public gazebo.msgs.GzTime.Time getStamp() { return stamp_; } /** * required .gazebo.msgs.Time stamp = 1; */ public gazebo.msgs.GzTime.TimeOrBuilder getStampOrBuilder() { return stamp_; } // required string type = 2; public static final int TYPE_FIELD_NUMBER = 2; private java.lang.Object type_; /** * required string type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string type = 2; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** * required string type = 2; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required bytes serialized_data = 3; public static final int SERIALIZED_DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString serializedData_; /** * required bytes serialized_data = 3; */ public boolean hasSerializedData() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required bytes serialized_data = 3; */ public com.google.protobuf.ByteString getSerializedData() { return serializedData_; } private void initFields() { stamp_ = gazebo.msgs.GzTime.Time.getDefaultInstance(); type_ = ""; serializedData_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasStamp()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasSerializedData()) { memoizedIsInitialized = 0; return false; } if (!getStamp().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, stamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getTypeBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, serializedData_); } 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 .computeMessageSize(1, stamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getTypeBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, serializedData_); } 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 gazebo.msgs.GzPacket.Packet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static gazebo.msgs.GzPacket.Packet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static gazebo.msgs.GzPacket.Packet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static gazebo.msgs.GzPacket.Packet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static gazebo.msgs.GzPacket.Packet parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static gazebo.msgs.GzPacket.Packet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static gazebo.msgs.GzPacket.Packet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static gazebo.msgs.GzPacket.Packet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static gazebo.msgs.GzPacket.Packet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static gazebo.msgs.GzPacket.Packet 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(gazebo.msgs.GzPacket.Packet 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 gazebo.msgs.Packet} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements gazebo.msgs.GzPacket.PacketOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return gazebo.msgs.GzPacket.internal_static_gazebo_msgs_Packet_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return gazebo.msgs.GzPacket.internal_static_gazebo_msgs_Packet_fieldAccessorTable .ensureFieldAccessorsInitialized( gazebo.msgs.GzPacket.Packet.class, gazebo.msgs.GzPacket.Packet.Builder.class); } // Construct using gazebo.msgs.GzPacket.Packet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getStampFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (stampBuilder_ == null) { stamp_ = gazebo.msgs.GzTime.Time.getDefaultInstance(); } else { stampBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); type_ = ""; bitField0_ = (bitField0_ & ~0x00000002); serializedData_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return gazebo.msgs.GzPacket.internal_static_gazebo_msgs_Packet_descriptor; } public gazebo.msgs.GzPacket.Packet getDefaultInstanceForType() { return gazebo.msgs.GzPacket.Packet.getDefaultInstance(); } public gazebo.msgs.GzPacket.Packet build() { gazebo.msgs.GzPacket.Packet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public gazebo.msgs.GzPacket.Packet buildPartial() { gazebo.msgs.GzPacket.Packet result = new gazebo.msgs.GzPacket.Packet(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (stampBuilder_ == null) { result.stamp_ = stamp_; } else { result.stamp_ = stampBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.serializedData_ = serializedData_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof gazebo.msgs.GzPacket.Packet) { return mergeFrom((gazebo.msgs.GzPacket.Packet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(gazebo.msgs.GzPacket.Packet other) { if (other == gazebo.msgs.GzPacket.Packet.getDefaultInstance()) return this; if (other.hasStamp()) { mergeStamp(other.getStamp()); } if (other.hasType()) { bitField0_ |= 0x00000002; type_ = other.type_; onChanged(); } if (other.hasSerializedData()) { setSerializedData(other.getSerializedData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasStamp()) { return false; } if (!hasType()) { return false; } if (!hasSerializedData()) { return false; } if (!getStamp().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { gazebo.msgs.GzPacket.Packet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (gazebo.msgs.GzPacket.Packet) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .gazebo.msgs.Time stamp = 1; private gazebo.msgs.GzTime.Time stamp_ = gazebo.msgs.GzTime.Time.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< gazebo.msgs.GzTime.Time, gazebo.msgs.GzTime.Time.Builder, gazebo.msgs.GzTime.TimeOrBuilder> stampBuilder_; /** * required .gazebo.msgs.Time stamp = 1; */ public boolean hasStamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .gazebo.msgs.Time stamp = 1; */ public gazebo.msgs.GzTime.Time getStamp() { if (stampBuilder_ == null) { return stamp_; } else { return stampBuilder_.getMessage(); } } /** * required .gazebo.msgs.Time stamp = 1; */ public Builder setStamp(gazebo.msgs.GzTime.Time value) { if (stampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stamp_ = value; onChanged(); } else { stampBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .gazebo.msgs.Time stamp = 1; */ public Builder setStamp( gazebo.msgs.GzTime.Time.Builder builderForValue) { if (stampBuilder_ == null) { stamp_ = builderForValue.build(); onChanged(); } else { stampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .gazebo.msgs.Time stamp = 1; */ public Builder mergeStamp(gazebo.msgs.GzTime.Time value) { if (stampBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && stamp_ != gazebo.msgs.GzTime.Time.getDefaultInstance()) { stamp_ = gazebo.msgs.GzTime.Time.newBuilder(stamp_).mergeFrom(value).buildPartial(); } else { stamp_ = value; } onChanged(); } else { stampBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .gazebo.msgs.Time stamp = 1; */ public Builder clearStamp() { if (stampBuilder_ == null) { stamp_ = gazebo.msgs.GzTime.Time.getDefaultInstance(); onChanged(); } else { stampBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .gazebo.msgs.Time stamp = 1; */ public gazebo.msgs.GzTime.Time.Builder getStampBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStampFieldBuilder().getBuilder(); } /** * required .gazebo.msgs.Time stamp = 1; */ public gazebo.msgs.GzTime.TimeOrBuilder getStampOrBuilder() { if (stampBuilder_ != null) { return stampBuilder_.getMessageOrBuilder(); } else { return stamp_; } } /** * required .gazebo.msgs.Time stamp = 1; */ private com.google.protobuf.SingleFieldBuilder< gazebo.msgs.GzTime.Time, gazebo.msgs.GzTime.Time.Builder, gazebo.msgs.GzTime.TimeOrBuilder> getStampFieldBuilder() { if (stampBuilder_ == null) { stampBuilder_ = new com.google.protobuf.SingleFieldBuilder< gazebo.msgs.GzTime.Time, gazebo.msgs.GzTime.Time.Builder, gazebo.msgs.GzTime.TimeOrBuilder>( stamp_, getParentForChildren(), isClean()); stamp_ = null; } return stampBuilder_; } // required string type = 2; private java.lang.Object type_ = ""; /** * required string type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string type = 2; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string type = 2; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string type = 2; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * required string type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * required string type = 2; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } // required bytes serialized_data = 3; private com.google.protobuf.ByteString serializedData_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes serialized_data = 3; */ public boolean hasSerializedData() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required bytes serialized_data = 3; */ public com.google.protobuf.ByteString getSerializedData() { return serializedData_; } /** * required bytes serialized_data = 3; */ public Builder setSerializedData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; serializedData_ = value; onChanged(); return this; } /** * required bytes serialized_data = 3; */ public Builder clearSerializedData() { bitField0_ = (bitField0_ & ~0x00000004); serializedData_ = getDefaultInstance().getSerializedData(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:gazebo.msgs.Packet) } static { defaultInstance = new Packet(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:gazebo.msgs.Packet) } private static com.google.protobuf.Descriptors.Descriptor internal_static_gazebo_msgs_Packet_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_gazebo_msgs_Packet_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\014packet.proto\022\013gazebo.msgs\032\ntime.proto\"" + "Q\n\006Packet\022 \n\005stamp\030\001 \002(\0132\021.gazebo.msgs.T" + "ime\022\014\n\004type\030\002 \002(\t\022\027\n\017serialized_data\030\003 \002" + "(\014B\nB\010GzPacket" }; 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_gazebo_msgs_Packet_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_gazebo_msgs_Packet_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gazebo_msgs_Packet_descriptor, new java.lang.String[] { "Stamp", "Type", "SerializedData", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { gazebo.msgs.GzTime.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }