22public final class ProtobufRotation3d extends ProtoMessage<ProtobufRotation3d> implements Cloneable {
23 private static final long serialVersionUID = 0L;
30 private ProtobufRotation3d() {
37 return new ProtobufRotation3d();
45 return (bitField0_ & 0x00000001) != 0;
53 bitField0_ &= ~0x00000001;
82 bitField0_ |= 0x00000001;
92 bitField0_ |= 0x00000001;
99 cachedSize = other.cachedSize;
100 if ((bitField0_ | other.bitField0_) != 0) {
101 bitField0_ = other.bitField0_;
108 public ProtobufRotation3d mergeFrom(
final ProtobufRotation3d other) {
109 if (other.isEmpty()) {
114 getMutableQ().mergeFrom(other.q);
120 public ProtobufRotation3d clear() {
142 public boolean equals(Object o) {
150 return bitField0_ == other.bitField0_
151 && (!hasQ() || q.equals(other.q));
155 public void writeTo(
final ProtoSink output)
throws IOException {
156 if ((bitField0_ & 0x00000001) != 0) {
157 output.writeRawByte((
byte) 10);
158 output.writeMessageNoTag(q);
163 protected int computeSerializedSize() {
165 if ((bitField0_ & 0x00000001) != 0) {
166 size += 1 + ProtoSink.computeMessageSizeNoTag(q);
172 @SuppressWarnings(
"fallthrough")
175 int tag = input.readTag();
180 input.readMessage(q);
181 bitField0_ |= 0x00000001;
182 tag = input.readTag();
191 if (!input.skipField(tag)) {
194 tag = input.readTag();
202 public void writeTo(
final JsonSink output)
throws IOException {
203 output.beginObject();
204 if ((bitField0_ & 0x00000001) != 0) {
205 output.writeMessage(FieldNames.q, q);
212 if (!input.beginObject()) {
215 while (!input.isAtEnd()) {
216 switch (input.readFieldHash()) {
218 if (input.isAtField(FieldNames.q)) {
219 if (!input.trySkipNullValue()) {
220 input.readMessage(q);
221 bitField0_ |= 0x00000001;
224 input.skipUnknownField();
229 input.skipUnknownField();
244 public boolean isEmpty() {
245 return ((bitField0_) == 0);
249 InvalidProtocolBufferException {
253 public static ProtobufRotation3d parseFrom(
final ProtoSource input)
throws IOException {
257 public static ProtobufRotation3d parseFrom(
final JsonSource input)
throws IOException {
264 public static MessageFactory<ProtobufRotation3d>
getFactory() {
279 public ProtobufRotation3d create() {
280 return ProtobufRotation3d.newInstance();
287 static class FieldNames {
288 static final FieldName q = FieldName.forField(
"q");