// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Common.proto package com.fdkankan.model.proto; public final class Common { private Common() {} public interface Affine3fOrBuilder extends // @@protoc_insertion_point(interface_extends:tutorial.Affine3f) com.google.protobuf.MessageOrBuilder { /** * optional .tutorial.Quaternionf rotation = 1; */ boolean hasRotation(); /** * optional .tutorial.Quaternionf rotation = 1; */ Quaternionf getRotation(); /** * optional .tutorial.Quaternionf rotation = 1; */ QuaternionfOrBuilder getRotationOrBuilder(); /** * optional .tutorial.Vector3f translation = 2; */ boolean hasTranslation(); /** * optional .tutorial.Vector3f translation = 2; */ Vector3f getTranslation(); /** * optional .tutorial.Vector3f translation = 2; */ Vector3fOrBuilder getTranslationOrBuilder(); } /** * Protobuf type {@code tutorial.Affine3f} */ public static final class Affine3f extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tutorial.Affine3f) Affine3fOrBuilder { // Use Affine3f.newBuilder() to construct. private Affine3f(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Affine3f(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Affine3f defaultInstance; public static Affine3f getDefaultInstance() { return defaultInstance; } public Affine3f getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Affine3f( 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; case 10: { Quaternionf.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = rotation_.toBuilder(); } rotation_ = input.readMessage(Quaternionf.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rotation_); rotation_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { Vector3f.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = translation_.toBuilder(); } translation_ = input.readMessage(Vector3f.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(translation_); translation_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } 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 Common.internal_static_tutorial_Affine3f_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_Affine3f_fieldAccessorTable .ensureFieldAccessorsInitialized( Affine3f.class, Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Affine3f parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Affine3f(input, extensionRegistry); } }; @Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int ROTATION_FIELD_NUMBER = 1; private Quaternionf rotation_; /** * optional .tutorial.Quaternionf rotation = 1; */ public boolean hasRotation() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .tutorial.Quaternionf rotation = 1; */ public Quaternionf getRotation() { return rotation_; } /** * optional .tutorial.Quaternionf rotation = 1; */ public QuaternionfOrBuilder getRotationOrBuilder() { return rotation_; } public static final int TRANSLATION_FIELD_NUMBER = 2; private Vector3f translation_; /** * optional .tutorial.Vector3f translation = 2; */ public boolean hasTranslation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tutorial.Vector3f translation = 2; */ public Vector3f getTranslation() { return translation_; } /** * optional .tutorial.Vector3f translation = 2; */ public Vector3fOrBuilder getTranslationOrBuilder() { return translation_; } private void initFields() { rotation_ = Quaternionf.getDefaultInstance(); translation_ = Vector3f.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 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, rotation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, translation_); } 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, rotation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, translation_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static Affine3f parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Affine3f parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Affine3f parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Affine3f parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Affine3f parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static Affine3f parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Affine3f parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static Affine3f parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static Affine3f parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static Affine3f 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(Affine3f prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tutorial.Affine3f} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tutorial.Affine3f) Affine3fOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Common.internal_static_tutorial_Affine3f_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_Affine3f_fieldAccessorTable .ensureFieldAccessorsInitialized( Affine3f.class, Builder.class); } // Construct using com.fdkankan.common.proto.Common.Affine3f.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRotationFieldBuilder(); getTranslationFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (rotationBuilder_ == null) { rotation_ = Quaternionf.getDefaultInstance(); } else { rotationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (translationBuilder_ == null) { translation_ = Vector3f.getDefaultInstance(); } else { translationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Common.internal_static_tutorial_Affine3f_descriptor; } public Affine3f getDefaultInstanceForType() { return Affine3f.getDefaultInstance(); } public Affine3f build() { Affine3f result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public Affine3f buildPartial() { Affine3f result = new Affine3f(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (rotationBuilder_ == null) { result.rotation_ = rotation_; } else { result.rotation_ = rotationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (translationBuilder_ == null) { result.translation_ = translation_; } else { result.translation_ = translationBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Affine3f) { return mergeFrom((Affine3f)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(Affine3f other) { if (other == Affine3f.getDefaultInstance()) return this; if (other.hasRotation()) { mergeRotation(other.getRotation()); } if (other.hasTranslation()) { mergeTranslation(other.getTranslation()); } 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 { Affine3f parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (Affine3f) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private Quaternionf rotation_ = Quaternionf.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< Quaternionf, Quaternionf.Builder, QuaternionfOrBuilder> rotationBuilder_; /** * optional .tutorial.Quaternionf rotation = 1; */ public boolean hasRotation() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .tutorial.Quaternionf rotation = 1; */ public Quaternionf getRotation() { if (rotationBuilder_ == null) { return rotation_; } else { return rotationBuilder_.getMessage(); } } /** * optional .tutorial.Quaternionf rotation = 1; */ public Builder setRotation(Quaternionf value) { if (rotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rotation_ = value; onChanged(); } else { rotationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .tutorial.Quaternionf rotation = 1; */ public Builder setRotation( Quaternionf.Builder builderForValue) { if (rotationBuilder_ == null) { rotation_ = builderForValue.build(); onChanged(); } else { rotationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .tutorial.Quaternionf rotation = 1; */ public Builder mergeRotation(Quaternionf value) { if (rotationBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && rotation_ != Quaternionf.getDefaultInstance()) { rotation_ = Quaternionf.newBuilder(rotation_).mergeFrom(value).buildPartial(); } else { rotation_ = value; } onChanged(); } else { rotationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .tutorial.Quaternionf rotation = 1; */ public Builder clearRotation() { if (rotationBuilder_ == null) { rotation_ = Quaternionf.getDefaultInstance(); onChanged(); } else { rotationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .tutorial.Quaternionf rotation = 1; */ public Quaternionf.Builder getRotationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRotationFieldBuilder().getBuilder(); } /** * optional .tutorial.Quaternionf rotation = 1; */ public QuaternionfOrBuilder getRotationOrBuilder() { if (rotationBuilder_ != null) { return rotationBuilder_.getMessageOrBuilder(); } else { return rotation_; } } /** * optional .tutorial.Quaternionf rotation = 1; */ private com.google.protobuf.SingleFieldBuilder< Quaternionf, Quaternionf.Builder, QuaternionfOrBuilder> getRotationFieldBuilder() { if (rotationBuilder_ == null) { rotationBuilder_ = new com.google.protobuf.SingleFieldBuilder< Quaternionf, Quaternionf.Builder, QuaternionfOrBuilder>( getRotation(), getParentForChildren(), isClean()); rotation_ = null; } return rotationBuilder_; } private Vector3f translation_ = Vector3f.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< Vector3f, Vector3f.Builder, Vector3fOrBuilder> translationBuilder_; /** * optional .tutorial.Vector3f translation = 2; */ public boolean hasTranslation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tutorial.Vector3f translation = 2; */ public Vector3f getTranslation() { if (translationBuilder_ == null) { return translation_; } else { return translationBuilder_.getMessage(); } } /** * optional .tutorial.Vector3f translation = 2; */ public Builder setTranslation(Vector3f value) { if (translationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } translation_ = value; onChanged(); } else { translationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tutorial.Vector3f translation = 2; */ public Builder setTranslation( Vector3f.Builder builderForValue) { if (translationBuilder_ == null) { translation_ = builderForValue.build(); onChanged(); } else { translationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .tutorial.Vector3f translation = 2; */ public Builder mergeTranslation(Vector3f value) { if (translationBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && translation_ != Vector3f.getDefaultInstance()) { translation_ = Vector3f.newBuilder(translation_).mergeFrom(value).buildPartial(); } else { translation_ = value; } onChanged(); } else { translationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tutorial.Vector3f translation = 2; */ public Builder clearTranslation() { if (translationBuilder_ == null) { translation_ = Vector3f.getDefaultInstance(); onChanged(); } else { translationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .tutorial.Vector3f translation = 2; */ public Vector3f.Builder getTranslationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTranslationFieldBuilder().getBuilder(); } /** * optional .tutorial.Vector3f translation = 2; */ public Vector3fOrBuilder getTranslationOrBuilder() { if (translationBuilder_ != null) { return translationBuilder_.getMessageOrBuilder(); } else { return translation_; } } /** * optional .tutorial.Vector3f translation = 2; */ private com.google.protobuf.SingleFieldBuilder< Vector3f, Vector3f.Builder, Vector3fOrBuilder> getTranslationFieldBuilder() { if (translationBuilder_ == null) { translationBuilder_ = new com.google.protobuf.SingleFieldBuilder< Vector3f, Vector3f.Builder, Vector3fOrBuilder>( getTranslation(), getParentForChildren(), isClean()); translation_ = null; } return translationBuilder_; } // @@protoc_insertion_point(builder_scope:tutorial.Affine3f) } static { defaultInstance = new Affine3f(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:tutorial.Affine3f) } public interface QuaternionfOrBuilder extends // @@protoc_insertion_point(interface_extends:tutorial.Quaternionf) com.google.protobuf.MessageOrBuilder { /** * optional float w = 1; */ boolean hasW(); /** * optional float w = 1; */ float getW(); /** * optional float x = 2; */ boolean hasX(); /** * optional float x = 2; */ float getX(); /** * optional float y = 3; */ boolean hasY(); /** * optional float y = 3; */ float getY(); /** * optional float z = 4; */ boolean hasZ(); /** * optional float z = 4; */ float getZ(); } /** * Protobuf type {@code tutorial.Quaternionf} */ public static final class Quaternionf extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tutorial.Quaternionf) QuaternionfOrBuilder { // Use Quaternionf.newBuilder() to construct. private Quaternionf(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Quaternionf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Quaternionf defaultInstance; public static Quaternionf getDefaultInstance() { return defaultInstance; } public Quaternionf getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Quaternionf( 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; case 13: { bitField0_ |= 0x00000001; w_ = input.readFloat(); break; } case 21: { bitField0_ |= 0x00000002; x_ = input.readFloat(); break; } case 29: { bitField0_ |= 0x00000004; y_ = input.readFloat(); break; } case 37: { bitField0_ |= 0x00000008; z_ = input.readFloat(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } 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 Common.internal_static_tutorial_Quaternionf_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_Quaternionf_fieldAccessorTable .ensureFieldAccessorsInitialized( Quaternionf.class, Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Quaternionf parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Quaternionf(input, extensionRegistry); } }; @Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int W_FIELD_NUMBER = 1; private float w_; /** * optional float w = 1; */ public boolean hasW() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional float w = 1; */ public float getW() { return w_; } public static final int X_FIELD_NUMBER = 2; private float x_; /** * optional float x = 2; */ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional float x = 2; */ public float getX() { return x_; } public static final int Y_FIELD_NUMBER = 3; private float y_; /** * optional float y = 3; */ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional float y = 3; */ public float getY() { return y_; } public static final int Z_FIELD_NUMBER = 4; private float z_; /** * optional float z = 4; */ public boolean hasZ() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional float z = 4; */ public float getZ() { return z_; } private void initFields() { w_ = 0F; x_ = 0F; y_ = 0F; z_ = 0F; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 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.writeFloat(1, w_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeFloat(2, x_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeFloat(3, y_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeFloat(4, z_); } 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 .computeFloatSize(1, w_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, x_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, y_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, z_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static Quaternionf parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Quaternionf parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Quaternionf parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Quaternionf parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Quaternionf parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static Quaternionf parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Quaternionf parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static Quaternionf parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static Quaternionf parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static Quaternionf 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(Quaternionf prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tutorial.Quaternionf} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tutorial.Quaternionf) QuaternionfOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Common.internal_static_tutorial_Quaternionf_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_Quaternionf_fieldAccessorTable .ensureFieldAccessorsInitialized( Quaternionf.class, Builder.class); } // Construct using com.fdkankan.common.proto.Common.Quaternionf.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( 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(); w_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); x_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); y_ = 0F; bitField0_ = (bitField0_ & ~0x00000004); z_ = 0F; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Common.internal_static_tutorial_Quaternionf_descriptor; } public Quaternionf getDefaultInstanceForType() { return Quaternionf.getDefaultInstance(); } public Quaternionf build() { Quaternionf result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public Quaternionf buildPartial() { Quaternionf result = new Quaternionf(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.w_ = w_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.x_ = x_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.y_ = y_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.z_ = z_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Quaternionf) { return mergeFrom((Quaternionf)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(Quaternionf other) { if (other == Quaternionf.getDefaultInstance()) return this; if (other.hasW()) { setW(other.getW()); } if (other.hasX()) { setX(other.getX()); } if (other.hasY()) { setY(other.getY()); } if (other.hasZ()) { setZ(other.getZ()); } 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 { Quaternionf parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (Quaternionf) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private float w_ ; /** * optional float w = 1; */ public boolean hasW() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional float w = 1; */ public float getW() { return w_; } /** * optional float w = 1; */ public Builder setW(float value) { bitField0_ |= 0x00000001; w_ = value; onChanged(); return this; } /** * optional float w = 1; */ public Builder clearW() { bitField0_ = (bitField0_ & ~0x00000001); w_ = 0F; onChanged(); return this; } private float x_ ; /** * optional float x = 2; */ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional float x = 2; */ public float getX() { return x_; } /** * optional float x = 2; */ public Builder setX(float value) { bitField0_ |= 0x00000002; x_ = value; onChanged(); return this; } /** * optional float x = 2; */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000002); x_ = 0F; onChanged(); return this; } private float y_ ; /** * optional float y = 3; */ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional float y = 3; */ public float getY() { return y_; } /** * optional float y = 3; */ public Builder setY(float value) { bitField0_ |= 0x00000004; y_ = value; onChanged(); return this; } /** * optional float y = 3; */ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000004); y_ = 0F; onChanged(); return this; } private float z_ ; /** * optional float z = 4; */ public boolean hasZ() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional float z = 4; */ public float getZ() { return z_; } /** * optional float z = 4; */ public Builder setZ(float value) { bitField0_ |= 0x00000008; z_ = value; onChanged(); return this; } /** * optional float z = 4; */ public Builder clearZ() { bitField0_ = (bitField0_ & ~0x00000008); z_ = 0F; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:tutorial.Quaternionf) } static { defaultInstance = new Quaternionf(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:tutorial.Quaternionf) } public interface Vector3fOrBuilder extends // @@protoc_insertion_point(interface_extends:tutorial.Vector3f) com.google.protobuf.MessageOrBuilder { /** * optional float x = 1; */ boolean hasX(); /** * optional float x = 1; */ float getX(); /** * optional float y = 2; */ boolean hasY(); /** * optional float y = 2; */ float getY(); /** * optional float z = 3; */ boolean hasZ(); /** * optional float z = 3; */ float getZ(); } /** * Protobuf type {@code tutorial.Vector3f} */ public static final class Vector3f extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tutorial.Vector3f) Vector3fOrBuilder { // Use Vector3f.newBuilder() to construct. private Vector3f(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Vector3f(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Vector3f defaultInstance; public static Vector3f getDefaultInstance() { return defaultInstance; } public Vector3f getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Vector3f( 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; case 13: { bitField0_ |= 0x00000001; x_ = input.readFloat(); break; } case 21: { bitField0_ |= 0x00000002; y_ = input.readFloat(); break; } case 29: { bitField0_ |= 0x00000004; z_ = input.readFloat(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } 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 Common.internal_static_tutorial_Vector3f_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_Vector3f_fieldAccessorTable .ensureFieldAccessorsInitialized( Vector3f.class, Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Vector3f parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Vector3f(input, extensionRegistry); } }; @Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int X_FIELD_NUMBER = 1; private float x_; /** * optional float x = 1; */ public boolean hasX() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional float x = 1; */ public float getX() { return x_; } public static final int Y_FIELD_NUMBER = 2; private float y_; /** * optional float y = 2; */ public boolean hasY() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional float y = 2; */ public float getY() { return y_; } public static final int Z_FIELD_NUMBER = 3; private float z_; /** * optional float z = 3; */ public boolean hasZ() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional float z = 3; */ public float getZ() { return z_; } private void initFields() { x_ = 0F; y_ = 0F; z_ = 0F; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 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.writeFloat(1, x_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeFloat(2, y_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeFloat(3, z_); } 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 .computeFloatSize(1, x_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, y_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, z_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static Vector3f parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Vector3f parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Vector3f parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Vector3f parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Vector3f parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static Vector3f parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Vector3f parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static Vector3f parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static Vector3f parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static Vector3f 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(Vector3f prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tutorial.Vector3f} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tutorial.Vector3f) Vector3fOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Common.internal_static_tutorial_Vector3f_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_Vector3f_fieldAccessorTable .ensureFieldAccessorsInitialized( Vector3f.class, Builder.class); } // Construct using com.fdkankan.common.proto.Common.Vector3f.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( 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(); x_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); y_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); z_ = 0F; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Common.internal_static_tutorial_Vector3f_descriptor; } public Vector3f getDefaultInstanceForType() { return Vector3f.getDefaultInstance(); } public Vector3f build() { Vector3f result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public Vector3f buildPartial() { Vector3f result = new Vector3f(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.x_ = x_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.y_ = y_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.z_ = z_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Vector3f) { return mergeFrom((Vector3f)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(Vector3f other) { if (other == Vector3f.getDefaultInstance()) return this; if (other.hasX()) { setX(other.getX()); } if (other.hasY()) { setY(other.getY()); } if (other.hasZ()) { setZ(other.getZ()); } 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 { Vector3f parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (Vector3f) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private float x_ ; /** * optional float x = 1; */ public boolean hasX() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional float x = 1; */ public float getX() { return x_; } /** * optional float x = 1; */ public Builder setX(float value) { bitField0_ |= 0x00000001; x_ = value; onChanged(); return this; } /** * optional float x = 1; */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000001); x_ = 0F; onChanged(); return this; } private float y_ ; /** * optional float y = 2; */ public boolean hasY() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional float y = 2; */ public float getY() { return y_; } /** * optional float y = 2; */ public Builder setY(float value) { bitField0_ |= 0x00000002; y_ = value; onChanged(); return this; } /** * optional float y = 2; */ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000002); y_ = 0F; onChanged(); return this; } private float z_ ; /** * optional float z = 3; */ public boolean hasZ() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional float z = 3; */ public float getZ() { return z_; } /** * optional float z = 3; */ public Builder setZ(float value) { bitField0_ |= 0x00000004; z_ = value; onChanged(); return this; } /** * optional float z = 3; */ public Builder clearZ() { bitField0_ = (bitField0_ & ~0x00000004); z_ = 0F; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:tutorial.Vector3f) } static { defaultInstance = new Vector3f(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:tutorial.Vector3f) } public interface SweepLocationOrBuilder extends // @@protoc_insertion_point(interface_extends:tutorial.SweepLocation) com.google.protobuf.MessageOrBuilder { /** * optional bytes uuid = 1; * *
     * uuid
     * 
*/ boolean hasUuid(); /** * optional bytes uuid = 1; * *
     * uuid
     * 
*/ com.google.protobuf.ByteString getUuid(); /** * optional .tutorial.Affine3f pose = 2; * *
     * camera pose (x, y,z) in meter and a quaternion
     * 
*/ boolean hasPose(); /** * optional .tutorial.Affine3f pose = 2; * *
     * camera pose (x, y,z) in meter and a quaternion
     * 
*/ Affine3f getPose(); /** * optional .tutorial.Affine3f pose = 2; * *
     * camera pose (x, y,z) in meter and a quaternion
     * 
*/ Affine3fOrBuilder getPoseOrBuilder(); /** * optional .tutorial.Vector3f puck = 3; * *
     * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
     * 
*/ boolean hasPuck(); /** * optional .tutorial.Vector3f puck = 3; * *
     * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
     * 
*/ Vector3f getPuck(); /** * optional .tutorial.Vector3f puck = 3; * *
     * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
     * 
*/ Vector3fOrBuilder getPuckOrBuilder(); /** * optional int32 group = 4; * *
     * floor index
     * 
*/ boolean hasGroup(); /** * optional int32 group = 4; * *
     * floor index
     * 
*/ int getGroup(); /** * optional int32 subgroup = 5; * *
     * room index
     * 
*/ boolean hasSubgroup(); /** * optional int32 subgroup = 5; * *
     * room index
     * 
*/ int getSubgroup(); /** * repeated int32 visibles = 6; * *
     * list of indices to all pucks visible from this puck
     * 
*/ java.util.List getVisiblesList(); /** * repeated int32 visibles = 6; * *
     * list of indices to all pucks visible from this puck
     * 
*/ int getVisiblesCount(); /** * repeated int32 visibles = 6; * *
     * list of indices to all pucks visible from this puck
     * 
*/ int getVisibles(int index); /** * repeated float scores = 7; * *
     * used as part of scoring function for determining which puck to go to next
     * 
*/ java.util.List getScoresList(); /** * repeated float scores = 7; * *
     * used as part of scoring function for determining which puck to go to next
     * 
*/ int getScoresCount(); /** * repeated float scores = 7; * *
     * used as part of scoring function for determining which puck to go to next
     * 
*/ float getScores(int index); /** * repeated int32 visibles2 = 8; * *
     * list of indices to all pucks visible from this puck
     * 
*/ java.util.List getVisibles2List(); /** * repeated int32 visibles2 = 8; * *
     * list of indices to all pucks visible from this puck
     * 
*/ int getVisibles2Count(); /** * repeated int32 visibles2 = 8; * *
     * list of indices to all pucks visible from this puck
     * 
*/ int getVisibles2(int index); /** * repeated int32 visibles3 = 9; * *
     * list of indices to all pucks visible from this puck
     * 
*/ java.util.List getVisibles3List(); /** * repeated int32 visibles3 = 9; * *
     * list of indices to all pucks visible from this puck
     * 
*/ int getVisibles3Count(); /** * repeated int32 visibles3 = 9; * *
     * list of indices to all pucks visible from this puck
     * 
*/ int getVisibles3(int index); } /** * Protobuf type {@code tutorial.SweepLocation} * *
   * One sweep / pano
   * 
*/ public static final class SweepLocation extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tutorial.SweepLocation) SweepLocationOrBuilder { // Use SweepLocation.newBuilder() to construct. private SweepLocation(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SweepLocation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SweepLocation defaultInstance; public static SweepLocation getDefaultInstance() { return defaultInstance; } public SweepLocation getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SweepLocation( 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; case 10: { bitField0_ |= 0x00000001; uuid_ = input.readBytes(); break; } case 18: { Affine3f.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = pose_.toBuilder(); } pose_ = input.readMessage(Affine3f.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pose_); pose_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { Vector3f.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = puck_.toBuilder(); } puck_ = input.readMessage(Vector3f.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(puck_); puck_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; group_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; subgroup_ = input.readInt32(); break; } case 48: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { visibles_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } visibles_.add(input.readInt32()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { visibles_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { visibles_.add(input.readInt32()); } input.popLimit(limit); break; } case 61: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { scores_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } scores_.add(input.readFloat()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { scores_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { scores_.add(input.readFloat()); } input.popLimit(limit); break; } case 64: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { visibles2_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } visibles2_.add(input.readInt32()); break; } case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) { visibles2_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } while (input.getBytesUntilLimit() > 0) { visibles2_.add(input.readInt32()); } input.popLimit(limit); break; } case 72: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { visibles3_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } visibles3_.add(input.readInt32()); break; } case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { visibles3_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } while (input.getBytesUntilLimit() > 0) { visibles3_.add(input.readInt32()); } input.popLimit(limit); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { visibles_ = java.util.Collections.unmodifiableList(visibles_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { scores_ = java.util.Collections.unmodifiableList(scores_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { visibles2_ = java.util.Collections.unmodifiableList(visibles2_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { visibles3_ = java.util.Collections.unmodifiableList(visibles3_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Common.internal_static_tutorial_SweepLocation_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_SweepLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( SweepLocation.class, Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SweepLocation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SweepLocation(input, extensionRegistry); } }; @Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int UUID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString uuid_; /** * optional bytes uuid = 1; * *
     * uuid
     * 
*/ public boolean hasUuid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes uuid = 1; * *
     * uuid
     * 
*/ public com.google.protobuf.ByteString getUuid() { return uuid_; } public static final int POSE_FIELD_NUMBER = 2; private Affine3f pose_; /** * optional .tutorial.Affine3f pose = 2; * *
     * camera pose (x, y,z) in meter and a quaternion
     * 
*/ public boolean hasPose() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tutorial.Affine3f pose = 2; * *
     * camera pose (x, y,z) in meter and a quaternion
     * 
*/ public Affine3f getPose() { return pose_; } /** * optional .tutorial.Affine3f pose = 2; * *
     * camera pose (x, y,z) in meter and a quaternion
     * 
*/ public Affine3fOrBuilder getPoseOrBuilder() { return pose_; } public static final int PUCK_FIELD_NUMBER = 3; private Vector3f puck_; /** * optional .tutorial.Vector3f puck = 3; * *
     * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
     * 
*/ public boolean hasPuck() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .tutorial.Vector3f puck = 3; * *
     * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
     * 
*/ public Vector3f getPuck() { return puck_; } /** * optional .tutorial.Vector3f puck = 3; * *
     * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
     * 
*/ public Vector3fOrBuilder getPuckOrBuilder() { return puck_; } public static final int GROUP_FIELD_NUMBER = 4; private int group_; /** * optional int32 group = 4; * *
     * floor index
     * 
*/ public boolean hasGroup() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 group = 4; * *
     * floor index
     * 
*/ public int getGroup() { return group_; } public static final int SUBGROUP_FIELD_NUMBER = 5; private int subgroup_; /** * optional int32 subgroup = 5; * *
     * room index
     * 
*/ public boolean hasSubgroup() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 subgroup = 5; * *
     * room index
     * 
*/ public int getSubgroup() { return subgroup_; } public static final int VISIBLES_FIELD_NUMBER = 6; private java.util.List visibles_; /** * repeated int32 visibles = 6; * *
     * list of indices to all pucks visible from this puck
     * 
*/ public java.util.List getVisiblesList() { return visibles_; } /** * repeated int32 visibles = 6; * *
     * list of indices to all pucks visible from this puck
     * 
*/ public int getVisiblesCount() { return visibles_.size(); } /** * repeated int32 visibles = 6; * *
     * list of indices to all pucks visible from this puck
     * 
*/ public int getVisibles(int index) { return visibles_.get(index); } public static final int SCORES_FIELD_NUMBER = 7; private java.util.List scores_; /** * repeated float scores = 7; * *
     * used as part of scoring function for determining which puck to go to next
     * 
*/ public java.util.List getScoresList() { return scores_; } /** * repeated float scores = 7; * *
     * used as part of scoring function for determining which puck to go to next
     * 
*/ public int getScoresCount() { return scores_.size(); } /** * repeated float scores = 7; * *
     * used as part of scoring function for determining which puck to go to next
     * 
*/ public float getScores(int index) { return scores_.get(index); } public static final int VISIBLES2_FIELD_NUMBER = 8; private java.util.List visibles2_; /** * repeated int32 visibles2 = 8; * *
     * list of indices to all pucks visible from this puck
     * 
*/ public java.util.List getVisibles2List() { return visibles2_; } /** * repeated int32 visibles2 = 8; * *
     * list of indices to all pucks visible from this puck
     * 
*/ public int getVisibles2Count() { return visibles2_.size(); } /** * repeated int32 visibles2 = 8; * *
     * list of indices to all pucks visible from this puck
     * 
*/ public int getVisibles2(int index) { return visibles2_.get(index); } public static final int VISIBLES3_FIELD_NUMBER = 9; private java.util.List visibles3_; /** * repeated int32 visibles3 = 9; * *
     * list of indices to all pucks visible from this puck
     * 
*/ public java.util.List getVisibles3List() { return visibles3_; } /** * repeated int32 visibles3 = 9; * *
     * list of indices to all pucks visible from this puck
     * 
*/ public int getVisibles3Count() { return visibles3_.size(); } /** * repeated int32 visibles3 = 9; * *
     * list of indices to all pucks visible from this puck
     * 
*/ public int getVisibles3(int index) { return visibles3_.get(index); } private void initFields() { uuid_ = com.google.protobuf.ByteString.EMPTY; pose_ = Affine3f.getDefaultInstance(); puck_ = Vector3f.getDefaultInstance(); group_ = 0; subgroup_ = 0; visibles_ = java.util.Collections.emptyList(); scores_ = java.util.Collections.emptyList(); visibles2_ = java.util.Collections.emptyList(); visibles3_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 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.writeBytes(1, uuid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, pose_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, puck_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, group_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, subgroup_); } for (int i = 0; i < visibles_.size(); i++) { output.writeInt32(6, visibles_.get(i)); } for (int i = 0; i < scores_.size(); i++) { output.writeFloat(7, scores_.get(i)); } for (int i = 0; i < visibles2_.size(); i++) { output.writeInt32(8, visibles2_.get(i)); } for (int i = 0; i < visibles3_.size(); i++) { output.writeInt32(9, visibles3_.get(i)); } 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, uuid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, pose_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, puck_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, group_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, subgroup_); } { int dataSize = 0; for (int i = 0; i < visibles_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(visibles_.get(i)); } size += dataSize; size += 1 * getVisiblesList().size(); } { int dataSize = 0; dataSize = 4 * getScoresList().size(); size += dataSize; size += 1 * getScoresList().size(); } { int dataSize = 0; for (int i = 0; i < visibles2_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(visibles2_.get(i)); } size += dataSize; size += 1 * getVisibles2List().size(); } { int dataSize = 0; for (int i = 0; i < visibles3_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(visibles3_.get(i)); } size += dataSize; size += 1 * getVisibles3List().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static SweepLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SweepLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SweepLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SweepLocation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SweepLocation parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static SweepLocation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static SweepLocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static SweepLocation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static SweepLocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static SweepLocation 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(SweepLocation prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tutorial.SweepLocation} * *
     * One sweep / pano
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tutorial.SweepLocation) SweepLocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Common.internal_static_tutorial_SweepLocation_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_SweepLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( SweepLocation.class, Builder.class); } // Construct using com.fdkankan.common.proto.Common.SweepLocation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPoseFieldBuilder(); getPuckFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); uuid_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (poseBuilder_ == null) { pose_ = Affine3f.getDefaultInstance(); } else { poseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (puckBuilder_ == null) { puck_ = Vector3f.getDefaultInstance(); } else { puckBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); group_ = 0; bitField0_ = (bitField0_ & ~0x00000008); subgroup_ = 0; bitField0_ = (bitField0_ & ~0x00000010); visibles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); scores_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); visibles2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); visibles3_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Common.internal_static_tutorial_SweepLocation_descriptor; } public SweepLocation getDefaultInstanceForType() { return SweepLocation.getDefaultInstance(); } public SweepLocation build() { SweepLocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public SweepLocation buildPartial() { SweepLocation result = new SweepLocation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.uuid_ = uuid_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (poseBuilder_ == null) { result.pose_ = pose_; } else { result.pose_ = poseBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (puckBuilder_ == null) { result.puck_ = puck_; } else { result.puck_ = puckBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.group_ = group_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.subgroup_ = subgroup_; if (((bitField0_ & 0x00000020) == 0x00000020)) { visibles_ = java.util.Collections.unmodifiableList(visibles_); bitField0_ = (bitField0_ & ~0x00000020); } result.visibles_ = visibles_; if (((bitField0_ & 0x00000040) == 0x00000040)) { scores_ = java.util.Collections.unmodifiableList(scores_); bitField0_ = (bitField0_ & ~0x00000040); } result.scores_ = scores_; if (((bitField0_ & 0x00000080) == 0x00000080)) { visibles2_ = java.util.Collections.unmodifiableList(visibles2_); bitField0_ = (bitField0_ & ~0x00000080); } result.visibles2_ = visibles2_; if (((bitField0_ & 0x00000100) == 0x00000100)) { visibles3_ = java.util.Collections.unmodifiableList(visibles3_); bitField0_ = (bitField0_ & ~0x00000100); } result.visibles3_ = visibles3_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof SweepLocation) { return mergeFrom((SweepLocation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SweepLocation other) { if (other == SweepLocation.getDefaultInstance()) return this; if (other.hasUuid()) { setUuid(other.getUuid()); } if (other.hasPose()) { mergePose(other.getPose()); } if (other.hasPuck()) { mergePuck(other.getPuck()); } if (other.hasGroup()) { setGroup(other.getGroup()); } if (other.hasSubgroup()) { setSubgroup(other.getSubgroup()); } if (!other.visibles_.isEmpty()) { if (visibles_.isEmpty()) { visibles_ = other.visibles_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureVisiblesIsMutable(); visibles_.addAll(other.visibles_); } onChanged(); } if (!other.scores_.isEmpty()) { if (scores_.isEmpty()) { scores_ = other.scores_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureScoresIsMutable(); scores_.addAll(other.scores_); } onChanged(); } if (!other.visibles2_.isEmpty()) { if (visibles2_.isEmpty()) { visibles2_ = other.visibles2_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureVisibles2IsMutable(); visibles2_.addAll(other.visibles2_); } onChanged(); } if (!other.visibles3_.isEmpty()) { if (visibles3_.isEmpty()) { visibles3_ = other.visibles3_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureVisibles3IsMutable(); visibles3_.addAll(other.visibles3_); } 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 { SweepLocation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (SweepLocation) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes uuid = 1; * *
       * uuid
       * 
*/ public boolean hasUuid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes uuid = 1; * *
       * uuid
       * 
*/ public com.google.protobuf.ByteString getUuid() { return uuid_; } /** * optional bytes uuid = 1; * *
       * uuid
       * 
*/ public Builder setUuid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uuid_ = value; onChanged(); return this; } /** * optional bytes uuid = 1; * *
       * uuid
       * 
*/ public Builder clearUuid() { bitField0_ = (bitField0_ & ~0x00000001); uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } private Affine3f pose_ = Affine3f.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< Affine3f, Affine3f.Builder, Affine3fOrBuilder> poseBuilder_; /** * optional .tutorial.Affine3f pose = 2; * *
       * camera pose (x, y,z) in meter and a quaternion
       * 
*/ public boolean hasPose() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tutorial.Affine3f pose = 2; * *
       * camera pose (x, y,z) in meter and a quaternion
       * 
*/ public Affine3f getPose() { if (poseBuilder_ == null) { return pose_; } else { return poseBuilder_.getMessage(); } } /** * optional .tutorial.Affine3f pose = 2; * *
       * camera pose (x, y,z) in meter and a quaternion
       * 
*/ public Builder setPose(Affine3f value) { if (poseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pose_ = value; onChanged(); } else { poseBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tutorial.Affine3f pose = 2; * *
       * camera pose (x, y,z) in meter and a quaternion
       * 
*/ public Builder setPose( Affine3f.Builder builderForValue) { if (poseBuilder_ == null) { pose_ = builderForValue.build(); onChanged(); } else { poseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .tutorial.Affine3f pose = 2; * *
       * camera pose (x, y,z) in meter and a quaternion
       * 
*/ public Builder mergePose(Affine3f value) { if (poseBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && pose_ != Affine3f.getDefaultInstance()) { pose_ = Affine3f.newBuilder(pose_).mergeFrom(value).buildPartial(); } else { pose_ = value; } onChanged(); } else { poseBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tutorial.Affine3f pose = 2; * *
       * camera pose (x, y,z) in meter and a quaternion
       * 
*/ public Builder clearPose() { if (poseBuilder_ == null) { pose_ = Affine3f.getDefaultInstance(); onChanged(); } else { poseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .tutorial.Affine3f pose = 2; * *
       * camera pose (x, y,z) in meter and a quaternion
       * 
*/ public Affine3f.Builder getPoseBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPoseFieldBuilder().getBuilder(); } /** * optional .tutorial.Affine3f pose = 2; * *
       * camera pose (x, y,z) in meter and a quaternion
       * 
*/ public Affine3fOrBuilder getPoseOrBuilder() { if (poseBuilder_ != null) { return poseBuilder_.getMessageOrBuilder(); } else { return pose_; } } /** * optional .tutorial.Affine3f pose = 2; * *
       * camera pose (x, y,z) in meter and a quaternion
       * 
*/ private com.google.protobuf.SingleFieldBuilder< Affine3f, Affine3f.Builder, Affine3fOrBuilder> getPoseFieldBuilder() { if (poseBuilder_ == null) { poseBuilder_ = new com.google.protobuf.SingleFieldBuilder< Affine3f, Affine3f.Builder, Affine3fOrBuilder>( getPose(), getParentForChildren(), isClean()); pose_ = null; } return poseBuilder_; } private Vector3f puck_ = Vector3f.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< Vector3f, Vector3f.Builder, Vector3fOrBuilder> puckBuilder_; /** * optional .tutorial.Vector3f puck = 3; * *
       * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
       * 
*/ public boolean hasPuck() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .tutorial.Vector3f puck = 3; * *
       * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
       * 
*/ public Vector3f getPuck() { if (puckBuilder_ == null) { return puck_; } else { return puckBuilder_.getMessage(); } } /** * optional .tutorial.Vector3f puck = 3; * *
       * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
       * 
*/ public Builder setPuck(Vector3f value) { if (puckBuilder_ == null) { if (value == null) { throw new NullPointerException(); } puck_ = value; onChanged(); } else { puckBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .tutorial.Vector3f puck = 3; * *
       * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
       * 
*/ public Builder setPuck( Vector3f.Builder builderForValue) { if (puckBuilder_ == null) { puck_ = builderForValue.build(); onChanged(); } else { puckBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .tutorial.Vector3f puck = 3; * *
       * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
       * 
*/ public Builder mergePuck(Vector3f value) { if (puckBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && puck_ != Vector3f.getDefaultInstance()) { puck_ = Vector3f.newBuilder(puck_).mergeFrom(value).buildPartial(); } else { puck_ = value; } onChanged(); } else { puckBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .tutorial.Vector3f puck = 3; * *
       * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
       * 
*/ public Builder clearPuck() { if (puckBuilder_ == null) { puck_ = Vector3f.getDefaultInstance(); onChanged(); } else { puckBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .tutorial.Vector3f puck = 3; * *
       * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
       * 
*/ public Vector3f.Builder getPuckBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPuckFieldBuilder().getBuilder(); } /** * optional .tutorial.Vector3f puck = 3; * *
       * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
       * 
*/ public Vector3fOrBuilder getPuckOrBuilder() { if (puckBuilder_ != null) { return puckBuilder_.getMessageOrBuilder(); } else { return puck_; } } /** * optional .tutorial.Vector3f puck = 3; * *
       * puck location - x any is generally the same as pose, z is the height of the closest floor under the camera
       * 
*/ private com.google.protobuf.SingleFieldBuilder< Vector3f, Vector3f.Builder, Vector3fOrBuilder> getPuckFieldBuilder() { if (puckBuilder_ == null) { puckBuilder_ = new com.google.protobuf.SingleFieldBuilder< Vector3f, Vector3f.Builder, Vector3fOrBuilder>( getPuck(), getParentForChildren(), isClean()); puck_ = null; } return puckBuilder_; } private int group_ ; /** * optional int32 group = 4; * *
       * floor index
       * 
*/ public boolean hasGroup() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 group = 4; * *
       * floor index
       * 
*/ public int getGroup() { return group_; } /** * optional int32 group = 4; * *
       * floor index
       * 
*/ public Builder setGroup(int value) { bitField0_ |= 0x00000008; group_ = value; onChanged(); return this; } /** * optional int32 group = 4; * *
       * floor index
       * 
*/ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00000008); group_ = 0; onChanged(); return this; } private int subgroup_ ; /** * optional int32 subgroup = 5; * *
       * room index
       * 
*/ public boolean hasSubgroup() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 subgroup = 5; * *
       * room index
       * 
*/ public int getSubgroup() { return subgroup_; } /** * optional int32 subgroup = 5; * *
       * room index
       * 
*/ public Builder setSubgroup(int value) { bitField0_ |= 0x00000010; subgroup_ = value; onChanged(); return this; } /** * optional int32 subgroup = 5; * *
       * room index
       * 
*/ public Builder clearSubgroup() { bitField0_ = (bitField0_ & ~0x00000010); subgroup_ = 0; onChanged(); return this; } private java.util.List visibles_ = java.util.Collections.emptyList(); private void ensureVisiblesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { visibles_ = new java.util.ArrayList(visibles_); bitField0_ |= 0x00000020; } } /** * repeated int32 visibles = 6; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public java.util.List getVisiblesList() { return java.util.Collections.unmodifiableList(visibles_); } /** * repeated int32 visibles = 6; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public int getVisiblesCount() { return visibles_.size(); } /** * repeated int32 visibles = 6; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public int getVisibles(int index) { return visibles_.get(index); } /** * repeated int32 visibles = 6; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder setVisibles( int index, int value) { ensureVisiblesIsMutable(); visibles_.set(index, value); onChanged(); return this; } /** * repeated int32 visibles = 6; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder addVisibles(int value) { ensureVisiblesIsMutable(); visibles_.add(value); onChanged(); return this; } /** * repeated int32 visibles = 6; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder addAllVisibles( Iterable values) { ensureVisiblesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, visibles_); onChanged(); return this; } /** * repeated int32 visibles = 6; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder clearVisibles() { visibles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private java.util.List scores_ = java.util.Collections.emptyList(); private void ensureScoresIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { scores_ = new java.util.ArrayList(scores_); bitField0_ |= 0x00000040; } } /** * repeated float scores = 7; * *
       * used as part of scoring function for determining which puck to go to next
       * 
*/ public java.util.List getScoresList() { return java.util.Collections.unmodifiableList(scores_); } /** * repeated float scores = 7; * *
       * used as part of scoring function for determining which puck to go to next
       * 
*/ public int getScoresCount() { return scores_.size(); } /** * repeated float scores = 7; * *
       * used as part of scoring function for determining which puck to go to next
       * 
*/ public float getScores(int index) { return scores_.get(index); } /** * repeated float scores = 7; * *
       * used as part of scoring function for determining which puck to go to next
       * 
*/ public Builder setScores( int index, float value) { ensureScoresIsMutable(); scores_.set(index, value); onChanged(); return this; } /** * repeated float scores = 7; * *
       * used as part of scoring function for determining which puck to go to next
       * 
*/ public Builder addScores(float value) { ensureScoresIsMutable(); scores_.add(value); onChanged(); return this; } /** * repeated float scores = 7; * *
       * used as part of scoring function for determining which puck to go to next
       * 
*/ public Builder addAllScores( Iterable values) { ensureScoresIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scores_); onChanged(); return this; } /** * repeated float scores = 7; * *
       * used as part of scoring function for determining which puck to go to next
       * 
*/ public Builder clearScores() { scores_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private java.util.List visibles2_ = java.util.Collections.emptyList(); private void ensureVisibles2IsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { visibles2_ = new java.util.ArrayList(visibles2_); bitField0_ |= 0x00000080; } } /** * repeated int32 visibles2 = 8; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public java.util.List getVisibles2List() { return java.util.Collections.unmodifiableList(visibles2_); } /** * repeated int32 visibles2 = 8; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public int getVisibles2Count() { return visibles2_.size(); } /** * repeated int32 visibles2 = 8; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public int getVisibles2(int index) { return visibles2_.get(index); } /** * repeated int32 visibles2 = 8; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder setVisibles2( int index, int value) { ensureVisibles2IsMutable(); visibles2_.set(index, value); onChanged(); return this; } /** * repeated int32 visibles2 = 8; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder addVisibles2(int value) { ensureVisibles2IsMutable(); visibles2_.add(value); onChanged(); return this; } /** * repeated int32 visibles2 = 8; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder addAllVisibles2( Iterable values) { ensureVisibles2IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, visibles2_); onChanged(); return this; } /** * repeated int32 visibles2 = 8; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder clearVisibles2() { visibles2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } private java.util.List visibles3_ = java.util.Collections.emptyList(); private void ensureVisibles3IsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { visibles3_ = new java.util.ArrayList(visibles3_); bitField0_ |= 0x00000100; } } /** * repeated int32 visibles3 = 9; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public java.util.List getVisibles3List() { return java.util.Collections.unmodifiableList(visibles3_); } /** * repeated int32 visibles3 = 9; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public int getVisibles3Count() { return visibles3_.size(); } /** * repeated int32 visibles3 = 9; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public int getVisibles3(int index) { return visibles3_.get(index); } /** * repeated int32 visibles3 = 9; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder setVisibles3( int index, int value) { ensureVisibles3IsMutable(); visibles3_.set(index, value); onChanged(); return this; } /** * repeated int32 visibles3 = 9; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder addVisibles3(int value) { ensureVisibles3IsMutable(); visibles3_.add(value); onChanged(); return this; } /** * repeated int32 visibles3 = 9; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder addAllVisibles3( Iterable values) { ensureVisibles3IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, visibles3_); onChanged(); return this; } /** * repeated int32 visibles3 = 9; * *
       * list of indices to all pucks visible from this puck
       * 
*/ public Builder clearVisibles3() { visibles3_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:tutorial.SweepLocation) } static { defaultInstance = new SweepLocation(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:tutorial.SweepLocation) } public interface NavigationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:tutorial.NavigationInfo) com.google.protobuf.MessageOrBuilder { /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ java.util.List getSweepLocationsList(); /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ SweepLocation getSweepLocations(int index); /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ int getSweepLocationsCount(); /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ // java.util.List // getSweepLocationsOrBuilderList(); /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ SweepLocationOrBuilder getSweepLocationsOrBuilder( int index); } /** * Protobuf type {@code tutorial.NavigationInfo} * *
   * All pucks in a model. Pucks are stored in scanning order.
   * 
*/ public static final class NavigationInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tutorial.NavigationInfo) NavigationInfoOrBuilder { // Use NavigationInfo.newBuilder() to construct. private NavigationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NavigationInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NavigationInfo defaultInstance; public static NavigationInfo getDefaultInstance() { return defaultInstance; } public NavigationInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NavigationInfo( 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; case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { sweepLocations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } sweepLocations_.add(input.readMessage(SweepLocation.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { sweepLocations_ = java.util.Collections.unmodifiableList(sweepLocations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Common.internal_static_tutorial_NavigationInfo_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_NavigationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( NavigationInfo.class, Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NavigationInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NavigationInfo(input, extensionRegistry); } }; @Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int SWEEPLOCATIONS_FIELD_NUMBER = 1; private java.util.List sweepLocations_; /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public java.util.List getSweepLocationsList() { return sweepLocations_; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ // public java.util.List // getSweepLocationsOrBuilderList() { // return sweepLocations_; // } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public int getSweepLocationsCount() { return sweepLocations_.size(); } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public SweepLocation getSweepLocations(int index) { return sweepLocations_.get(index); } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public SweepLocationOrBuilder getSweepLocationsOrBuilder( int index) { return sweepLocations_.get(index); } private void initFields() { sweepLocations_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < sweepLocations_.size(); i++) { output.writeMessage(1, sweepLocations_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < sweepLocations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, sweepLocations_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static NavigationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static NavigationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static NavigationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static NavigationInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static NavigationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static NavigationInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static NavigationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static NavigationInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static NavigationInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static NavigationInfo 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(NavigationInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tutorial.NavigationInfo} * *
     * All pucks in a model. Pucks are stored in scanning order.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tutorial.NavigationInfo) NavigationInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Common.internal_static_tutorial_NavigationInfo_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return Common.internal_static_tutorial_NavigationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( NavigationInfo.class, Builder.class); } // Construct using com.fdkankan.common.proto.Common.NavigationInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSweepLocationsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (sweepLocationsBuilder_ == null) { sweepLocations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { sweepLocationsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Common.internal_static_tutorial_NavigationInfo_descriptor; } public NavigationInfo getDefaultInstanceForType() { return NavigationInfo.getDefaultInstance(); } public NavigationInfo build() { NavigationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public NavigationInfo buildPartial() { NavigationInfo result = new NavigationInfo(this); int from_bitField0_ = bitField0_; if (sweepLocationsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { sweepLocations_ = java.util.Collections.unmodifiableList(sweepLocations_); bitField0_ = (bitField0_ & ~0x00000001); } result.sweepLocations_ = sweepLocations_; } else { result.sweepLocations_ = sweepLocationsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof NavigationInfo) { return mergeFrom((NavigationInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(NavigationInfo other) { if (other == NavigationInfo.getDefaultInstance()) return this; if (sweepLocationsBuilder_ == null) { if (!other.sweepLocations_.isEmpty()) { if (sweepLocations_.isEmpty()) { sweepLocations_ = other.sweepLocations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSweepLocationsIsMutable(); sweepLocations_.addAll(other.sweepLocations_); } onChanged(); } } else { if (!other.sweepLocations_.isEmpty()) { if (sweepLocationsBuilder_.isEmpty()) { sweepLocationsBuilder_.dispose(); sweepLocationsBuilder_ = null; sweepLocations_ = other.sweepLocations_; bitField0_ = (bitField0_ & ~0x00000001); sweepLocationsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSweepLocationsFieldBuilder() : null; } else { sweepLocationsBuilder_.addAllMessages(other.sweepLocations_); } } } 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 { NavigationInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (NavigationInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List sweepLocations_ = java.util.Collections.emptyList(); private void ensureSweepLocationsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { sweepLocations_ = new java.util.ArrayList(sweepLocations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< SweepLocation, SweepLocation.Builder, SweepLocationOrBuilder> sweepLocationsBuilder_; /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public java.util.List getSweepLocationsList() { if (sweepLocationsBuilder_ == null) { return java.util.Collections.unmodifiableList(sweepLocations_); } else { return sweepLocationsBuilder_.getMessageList(); } } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public int getSweepLocationsCount() { if (sweepLocationsBuilder_ == null) { return sweepLocations_.size(); } else { return sweepLocationsBuilder_.getCount(); } } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public SweepLocation getSweepLocations(int index) { if (sweepLocationsBuilder_ == null) { return sweepLocations_.get(index); } else { return sweepLocationsBuilder_.getMessage(index); } } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public Builder setSweepLocations( int index, SweepLocation value) { if (sweepLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSweepLocationsIsMutable(); sweepLocations_.set(index, value); onChanged(); } else { sweepLocationsBuilder_.setMessage(index, value); } return this; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public Builder setSweepLocations( int index, SweepLocation.Builder builderForValue) { if (sweepLocationsBuilder_ == null) { ensureSweepLocationsIsMutable(); sweepLocations_.set(index, builderForValue.build()); onChanged(); } else { sweepLocationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public Builder addSweepLocations(SweepLocation value) { if (sweepLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSweepLocationsIsMutable(); sweepLocations_.add(value); onChanged(); } else { sweepLocationsBuilder_.addMessage(value); } return this; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public Builder addSweepLocations( int index, SweepLocation value) { if (sweepLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSweepLocationsIsMutable(); sweepLocations_.add(index, value); onChanged(); } else { sweepLocationsBuilder_.addMessage(index, value); } return this; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public Builder addSweepLocations( SweepLocation.Builder builderForValue) { if (sweepLocationsBuilder_ == null) { ensureSweepLocationsIsMutable(); sweepLocations_.add(builderForValue.build()); onChanged(); } else { sweepLocationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public Builder addSweepLocations( int index, SweepLocation.Builder builderForValue) { if (sweepLocationsBuilder_ == null) { ensureSweepLocationsIsMutable(); sweepLocations_.add(index, builderForValue.build()); onChanged(); } else { sweepLocationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public Builder addAllSweepLocations( Iterable values) { if (sweepLocationsBuilder_ == null) { ensureSweepLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sweepLocations_); onChanged(); } else { sweepLocationsBuilder_.addAllMessages(values); } return this; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public Builder clearSweepLocations() { if (sweepLocationsBuilder_ == null) { sweepLocations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { sweepLocationsBuilder_.clear(); } return this; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public Builder removeSweepLocations(int index) { if (sweepLocationsBuilder_ == null) { ensureSweepLocationsIsMutable(); sweepLocations_.remove(index); onChanged(); } else { sweepLocationsBuilder_.remove(index); } return this; } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public SweepLocation.Builder getSweepLocationsBuilder( int index) { return getSweepLocationsFieldBuilder().getBuilder(index); } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public SweepLocationOrBuilder getSweepLocationsOrBuilder( int index) { if (sweepLocationsBuilder_ == null) { return sweepLocations_.get(index); } else { return sweepLocationsBuilder_.getMessageOrBuilder(index); } } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ // public java.util.List // getSweepLocationsOrBuilderList() { // if (sweepLocationsBuilder_ != null) { // return sweepLocationsBuilder_.getMessageOrBuilderList(); // } else { // return java.util.Collections.unmodifiableList(sweepLocations_); // } // } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public SweepLocation.Builder addSweepLocationsBuilder() { return getSweepLocationsFieldBuilder().addBuilder( SweepLocation.getDefaultInstance()); } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public SweepLocation.Builder addSweepLocationsBuilder( int index) { return getSweepLocationsFieldBuilder().addBuilder( index, SweepLocation.getDefaultInstance()); } /** * repeated .tutorial.SweepLocation sweepLocations = 1; */ public java.util.List getSweepLocationsBuilderList() { return getSweepLocationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< SweepLocation, SweepLocation.Builder, SweepLocationOrBuilder> getSweepLocationsFieldBuilder() { if (sweepLocationsBuilder_ == null) { sweepLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< SweepLocation, SweepLocation.Builder, SweepLocationOrBuilder>( sweepLocations_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); sweepLocations_ = null; } return sweepLocationsBuilder_; } // @@protoc_insertion_point(builder_scope:tutorial.NavigationInfo) } static { defaultInstance = new NavigationInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:tutorial.NavigationInfo) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tutorial_Affine3f_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_tutorial_Affine3f_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tutorial_Quaternionf_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_tutorial_Quaternionf_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tutorial_Vector3f_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_tutorial_Vector3f_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tutorial_SweepLocation_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_tutorial_SweepLocation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tutorial_NavigationInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_tutorial_NavigationInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { String[] descriptorData = { "\n\014Common.proto\022\010tutorial\"\\\n\010Affine3f\022\'\n\010" + "rotation\030\001 \001(\0132\025.tutorial.Quaternionf\022\'\n" + "\013translation\030\002 \001(\0132\022.tutorial.Vector3f\"9" + "\n\013Quaternionf\022\t\n\001w\030\001 \001(\002\022\t\n\001x\030\002 \001(\002\022\t\n\001y" + "\030\003 \001(\002\022\t\n\001z\030\004 \001(\002\"+\n\010Vector3f\022\t\n\001x\030\001 \001(\002" + "\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002\"\312\001\n\rSweepLocation" + "\022\014\n\004uuid\030\001 \001(\014\022 \n\004pose\030\002 \001(\0132\022.tutorial." + "Affine3f\022 \n\004puck\030\003 \001(\0132\022.tutorial.Vector" + "3f\022\r\n\005group\030\004 \001(\005\022\020\n\010subgroup\030\005 \001(\005\022\020\n\010v" + "isibles\030\006 \003(\005\022\016\n\006scores\030\007 \003(\002\022\021\n\tvisible", "s2\030\010 \003(\005\022\021\n\tvisibles3\030\t \003(\005\"A\n\016Navigatio" + "nInfo\022/\n\016sweepLocations\030\001 \003(\0132\027.tutorial" + ".SweepLocationB\035\n\023com.fdage.web.protoB\006c" + "ommon" }; 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; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_tutorial_Affine3f_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tutorial_Affine3f_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_tutorial_Affine3f_descriptor, new String[] { "Rotation", "Translation", }); internal_static_tutorial_Quaternionf_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tutorial_Quaternionf_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_tutorial_Quaternionf_descriptor, new String[] { "W", "X", "Y", "Z", }); internal_static_tutorial_Vector3f_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_tutorial_Vector3f_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_tutorial_Vector3f_descriptor, new String[] { "X", "Y", "Z", }); internal_static_tutorial_SweepLocation_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_tutorial_SweepLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_tutorial_SweepLocation_descriptor, new String[] { "Uuid", "Pose", "Puck", "Group", "Subgroup", "Visibles", "Scores", "Visibles2", "Visibles3", }); internal_static_tutorial_NavigationInfo_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_tutorial_NavigationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_tutorial_NavigationInfo_descriptor, new String[] { "SweepLocations", }); } // @@protoc_insertion_point(outer_class_scope) }