// Generated by the protocol buffer compiler. DO NOT EDIT! // source: src/main/resources/proto/box2d.proto package org.box2d.proto; public final class Box2D { private Box2D() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } /** * Protobuf enum {@code box2d.PbBodyType} */ public enum PbBodyType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>STATIC = 0;</code> */ STATIC(0, 0), /** * <code>DYNAMIC = 1;</code> */ DYNAMIC(1, 1), /** * <code>KINEMATIC = 2;</code> */ KINEMATIC(2, 2), ; /** * <code>STATIC = 0;</code> */ public static final int STATIC_VALUE = 0; /** * <code>DYNAMIC = 1;</code> */ public static final int DYNAMIC_VALUE = 1; /** * <code>KINEMATIC = 2;</code> */ public static final int KINEMATIC_VALUE = 2; public final int getNumber() { return value; } public static PbBodyType valueOf(int value) { switch (value) { case 0: return STATIC; case 1: return DYNAMIC; case 2: return KINEMATIC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<PbBodyType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<PbBodyType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<PbBodyType>() { public PbBodyType findValueByNumber(int number) { return PbBodyType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.box2d.proto.Box2D.getDescriptor().getEnumTypes().get(0); } private static final PbBodyType[] VALUES = values(); public static PbBodyType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private PbBodyType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:box2d.PbBodyType) } /** * Protobuf enum {@code box2d.PbShapeType} */ public enum PbShapeType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>CIRCLE = 1;</code> */ CIRCLE(0, 1), /** * <code>POLYGON = 2;</code> */ POLYGON(1, 2), /** * <code>EDGE = 3;</code> */ EDGE(2, 3), /** * <code>CHAIN = 4;</code> */ CHAIN(3, 4), ; /** * <code>CIRCLE = 1;</code> */ public static final int CIRCLE_VALUE = 1; /** * <code>POLYGON = 2;</code> */ public static final int POLYGON_VALUE = 2; /** * <code>EDGE = 3;</code> */ public static final int EDGE_VALUE = 3; /** * <code>CHAIN = 4;</code> */ public static final int CHAIN_VALUE = 4; public final int getNumber() { return value; } public static PbShapeType valueOf(int value) { switch (value) { case 1: return CIRCLE; case 2: return POLYGON; case 3: return EDGE; case 4: return CHAIN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<PbShapeType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<PbShapeType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<PbShapeType>() { public PbShapeType findValueByNumber(int number) { return PbShapeType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.box2d.proto.Box2D.getDescriptor().getEnumTypes().get(1); } private static final PbShapeType[] VALUES = values(); public static PbShapeType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private PbShapeType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:box2d.PbShapeType) } /** * Protobuf enum {@code box2d.PbJointType} */ public enum PbJointType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>DISTANCE = 1;</code> */ DISTANCE(0, 1), /** * <code>REVOLUTE = 2;</code> */ REVOLUTE(1, 2), /** * <code>PRISMATIC = 3;</code> */ PRISMATIC(2, 3), /** * <code>PULLEY = 4;</code> */ PULLEY(3, 4), /** * <code>MOUSE = 5;</code> */ MOUSE(4, 5), /** * <code>GEAR = 6;</code> */ GEAR(5, 6), /** * <code>WHEEL = 7;</code> */ WHEEL(6, 7), /** * <code>WELD = 8;</code> */ WELD(7, 8), /** * <code>FRICTION = 9;</code> */ FRICTION(8, 9), /** * <code>ROPE = 10;</code> */ ROPE(9, 10), /** * <code>CONSTANT_VOLUME = 11;</code> */ CONSTANT_VOLUME(10, 11), /** * <code>LINE = 12;</code> */ LINE(11, 12), ; /** * <code>DISTANCE = 1;</code> */ public static final int DISTANCE_VALUE = 1; /** * <code>REVOLUTE = 2;</code> */ public static final int REVOLUTE_VALUE = 2; /** * <code>PRISMATIC = 3;</code> */ public static final int PRISMATIC_VALUE = 3; /** * <code>PULLEY = 4;</code> */ public static final int PULLEY_VALUE = 4; /** * <code>MOUSE = 5;</code> */ public static final int MOUSE_VALUE = 5; /** * <code>GEAR = 6;</code> */ public static final int GEAR_VALUE = 6; /** * <code>WHEEL = 7;</code> */ public static final int WHEEL_VALUE = 7; /** * <code>WELD = 8;</code> */ public static final int WELD_VALUE = 8; /** * <code>FRICTION = 9;</code> */ public static final int FRICTION_VALUE = 9; /** * <code>ROPE = 10;</code> */ public static final int ROPE_VALUE = 10; /** * <code>CONSTANT_VOLUME = 11;</code> */ public static final int CONSTANT_VOLUME_VALUE = 11; /** * <code>LINE = 12;</code> */ public static final int LINE_VALUE = 12; public final int getNumber() { return value; } public static PbJointType valueOf(int value) { switch (value) { case 1: return DISTANCE; case 2: return REVOLUTE; case 3: return PRISMATIC; case 4: return PULLEY; case 5: return MOUSE; case 6: return GEAR; case 7: return WHEEL; case 8: return WELD; case 9: return FRICTION; case 10: return ROPE; case 11: return CONSTANT_VOLUME; case 12: return LINE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<PbJointType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<PbJointType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<PbJointType>() { public PbJointType findValueByNumber(int number) { return PbJointType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.box2d.proto.Box2D.getDescriptor().getEnumTypes().get(2); } private static final PbJointType[] VALUES = values(); public static PbJointType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private PbJointType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:box2d.PbJointType) } public interface PbVec2OrBuilder extends com.google.protobuf.MessageOrBuilder { // required float x = 1; /** * <code>required float x = 1;</code> */ boolean hasX(); /** * <code>required float x = 1;</code> */ float getX(); // required float y = 2; /** * <code>required float y = 2;</code> */ boolean hasY(); /** * <code>required float y = 2;</code> */ float getY(); } /** * Protobuf type {@code box2d.PbVec2} */ public static final class PbVec2 extends com.google.protobuf.GeneratedMessage implements PbVec2OrBuilder { // Use PbVec2.newBuilder() to construct. private PbVec2(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PbVec2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PbVec2 defaultInstance; public static PbVec2 getDefaultInstance() { return defaultInstance; } public PbVec2 getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PbVec2( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 13: { bitField0_ |= 0x00000001; x_ = input.readFloat(); break; } case 21: { bitField0_ |= 0x00000002; y_ = input.readFloat(); 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 org.box2d.proto.Box2D.internal_static_box2d_PbVec2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbVec2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbVec2.class, org.box2d.proto.Box2D.PbVec2.Builder.class); } public static com.google.protobuf.Parser<PbVec2> PARSER = new com.google.protobuf.AbstractParser<PbVec2>() { public PbVec2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PbVec2(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PbVec2> getParserForType() { return PARSER; } private int bitField0_; // required float x = 1; public static final int X_FIELD_NUMBER = 1; private float x_; /** * <code>required float x = 1;</code> */ public boolean hasX() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required float x = 1;</code> */ public float getX() { return x_; } // required float y = 2; public static final int Y_FIELD_NUMBER = 2; private float y_; /** * <code>required float y = 2;</code> */ public boolean hasY() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required float y = 2;</code> */ public float getY() { return y_; } private void initFields() { x_ = 0F; y_ = 0F; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasX()) { memoizedIsInitialized = 0; return false; } if (!hasY()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeFloat(1, x_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeFloat(2, y_); } 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_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.box2d.proto.Box2D.PbVec2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbVec2 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbVec2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbVec2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbVec2 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbVec2 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbVec2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.box2d.proto.Box2D.PbVec2 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbVec2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbVec2 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(org.box2d.proto.Box2D.PbVec2 prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code box2d.PbVec2} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.box2d.proto.Box2D.PbVec2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbVec2_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbVec2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbVec2.class, org.box2d.proto.Box2D.PbVec2.Builder.class); } // Construct using org.box2d.proto.Box2D.PbVec2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); x_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); y_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.box2d.proto.Box2D.internal_static_box2d_PbVec2_descriptor; } public org.box2d.proto.Box2D.PbVec2 getDefaultInstanceForType() { return org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } public org.box2d.proto.Box2D.PbVec2 build() { org.box2d.proto.Box2D.PbVec2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.box2d.proto.Box2D.PbVec2 buildPartial() { org.box2d.proto.Box2D.PbVec2 result = new org.box2d.proto.Box2D.PbVec2(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_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.box2d.proto.Box2D.PbVec2) { return mergeFrom((org.box2d.proto.Box2D.PbVec2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.box2d.proto.Box2D.PbVec2 other) { if (other == org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) return this; if (other.hasX()) { setX(other.getX()); } if (other.hasY()) { setY(other.getY()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasX()) { return false; } if (!hasY()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.box2d.proto.Box2D.PbVec2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.box2d.proto.Box2D.PbVec2) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required float x = 1; private float x_ ; /** * <code>required float x = 1;</code> */ public boolean hasX() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required float x = 1;</code> */ public float getX() { return x_; } /** * <code>required float x = 1;</code> */ public Builder setX(float value) { bitField0_ |= 0x00000001; x_ = value; onChanged(); return this; } /** * <code>required float x = 1;</code> */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000001); x_ = 0F; onChanged(); return this; } // required float y = 2; private float y_ ; /** * <code>required float y = 2;</code> */ public boolean hasY() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required float y = 2;</code> */ public float getY() { return y_; } /** * <code>required float y = 2;</code> */ public Builder setY(float value) { bitField0_ |= 0x00000002; y_ = value; onChanged(); return this; } /** * <code>required float y = 2;</code> */ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000002); y_ = 0F; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:box2d.PbVec2) } static { defaultInstance = new PbVec2(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:box2d.PbVec2) } public interface PbFilterOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 category_bits = 1; /** * <code>optional int32 category_bits = 1;</code> */ boolean hasCategoryBits(); /** * <code>optional int32 category_bits = 1;</code> */ int getCategoryBits(); // optional int32 mask_bits = 2; /** * <code>optional int32 mask_bits = 2;</code> */ boolean hasMaskBits(); /** * <code>optional int32 mask_bits = 2;</code> */ int getMaskBits(); // optional int32 group_index = 3; /** * <code>optional int32 group_index = 3;</code> */ boolean hasGroupIndex(); /** * <code>optional int32 group_index = 3;</code> */ int getGroupIndex(); } /** * Protobuf type {@code box2d.PbFilter} */ public static final class PbFilter extends com.google.protobuf.GeneratedMessage implements PbFilterOrBuilder { // Use PbFilter.newBuilder() to construct. private PbFilter(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PbFilter(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PbFilter defaultInstance; public static PbFilter getDefaultInstance() { return defaultInstance; } public PbFilter getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PbFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; categoryBits_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; maskBits_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; groupIndex_ = input.readInt32(); 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 org.box2d.proto.Box2D.internal_static_box2d_PbFilter_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbFilter.class, org.box2d.proto.Box2D.PbFilter.Builder.class); } public static com.google.protobuf.Parser<PbFilter> PARSER = new com.google.protobuf.AbstractParser<PbFilter>() { public PbFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PbFilter(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PbFilter> getParserForType() { return PARSER; } private int bitField0_; // optional int32 category_bits = 1; public static final int CATEGORY_BITS_FIELD_NUMBER = 1; private int categoryBits_; /** * <code>optional int32 category_bits = 1;</code> */ public boolean hasCategoryBits() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 category_bits = 1;</code> */ public int getCategoryBits() { return categoryBits_; } // optional int32 mask_bits = 2; public static final int MASK_BITS_FIELD_NUMBER = 2; private int maskBits_; /** * <code>optional int32 mask_bits = 2;</code> */ public boolean hasMaskBits() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 mask_bits = 2;</code> */ public int getMaskBits() { return maskBits_; } // optional int32 group_index = 3; public static final int GROUP_INDEX_FIELD_NUMBER = 3; private int groupIndex_; /** * <code>optional int32 group_index = 3;</code> */ public boolean hasGroupIndex() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 group_index = 3;</code> */ public int getGroupIndex() { return groupIndex_; } private void initFields() { categoryBits_ = 0; maskBits_ = 0; groupIndex_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, categoryBits_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, maskBits_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, groupIndex_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, categoryBits_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, maskBits_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, groupIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.box2d.proto.Box2D.PbFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbFilter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbFilter parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbFilter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbFilter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.box2d.proto.Box2D.PbFilter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbFilter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbFilter 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(org.box2d.proto.Box2D.PbFilter prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code box2d.PbFilter} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.box2d.proto.Box2D.PbFilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbFilter_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbFilter.class, org.box2d.proto.Box2D.PbFilter.Builder.class); } // Construct using org.box2d.proto.Box2D.PbFilter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); categoryBits_ = 0; bitField0_ = (bitField0_ & ~0x00000001); maskBits_ = 0; bitField0_ = (bitField0_ & ~0x00000002); groupIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.box2d.proto.Box2D.internal_static_box2d_PbFilter_descriptor; } public org.box2d.proto.Box2D.PbFilter getDefaultInstanceForType() { return org.box2d.proto.Box2D.PbFilter.getDefaultInstance(); } public org.box2d.proto.Box2D.PbFilter build() { org.box2d.proto.Box2D.PbFilter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.box2d.proto.Box2D.PbFilter buildPartial() { org.box2d.proto.Box2D.PbFilter result = new org.box2d.proto.Box2D.PbFilter(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.categoryBits_ = categoryBits_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.maskBits_ = maskBits_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.groupIndex_ = groupIndex_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.box2d.proto.Box2D.PbFilter) { return mergeFrom((org.box2d.proto.Box2D.PbFilter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.box2d.proto.Box2D.PbFilter other) { if (other == org.box2d.proto.Box2D.PbFilter.getDefaultInstance()) return this; if (other.hasCategoryBits()) { setCategoryBits(other.getCategoryBits()); } if (other.hasMaskBits()) { setMaskBits(other.getMaskBits()); } if (other.hasGroupIndex()) { setGroupIndex(other.getGroupIndex()); } 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 { org.box2d.proto.Box2D.PbFilter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.box2d.proto.Box2D.PbFilter) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 category_bits = 1; private int categoryBits_ ; /** * <code>optional int32 category_bits = 1;</code> */ public boolean hasCategoryBits() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 category_bits = 1;</code> */ public int getCategoryBits() { return categoryBits_; } /** * <code>optional int32 category_bits = 1;</code> */ public Builder setCategoryBits(int value) { bitField0_ |= 0x00000001; categoryBits_ = value; onChanged(); return this; } /** * <code>optional int32 category_bits = 1;</code> */ public Builder clearCategoryBits() { bitField0_ = (bitField0_ & ~0x00000001); categoryBits_ = 0; onChanged(); return this; } // optional int32 mask_bits = 2; private int maskBits_ ; /** * <code>optional int32 mask_bits = 2;</code> */ public boolean hasMaskBits() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 mask_bits = 2;</code> */ public int getMaskBits() { return maskBits_; } /** * <code>optional int32 mask_bits = 2;</code> */ public Builder setMaskBits(int value) { bitField0_ |= 0x00000002; maskBits_ = value; onChanged(); return this; } /** * <code>optional int32 mask_bits = 2;</code> */ public Builder clearMaskBits() { bitField0_ = (bitField0_ & ~0x00000002); maskBits_ = 0; onChanged(); return this; } // optional int32 group_index = 3; private int groupIndex_ ; /** * <code>optional int32 group_index = 3;</code> */ public boolean hasGroupIndex() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 group_index = 3;</code> */ public int getGroupIndex() { return groupIndex_; } /** * <code>optional int32 group_index = 3;</code> */ public Builder setGroupIndex(int value) { bitField0_ |= 0x00000004; groupIndex_ = value; onChanged(); return this; } /** * <code>optional int32 group_index = 3;</code> */ public Builder clearGroupIndex() { bitField0_ = (bitField0_ & ~0x00000004); groupIndex_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:box2d.PbFilter) } static { defaultInstance = new PbFilter(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:box2d.PbFilter) } public interface PbShapeOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 tag = 1; /** * <code>optional int64 tag = 1;</code> */ boolean hasTag(); /** * <code>optional int64 tag = 1;</code> */ long getTag(); // required .box2d.PbShapeType type = 2; /** * <code>required .box2d.PbShapeType type = 2;</code> */ boolean hasType(); /** * <code>required .box2d.PbShapeType type = 2;</code> */ org.box2d.proto.Box2D.PbShapeType getType(); // optional .box2d.PbVec2 center = 10; /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ boolean hasCenter(); /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ org.box2d.proto.Box2D.PbVec2 getCenter(); /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getCenterOrBuilder(); // optional float radius = 11; /** * <code>optional float radius = 11;</code> * * <pre> * circle * </pre> */ boolean hasRadius(); /** * <code>optional float radius = 11;</code> * * <pre> * circle * </pre> */ float getRadius(); // repeated .box2d.PbVec2 points = 20; /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ java.util.List<org.box2d.proto.Box2D.PbVec2> getPointsList(); /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ org.box2d.proto.Box2D.PbVec2 getPoints(int index); /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ int getPointsCount(); /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder> getPointsOrBuilderList(); /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getPointsOrBuilder( int index); // repeated .box2d.PbVec2 normals = 21; /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ java.util.List<org.box2d.proto.Box2D.PbVec2> getNormalsList(); /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ org.box2d.proto.Box2D.PbVec2 getNormals(int index); /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ int getNormalsCount(); /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder> getNormalsOrBuilderList(); /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getNormalsOrBuilder( int index); // optional .box2d.PbVec2 centroid = 22; /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ boolean hasCentroid(); /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ org.box2d.proto.Box2D.PbVec2 getCentroid(); /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getCentroidOrBuilder(); // optional .box2d.PbVec2 v0 = 30; /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ boolean hasV0(); /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ org.box2d.proto.Box2D.PbVec2 getV0(); /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getV0OrBuilder(); // optional .box2d.PbVec2 v1 = 31; /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ boolean hasV1(); /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ org.box2d.proto.Box2D.PbVec2 getV1(); /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getV1OrBuilder(); // optional .box2d.PbVec2 v2 = 32; /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ boolean hasV2(); /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ org.box2d.proto.Box2D.PbVec2 getV2(); /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getV2OrBuilder(); // optional .box2d.PbVec2 v3 = 33; /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ boolean hasV3(); /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ org.box2d.proto.Box2D.PbVec2 getV3(); /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getV3OrBuilder(); // optional bool has0 = 34; /** * <code>optional bool has0 = 34;</code> * * <pre> * edge, chain * </pre> */ boolean hasHas0(); /** * <code>optional bool has0 = 34;</code> * * <pre> * edge, chain * </pre> */ boolean getHas0(); // optional bool has3 = 35; /** * <code>optional bool has3 = 35;</code> * * <pre> * edge, chain * </pre> */ boolean hasHas3(); /** * <code>optional bool has3 = 35;</code> * * <pre> * edge, chain * </pre> */ boolean getHas3(); // optional .box2d.PbVec2 prev = 40; /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ boolean hasPrev(); /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ org.box2d.proto.Box2D.PbVec2 getPrev(); /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getPrevOrBuilder(); // optional .box2d.PbVec2 next = 41; /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ boolean hasNext(); /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ org.box2d.proto.Box2D.PbVec2 getNext(); /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getNextOrBuilder(); } /** * Protobuf type {@code box2d.PbShape} * * <pre> * just include all fields we might use * </pre> */ public static final class PbShape extends com.google.protobuf.GeneratedMessage implements PbShapeOrBuilder { // Use PbShape.newBuilder() to construct. private PbShape(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PbShape(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PbShape defaultInstance; public static PbShape getDefaultInstance() { return defaultInstance; } public PbShape getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PbShape( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; tag_ = input.readInt64(); break; } case 16: { int rawValue = input.readEnum(); org.box2d.proto.Box2D.PbShapeType value = org.box2d.proto.Box2D.PbShapeType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; type_ = value; } break; } case 82: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = center_.toBuilder(); } center_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(center_); center_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 93: { bitField0_ |= 0x00000008; radius_ = input.readFloat(); break; } case 162: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { points_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbVec2>(); mutable_bitField0_ |= 0x00000010; } points_.add(input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry)); break; } case 170: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { normals_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbVec2>(); mutable_bitField0_ |= 0x00000020; } normals_.add(input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry)); break; } case 178: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = centroid_.toBuilder(); } centroid_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(centroid_); centroid_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 242: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = v0_.toBuilder(); } v0_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(v0_); v0_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 250: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = v1_.toBuilder(); } v1_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(v1_); v1_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 258: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = v2_.toBuilder(); } v2_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(v2_); v2_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 266: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = v3_.toBuilder(); } v3_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(v3_); v3_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 272: { bitField0_ |= 0x00000200; has0_ = input.readBool(); break; } case 280: { bitField0_ |= 0x00000400; has3_ = input.readBool(); break; } case 322: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = prev_.toBuilder(); } prev_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(prev_); prev_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 330: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = next_.toBuilder(); } next_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(next_); next_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; 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_ & 0x00000010) == 0x00000010)) { points_ = java.util.Collections.unmodifiableList(points_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { normals_ = java.util.Collections.unmodifiableList(normals_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbShape_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbShape_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbShape.class, org.box2d.proto.Box2D.PbShape.Builder.class); } public static com.google.protobuf.Parser<PbShape> PARSER = new com.google.protobuf.AbstractParser<PbShape>() { public PbShape parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PbShape(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PbShape> getParserForType() { return PARSER; } private int bitField0_; // optional int64 tag = 1; public static final int TAG_FIELD_NUMBER = 1; private long tag_; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } // required .box2d.PbShapeType type = 2; public static final int TYPE_FIELD_NUMBER = 2; private org.box2d.proto.Box2D.PbShapeType type_; /** * <code>required .box2d.PbShapeType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .box2d.PbShapeType type = 2;</code> */ public org.box2d.proto.Box2D.PbShapeType getType() { return type_; } // optional .box2d.PbVec2 center = 10; public static final int CENTER_FIELD_NUMBER = 10; private org.box2d.proto.Box2D.PbVec2 center_; /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public boolean hasCenter() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public org.box2d.proto.Box2D.PbVec2 getCenter() { return center_; } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getCenterOrBuilder() { return center_; } // optional float radius = 11; public static final int RADIUS_FIELD_NUMBER = 11; private float radius_; /** * <code>optional float radius = 11;</code> * * <pre> * circle * </pre> */ public boolean hasRadius() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional float radius = 11;</code> * * <pre> * circle * </pre> */ public float getRadius() { return radius_; } // repeated .box2d.PbVec2 points = 20; public static final int POINTS_FIELD_NUMBER = 20; private java.util.List<org.box2d.proto.Box2D.PbVec2> points_; /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public java.util.List<org.box2d.proto.Box2D.PbVec2> getPointsList() { return points_; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder> getPointsOrBuilderList() { return points_; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public int getPointsCount() { return points_.size(); } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public org.box2d.proto.Box2D.PbVec2 getPoints(int index) { return points_.get(index); } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getPointsOrBuilder( int index) { return points_.get(index); } // repeated .box2d.PbVec2 normals = 21; public static final int NORMALS_FIELD_NUMBER = 21; private java.util.List<org.box2d.proto.Box2D.PbVec2> normals_; /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public java.util.List<org.box2d.proto.Box2D.PbVec2> getNormalsList() { return normals_; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder> getNormalsOrBuilderList() { return normals_; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public int getNormalsCount() { return normals_.size(); } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2 getNormals(int index) { return normals_.get(index); } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getNormalsOrBuilder( int index) { return normals_.get(index); } // optional .box2d.PbVec2 centroid = 22; public static final int CENTROID_FIELD_NUMBER = 22; private org.box2d.proto.Box2D.PbVec2 centroid_; /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public boolean hasCentroid() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2 getCentroid() { return centroid_; } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getCentroidOrBuilder() { return centroid_; } // optional .box2d.PbVec2 v0 = 30; public static final int V0_FIELD_NUMBER = 30; private org.box2d.proto.Box2D.PbVec2 v0_; /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public boolean hasV0() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2 getV0() { return v0_; } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getV0OrBuilder() { return v0_; } // optional .box2d.PbVec2 v1 = 31; public static final int V1_FIELD_NUMBER = 31; private org.box2d.proto.Box2D.PbVec2 v1_; /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public boolean hasV1() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2 getV1() { return v1_; } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getV1OrBuilder() { return v1_; } // optional .box2d.PbVec2 v2 = 32; public static final int V2_FIELD_NUMBER = 32; private org.box2d.proto.Box2D.PbVec2 v2_; /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public boolean hasV2() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2 getV2() { return v2_; } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getV2OrBuilder() { return v2_; } // optional .box2d.PbVec2 v3 = 33; public static final int V3_FIELD_NUMBER = 33; private org.box2d.proto.Box2D.PbVec2 v3_; /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public boolean hasV3() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2 getV3() { return v3_; } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getV3OrBuilder() { return v3_; } // optional bool has0 = 34; public static final int HAS0_FIELD_NUMBER = 34; private boolean has0_; /** * <code>optional bool has0 = 34;</code> * * <pre> * edge, chain * </pre> */ public boolean hasHas0() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional bool has0 = 34;</code> * * <pre> * edge, chain * </pre> */ public boolean getHas0() { return has0_; } // optional bool has3 = 35; public static final int HAS3_FIELD_NUMBER = 35; private boolean has3_; /** * <code>optional bool has3 = 35;</code> * * <pre> * edge, chain * </pre> */ public boolean hasHas3() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool has3 = 35;</code> * * <pre> * edge, chain * </pre> */ public boolean getHas3() { return has3_; } // optional .box2d.PbVec2 prev = 40; public static final int PREV_FIELD_NUMBER = 40; private org.box2d.proto.Box2D.PbVec2 prev_; /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public boolean hasPrev() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2 getPrev() { return prev_; } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getPrevOrBuilder() { return prev_; } // optional .box2d.PbVec2 next = 41; public static final int NEXT_FIELD_NUMBER = 41; private org.box2d.proto.Box2D.PbVec2 next_; /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public boolean hasNext() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2 getNext() { return next_; } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getNextOrBuilder() { return next_; } private void initFields() { tag_ = 0L; type_ = org.box2d.proto.Box2D.PbShapeType.CIRCLE; center_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); radius_ = 0F; points_ = java.util.Collections.emptyList(); normals_ = java.util.Collections.emptyList(); centroid_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); v0_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); v1_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); v2_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); v3_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); has0_ = false; has3_ = false; prev_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); next_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasCenter()) { if (!getCenter().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getPointsCount(); i++) { if (!getPoints(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getNormalsCount(); i++) { if (!getNormals(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasCentroid()) { if (!getCentroid().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasV0()) { if (!getV0().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasV1()) { if (!getV1().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasV2()) { if (!getV2().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasV3()) { if (!getV3().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasPrev()) { if (!getPrev().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasNext()) { if (!getNext().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(10, center_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeFloat(11, radius_); } for (int i = 0; i < points_.size(); i++) { output.writeMessage(20, points_.get(i)); } for (int i = 0; i < normals_.size(); i++) { output.writeMessage(21, normals_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(22, centroid_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(30, v0_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(31, v1_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(32, v2_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(33, v3_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(34, has0_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(35, has3_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(40, prev_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(41, next_); } 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 .computeInt64Size(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, center_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(11, radius_); } for (int i = 0; i < points_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, points_.get(i)); } for (int i = 0; i < normals_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, normals_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, centroid_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, v0_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, v1_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, v2_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, v3_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(34, has0_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(35, has3_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, prev_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(41, next_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.box2d.proto.Box2D.PbShape parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbShape parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbShape parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbShape parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbShape parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbShape parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbShape parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.box2d.proto.Box2D.PbShape parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbShape parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbShape 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(org.box2d.proto.Box2D.PbShape prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code box2d.PbShape} * * <pre> * just include all fields we might use * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.box2d.proto.Box2D.PbShapeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbShape_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbShape_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbShape.class, org.box2d.proto.Box2D.PbShape.Builder.class); } // Construct using org.box2d.proto.Box2D.PbShape.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCenterFieldBuilder(); getPointsFieldBuilder(); getNormalsFieldBuilder(); getCentroidFieldBuilder(); getV0FieldBuilder(); getV1FieldBuilder(); getV2FieldBuilder(); getV3FieldBuilder(); getPrevFieldBuilder(); getNextFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); tag_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); type_ = org.box2d.proto.Box2D.PbShapeType.CIRCLE; bitField0_ = (bitField0_ & ~0x00000002); if (centerBuilder_ == null) { center_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { centerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); radius_ = 0F; bitField0_ = (bitField0_ & ~0x00000008); if (pointsBuilder_ == null) { points_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { pointsBuilder_.clear(); } if (normalsBuilder_ == null) { normals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { normalsBuilder_.clear(); } if (centroidBuilder_ == null) { centroid_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { centroidBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (v0Builder_ == null) { v0_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { v0Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (v1Builder_ == null) { v1_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { v1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (v2Builder_ == null) { v2_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { v2Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (v3Builder_ == null) { v3_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { v3Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); has0_ = false; bitField0_ = (bitField0_ & ~0x00000800); has3_ = false; bitField0_ = (bitField0_ & ~0x00001000); if (prevBuilder_ == null) { prev_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { prevBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (nextBuilder_ == null) { next_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { nextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.box2d.proto.Box2D.internal_static_box2d_PbShape_descriptor; } public org.box2d.proto.Box2D.PbShape getDefaultInstanceForType() { return org.box2d.proto.Box2D.PbShape.getDefaultInstance(); } public org.box2d.proto.Box2D.PbShape build() { org.box2d.proto.Box2D.PbShape result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.box2d.proto.Box2D.PbShape buildPartial() { org.box2d.proto.Box2D.PbShape result = new org.box2d.proto.Box2D.PbShape(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (centerBuilder_ == null) { result.center_ = center_; } else { result.center_ = centerBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.radius_ = radius_; if (pointsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { points_ = java.util.Collections.unmodifiableList(points_); bitField0_ = (bitField0_ & ~0x00000010); } result.points_ = points_; } else { result.points_ = pointsBuilder_.build(); } if (normalsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { normals_ = java.util.Collections.unmodifiableList(normals_); bitField0_ = (bitField0_ & ~0x00000020); } result.normals_ = normals_; } else { result.normals_ = normalsBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } if (centroidBuilder_ == null) { result.centroid_ = centroid_; } else { result.centroid_ = centroidBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000020; } if (v0Builder_ == null) { result.v0_ = v0_; } else { result.v0_ = v0Builder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } if (v1Builder_ == null) { result.v1_ = v1_; } else { result.v1_ = v1Builder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000080; } if (v2Builder_ == null) { result.v2_ = v2_; } else { result.v2_ = v2Builder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000100; } if (v3Builder_ == null) { result.v3_ = v3_; } else { result.v3_ = v3Builder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000200; } result.has0_ = has0_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000400; } result.has3_ = has3_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000800; } if (prevBuilder_ == null) { result.prev_ = prev_; } else { result.prev_ = prevBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00001000; } if (nextBuilder_ == null) { result.next_ = next_; } else { result.next_ = nextBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.box2d.proto.Box2D.PbShape) { return mergeFrom((org.box2d.proto.Box2D.PbShape)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.box2d.proto.Box2D.PbShape other) { if (other == org.box2d.proto.Box2D.PbShape.getDefaultInstance()) return this; if (other.hasTag()) { setTag(other.getTag()); } if (other.hasType()) { setType(other.getType()); } if (other.hasCenter()) { mergeCenter(other.getCenter()); } if (other.hasRadius()) { setRadius(other.getRadius()); } if (pointsBuilder_ == null) { if (!other.points_.isEmpty()) { if (points_.isEmpty()) { points_ = other.points_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePointsIsMutable(); points_.addAll(other.points_); } onChanged(); } } else { if (!other.points_.isEmpty()) { if (pointsBuilder_.isEmpty()) { pointsBuilder_.dispose(); pointsBuilder_ = null; points_ = other.points_; bitField0_ = (bitField0_ & ~0x00000010); pointsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPointsFieldBuilder() : null; } else { pointsBuilder_.addAllMessages(other.points_); } } } if (normalsBuilder_ == null) { if (!other.normals_.isEmpty()) { if (normals_.isEmpty()) { normals_ = other.normals_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureNormalsIsMutable(); normals_.addAll(other.normals_); } onChanged(); } } else { if (!other.normals_.isEmpty()) { if (normalsBuilder_.isEmpty()) { normalsBuilder_.dispose(); normalsBuilder_ = null; normals_ = other.normals_; bitField0_ = (bitField0_ & ~0x00000020); normalsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getNormalsFieldBuilder() : null; } else { normalsBuilder_.addAllMessages(other.normals_); } } } if (other.hasCentroid()) { mergeCentroid(other.getCentroid()); } if (other.hasV0()) { mergeV0(other.getV0()); } if (other.hasV1()) { mergeV1(other.getV1()); } if (other.hasV2()) { mergeV2(other.getV2()); } if (other.hasV3()) { mergeV3(other.getV3()); } if (other.hasHas0()) { setHas0(other.getHas0()); } if (other.hasHas3()) { setHas3(other.getHas3()); } if (other.hasPrev()) { mergePrev(other.getPrev()); } if (other.hasNext()) { mergeNext(other.getNext()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (hasCenter()) { if (!getCenter().isInitialized()) { return false; } } for (int i = 0; i < getPointsCount(); i++) { if (!getPoints(i).isInitialized()) { return false; } } for (int i = 0; i < getNormalsCount(); i++) { if (!getNormals(i).isInitialized()) { return false; } } if (hasCentroid()) { if (!getCentroid().isInitialized()) { return false; } } if (hasV0()) { if (!getV0().isInitialized()) { return false; } } if (hasV1()) { if (!getV1().isInitialized()) { return false; } } if (hasV2()) { if (!getV2().isInitialized()) { return false; } } if (hasV3()) { if (!getV3().isInitialized()) { return false; } } if (hasPrev()) { if (!getPrev().isInitialized()) { return false; } } if (hasNext()) { if (!getNext().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.box2d.proto.Box2D.PbShape parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.box2d.proto.Box2D.PbShape) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 tag = 1; private long tag_ ; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } /** * <code>optional int64 tag = 1;</code> */ public Builder setTag(long value) { bitField0_ |= 0x00000001; tag_ = value; onChanged(); return this; } /** * <code>optional int64 tag = 1;</code> */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000001); tag_ = 0L; onChanged(); return this; } // required .box2d.PbShapeType type = 2; private org.box2d.proto.Box2D.PbShapeType type_ = org.box2d.proto.Box2D.PbShapeType.CIRCLE; /** * <code>required .box2d.PbShapeType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .box2d.PbShapeType type = 2;</code> */ public org.box2d.proto.Box2D.PbShapeType getType() { return type_; } /** * <code>required .box2d.PbShapeType type = 2;</code> */ public Builder setType(org.box2d.proto.Box2D.PbShapeType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * <code>required .box2d.PbShapeType type = 2;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = org.box2d.proto.Box2D.PbShapeType.CIRCLE; onChanged(); return this; } // optional .box2d.PbVec2 center = 10; private org.box2d.proto.Box2D.PbVec2 center_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> centerBuilder_; /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public boolean hasCenter() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public org.box2d.proto.Box2D.PbVec2 getCenter() { if (centerBuilder_ == null) { return center_; } else { return centerBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public Builder setCenter(org.box2d.proto.Box2D.PbVec2 value) { if (centerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } center_ = value; onChanged(); } else { centerBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public Builder setCenter( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (centerBuilder_ == null) { center_ = builderForValue.build(); onChanged(); } else { centerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public Builder mergeCenter(org.box2d.proto.Box2D.PbVec2 value) { if (centerBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && center_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { center_ = org.box2d.proto.Box2D.PbVec2.newBuilder(center_).mergeFrom(value).buildPartial(); } else { center_ = value; } onChanged(); } else { centerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public Builder clearCenter() { if (centerBuilder_ == null) { center_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { centerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getCenterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCenterFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getCenterOrBuilder() { if (centerBuilder_ != null) { return centerBuilder_.getMessageOrBuilder(); } else { return center_; } } /** * <code>optional .box2d.PbVec2 center = 10;</code> * * <pre> * circle * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getCenterFieldBuilder() { if (centerBuilder_ == null) { centerBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( center_, getParentForChildren(), isClean()); center_ = null; } return centerBuilder_; } // optional float radius = 11; private float radius_ ; /** * <code>optional float radius = 11;</code> * * <pre> * circle * </pre> */ public boolean hasRadius() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional float radius = 11;</code> * * <pre> * circle * </pre> */ public float getRadius() { return radius_; } /** * <code>optional float radius = 11;</code> * * <pre> * circle * </pre> */ public Builder setRadius(float value) { bitField0_ |= 0x00000008; radius_ = value; onChanged(); return this; } /** * <code>optional float radius = 11;</code> * * <pre> * circle * </pre> */ public Builder clearRadius() { bitField0_ = (bitField0_ & ~0x00000008); radius_ = 0F; onChanged(); return this; } // repeated .box2d.PbVec2 points = 20; private java.util.List<org.box2d.proto.Box2D.PbVec2> points_ = java.util.Collections.emptyList(); private void ensurePointsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { points_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbVec2>(points_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> pointsBuilder_; /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public java.util.List<org.box2d.proto.Box2D.PbVec2> getPointsList() { if (pointsBuilder_ == null) { return java.util.Collections.unmodifiableList(points_); } else { return pointsBuilder_.getMessageList(); } } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public int getPointsCount() { if (pointsBuilder_ == null) { return points_.size(); } else { return pointsBuilder_.getCount(); } } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public org.box2d.proto.Box2D.PbVec2 getPoints(int index) { if (pointsBuilder_ == null) { return points_.get(index); } else { return pointsBuilder_.getMessage(index); } } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public Builder setPoints( int index, org.box2d.proto.Box2D.PbVec2 value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePointsIsMutable(); points_.set(index, value); onChanged(); } else { pointsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public Builder setPoints( int index, org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.set(index, builderForValue.build()); onChanged(); } else { pointsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public Builder addPoints(org.box2d.proto.Box2D.PbVec2 value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePointsIsMutable(); points_.add(value); onChanged(); } else { pointsBuilder_.addMessage(value); } return this; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public Builder addPoints( int index, org.box2d.proto.Box2D.PbVec2 value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePointsIsMutable(); points_.add(index, value); onChanged(); } else { pointsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public Builder addPoints( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.add(builderForValue.build()); onChanged(); } else { pointsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public Builder addPoints( int index, org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.add(index, builderForValue.build()); onChanged(); } else { pointsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public Builder addAllPoints( java.lang.Iterable<? extends org.box2d.proto.Box2D.PbVec2> values) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); super.addAll(values, points_); onChanged(); } else { pointsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public Builder clearPoints() { if (pointsBuilder_ == null) { points_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { pointsBuilder_.clear(); } return this; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public Builder removePoints(int index) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.remove(index); onChanged(); } else { pointsBuilder_.remove(index); } return this; } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getPointsBuilder( int index) { return getPointsFieldBuilder().getBuilder(index); } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getPointsOrBuilder( int index) { if (pointsBuilder_ == null) { return points_.get(index); } else { return pointsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder> getPointsOrBuilderList() { if (pointsBuilder_ != null) { return pointsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(points_); } } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder addPointsBuilder() { return getPointsFieldBuilder().addBuilder( org.box2d.proto.Box2D.PbVec2.getDefaultInstance()); } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder addPointsBuilder( int index) { return getPointsFieldBuilder().addBuilder( index, org.box2d.proto.Box2D.PbVec2.getDefaultInstance()); } /** * <code>repeated .box2d.PbVec2 points = 20;</code> * * <pre> * polygon, chain * </pre> */ public java.util.List<org.box2d.proto.Box2D.PbVec2.Builder> getPointsBuilderList() { return getPointsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getPointsFieldBuilder() { if (pointsBuilder_ == null) { pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( points_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); points_ = null; } return pointsBuilder_; } // repeated .box2d.PbVec2 normals = 21; private java.util.List<org.box2d.proto.Box2D.PbVec2> normals_ = java.util.Collections.emptyList(); private void ensureNormalsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { normals_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbVec2>(normals_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> normalsBuilder_; /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public java.util.List<org.box2d.proto.Box2D.PbVec2> getNormalsList() { if (normalsBuilder_ == null) { return java.util.Collections.unmodifiableList(normals_); } else { return normalsBuilder_.getMessageList(); } } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public int getNormalsCount() { if (normalsBuilder_ == null) { return normals_.size(); } else { return normalsBuilder_.getCount(); } } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2 getNormals(int index) { if (normalsBuilder_ == null) { return normals_.get(index); } else { return normalsBuilder_.getMessage(index); } } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public Builder setNormals( int index, org.box2d.proto.Box2D.PbVec2 value) { if (normalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNormalsIsMutable(); normals_.set(index, value); onChanged(); } else { normalsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public Builder setNormals( int index, org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (normalsBuilder_ == null) { ensureNormalsIsMutable(); normals_.set(index, builderForValue.build()); onChanged(); } else { normalsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public Builder addNormals(org.box2d.proto.Box2D.PbVec2 value) { if (normalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNormalsIsMutable(); normals_.add(value); onChanged(); } else { normalsBuilder_.addMessage(value); } return this; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public Builder addNormals( int index, org.box2d.proto.Box2D.PbVec2 value) { if (normalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNormalsIsMutable(); normals_.add(index, value); onChanged(); } else { normalsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public Builder addNormals( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (normalsBuilder_ == null) { ensureNormalsIsMutable(); normals_.add(builderForValue.build()); onChanged(); } else { normalsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public Builder addNormals( int index, org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (normalsBuilder_ == null) { ensureNormalsIsMutable(); normals_.add(index, builderForValue.build()); onChanged(); } else { normalsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public Builder addAllNormals( java.lang.Iterable<? extends org.box2d.proto.Box2D.PbVec2> values) { if (normalsBuilder_ == null) { ensureNormalsIsMutable(); super.addAll(values, normals_); onChanged(); } else { normalsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public Builder clearNormals() { if (normalsBuilder_ == null) { normals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { normalsBuilder_.clear(); } return this; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public Builder removeNormals(int index) { if (normalsBuilder_ == null) { ensureNormalsIsMutable(); normals_.remove(index); onChanged(); } else { normalsBuilder_.remove(index); } return this; } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getNormalsBuilder( int index) { return getNormalsFieldBuilder().getBuilder(index); } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getNormalsOrBuilder( int index) { if (normalsBuilder_ == null) { return normals_.get(index); } else { return normalsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder> getNormalsOrBuilderList() { if (normalsBuilder_ != null) { return normalsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(normals_); } } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder addNormalsBuilder() { return getNormalsFieldBuilder().addBuilder( org.box2d.proto.Box2D.PbVec2.getDefaultInstance()); } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder addNormalsBuilder( int index) { return getNormalsFieldBuilder().addBuilder( index, org.box2d.proto.Box2D.PbVec2.getDefaultInstance()); } /** * <code>repeated .box2d.PbVec2 normals = 21;</code> * * <pre> * polygon * </pre> */ public java.util.List<org.box2d.proto.Box2D.PbVec2.Builder> getNormalsBuilderList() { return getNormalsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getNormalsFieldBuilder() { if (normalsBuilder_ == null) { normalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( normals_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); normals_ = null; } return normalsBuilder_; } // optional .box2d.PbVec2 centroid = 22; private org.box2d.proto.Box2D.PbVec2 centroid_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> centroidBuilder_; /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public boolean hasCentroid() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2 getCentroid() { if (centroidBuilder_ == null) { return centroid_; } else { return centroidBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public Builder setCentroid(org.box2d.proto.Box2D.PbVec2 value) { if (centroidBuilder_ == null) { if (value == null) { throw new NullPointerException(); } centroid_ = value; onChanged(); } else { centroidBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public Builder setCentroid( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (centroidBuilder_ == null) { centroid_ = builderForValue.build(); onChanged(); } else { centroidBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public Builder mergeCentroid(org.box2d.proto.Box2D.PbVec2 value) { if (centroidBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && centroid_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { centroid_ = org.box2d.proto.Box2D.PbVec2.newBuilder(centroid_).mergeFrom(value).buildPartial(); } else { centroid_ = value; } onChanged(); } else { centroidBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public Builder clearCentroid() { if (centroidBuilder_ == null) { centroid_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { centroidBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getCentroidBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCentroidFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getCentroidOrBuilder() { if (centroidBuilder_ != null) { return centroidBuilder_.getMessageOrBuilder(); } else { return centroid_; } } /** * <code>optional .box2d.PbVec2 centroid = 22;</code> * * <pre> * polygon * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getCentroidFieldBuilder() { if (centroidBuilder_ == null) { centroidBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( centroid_, getParentForChildren(), isClean()); centroid_ = null; } return centroidBuilder_; } // optional .box2d.PbVec2 v0 = 30; private org.box2d.proto.Box2D.PbVec2 v0_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> v0Builder_; /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public boolean hasV0() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2 getV0() { if (v0Builder_ == null) { return v0_; } else { return v0Builder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public Builder setV0(org.box2d.proto.Box2D.PbVec2 value) { if (v0Builder_ == null) { if (value == null) { throw new NullPointerException(); } v0_ = value; onChanged(); } else { v0Builder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public Builder setV0( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (v0Builder_ == null) { v0_ = builderForValue.build(); onChanged(); } else { v0Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public Builder mergeV0(org.box2d.proto.Box2D.PbVec2 value) { if (v0Builder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && v0_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { v0_ = org.box2d.proto.Box2D.PbVec2.newBuilder(v0_).mergeFrom(value).buildPartial(); } else { v0_ = value; } onChanged(); } else { v0Builder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public Builder clearV0() { if (v0Builder_ == null) { v0_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { v0Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getV0Builder() { bitField0_ |= 0x00000080; onChanged(); return getV0FieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getV0OrBuilder() { if (v0Builder_ != null) { return v0Builder_.getMessageOrBuilder(); } else { return v0_; } } /** * <code>optional .box2d.PbVec2 v0 = 30;</code> * * <pre> * edge * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getV0FieldBuilder() { if (v0Builder_ == null) { v0Builder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( v0_, getParentForChildren(), isClean()); v0_ = null; } return v0Builder_; } // optional .box2d.PbVec2 v1 = 31; private org.box2d.proto.Box2D.PbVec2 v1_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> v1Builder_; /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public boolean hasV1() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2 getV1() { if (v1Builder_ == null) { return v1_; } else { return v1Builder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public Builder setV1(org.box2d.proto.Box2D.PbVec2 value) { if (v1Builder_ == null) { if (value == null) { throw new NullPointerException(); } v1_ = value; onChanged(); } else { v1Builder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public Builder setV1( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (v1Builder_ == null) { v1_ = builderForValue.build(); onChanged(); } else { v1Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public Builder mergeV1(org.box2d.proto.Box2D.PbVec2 value) { if (v1Builder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && v1_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { v1_ = org.box2d.proto.Box2D.PbVec2.newBuilder(v1_).mergeFrom(value).buildPartial(); } else { v1_ = value; } onChanged(); } else { v1Builder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public Builder clearV1() { if (v1Builder_ == null) { v1_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { v1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getV1Builder() { bitField0_ |= 0x00000100; onChanged(); return getV1FieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getV1OrBuilder() { if (v1Builder_ != null) { return v1Builder_.getMessageOrBuilder(); } else { return v1_; } } /** * <code>optional .box2d.PbVec2 v1 = 31;</code> * * <pre> * edge * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getV1FieldBuilder() { if (v1Builder_ == null) { v1Builder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( v1_, getParentForChildren(), isClean()); v1_ = null; } return v1Builder_; } // optional .box2d.PbVec2 v2 = 32; private org.box2d.proto.Box2D.PbVec2 v2_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> v2Builder_; /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public boolean hasV2() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2 getV2() { if (v2Builder_ == null) { return v2_; } else { return v2Builder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public Builder setV2(org.box2d.proto.Box2D.PbVec2 value) { if (v2Builder_ == null) { if (value == null) { throw new NullPointerException(); } v2_ = value; onChanged(); } else { v2Builder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public Builder setV2( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (v2Builder_ == null) { v2_ = builderForValue.build(); onChanged(); } else { v2Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public Builder mergeV2(org.box2d.proto.Box2D.PbVec2 value) { if (v2Builder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && v2_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { v2_ = org.box2d.proto.Box2D.PbVec2.newBuilder(v2_).mergeFrom(value).buildPartial(); } else { v2_ = value; } onChanged(); } else { v2Builder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public Builder clearV2() { if (v2Builder_ == null) { v2_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { v2Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getV2Builder() { bitField0_ |= 0x00000200; onChanged(); return getV2FieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getV2OrBuilder() { if (v2Builder_ != null) { return v2Builder_.getMessageOrBuilder(); } else { return v2_; } } /** * <code>optional .box2d.PbVec2 v2 = 32;</code> * * <pre> * edge * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getV2FieldBuilder() { if (v2Builder_ == null) { v2Builder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( v2_, getParentForChildren(), isClean()); v2_ = null; } return v2Builder_; } // optional .box2d.PbVec2 v3 = 33; private org.box2d.proto.Box2D.PbVec2 v3_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> v3Builder_; /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public boolean hasV3() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2 getV3() { if (v3Builder_ == null) { return v3_; } else { return v3Builder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public Builder setV3(org.box2d.proto.Box2D.PbVec2 value) { if (v3Builder_ == null) { if (value == null) { throw new NullPointerException(); } v3_ = value; onChanged(); } else { v3Builder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public Builder setV3( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (v3Builder_ == null) { v3_ = builderForValue.build(); onChanged(); } else { v3Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public Builder mergeV3(org.box2d.proto.Box2D.PbVec2 value) { if (v3Builder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && v3_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { v3_ = org.box2d.proto.Box2D.PbVec2.newBuilder(v3_).mergeFrom(value).buildPartial(); } else { v3_ = value; } onChanged(); } else { v3Builder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public Builder clearV3() { if (v3Builder_ == null) { v3_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { v3Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getV3Builder() { bitField0_ |= 0x00000400; onChanged(); return getV3FieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getV3OrBuilder() { if (v3Builder_ != null) { return v3Builder_.getMessageOrBuilder(); } else { return v3_; } } /** * <code>optional .box2d.PbVec2 v3 = 33;</code> * * <pre> * edge * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getV3FieldBuilder() { if (v3Builder_ == null) { v3Builder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( v3_, getParentForChildren(), isClean()); v3_ = null; } return v3Builder_; } // optional bool has0 = 34; private boolean has0_ ; /** * <code>optional bool has0 = 34;</code> * * <pre> * edge, chain * </pre> */ public boolean hasHas0() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional bool has0 = 34;</code> * * <pre> * edge, chain * </pre> */ public boolean getHas0() { return has0_; } /** * <code>optional bool has0 = 34;</code> * * <pre> * edge, chain * </pre> */ public Builder setHas0(boolean value) { bitField0_ |= 0x00000800; has0_ = value; onChanged(); return this; } /** * <code>optional bool has0 = 34;</code> * * <pre> * edge, chain * </pre> */ public Builder clearHas0() { bitField0_ = (bitField0_ & ~0x00000800); has0_ = false; onChanged(); return this; } // optional bool has3 = 35; private boolean has3_ ; /** * <code>optional bool has3 = 35;</code> * * <pre> * edge, chain * </pre> */ public boolean hasHas3() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional bool has3 = 35;</code> * * <pre> * edge, chain * </pre> */ public boolean getHas3() { return has3_; } /** * <code>optional bool has3 = 35;</code> * * <pre> * edge, chain * </pre> */ public Builder setHas3(boolean value) { bitField0_ |= 0x00001000; has3_ = value; onChanged(); return this; } /** * <code>optional bool has3 = 35;</code> * * <pre> * edge, chain * </pre> */ public Builder clearHas3() { bitField0_ = (bitField0_ & ~0x00001000); has3_ = false; onChanged(); return this; } // optional .box2d.PbVec2 prev = 40; private org.box2d.proto.Box2D.PbVec2 prev_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> prevBuilder_; /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public boolean hasPrev() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2 getPrev() { if (prevBuilder_ == null) { return prev_; } else { return prevBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public Builder setPrev(org.box2d.proto.Box2D.PbVec2 value) { if (prevBuilder_ == null) { if (value == null) { throw new NullPointerException(); } prev_ = value; onChanged(); } else { prevBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public Builder setPrev( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (prevBuilder_ == null) { prev_ = builderForValue.build(); onChanged(); } else { prevBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public Builder mergePrev(org.box2d.proto.Box2D.PbVec2 value) { if (prevBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && prev_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { prev_ = org.box2d.proto.Box2D.PbVec2.newBuilder(prev_).mergeFrom(value).buildPartial(); } else { prev_ = value; } onChanged(); } else { prevBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public Builder clearPrev() { if (prevBuilder_ == null) { prev_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { prevBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getPrevBuilder() { bitField0_ |= 0x00002000; onChanged(); return getPrevFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getPrevOrBuilder() { if (prevBuilder_ != null) { return prevBuilder_.getMessageOrBuilder(); } else { return prev_; } } /** * <code>optional .box2d.PbVec2 prev = 40;</code> * * <pre> * chain * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getPrevFieldBuilder() { if (prevBuilder_ == null) { prevBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( prev_, getParentForChildren(), isClean()); prev_ = null; } return prevBuilder_; } // optional .box2d.PbVec2 next = 41; private org.box2d.proto.Box2D.PbVec2 next_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> nextBuilder_; /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public boolean hasNext() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2 getNext() { if (nextBuilder_ == null) { return next_; } else { return nextBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public Builder setNext(org.box2d.proto.Box2D.PbVec2 value) { if (nextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } next_ = value; onChanged(); } else { nextBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public Builder setNext( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (nextBuilder_ == null) { next_ = builderForValue.build(); onChanged(); } else { nextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public Builder mergeNext(org.box2d.proto.Box2D.PbVec2 value) { if (nextBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && next_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { next_ = org.box2d.proto.Box2D.PbVec2.newBuilder(next_).mergeFrom(value).buildPartial(); } else { next_ = value; } onChanged(); } else { nextBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public Builder clearNext() { if (nextBuilder_ == null) { next_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { nextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getNextBuilder() { bitField0_ |= 0x00004000; onChanged(); return getNextFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getNextOrBuilder() { if (nextBuilder_ != null) { return nextBuilder_.getMessageOrBuilder(); } else { return next_; } } /** * <code>optional .box2d.PbVec2 next = 41;</code> * * <pre> * chain * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getNextFieldBuilder() { if (nextBuilder_ == null) { nextBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( next_, getParentForChildren(), isClean()); next_ = null; } return nextBuilder_; } // @@protoc_insertion_point(builder_scope:box2d.PbShape) } static { defaultInstance = new PbShape(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:box2d.PbShape) } public interface PbFixtureOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 tag = 1; /** * <code>optional int64 tag = 1;</code> */ boolean hasTag(); /** * <code>optional int64 tag = 1;</code> */ long getTag(); // optional float restitution = 2; /** * <code>optional float restitution = 2;</code> */ boolean hasRestitution(); /** * <code>optional float restitution = 2;</code> */ float getRestitution(); // optional float friction = 3; /** * <code>optional float friction = 3;</code> */ boolean hasFriction(); /** * <code>optional float friction = 3;</code> */ float getFriction(); // optional float density = 4; /** * <code>optional float density = 4;</code> */ boolean hasDensity(); /** * <code>optional float density = 4;</code> */ float getDensity(); // optional bool sensor = 5; /** * <code>optional bool sensor = 5;</code> */ boolean hasSensor(); /** * <code>optional bool sensor = 5;</code> */ boolean getSensor(); // optional .box2d.PbFilter filter = 10; /** * <code>optional .box2d.PbFilter filter = 10;</code> */ boolean hasFilter(); /** * <code>optional .box2d.PbFilter filter = 10;</code> */ org.box2d.proto.Box2D.PbFilter getFilter(); /** * <code>optional .box2d.PbFilter filter = 10;</code> */ org.box2d.proto.Box2D.PbFilterOrBuilder getFilterOrBuilder(); // optional .box2d.PbShape shape = 11; /** * <code>optional .box2d.PbShape shape = 11;</code> */ boolean hasShape(); /** * <code>optional .box2d.PbShape shape = 11;</code> */ org.box2d.proto.Box2D.PbShape getShape(); /** * <code>optional .box2d.PbShape shape = 11;</code> */ org.box2d.proto.Box2D.PbShapeOrBuilder getShapeOrBuilder(); } /** * Protobuf type {@code box2d.PbFixture} */ public static final class PbFixture extends com.google.protobuf.GeneratedMessage implements PbFixtureOrBuilder { // Use PbFixture.newBuilder() to construct. private PbFixture(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PbFixture(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PbFixture defaultInstance; public static PbFixture getDefaultInstance() { return defaultInstance; } public PbFixture getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PbFixture( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; tag_ = input.readInt64(); break; } case 21: { bitField0_ |= 0x00000002; restitution_ = input.readFloat(); break; } case 29: { bitField0_ |= 0x00000004; friction_ = input.readFloat(); break; } case 37: { bitField0_ |= 0x00000008; density_ = input.readFloat(); break; } case 40: { bitField0_ |= 0x00000010; sensor_ = input.readBool(); break; } case 82: { org.box2d.proto.Box2D.PbFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = filter_.toBuilder(); } filter_ = input.readMessage(org.box2d.proto.Box2D.PbFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(filter_); filter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 90: { org.box2d.proto.Box2D.PbShape.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = shape_.toBuilder(); } shape_ = input.readMessage(org.box2d.proto.Box2D.PbShape.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shape_); shape_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; 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 org.box2d.proto.Box2D.internal_static_box2d_PbFixture_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbFixture_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbFixture.class, org.box2d.proto.Box2D.PbFixture.Builder.class); } public static com.google.protobuf.Parser<PbFixture> PARSER = new com.google.protobuf.AbstractParser<PbFixture>() { public PbFixture parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PbFixture(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PbFixture> getParserForType() { return PARSER; } private int bitField0_; // optional int64 tag = 1; public static final int TAG_FIELD_NUMBER = 1; private long tag_; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } // optional float restitution = 2; public static final int RESTITUTION_FIELD_NUMBER = 2; private float restitution_; /** * <code>optional float restitution = 2;</code> */ public boolean hasRestitution() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional float restitution = 2;</code> */ public float getRestitution() { return restitution_; } // optional float friction = 3; public static final int FRICTION_FIELD_NUMBER = 3; private float friction_; /** * <code>optional float friction = 3;</code> */ public boolean hasFriction() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional float friction = 3;</code> */ public float getFriction() { return friction_; } // optional float density = 4; public static final int DENSITY_FIELD_NUMBER = 4; private float density_; /** * <code>optional float density = 4;</code> */ public boolean hasDensity() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional float density = 4;</code> */ public float getDensity() { return density_; } // optional bool sensor = 5; public static final int SENSOR_FIELD_NUMBER = 5; private boolean sensor_; /** * <code>optional bool sensor = 5;</code> */ public boolean hasSensor() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool sensor = 5;</code> */ public boolean getSensor() { return sensor_; } // optional .box2d.PbFilter filter = 10; public static final int FILTER_FIELD_NUMBER = 10; private org.box2d.proto.Box2D.PbFilter filter_; /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public boolean hasFilter() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public org.box2d.proto.Box2D.PbFilter getFilter() { return filter_; } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public org.box2d.proto.Box2D.PbFilterOrBuilder getFilterOrBuilder() { return filter_; } // optional .box2d.PbShape shape = 11; public static final int SHAPE_FIELD_NUMBER = 11; private org.box2d.proto.Box2D.PbShape shape_; /** * <code>optional .box2d.PbShape shape = 11;</code> */ public boolean hasShape() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .box2d.PbShape shape = 11;</code> */ public org.box2d.proto.Box2D.PbShape getShape() { return shape_; } /** * <code>optional .box2d.PbShape shape = 11;</code> */ public org.box2d.proto.Box2D.PbShapeOrBuilder getShapeOrBuilder() { return shape_; } private void initFields() { tag_ = 0L; restitution_ = 0F; friction_ = 0F; density_ = 0F; sensor_ = false; filter_ = org.box2d.proto.Box2D.PbFilter.getDefaultInstance(); shape_ = org.box2d.proto.Box2D.PbShape.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasShape()) { if (!getShape().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeFloat(2, restitution_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeFloat(3, friction_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeFloat(4, density_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, sensor_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(10, filter_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(11, shape_); } 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 .computeInt64Size(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, restitution_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, friction_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, density_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, sensor_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, filter_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, shape_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.box2d.proto.Box2D.PbFixture parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbFixture parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbFixture parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbFixture parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbFixture parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbFixture parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbFixture parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.box2d.proto.Box2D.PbFixture parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbFixture parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbFixture 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(org.box2d.proto.Box2D.PbFixture prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code box2d.PbFixture} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.box2d.proto.Box2D.PbFixtureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbFixture_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbFixture_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbFixture.class, org.box2d.proto.Box2D.PbFixture.Builder.class); } // Construct using org.box2d.proto.Box2D.PbFixture.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFilterFieldBuilder(); getShapeFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); tag_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); restitution_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); friction_ = 0F; bitField0_ = (bitField0_ & ~0x00000004); density_ = 0F; bitField0_ = (bitField0_ & ~0x00000008); sensor_ = false; bitField0_ = (bitField0_ & ~0x00000010); if (filterBuilder_ == null) { filter_ = org.box2d.proto.Box2D.PbFilter.getDefaultInstance(); } else { filterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (shapeBuilder_ == null) { shape_ = org.box2d.proto.Box2D.PbShape.getDefaultInstance(); } else { shapeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.box2d.proto.Box2D.internal_static_box2d_PbFixture_descriptor; } public org.box2d.proto.Box2D.PbFixture getDefaultInstanceForType() { return org.box2d.proto.Box2D.PbFixture.getDefaultInstance(); } public org.box2d.proto.Box2D.PbFixture build() { org.box2d.proto.Box2D.PbFixture result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.box2d.proto.Box2D.PbFixture buildPartial() { org.box2d.proto.Box2D.PbFixture result = new org.box2d.proto.Box2D.PbFixture(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.restitution_ = restitution_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.friction_ = friction_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.density_ = density_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.sensor_ = sensor_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (filterBuilder_ == null) { result.filter_ = filter_; } else { result.filter_ = filterBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (shapeBuilder_ == null) { result.shape_ = shape_; } else { result.shape_ = shapeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.box2d.proto.Box2D.PbFixture) { return mergeFrom((org.box2d.proto.Box2D.PbFixture)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.box2d.proto.Box2D.PbFixture other) { if (other == org.box2d.proto.Box2D.PbFixture.getDefaultInstance()) return this; if (other.hasTag()) { setTag(other.getTag()); } if (other.hasRestitution()) { setRestitution(other.getRestitution()); } if (other.hasFriction()) { setFriction(other.getFriction()); } if (other.hasDensity()) { setDensity(other.getDensity()); } if (other.hasSensor()) { setSensor(other.getSensor()); } if (other.hasFilter()) { mergeFilter(other.getFilter()); } if (other.hasShape()) { mergeShape(other.getShape()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasShape()) { if (!getShape().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.box2d.proto.Box2D.PbFixture parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.box2d.proto.Box2D.PbFixture) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 tag = 1; private long tag_ ; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } /** * <code>optional int64 tag = 1;</code> */ public Builder setTag(long value) { bitField0_ |= 0x00000001; tag_ = value; onChanged(); return this; } /** * <code>optional int64 tag = 1;</code> */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000001); tag_ = 0L; onChanged(); return this; } // optional float restitution = 2; private float restitution_ ; /** * <code>optional float restitution = 2;</code> */ public boolean hasRestitution() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional float restitution = 2;</code> */ public float getRestitution() { return restitution_; } /** * <code>optional float restitution = 2;</code> */ public Builder setRestitution(float value) { bitField0_ |= 0x00000002; restitution_ = value; onChanged(); return this; } /** * <code>optional float restitution = 2;</code> */ public Builder clearRestitution() { bitField0_ = (bitField0_ & ~0x00000002); restitution_ = 0F; onChanged(); return this; } // optional float friction = 3; private float friction_ ; /** * <code>optional float friction = 3;</code> */ public boolean hasFriction() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional float friction = 3;</code> */ public float getFriction() { return friction_; } /** * <code>optional float friction = 3;</code> */ public Builder setFriction(float value) { bitField0_ |= 0x00000004; friction_ = value; onChanged(); return this; } /** * <code>optional float friction = 3;</code> */ public Builder clearFriction() { bitField0_ = (bitField0_ & ~0x00000004); friction_ = 0F; onChanged(); return this; } // optional float density = 4; private float density_ ; /** * <code>optional float density = 4;</code> */ public boolean hasDensity() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional float density = 4;</code> */ public float getDensity() { return density_; } /** * <code>optional float density = 4;</code> */ public Builder setDensity(float value) { bitField0_ |= 0x00000008; density_ = value; onChanged(); return this; } /** * <code>optional float density = 4;</code> */ public Builder clearDensity() { bitField0_ = (bitField0_ & ~0x00000008); density_ = 0F; onChanged(); return this; } // optional bool sensor = 5; private boolean sensor_ ; /** * <code>optional bool sensor = 5;</code> */ public boolean hasSensor() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool sensor = 5;</code> */ public boolean getSensor() { return sensor_; } /** * <code>optional bool sensor = 5;</code> */ public Builder setSensor(boolean value) { bitField0_ |= 0x00000010; sensor_ = value; onChanged(); return this; } /** * <code>optional bool sensor = 5;</code> */ public Builder clearSensor() { bitField0_ = (bitField0_ & ~0x00000010); sensor_ = false; onChanged(); return this; } // optional .box2d.PbFilter filter = 10; private org.box2d.proto.Box2D.PbFilter filter_ = org.box2d.proto.Box2D.PbFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbFilter, org.box2d.proto.Box2D.PbFilter.Builder, org.box2d.proto.Box2D.PbFilterOrBuilder> filterBuilder_; /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public boolean hasFilter() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public org.box2d.proto.Box2D.PbFilter getFilter() { if (filterBuilder_ == null) { return filter_; } else { return filterBuilder_.getMessage(); } } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public Builder setFilter(org.box2d.proto.Box2D.PbFilter value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); } else { filterBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public Builder setFilter( org.box2d.proto.Box2D.PbFilter.Builder builderForValue) { if (filterBuilder_ == null) { filter_ = builderForValue.build(); onChanged(); } else { filterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public Builder mergeFilter(org.box2d.proto.Box2D.PbFilter value) { if (filterBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && filter_ != org.box2d.proto.Box2D.PbFilter.getDefaultInstance()) { filter_ = org.box2d.proto.Box2D.PbFilter.newBuilder(filter_).mergeFrom(value).buildPartial(); } else { filter_ = value; } onChanged(); } else { filterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public Builder clearFilter() { if (filterBuilder_ == null) { filter_ = org.box2d.proto.Box2D.PbFilter.getDefaultInstance(); onChanged(); } else { filterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public org.box2d.proto.Box2D.PbFilter.Builder getFilterBuilder() { bitField0_ |= 0x00000020; onChanged(); return getFilterFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ public org.box2d.proto.Box2D.PbFilterOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { return filter_; } } /** * <code>optional .box2d.PbFilter filter = 10;</code> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbFilter, org.box2d.proto.Box2D.PbFilter.Builder, org.box2d.proto.Box2D.PbFilterOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { filterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbFilter, org.box2d.proto.Box2D.PbFilter.Builder, org.box2d.proto.Box2D.PbFilterOrBuilder>( filter_, getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; } // optional .box2d.PbShape shape = 11; private org.box2d.proto.Box2D.PbShape shape_ = org.box2d.proto.Box2D.PbShape.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbShape, org.box2d.proto.Box2D.PbShape.Builder, org.box2d.proto.Box2D.PbShapeOrBuilder> shapeBuilder_; /** * <code>optional .box2d.PbShape shape = 11;</code> */ public boolean hasShape() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .box2d.PbShape shape = 11;</code> */ public org.box2d.proto.Box2D.PbShape getShape() { if (shapeBuilder_ == null) { return shape_; } else { return shapeBuilder_.getMessage(); } } /** * <code>optional .box2d.PbShape shape = 11;</code> */ public Builder setShape(org.box2d.proto.Box2D.PbShape value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shape_ = value; onChanged(); } else { shapeBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .box2d.PbShape shape = 11;</code> */ public Builder setShape( org.box2d.proto.Box2D.PbShape.Builder builderForValue) { if (shapeBuilder_ == null) { shape_ = builderForValue.build(); onChanged(); } else { shapeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .box2d.PbShape shape = 11;</code> */ public Builder mergeShape(org.box2d.proto.Box2D.PbShape value) { if (shapeBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && shape_ != org.box2d.proto.Box2D.PbShape.getDefaultInstance()) { shape_ = org.box2d.proto.Box2D.PbShape.newBuilder(shape_).mergeFrom(value).buildPartial(); } else { shape_ = value; } onChanged(); } else { shapeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .box2d.PbShape shape = 11;</code> */ public Builder clearShape() { if (shapeBuilder_ == null) { shape_ = org.box2d.proto.Box2D.PbShape.getDefaultInstance(); onChanged(); } else { shapeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * <code>optional .box2d.PbShape shape = 11;</code> */ public org.box2d.proto.Box2D.PbShape.Builder getShapeBuilder() { bitField0_ |= 0x00000040; onChanged(); return getShapeFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbShape shape = 11;</code> */ public org.box2d.proto.Box2D.PbShapeOrBuilder getShapeOrBuilder() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilder(); } else { return shape_; } } /** * <code>optional .box2d.PbShape shape = 11;</code> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbShape, org.box2d.proto.Box2D.PbShape.Builder, org.box2d.proto.Box2D.PbShapeOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbShape, org.box2d.proto.Box2D.PbShape.Builder, org.box2d.proto.Box2D.PbShapeOrBuilder>( shape_, getParentForChildren(), isClean()); shape_ = null; } return shapeBuilder_; } // @@protoc_insertion_point(builder_scope:box2d.PbFixture) } static { defaultInstance = new PbFixture(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:box2d.PbFixture) } public interface PbJointOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 tag = 1; /** * <code>optional int64 tag = 1;</code> */ boolean hasTag(); /** * <code>optional int64 tag = 1;</code> */ long getTag(); // required .box2d.PbJointType type = 2; /** * <code>required .box2d.PbJointType type = 2;</code> */ boolean hasType(); /** * <code>required .box2d.PbJointType type = 2;</code> */ org.box2d.proto.Box2D.PbJointType getType(); // optional int32 body_a = 3; /** * <code>optional int32 body_a = 3;</code> */ boolean hasBodyA(); /** * <code>optional int32 body_a = 3;</code> */ int getBodyA(); // optional int32 body_b = 4; /** * <code>optional int32 body_b = 4;</code> */ boolean hasBodyB(); /** * <code>optional int32 body_b = 4;</code> */ int getBodyB(); // optional bool collideConnected = 5; /** * <code>optional bool collideConnected = 5;</code> */ boolean hasCollideConnected(); /** * <code>optional bool collideConnected = 5;</code> */ boolean getCollideConnected(); // optional .box2d.PbVec2 local_anchor_a = 6; /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ boolean hasLocalAnchorA(); /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ org.box2d.proto.Box2D.PbVec2 getLocalAnchorA(); /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAnchorAOrBuilder(); // optional .box2d.PbVec2 local_anchor_b = 7; /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ boolean hasLocalAnchorB(); /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ org.box2d.proto.Box2D.PbVec2 getLocalAnchorB(); /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAnchorBOrBuilder(); // optional float ref_angle = 10; /** * <code>optional float ref_angle = 10;</code> * * <pre> * revolute, prismatic, joint * </pre> */ boolean hasRefAngle(); /** * <code>optional float ref_angle = 10;</code> * * <pre> * revolute, prismatic, joint * </pre> */ float getRefAngle(); // optional bool enable_limit = 12; /** * <code>optional bool enable_limit = 12;</code> * * <pre> * revolute, prismatic * </pre> */ boolean hasEnableLimit(); /** * <code>optional bool enable_limit = 12;</code> * * <pre> * revolute, prismatic * </pre> */ boolean getEnableLimit(); // optional float lower_limit = 13; /** * <code>optional float lower_limit = 13;</code> * * <pre> * revolute, prismatic * </pre> */ boolean hasLowerLimit(); /** * <code>optional float lower_limit = 13;</code> * * <pre> * revolute, prismatic * </pre> */ float getLowerLimit(); // optional float upper_limit = 14; /** * <code>optional float upper_limit = 14;</code> * * <pre> * revolute, prismatic * </pre> */ boolean hasUpperLimit(); /** * <code>optional float upper_limit = 14;</code> * * <pre> * revolute, prismatic * </pre> */ float getUpperLimit(); // optional bool enable_motor = 15; /** * <code>optional bool enable_motor = 15;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ boolean hasEnableMotor(); /** * <code>optional bool enable_motor = 15;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ boolean getEnableMotor(); // optional float motor_speed = 16; /** * <code>optional float motor_speed = 16;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ boolean hasMotorSpeed(); /** * <code>optional float motor_speed = 16;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ float getMotorSpeed(); // optional float max_motor_torque = 17; /** * <code>optional float max_motor_torque = 17;</code> * * <pre> * revolute, wheel * </pre> */ boolean hasMaxMotorTorque(); /** * <code>optional float max_motor_torque = 17;</code> * * <pre> * revolute, wheel * </pre> */ float getMaxMotorTorque(); // optional .box2d.PbVec2 local_axis_a = 20; /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ boolean hasLocalAxisA(); /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ org.box2d.proto.Box2D.PbVec2 getLocalAxisA(); /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAxisAOrBuilder(); // optional float max_motor_force = 21; /** * <code>optional float max_motor_force = 21;</code> * * <pre> * prismatic * </pre> */ boolean hasMaxMotorForce(); /** * <code>optional float max_motor_force = 21;</code> * * <pre> * prismatic * </pre> */ float getMaxMotorForce(); // optional float length = 30; /** * <code>optional float length = 30;</code> * * <pre> * distance * </pre> */ boolean hasLength(); /** * <code>optional float length = 30;</code> * * <pre> * distance * </pre> */ float getLength(); // optional float frequency = 31; /** * <code>optional float frequency = 31;</code> * * <pre> * distance, mouse, wheel, weld, con vol * </pre> */ boolean hasFrequency(); /** * <code>optional float frequency = 31;</code> * * <pre> * distance, mouse, wheel, weld, con vol * </pre> */ float getFrequency(); // optional float damping_ratio = 32; /** * <code>optional float damping_ratio = 32;</code> * * <pre> * distance, mouse, wheel, weld, col vol * </pre> */ boolean hasDampingRatio(); /** * <code>optional float damping_ratio = 32;</code> * * <pre> * distance, mouse, wheel, weld, col vol * </pre> */ float getDampingRatio(); // optional .box2d.PbVec2 ground_anchor_a = 40; /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ boolean hasGroundAnchorA(); /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ org.box2d.proto.Box2D.PbVec2 getGroundAnchorA(); /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getGroundAnchorAOrBuilder(); // optional .box2d.PbVec2 ground_anchor_b = 41; /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ boolean hasGroundAnchorB(); /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ org.box2d.proto.Box2D.PbVec2 getGroundAnchorB(); /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getGroundAnchorBOrBuilder(); // optional float length_a = 42; /** * <code>optional float length_a = 42;</code> * * <pre> * pulley * </pre> */ boolean hasLengthA(); /** * <code>optional float length_a = 42;</code> * * <pre> * pulley * </pre> */ float getLengthA(); // optional float length_b = 43; /** * <code>optional float length_b = 43;</code> * * <pre> * pulley * </pre> */ boolean hasLengthB(); /** * <code>optional float length_b = 43;</code> * * <pre> * pulley * </pre> */ float getLengthB(); // optional float ratio = 44; /** * <code>optional float ratio = 44;</code> * * <pre> * pulley, gear * </pre> */ boolean hasRatio(); /** * <code>optional float ratio = 44;</code> * * <pre> * pulley, gear * </pre> */ float getRatio(); // optional .box2d.PbVec2 target = 50; /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ boolean hasTarget(); /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ org.box2d.proto.Box2D.PbVec2 getTarget(); /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getTargetOrBuilder(); // optional float max_force = 51; /** * <code>optional float max_force = 51;</code> * * <pre> * mouse, friction, rope * </pre> */ boolean hasMaxForce(); /** * <code>optional float max_force = 51;</code> * * <pre> * mouse, friction, rope * </pre> */ float getMaxForce(); // optional int32 joint1 = 61; /** * <code>optional int32 joint1 = 61;</code> * * <pre> * gear * </pre> */ boolean hasJoint1(); /** * <code>optional int32 joint1 = 61;</code> * * <pre> * gear * </pre> */ int getJoint1(); // optional int32 joint2 = 62; /** * <code>optional int32 joint2 = 62;</code> * * <pre> * gear * </pre> */ boolean hasJoint2(); /** * <code>optional int32 joint2 = 62;</code> * * <pre> * gear * </pre> */ int getJoint2(); // optional float max_torque = 90; /** * <code>optional float max_torque = 90;</code> * * <pre> * friction * </pre> */ boolean hasMaxTorque(); /** * <code>optional float max_torque = 90;</code> * * <pre> * friction * </pre> */ float getMaxTorque(); // optional float max_length = 100; /** * <code>optional float max_length = 100;</code> * * <pre> * rope * </pre> */ boolean hasMaxLength(); /** * <code>optional float max_length = 100;</code> * * <pre> * rope * </pre> */ float getMaxLength(); // repeated int32 bodies = 110; /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ java.util.List<java.lang.Integer> getBodiesList(); /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ int getBodiesCount(); /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ int getBodies(int index); // repeated int32 joints = 111; /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ java.util.List<java.lang.Integer> getJointsList(); /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ int getJointsCount(); /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ int getJoints(int index); } /** * Protobuf type {@code box2d.PbJoint} */ public static final class PbJoint extends com.google.protobuf.GeneratedMessage implements PbJointOrBuilder { // Use PbJoint.newBuilder() to construct. private PbJoint(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PbJoint(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PbJoint defaultInstance; public static PbJoint getDefaultInstance() { return defaultInstance; } public PbJoint getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PbJoint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; tag_ = input.readInt64(); break; } case 16: { int rawValue = input.readEnum(); org.box2d.proto.Box2D.PbJointType value = org.box2d.proto.Box2D.PbJointType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; type_ = value; } break; } case 24: { bitField0_ |= 0x00000004; bodyA_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; bodyB_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; collideConnected_ = input.readBool(); break; } case 50: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = localAnchorA_.toBuilder(); } localAnchorA_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localAnchorA_); localAnchorA_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = localAnchorB_.toBuilder(); } localAnchorB_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localAnchorB_); localAnchorB_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 85: { bitField0_ |= 0x00000080; refAngle_ = input.readFloat(); break; } case 96: { bitField0_ |= 0x00000100; enableLimit_ = input.readBool(); break; } case 109: { bitField0_ |= 0x00000200; lowerLimit_ = input.readFloat(); break; } case 117: { bitField0_ |= 0x00000400; upperLimit_ = input.readFloat(); break; } case 120: { bitField0_ |= 0x00000800; enableMotor_ = input.readBool(); break; } case 133: { bitField0_ |= 0x00001000; motorSpeed_ = input.readFloat(); break; } case 141: { bitField0_ |= 0x00002000; maxMotorTorque_ = input.readFloat(); break; } case 162: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00004000) == 0x00004000)) { subBuilder = localAxisA_.toBuilder(); } localAxisA_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localAxisA_); localAxisA_ = subBuilder.buildPartial(); } bitField0_ |= 0x00004000; break; } case 173: { bitField0_ |= 0x00008000; maxMotorForce_ = input.readFloat(); break; } case 245: { bitField0_ |= 0x00010000; length_ = input.readFloat(); break; } case 253: { bitField0_ |= 0x00020000; frequency_ = input.readFloat(); break; } case 261: { bitField0_ |= 0x00040000; dampingRatio_ = input.readFloat(); break; } case 322: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00080000) == 0x00080000)) { subBuilder = groundAnchorA_.toBuilder(); } groundAnchorA_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(groundAnchorA_); groundAnchorA_ = subBuilder.buildPartial(); } bitField0_ |= 0x00080000; break; } case 330: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00100000) == 0x00100000)) { subBuilder = groundAnchorB_.toBuilder(); } groundAnchorB_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(groundAnchorB_); groundAnchorB_ = subBuilder.buildPartial(); } bitField0_ |= 0x00100000; break; } case 341: { bitField0_ |= 0x00200000; lengthA_ = input.readFloat(); break; } case 349: { bitField0_ |= 0x00400000; lengthB_ = input.readFloat(); break; } case 357: { bitField0_ |= 0x00800000; ratio_ = input.readFloat(); break; } case 402: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x01000000) == 0x01000000)) { subBuilder = target_.toBuilder(); } target_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(target_); target_ = subBuilder.buildPartial(); } bitField0_ |= 0x01000000; break; } case 413: { bitField0_ |= 0x02000000; maxForce_ = input.readFloat(); break; } case 488: { bitField0_ |= 0x04000000; joint1_ = input.readInt32(); break; } case 496: { bitField0_ |= 0x08000000; joint2_ = input.readInt32(); break; } case 725: { bitField0_ |= 0x10000000; maxTorque_ = input.readFloat(); break; } case 805: { bitField0_ |= 0x20000000; maxLength_ = input.readFloat(); break; } case 880: { if (!((mutable_bitField0_ & 0x40000000) == 0x40000000)) { bodies_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x40000000; } bodies_.add(input.readInt32()); break; } case 882: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x40000000) == 0x40000000) && input.getBytesUntilLimit() > 0) { bodies_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x40000000; } while (input.getBytesUntilLimit() > 0) { bodies_.add(input.readInt32()); } input.popLimit(limit); break; } case 888: { if (!((mutable_bitField0_ & 0x80000000) == 0x80000000)) { joints_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x80000000; } joints_.add(input.readInt32()); break; } case 890: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x80000000) == 0x80000000) && input.getBytesUntilLimit() > 0) { joints_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x80000000; } while (input.getBytesUntilLimit() > 0) { joints_.add(input.readInt32()); } input.popLimit(limit); 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_ & 0x40000000) == 0x40000000)) { bodies_ = java.util.Collections.unmodifiableList(bodies_); } if (((mutable_bitField0_ & 0x80000000) == 0x80000000)) { joints_ = java.util.Collections.unmodifiableList(joints_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbJoint_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbJoint_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbJoint.class, org.box2d.proto.Box2D.PbJoint.Builder.class); } public static com.google.protobuf.Parser<PbJoint> PARSER = new com.google.protobuf.AbstractParser<PbJoint>() { public PbJoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PbJoint(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PbJoint> getParserForType() { return PARSER; } private int bitField0_; // optional int64 tag = 1; public static final int TAG_FIELD_NUMBER = 1; private long tag_; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } // required .box2d.PbJointType type = 2; public static final int TYPE_FIELD_NUMBER = 2; private org.box2d.proto.Box2D.PbJointType type_; /** * <code>required .box2d.PbJointType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .box2d.PbJointType type = 2;</code> */ public org.box2d.proto.Box2D.PbJointType getType() { return type_; } // optional int32 body_a = 3; public static final int BODY_A_FIELD_NUMBER = 3; private int bodyA_; /** * <code>optional int32 body_a = 3;</code> */ public boolean hasBodyA() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 body_a = 3;</code> */ public int getBodyA() { return bodyA_; } // optional int32 body_b = 4; public static final int BODY_B_FIELD_NUMBER = 4; private int bodyB_; /** * <code>optional int32 body_b = 4;</code> */ public boolean hasBodyB() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 body_b = 4;</code> */ public int getBodyB() { return bodyB_; } // optional bool collideConnected = 5; public static final int COLLIDECONNECTED_FIELD_NUMBER = 5; private boolean collideConnected_; /** * <code>optional bool collideConnected = 5;</code> */ public boolean hasCollideConnected() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool collideConnected = 5;</code> */ public boolean getCollideConnected() { return collideConnected_; } // optional .box2d.PbVec2 local_anchor_a = 6; public static final int LOCAL_ANCHOR_A_FIELD_NUMBER = 6; private org.box2d.proto.Box2D.PbVec2 localAnchorA_; /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public boolean hasLocalAnchorA() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public org.box2d.proto.Box2D.PbVec2 getLocalAnchorA() { return localAnchorA_; } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAnchorAOrBuilder() { return localAnchorA_; } // optional .box2d.PbVec2 local_anchor_b = 7; public static final int LOCAL_ANCHOR_B_FIELD_NUMBER = 7; private org.box2d.proto.Box2D.PbVec2 localAnchorB_; /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public boolean hasLocalAnchorB() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public org.box2d.proto.Box2D.PbVec2 getLocalAnchorB() { return localAnchorB_; } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAnchorBOrBuilder() { return localAnchorB_; } // optional float ref_angle = 10; public static final int REF_ANGLE_FIELD_NUMBER = 10; private float refAngle_; /** * <code>optional float ref_angle = 10;</code> * * <pre> * revolute, prismatic, joint * </pre> */ public boolean hasRefAngle() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional float ref_angle = 10;</code> * * <pre> * revolute, prismatic, joint * </pre> */ public float getRefAngle() { return refAngle_; } // optional bool enable_limit = 12; public static final int ENABLE_LIMIT_FIELD_NUMBER = 12; private boolean enableLimit_; /** * <code>optional bool enable_limit = 12;</code> * * <pre> * revolute, prismatic * </pre> */ public boolean hasEnableLimit() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional bool enable_limit = 12;</code> * * <pre> * revolute, prismatic * </pre> */ public boolean getEnableLimit() { return enableLimit_; } // optional float lower_limit = 13; public static final int LOWER_LIMIT_FIELD_NUMBER = 13; private float lowerLimit_; /** * <code>optional float lower_limit = 13;</code> * * <pre> * revolute, prismatic * </pre> */ public boolean hasLowerLimit() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional float lower_limit = 13;</code> * * <pre> * revolute, prismatic * </pre> */ public float getLowerLimit() { return lowerLimit_; } // optional float upper_limit = 14; public static final int UPPER_LIMIT_FIELD_NUMBER = 14; private float upperLimit_; /** * <code>optional float upper_limit = 14;</code> * * <pre> * revolute, prismatic * </pre> */ public boolean hasUpperLimit() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional float upper_limit = 14;</code> * * <pre> * revolute, prismatic * </pre> */ public float getUpperLimit() { return upperLimit_; } // optional bool enable_motor = 15; public static final int ENABLE_MOTOR_FIELD_NUMBER = 15; private boolean enableMotor_; /** * <code>optional bool enable_motor = 15;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public boolean hasEnableMotor() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional bool enable_motor = 15;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public boolean getEnableMotor() { return enableMotor_; } // optional float motor_speed = 16; public static final int MOTOR_SPEED_FIELD_NUMBER = 16; private float motorSpeed_; /** * <code>optional float motor_speed = 16;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public boolean hasMotorSpeed() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional float motor_speed = 16;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public float getMotorSpeed() { return motorSpeed_; } // optional float max_motor_torque = 17; public static final int MAX_MOTOR_TORQUE_FIELD_NUMBER = 17; private float maxMotorTorque_; /** * <code>optional float max_motor_torque = 17;</code> * * <pre> * revolute, wheel * </pre> */ public boolean hasMaxMotorTorque() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional float max_motor_torque = 17;</code> * * <pre> * revolute, wheel * </pre> */ public float getMaxMotorTorque() { return maxMotorTorque_; } // optional .box2d.PbVec2 local_axis_a = 20; public static final int LOCAL_AXIS_A_FIELD_NUMBER = 20; private org.box2d.proto.Box2D.PbVec2 localAxisA_; /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public boolean hasLocalAxisA() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public org.box2d.proto.Box2D.PbVec2 getLocalAxisA() { return localAxisA_; } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAxisAOrBuilder() { return localAxisA_; } // optional float max_motor_force = 21; public static final int MAX_MOTOR_FORCE_FIELD_NUMBER = 21; private float maxMotorForce_; /** * <code>optional float max_motor_force = 21;</code> * * <pre> * prismatic * </pre> */ public boolean hasMaxMotorForce() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional float max_motor_force = 21;</code> * * <pre> * prismatic * </pre> */ public float getMaxMotorForce() { return maxMotorForce_; } // optional float length = 30; public static final int LENGTH_FIELD_NUMBER = 30; private float length_; /** * <code>optional float length = 30;</code> * * <pre> * distance * </pre> */ public boolean hasLength() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * <code>optional float length = 30;</code> * * <pre> * distance * </pre> */ public float getLength() { return length_; } // optional float frequency = 31; public static final int FREQUENCY_FIELD_NUMBER = 31; private float frequency_; /** * <code>optional float frequency = 31;</code> * * <pre> * distance, mouse, wheel, weld, con vol * </pre> */ public boolean hasFrequency() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * <code>optional float frequency = 31;</code> * * <pre> * distance, mouse, wheel, weld, con vol * </pre> */ public float getFrequency() { return frequency_; } // optional float damping_ratio = 32; public static final int DAMPING_RATIO_FIELD_NUMBER = 32; private float dampingRatio_; /** * <code>optional float damping_ratio = 32;</code> * * <pre> * distance, mouse, wheel, weld, col vol * </pre> */ public boolean hasDampingRatio() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * <code>optional float damping_ratio = 32;</code> * * <pre> * distance, mouse, wheel, weld, col vol * </pre> */ public float getDampingRatio() { return dampingRatio_; } // optional .box2d.PbVec2 ground_anchor_a = 40; public static final int GROUND_ANCHOR_A_FIELD_NUMBER = 40; private org.box2d.proto.Box2D.PbVec2 groundAnchorA_; /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public boolean hasGroundAnchorA() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2 getGroundAnchorA() { return groundAnchorA_; } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getGroundAnchorAOrBuilder() { return groundAnchorA_; } // optional .box2d.PbVec2 ground_anchor_b = 41; public static final int GROUND_ANCHOR_B_FIELD_NUMBER = 41; private org.box2d.proto.Box2D.PbVec2 groundAnchorB_; /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public boolean hasGroundAnchorB() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2 getGroundAnchorB() { return groundAnchorB_; } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getGroundAnchorBOrBuilder() { return groundAnchorB_; } // optional float length_a = 42; public static final int LENGTH_A_FIELD_NUMBER = 42; private float lengthA_; /** * <code>optional float length_a = 42;</code> * * <pre> * pulley * </pre> */ public boolean hasLengthA() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * <code>optional float length_a = 42;</code> * * <pre> * pulley * </pre> */ public float getLengthA() { return lengthA_; } // optional float length_b = 43; public static final int LENGTH_B_FIELD_NUMBER = 43; private float lengthB_; /** * <code>optional float length_b = 43;</code> * * <pre> * pulley * </pre> */ public boolean hasLengthB() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * <code>optional float length_b = 43;</code> * * <pre> * pulley * </pre> */ public float getLengthB() { return lengthB_; } // optional float ratio = 44; public static final int RATIO_FIELD_NUMBER = 44; private float ratio_; /** * <code>optional float ratio = 44;</code> * * <pre> * pulley, gear * </pre> */ public boolean hasRatio() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * <code>optional float ratio = 44;</code> * * <pre> * pulley, gear * </pre> */ public float getRatio() { return ratio_; } // optional .box2d.PbVec2 target = 50; public static final int TARGET_FIELD_NUMBER = 50; private org.box2d.proto.Box2D.PbVec2 target_; /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public boolean hasTarget() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public org.box2d.proto.Box2D.PbVec2 getTarget() { return target_; } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getTargetOrBuilder() { return target_; } // optional float max_force = 51; public static final int MAX_FORCE_FIELD_NUMBER = 51; private float maxForce_; /** * <code>optional float max_force = 51;</code> * * <pre> * mouse, friction, rope * </pre> */ public boolean hasMaxForce() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * <code>optional float max_force = 51;</code> * * <pre> * mouse, friction, rope * </pre> */ public float getMaxForce() { return maxForce_; } // optional int32 joint1 = 61; public static final int JOINT1_FIELD_NUMBER = 61; private int joint1_; /** * <code>optional int32 joint1 = 61;</code> * * <pre> * gear * </pre> */ public boolean hasJoint1() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * <code>optional int32 joint1 = 61;</code> * * <pre> * gear * </pre> */ public int getJoint1() { return joint1_; } // optional int32 joint2 = 62; public static final int JOINT2_FIELD_NUMBER = 62; private int joint2_; /** * <code>optional int32 joint2 = 62;</code> * * <pre> * gear * </pre> */ public boolean hasJoint2() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * <code>optional int32 joint2 = 62;</code> * * <pre> * gear * </pre> */ public int getJoint2() { return joint2_; } // optional float max_torque = 90; public static final int MAX_TORQUE_FIELD_NUMBER = 90; private float maxTorque_; /** * <code>optional float max_torque = 90;</code> * * <pre> * friction * </pre> */ public boolean hasMaxTorque() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * <code>optional float max_torque = 90;</code> * * <pre> * friction * </pre> */ public float getMaxTorque() { return maxTorque_; } // optional float max_length = 100; public static final int MAX_LENGTH_FIELD_NUMBER = 100; private float maxLength_; /** * <code>optional float max_length = 100;</code> * * <pre> * rope * </pre> */ public boolean hasMaxLength() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * <code>optional float max_length = 100;</code> * * <pre> * rope * </pre> */ public float getMaxLength() { return maxLength_; } // repeated int32 bodies = 110; public static final int BODIES_FIELD_NUMBER = 110; private java.util.List<java.lang.Integer> bodies_; /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public java.util.List<java.lang.Integer> getBodiesList() { return bodies_; } /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public int getBodiesCount() { return bodies_.size(); } /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public int getBodies(int index) { return bodies_.get(index); } // repeated int32 joints = 111; public static final int JOINTS_FIELD_NUMBER = 111; private java.util.List<java.lang.Integer> joints_; /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public java.util.List<java.lang.Integer> getJointsList() { return joints_; } /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public int getJointsCount() { return joints_.size(); } /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public int getJoints(int index) { return joints_.get(index); } private void initFields() { tag_ = 0L; type_ = org.box2d.proto.Box2D.PbJointType.DISTANCE; bodyA_ = 0; bodyB_ = 0; collideConnected_ = false; localAnchorA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); localAnchorB_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); refAngle_ = 0F; enableLimit_ = false; lowerLimit_ = 0F; upperLimit_ = 0F; enableMotor_ = false; motorSpeed_ = 0F; maxMotorTorque_ = 0F; localAxisA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); maxMotorForce_ = 0F; length_ = 0F; frequency_ = 0F; dampingRatio_ = 0F; groundAnchorA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); groundAnchorB_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); lengthA_ = 0F; lengthB_ = 0F; ratio_ = 0F; target_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); maxForce_ = 0F; joint1_ = 0; joint2_ = 0; maxTorque_ = 0F; maxLength_ = 0F; bodies_ = java.util.Collections.emptyList(); joints_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasLocalAnchorA()) { if (!getLocalAnchorA().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLocalAnchorB()) { if (!getLocalAnchorB().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLocalAxisA()) { if (!getLocalAxisA().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGroundAnchorA()) { if (!getGroundAnchorA().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGroundAnchorB()) { if (!getGroundAnchorB().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasTarget()) { if (!getTarget().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, bodyA_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, bodyB_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, collideConnected_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, localAnchorA_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, localAnchorB_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeFloat(10, refAngle_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(12, enableLimit_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeFloat(13, lowerLimit_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeFloat(14, upperLimit_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBool(15, enableMotor_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeFloat(16, motorSpeed_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeFloat(17, maxMotorTorque_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeMessage(20, localAxisA_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeFloat(21, maxMotorForce_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeFloat(30, length_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeFloat(31, frequency_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeFloat(32, dampingRatio_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeMessage(40, groundAnchorA_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeMessage(41, groundAnchorB_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeFloat(42, lengthA_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeFloat(43, lengthB_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeFloat(44, ratio_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeMessage(50, target_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeFloat(51, maxForce_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeInt32(61, joint1_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeInt32(62, joint2_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { output.writeFloat(90, maxTorque_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { output.writeFloat(100, maxLength_); } for (int i = 0; i < bodies_.size(); i++) { output.writeInt32(110, bodies_.get(i)); } for (int i = 0; i < joints_.size(); i++) { output.writeInt32(111, joints_.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 .computeInt64Size(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, bodyA_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, bodyB_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, collideConnected_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, localAnchorA_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, localAnchorB_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(10, refAngle_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, enableLimit_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(13, lowerLimit_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(14, upperLimit_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, enableMotor_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(16, motorSpeed_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(17, maxMotorTorque_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, localAxisA_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(21, maxMotorForce_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(30, length_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(31, frequency_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(32, dampingRatio_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(40, groundAnchorA_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(41, groundAnchorB_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(42, lengthA_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(43, lengthB_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(44, ratio_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(50, target_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(51, maxForce_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(61, joint1_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(62, joint2_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(90, maxTorque_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(100, maxLength_); } { int dataSize = 0; for (int i = 0; i < bodies_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(bodies_.get(i)); } size += dataSize; size += 2 * getBodiesList().size(); } { int dataSize = 0; for (int i = 0; i < joints_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(joints_.get(i)); } size += dataSize; size += 2 * getJointsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.box2d.proto.Box2D.PbJoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbJoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbJoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbJoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbJoint parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbJoint parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbJoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.box2d.proto.Box2D.PbJoint parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbJoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbJoint 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(org.box2d.proto.Box2D.PbJoint prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code box2d.PbJoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.box2d.proto.Box2D.PbJointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbJoint_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbJoint_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbJoint.class, org.box2d.proto.Box2D.PbJoint.Builder.class); } // Construct using org.box2d.proto.Box2D.PbJoint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getLocalAnchorAFieldBuilder(); getLocalAnchorBFieldBuilder(); getLocalAxisAFieldBuilder(); getGroundAnchorAFieldBuilder(); getGroundAnchorBFieldBuilder(); getTargetFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); tag_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); type_ = org.box2d.proto.Box2D.PbJointType.DISTANCE; bitField0_ = (bitField0_ & ~0x00000002); bodyA_ = 0; bitField0_ = (bitField0_ & ~0x00000004); bodyB_ = 0; bitField0_ = (bitField0_ & ~0x00000008); collideConnected_ = false; bitField0_ = (bitField0_ & ~0x00000010); if (localAnchorABuilder_ == null) { localAnchorA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { localAnchorABuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (localAnchorBBuilder_ == null) { localAnchorB_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { localAnchorBBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); refAngle_ = 0F; bitField0_ = (bitField0_ & ~0x00000080); enableLimit_ = false; bitField0_ = (bitField0_ & ~0x00000100); lowerLimit_ = 0F; bitField0_ = (bitField0_ & ~0x00000200); upperLimit_ = 0F; bitField0_ = (bitField0_ & ~0x00000400); enableMotor_ = false; bitField0_ = (bitField0_ & ~0x00000800); motorSpeed_ = 0F; bitField0_ = (bitField0_ & ~0x00001000); maxMotorTorque_ = 0F; bitField0_ = (bitField0_ & ~0x00002000); if (localAxisABuilder_ == null) { localAxisA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { localAxisABuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); maxMotorForce_ = 0F; bitField0_ = (bitField0_ & ~0x00008000); length_ = 0F; bitField0_ = (bitField0_ & ~0x00010000); frequency_ = 0F; bitField0_ = (bitField0_ & ~0x00020000); dampingRatio_ = 0F; bitField0_ = (bitField0_ & ~0x00040000); if (groundAnchorABuilder_ == null) { groundAnchorA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { groundAnchorABuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); if (groundAnchorBBuilder_ == null) { groundAnchorB_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { groundAnchorBBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00100000); lengthA_ = 0F; bitField0_ = (bitField0_ & ~0x00200000); lengthB_ = 0F; bitField0_ = (bitField0_ & ~0x00400000); ratio_ = 0F; bitField0_ = (bitField0_ & ~0x00800000); if (targetBuilder_ == null) { target_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { targetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); maxForce_ = 0F; bitField0_ = (bitField0_ & ~0x02000000); joint1_ = 0; bitField0_ = (bitField0_ & ~0x04000000); joint2_ = 0; bitField0_ = (bitField0_ & ~0x08000000); maxTorque_ = 0F; bitField0_ = (bitField0_ & ~0x10000000); maxLength_ = 0F; bitField0_ = (bitField0_ & ~0x20000000); bodies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x40000000); joints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x80000000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.box2d.proto.Box2D.internal_static_box2d_PbJoint_descriptor; } public org.box2d.proto.Box2D.PbJoint getDefaultInstanceForType() { return org.box2d.proto.Box2D.PbJoint.getDefaultInstance(); } public org.box2d.proto.Box2D.PbJoint build() { org.box2d.proto.Box2D.PbJoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.box2d.proto.Box2D.PbJoint buildPartial() { org.box2d.proto.Box2D.PbJoint result = new org.box2d.proto.Box2D.PbJoint(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.bodyA_ = bodyA_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.bodyB_ = bodyB_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.collideConnected_ = collideConnected_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (localAnchorABuilder_ == null) { result.localAnchorA_ = localAnchorA_; } else { result.localAnchorA_ = localAnchorABuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (localAnchorBBuilder_ == null) { result.localAnchorB_ = localAnchorB_; } else { result.localAnchorB_ = localAnchorBBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.refAngle_ = refAngle_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.enableLimit_ = enableLimit_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.lowerLimit_ = lowerLimit_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.upperLimit_ = upperLimit_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.enableMotor_ = enableMotor_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.motorSpeed_ = motorSpeed_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.maxMotorTorque_ = maxMotorTorque_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } if (localAxisABuilder_ == null) { result.localAxisA_ = localAxisA_; } else { result.localAxisA_ = localAxisABuilder_.build(); } if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.maxMotorForce_ = maxMotorForce_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.length_ = length_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.frequency_ = frequency_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.dampingRatio_ = dampingRatio_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } if (groundAnchorABuilder_ == null) { result.groundAnchorA_ = groundAnchorA_; } else { result.groundAnchorA_ = groundAnchorABuilder_.build(); } if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } if (groundAnchorBBuilder_ == null) { result.groundAnchorB_ = groundAnchorB_; } else { result.groundAnchorB_ = groundAnchorBBuilder_.build(); } if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } result.lengthA_ = lengthA_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00400000; } result.lengthB_ = lengthB_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00800000; } result.ratio_ = ratio_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x01000000; } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x02000000; } result.maxForce_ = maxForce_; if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x04000000; } result.joint1_ = joint1_; if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x08000000; } result.joint2_ = joint2_; if (((from_bitField0_ & 0x10000000) == 0x10000000)) { to_bitField0_ |= 0x10000000; } result.maxTorque_ = maxTorque_; if (((from_bitField0_ & 0x20000000) == 0x20000000)) { to_bitField0_ |= 0x20000000; } result.maxLength_ = maxLength_; if (((bitField0_ & 0x40000000) == 0x40000000)) { bodies_ = java.util.Collections.unmodifiableList(bodies_); bitField0_ = (bitField0_ & ~0x40000000); } result.bodies_ = bodies_; if (((bitField0_ & 0x80000000) == 0x80000000)) { joints_ = java.util.Collections.unmodifiableList(joints_); bitField0_ = (bitField0_ & ~0x80000000); } result.joints_ = joints_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.box2d.proto.Box2D.PbJoint) { return mergeFrom((org.box2d.proto.Box2D.PbJoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.box2d.proto.Box2D.PbJoint other) { if (other == org.box2d.proto.Box2D.PbJoint.getDefaultInstance()) return this; if (other.hasTag()) { setTag(other.getTag()); } if (other.hasType()) { setType(other.getType()); } if (other.hasBodyA()) { setBodyA(other.getBodyA()); } if (other.hasBodyB()) { setBodyB(other.getBodyB()); } if (other.hasCollideConnected()) { setCollideConnected(other.getCollideConnected()); } if (other.hasLocalAnchorA()) { mergeLocalAnchorA(other.getLocalAnchorA()); } if (other.hasLocalAnchorB()) { mergeLocalAnchorB(other.getLocalAnchorB()); } if (other.hasRefAngle()) { setRefAngle(other.getRefAngle()); } if (other.hasEnableLimit()) { setEnableLimit(other.getEnableLimit()); } if (other.hasLowerLimit()) { setLowerLimit(other.getLowerLimit()); } if (other.hasUpperLimit()) { setUpperLimit(other.getUpperLimit()); } if (other.hasEnableMotor()) { setEnableMotor(other.getEnableMotor()); } if (other.hasMotorSpeed()) { setMotorSpeed(other.getMotorSpeed()); } if (other.hasMaxMotorTorque()) { setMaxMotorTorque(other.getMaxMotorTorque()); } if (other.hasLocalAxisA()) { mergeLocalAxisA(other.getLocalAxisA()); } if (other.hasMaxMotorForce()) { setMaxMotorForce(other.getMaxMotorForce()); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasFrequency()) { setFrequency(other.getFrequency()); } if (other.hasDampingRatio()) { setDampingRatio(other.getDampingRatio()); } if (other.hasGroundAnchorA()) { mergeGroundAnchorA(other.getGroundAnchorA()); } if (other.hasGroundAnchorB()) { mergeGroundAnchorB(other.getGroundAnchorB()); } if (other.hasLengthA()) { setLengthA(other.getLengthA()); } if (other.hasLengthB()) { setLengthB(other.getLengthB()); } if (other.hasRatio()) { setRatio(other.getRatio()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.hasMaxForce()) { setMaxForce(other.getMaxForce()); } if (other.hasJoint1()) { setJoint1(other.getJoint1()); } if (other.hasJoint2()) { setJoint2(other.getJoint2()); } if (other.hasMaxTorque()) { setMaxTorque(other.getMaxTorque()); } if (other.hasMaxLength()) { setMaxLength(other.getMaxLength()); } if (!other.bodies_.isEmpty()) { if (bodies_.isEmpty()) { bodies_ = other.bodies_; bitField0_ = (bitField0_ & ~0x40000000); } else { ensureBodiesIsMutable(); bodies_.addAll(other.bodies_); } onChanged(); } if (!other.joints_.isEmpty()) { if (joints_.isEmpty()) { joints_ = other.joints_; bitField0_ = (bitField0_ & ~0x80000000); } else { ensureJointsIsMutable(); joints_.addAll(other.joints_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (hasLocalAnchorA()) { if (!getLocalAnchorA().isInitialized()) { return false; } } if (hasLocalAnchorB()) { if (!getLocalAnchorB().isInitialized()) { return false; } } if (hasLocalAxisA()) { if (!getLocalAxisA().isInitialized()) { return false; } } if (hasGroundAnchorA()) { if (!getGroundAnchorA().isInitialized()) { return false; } } if (hasGroundAnchorB()) { if (!getGroundAnchorB().isInitialized()) { return false; } } if (hasTarget()) { if (!getTarget().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.box2d.proto.Box2D.PbJoint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.box2d.proto.Box2D.PbJoint) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 tag = 1; private long tag_ ; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } /** * <code>optional int64 tag = 1;</code> */ public Builder setTag(long value) { bitField0_ |= 0x00000001; tag_ = value; onChanged(); return this; } /** * <code>optional int64 tag = 1;</code> */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000001); tag_ = 0L; onChanged(); return this; } // required .box2d.PbJointType type = 2; private org.box2d.proto.Box2D.PbJointType type_ = org.box2d.proto.Box2D.PbJointType.DISTANCE; /** * <code>required .box2d.PbJointType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .box2d.PbJointType type = 2;</code> */ public org.box2d.proto.Box2D.PbJointType getType() { return type_; } /** * <code>required .box2d.PbJointType type = 2;</code> */ public Builder setType(org.box2d.proto.Box2D.PbJointType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * <code>required .box2d.PbJointType type = 2;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = org.box2d.proto.Box2D.PbJointType.DISTANCE; onChanged(); return this; } // optional int32 body_a = 3; private int bodyA_ ; /** * <code>optional int32 body_a = 3;</code> */ public boolean hasBodyA() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 body_a = 3;</code> */ public int getBodyA() { return bodyA_; } /** * <code>optional int32 body_a = 3;</code> */ public Builder setBodyA(int value) { bitField0_ |= 0x00000004; bodyA_ = value; onChanged(); return this; } /** * <code>optional int32 body_a = 3;</code> */ public Builder clearBodyA() { bitField0_ = (bitField0_ & ~0x00000004); bodyA_ = 0; onChanged(); return this; } // optional int32 body_b = 4; private int bodyB_ ; /** * <code>optional int32 body_b = 4;</code> */ public boolean hasBodyB() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 body_b = 4;</code> */ public int getBodyB() { return bodyB_; } /** * <code>optional int32 body_b = 4;</code> */ public Builder setBodyB(int value) { bitField0_ |= 0x00000008; bodyB_ = value; onChanged(); return this; } /** * <code>optional int32 body_b = 4;</code> */ public Builder clearBodyB() { bitField0_ = (bitField0_ & ~0x00000008); bodyB_ = 0; onChanged(); return this; } // optional bool collideConnected = 5; private boolean collideConnected_ ; /** * <code>optional bool collideConnected = 5;</code> */ public boolean hasCollideConnected() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool collideConnected = 5;</code> */ public boolean getCollideConnected() { return collideConnected_; } /** * <code>optional bool collideConnected = 5;</code> */ public Builder setCollideConnected(boolean value) { bitField0_ |= 0x00000010; collideConnected_ = value; onChanged(); return this; } /** * <code>optional bool collideConnected = 5;</code> */ public Builder clearCollideConnected() { bitField0_ = (bitField0_ & ~0x00000010); collideConnected_ = false; onChanged(); return this; } // optional .box2d.PbVec2 local_anchor_a = 6; private org.box2d.proto.Box2D.PbVec2 localAnchorA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> localAnchorABuilder_; /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public boolean hasLocalAnchorA() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public org.box2d.proto.Box2D.PbVec2 getLocalAnchorA() { if (localAnchorABuilder_ == null) { return localAnchorA_; } else { return localAnchorABuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public Builder setLocalAnchorA(org.box2d.proto.Box2D.PbVec2 value) { if (localAnchorABuilder_ == null) { if (value == null) { throw new NullPointerException(); } localAnchorA_ = value; onChanged(); } else { localAnchorABuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public Builder setLocalAnchorA( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (localAnchorABuilder_ == null) { localAnchorA_ = builderForValue.build(); onChanged(); } else { localAnchorABuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public Builder mergeLocalAnchorA(org.box2d.proto.Box2D.PbVec2 value) { if (localAnchorABuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && localAnchorA_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { localAnchorA_ = org.box2d.proto.Box2D.PbVec2.newBuilder(localAnchorA_).mergeFrom(value).buildPartial(); } else { localAnchorA_ = value; } onChanged(); } else { localAnchorABuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public Builder clearLocalAnchorA() { if (localAnchorABuilder_ == null) { localAnchorA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { localAnchorABuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public org.box2d.proto.Box2D.PbVec2.Builder getLocalAnchorABuilder() { bitField0_ |= 0x00000020; onChanged(); return getLocalAnchorAFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAnchorAOrBuilder() { if (localAnchorABuilder_ != null) { return localAnchorABuilder_.getMessageOrBuilder(); } else { return localAnchorA_; } } /** * <code>optional .box2d.PbVec2 local_anchor_a = 6;</code> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getLocalAnchorAFieldBuilder() { if (localAnchorABuilder_ == null) { localAnchorABuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( localAnchorA_, getParentForChildren(), isClean()); localAnchorA_ = null; } return localAnchorABuilder_; } // optional .box2d.PbVec2 local_anchor_b = 7; private org.box2d.proto.Box2D.PbVec2 localAnchorB_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> localAnchorBBuilder_; /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public boolean hasLocalAnchorB() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public org.box2d.proto.Box2D.PbVec2 getLocalAnchorB() { if (localAnchorBBuilder_ == null) { return localAnchorB_; } else { return localAnchorBBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public Builder setLocalAnchorB(org.box2d.proto.Box2D.PbVec2 value) { if (localAnchorBBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localAnchorB_ = value; onChanged(); } else { localAnchorBBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public Builder setLocalAnchorB( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (localAnchorBBuilder_ == null) { localAnchorB_ = builderForValue.build(); onChanged(); } else { localAnchorBBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public Builder mergeLocalAnchorB(org.box2d.proto.Box2D.PbVec2 value) { if (localAnchorBBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && localAnchorB_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { localAnchorB_ = org.box2d.proto.Box2D.PbVec2.newBuilder(localAnchorB_).mergeFrom(value).buildPartial(); } else { localAnchorB_ = value; } onChanged(); } else { localAnchorBBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public Builder clearLocalAnchorB() { if (localAnchorBBuilder_ == null) { localAnchorB_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { localAnchorBBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public org.box2d.proto.Box2D.PbVec2.Builder getLocalAnchorBBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLocalAnchorBFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAnchorBOrBuilder() { if (localAnchorBBuilder_ != null) { return localAnchorBBuilder_.getMessageOrBuilder(); } else { return localAnchorB_; } } /** * <code>optional .box2d.PbVec2 local_anchor_b = 7;</code> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getLocalAnchorBFieldBuilder() { if (localAnchorBBuilder_ == null) { localAnchorBBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( localAnchorB_, getParentForChildren(), isClean()); localAnchorB_ = null; } return localAnchorBBuilder_; } // optional float ref_angle = 10; private float refAngle_ ; /** * <code>optional float ref_angle = 10;</code> * * <pre> * revolute, prismatic, joint * </pre> */ public boolean hasRefAngle() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional float ref_angle = 10;</code> * * <pre> * revolute, prismatic, joint * </pre> */ public float getRefAngle() { return refAngle_; } /** * <code>optional float ref_angle = 10;</code> * * <pre> * revolute, prismatic, joint * </pre> */ public Builder setRefAngle(float value) { bitField0_ |= 0x00000080; refAngle_ = value; onChanged(); return this; } /** * <code>optional float ref_angle = 10;</code> * * <pre> * revolute, prismatic, joint * </pre> */ public Builder clearRefAngle() { bitField0_ = (bitField0_ & ~0x00000080); refAngle_ = 0F; onChanged(); return this; } // optional bool enable_limit = 12; private boolean enableLimit_ ; /** * <code>optional bool enable_limit = 12;</code> * * <pre> * revolute, prismatic * </pre> */ public boolean hasEnableLimit() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional bool enable_limit = 12;</code> * * <pre> * revolute, prismatic * </pre> */ public boolean getEnableLimit() { return enableLimit_; } /** * <code>optional bool enable_limit = 12;</code> * * <pre> * revolute, prismatic * </pre> */ public Builder setEnableLimit(boolean value) { bitField0_ |= 0x00000100; enableLimit_ = value; onChanged(); return this; } /** * <code>optional bool enable_limit = 12;</code> * * <pre> * revolute, prismatic * </pre> */ public Builder clearEnableLimit() { bitField0_ = (bitField0_ & ~0x00000100); enableLimit_ = false; onChanged(); return this; } // optional float lower_limit = 13; private float lowerLimit_ ; /** * <code>optional float lower_limit = 13;</code> * * <pre> * revolute, prismatic * </pre> */ public boolean hasLowerLimit() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional float lower_limit = 13;</code> * * <pre> * revolute, prismatic * </pre> */ public float getLowerLimit() { return lowerLimit_; } /** * <code>optional float lower_limit = 13;</code> * * <pre> * revolute, prismatic * </pre> */ public Builder setLowerLimit(float value) { bitField0_ |= 0x00000200; lowerLimit_ = value; onChanged(); return this; } /** * <code>optional float lower_limit = 13;</code> * * <pre> * revolute, prismatic * </pre> */ public Builder clearLowerLimit() { bitField0_ = (bitField0_ & ~0x00000200); lowerLimit_ = 0F; onChanged(); return this; } // optional float upper_limit = 14; private float upperLimit_ ; /** * <code>optional float upper_limit = 14;</code> * * <pre> * revolute, prismatic * </pre> */ public boolean hasUpperLimit() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional float upper_limit = 14;</code> * * <pre> * revolute, prismatic * </pre> */ public float getUpperLimit() { return upperLimit_; } /** * <code>optional float upper_limit = 14;</code> * * <pre> * revolute, prismatic * </pre> */ public Builder setUpperLimit(float value) { bitField0_ |= 0x00000400; upperLimit_ = value; onChanged(); return this; } /** * <code>optional float upper_limit = 14;</code> * * <pre> * revolute, prismatic * </pre> */ public Builder clearUpperLimit() { bitField0_ = (bitField0_ & ~0x00000400); upperLimit_ = 0F; onChanged(); return this; } // optional bool enable_motor = 15; private boolean enableMotor_ ; /** * <code>optional bool enable_motor = 15;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public boolean hasEnableMotor() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional bool enable_motor = 15;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public boolean getEnableMotor() { return enableMotor_; } /** * <code>optional bool enable_motor = 15;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public Builder setEnableMotor(boolean value) { bitField0_ |= 0x00000800; enableMotor_ = value; onChanged(); return this; } /** * <code>optional bool enable_motor = 15;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public Builder clearEnableMotor() { bitField0_ = (bitField0_ & ~0x00000800); enableMotor_ = false; onChanged(); return this; } // optional float motor_speed = 16; private float motorSpeed_ ; /** * <code>optional float motor_speed = 16;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public boolean hasMotorSpeed() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional float motor_speed = 16;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public float getMotorSpeed() { return motorSpeed_; } /** * <code>optional float motor_speed = 16;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public Builder setMotorSpeed(float value) { bitField0_ |= 0x00001000; motorSpeed_ = value; onChanged(); return this; } /** * <code>optional float motor_speed = 16;</code> * * <pre> * revolute, prismatic, wheel * </pre> */ public Builder clearMotorSpeed() { bitField0_ = (bitField0_ & ~0x00001000); motorSpeed_ = 0F; onChanged(); return this; } // optional float max_motor_torque = 17; private float maxMotorTorque_ ; /** * <code>optional float max_motor_torque = 17;</code> * * <pre> * revolute, wheel * </pre> */ public boolean hasMaxMotorTorque() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional float max_motor_torque = 17;</code> * * <pre> * revolute, wheel * </pre> */ public float getMaxMotorTorque() { return maxMotorTorque_; } /** * <code>optional float max_motor_torque = 17;</code> * * <pre> * revolute, wheel * </pre> */ public Builder setMaxMotorTorque(float value) { bitField0_ |= 0x00002000; maxMotorTorque_ = value; onChanged(); return this; } /** * <code>optional float max_motor_torque = 17;</code> * * <pre> * revolute, wheel * </pre> */ public Builder clearMaxMotorTorque() { bitField0_ = (bitField0_ & ~0x00002000); maxMotorTorque_ = 0F; onChanged(); return this; } // optional .box2d.PbVec2 local_axis_a = 20; private org.box2d.proto.Box2D.PbVec2 localAxisA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> localAxisABuilder_; /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public boolean hasLocalAxisA() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public org.box2d.proto.Box2D.PbVec2 getLocalAxisA() { if (localAxisABuilder_ == null) { return localAxisA_; } else { return localAxisABuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public Builder setLocalAxisA(org.box2d.proto.Box2D.PbVec2 value) { if (localAxisABuilder_ == null) { if (value == null) { throw new NullPointerException(); } localAxisA_ = value; onChanged(); } else { localAxisABuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public Builder setLocalAxisA( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (localAxisABuilder_ == null) { localAxisA_ = builderForValue.build(); onChanged(); } else { localAxisABuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public Builder mergeLocalAxisA(org.box2d.proto.Box2D.PbVec2 value) { if (localAxisABuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && localAxisA_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { localAxisA_ = org.box2d.proto.Box2D.PbVec2.newBuilder(localAxisA_).mergeFrom(value).buildPartial(); } else { localAxisA_ = value; } onChanged(); } else { localAxisABuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public Builder clearLocalAxisA() { if (localAxisABuilder_ == null) { localAxisA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { localAxisABuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getLocalAxisABuilder() { bitField0_ |= 0x00004000; onChanged(); return getLocalAxisAFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getLocalAxisAOrBuilder() { if (localAxisABuilder_ != null) { return localAxisABuilder_.getMessageOrBuilder(); } else { return localAxisA_; } } /** * <code>optional .box2d.PbVec2 local_axis_a = 20;</code> * * <pre> * prismatic, wheel * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getLocalAxisAFieldBuilder() { if (localAxisABuilder_ == null) { localAxisABuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( localAxisA_, getParentForChildren(), isClean()); localAxisA_ = null; } return localAxisABuilder_; } // optional float max_motor_force = 21; private float maxMotorForce_ ; /** * <code>optional float max_motor_force = 21;</code> * * <pre> * prismatic * </pre> */ public boolean hasMaxMotorForce() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional float max_motor_force = 21;</code> * * <pre> * prismatic * </pre> */ public float getMaxMotorForce() { return maxMotorForce_; } /** * <code>optional float max_motor_force = 21;</code> * * <pre> * prismatic * </pre> */ public Builder setMaxMotorForce(float value) { bitField0_ |= 0x00008000; maxMotorForce_ = value; onChanged(); return this; } /** * <code>optional float max_motor_force = 21;</code> * * <pre> * prismatic * </pre> */ public Builder clearMaxMotorForce() { bitField0_ = (bitField0_ & ~0x00008000); maxMotorForce_ = 0F; onChanged(); return this; } // optional float length = 30; private float length_ ; /** * <code>optional float length = 30;</code> * * <pre> * distance * </pre> */ public boolean hasLength() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * <code>optional float length = 30;</code> * * <pre> * distance * </pre> */ public float getLength() { return length_; } /** * <code>optional float length = 30;</code> * * <pre> * distance * </pre> */ public Builder setLength(float value) { bitField0_ |= 0x00010000; length_ = value; onChanged(); return this; } /** * <code>optional float length = 30;</code> * * <pre> * distance * </pre> */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00010000); length_ = 0F; onChanged(); return this; } // optional float frequency = 31; private float frequency_ ; /** * <code>optional float frequency = 31;</code> * * <pre> * distance, mouse, wheel, weld, con vol * </pre> */ public boolean hasFrequency() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * <code>optional float frequency = 31;</code> * * <pre> * distance, mouse, wheel, weld, con vol * </pre> */ public float getFrequency() { return frequency_; } /** * <code>optional float frequency = 31;</code> * * <pre> * distance, mouse, wheel, weld, con vol * </pre> */ public Builder setFrequency(float value) { bitField0_ |= 0x00020000; frequency_ = value; onChanged(); return this; } /** * <code>optional float frequency = 31;</code> * * <pre> * distance, mouse, wheel, weld, con vol * </pre> */ public Builder clearFrequency() { bitField0_ = (bitField0_ & ~0x00020000); frequency_ = 0F; onChanged(); return this; } // optional float damping_ratio = 32; private float dampingRatio_ ; /** * <code>optional float damping_ratio = 32;</code> * * <pre> * distance, mouse, wheel, weld, col vol * </pre> */ public boolean hasDampingRatio() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * <code>optional float damping_ratio = 32;</code> * * <pre> * distance, mouse, wheel, weld, col vol * </pre> */ public float getDampingRatio() { return dampingRatio_; } /** * <code>optional float damping_ratio = 32;</code> * * <pre> * distance, mouse, wheel, weld, col vol * </pre> */ public Builder setDampingRatio(float value) { bitField0_ |= 0x00040000; dampingRatio_ = value; onChanged(); return this; } /** * <code>optional float damping_ratio = 32;</code> * * <pre> * distance, mouse, wheel, weld, col vol * </pre> */ public Builder clearDampingRatio() { bitField0_ = (bitField0_ & ~0x00040000); dampingRatio_ = 0F; onChanged(); return this; } // optional .box2d.PbVec2 ground_anchor_a = 40; private org.box2d.proto.Box2D.PbVec2 groundAnchorA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> groundAnchorABuilder_; /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public boolean hasGroundAnchorA() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2 getGroundAnchorA() { if (groundAnchorABuilder_ == null) { return groundAnchorA_; } else { return groundAnchorABuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public Builder setGroundAnchorA(org.box2d.proto.Box2D.PbVec2 value) { if (groundAnchorABuilder_ == null) { if (value == null) { throw new NullPointerException(); } groundAnchorA_ = value; onChanged(); } else { groundAnchorABuilder_.setMessage(value); } bitField0_ |= 0x00080000; return this; } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public Builder setGroundAnchorA( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (groundAnchorABuilder_ == null) { groundAnchorA_ = builderForValue.build(); onChanged(); } else { groundAnchorABuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00080000; return this; } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public Builder mergeGroundAnchorA(org.box2d.proto.Box2D.PbVec2 value) { if (groundAnchorABuilder_ == null) { if (((bitField0_ & 0x00080000) == 0x00080000) && groundAnchorA_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { groundAnchorA_ = org.box2d.proto.Box2D.PbVec2.newBuilder(groundAnchorA_).mergeFrom(value).buildPartial(); } else { groundAnchorA_ = value; } onChanged(); } else { groundAnchorABuilder_.mergeFrom(value); } bitField0_ |= 0x00080000; return this; } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public Builder clearGroundAnchorA() { if (groundAnchorABuilder_ == null) { groundAnchorA_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { groundAnchorABuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); return this; } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getGroundAnchorABuilder() { bitField0_ |= 0x00080000; onChanged(); return getGroundAnchorAFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getGroundAnchorAOrBuilder() { if (groundAnchorABuilder_ != null) { return groundAnchorABuilder_.getMessageOrBuilder(); } else { return groundAnchorA_; } } /** * <code>optional .box2d.PbVec2 ground_anchor_a = 40;</code> * * <pre> * pulley * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getGroundAnchorAFieldBuilder() { if (groundAnchorABuilder_ == null) { groundAnchorABuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( groundAnchorA_, getParentForChildren(), isClean()); groundAnchorA_ = null; } return groundAnchorABuilder_; } // optional .box2d.PbVec2 ground_anchor_b = 41; private org.box2d.proto.Box2D.PbVec2 groundAnchorB_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> groundAnchorBBuilder_; /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public boolean hasGroundAnchorB() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2 getGroundAnchorB() { if (groundAnchorBBuilder_ == null) { return groundAnchorB_; } else { return groundAnchorBBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public Builder setGroundAnchorB(org.box2d.proto.Box2D.PbVec2 value) { if (groundAnchorBBuilder_ == null) { if (value == null) { throw new NullPointerException(); } groundAnchorB_ = value; onChanged(); } else { groundAnchorBBuilder_.setMessage(value); } bitField0_ |= 0x00100000; return this; } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public Builder setGroundAnchorB( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (groundAnchorBBuilder_ == null) { groundAnchorB_ = builderForValue.build(); onChanged(); } else { groundAnchorBBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00100000; return this; } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public Builder mergeGroundAnchorB(org.box2d.proto.Box2D.PbVec2 value) { if (groundAnchorBBuilder_ == null) { if (((bitField0_ & 0x00100000) == 0x00100000) && groundAnchorB_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { groundAnchorB_ = org.box2d.proto.Box2D.PbVec2.newBuilder(groundAnchorB_).mergeFrom(value).buildPartial(); } else { groundAnchorB_ = value; } onChanged(); } else { groundAnchorBBuilder_.mergeFrom(value); } bitField0_ |= 0x00100000; return this; } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public Builder clearGroundAnchorB() { if (groundAnchorBBuilder_ == null) { groundAnchorB_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { groundAnchorBBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00100000); return this; } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getGroundAnchorBBuilder() { bitField0_ |= 0x00100000; onChanged(); return getGroundAnchorBFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getGroundAnchorBOrBuilder() { if (groundAnchorBBuilder_ != null) { return groundAnchorBBuilder_.getMessageOrBuilder(); } else { return groundAnchorB_; } } /** * <code>optional .box2d.PbVec2 ground_anchor_b = 41;</code> * * <pre> * pulley * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getGroundAnchorBFieldBuilder() { if (groundAnchorBBuilder_ == null) { groundAnchorBBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( groundAnchorB_, getParentForChildren(), isClean()); groundAnchorB_ = null; } return groundAnchorBBuilder_; } // optional float length_a = 42; private float lengthA_ ; /** * <code>optional float length_a = 42;</code> * * <pre> * pulley * </pre> */ public boolean hasLengthA() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * <code>optional float length_a = 42;</code> * * <pre> * pulley * </pre> */ public float getLengthA() { return lengthA_; } /** * <code>optional float length_a = 42;</code> * * <pre> * pulley * </pre> */ public Builder setLengthA(float value) { bitField0_ |= 0x00200000; lengthA_ = value; onChanged(); return this; } /** * <code>optional float length_a = 42;</code> * * <pre> * pulley * </pre> */ public Builder clearLengthA() { bitField0_ = (bitField0_ & ~0x00200000); lengthA_ = 0F; onChanged(); return this; } // optional float length_b = 43; private float lengthB_ ; /** * <code>optional float length_b = 43;</code> * * <pre> * pulley * </pre> */ public boolean hasLengthB() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * <code>optional float length_b = 43;</code> * * <pre> * pulley * </pre> */ public float getLengthB() { return lengthB_; } /** * <code>optional float length_b = 43;</code> * * <pre> * pulley * </pre> */ public Builder setLengthB(float value) { bitField0_ |= 0x00400000; lengthB_ = value; onChanged(); return this; } /** * <code>optional float length_b = 43;</code> * * <pre> * pulley * </pre> */ public Builder clearLengthB() { bitField0_ = (bitField0_ & ~0x00400000); lengthB_ = 0F; onChanged(); return this; } // optional float ratio = 44; private float ratio_ ; /** * <code>optional float ratio = 44;</code> * * <pre> * pulley, gear * </pre> */ public boolean hasRatio() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * <code>optional float ratio = 44;</code> * * <pre> * pulley, gear * </pre> */ public float getRatio() { return ratio_; } /** * <code>optional float ratio = 44;</code> * * <pre> * pulley, gear * </pre> */ public Builder setRatio(float value) { bitField0_ |= 0x00800000; ratio_ = value; onChanged(); return this; } /** * <code>optional float ratio = 44;</code> * * <pre> * pulley, gear * </pre> */ public Builder clearRatio() { bitField0_ = (bitField0_ & ~0x00800000); ratio_ = 0F; onChanged(); return this; } // optional .box2d.PbVec2 target = 50; private org.box2d.proto.Box2D.PbVec2 target_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> targetBuilder_; /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public boolean hasTarget() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public org.box2d.proto.Box2D.PbVec2 getTarget() { if (targetBuilder_ == null) { return target_; } else { return targetBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public Builder setTarget(org.box2d.proto.Box2D.PbVec2 value) { if (targetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { targetBuilder_.setMessage(value); } bitField0_ |= 0x01000000; return this; } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public Builder setTarget( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x01000000; return this; } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public Builder mergeTarget(org.box2d.proto.Box2D.PbVec2 value) { if (targetBuilder_ == null) { if (((bitField0_ & 0x01000000) == 0x01000000) && target_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { target_ = org.box2d.proto.Box2D.PbVec2.newBuilder(target_).mergeFrom(value).buildPartial(); } else { target_ = value; } onChanged(); } else { targetBuilder_.mergeFrom(value); } bitField0_ |= 0x01000000; return this; } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { targetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); return this; } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getTargetBuilder() { bitField0_ |= 0x01000000; onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { return target_; } } /** * <code>optional .box2d.PbVec2 target = 50;</code> * * <pre> * mouse * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { targetBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( target_, getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } // optional float max_force = 51; private float maxForce_ ; /** * <code>optional float max_force = 51;</code> * * <pre> * mouse, friction, rope * </pre> */ public boolean hasMaxForce() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * <code>optional float max_force = 51;</code> * * <pre> * mouse, friction, rope * </pre> */ public float getMaxForce() { return maxForce_; } /** * <code>optional float max_force = 51;</code> * * <pre> * mouse, friction, rope * </pre> */ public Builder setMaxForce(float value) { bitField0_ |= 0x02000000; maxForce_ = value; onChanged(); return this; } /** * <code>optional float max_force = 51;</code> * * <pre> * mouse, friction, rope * </pre> */ public Builder clearMaxForce() { bitField0_ = (bitField0_ & ~0x02000000); maxForce_ = 0F; onChanged(); return this; } // optional int32 joint1 = 61; private int joint1_ ; /** * <code>optional int32 joint1 = 61;</code> * * <pre> * gear * </pre> */ public boolean hasJoint1() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * <code>optional int32 joint1 = 61;</code> * * <pre> * gear * </pre> */ public int getJoint1() { return joint1_; } /** * <code>optional int32 joint1 = 61;</code> * * <pre> * gear * </pre> */ public Builder setJoint1(int value) { bitField0_ |= 0x04000000; joint1_ = value; onChanged(); return this; } /** * <code>optional int32 joint1 = 61;</code> * * <pre> * gear * </pre> */ public Builder clearJoint1() { bitField0_ = (bitField0_ & ~0x04000000); joint1_ = 0; onChanged(); return this; } // optional int32 joint2 = 62; private int joint2_ ; /** * <code>optional int32 joint2 = 62;</code> * * <pre> * gear * </pre> */ public boolean hasJoint2() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * <code>optional int32 joint2 = 62;</code> * * <pre> * gear * </pre> */ public int getJoint2() { return joint2_; } /** * <code>optional int32 joint2 = 62;</code> * * <pre> * gear * </pre> */ public Builder setJoint2(int value) { bitField0_ |= 0x08000000; joint2_ = value; onChanged(); return this; } /** * <code>optional int32 joint2 = 62;</code> * * <pre> * gear * </pre> */ public Builder clearJoint2() { bitField0_ = (bitField0_ & ~0x08000000); joint2_ = 0; onChanged(); return this; } // optional float max_torque = 90; private float maxTorque_ ; /** * <code>optional float max_torque = 90;</code> * * <pre> * friction * </pre> */ public boolean hasMaxTorque() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * <code>optional float max_torque = 90;</code> * * <pre> * friction * </pre> */ public float getMaxTorque() { return maxTorque_; } /** * <code>optional float max_torque = 90;</code> * * <pre> * friction * </pre> */ public Builder setMaxTorque(float value) { bitField0_ |= 0x10000000; maxTorque_ = value; onChanged(); return this; } /** * <code>optional float max_torque = 90;</code> * * <pre> * friction * </pre> */ public Builder clearMaxTorque() { bitField0_ = (bitField0_ & ~0x10000000); maxTorque_ = 0F; onChanged(); return this; } // optional float max_length = 100; private float maxLength_ ; /** * <code>optional float max_length = 100;</code> * * <pre> * rope * </pre> */ public boolean hasMaxLength() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * <code>optional float max_length = 100;</code> * * <pre> * rope * </pre> */ public float getMaxLength() { return maxLength_; } /** * <code>optional float max_length = 100;</code> * * <pre> * rope * </pre> */ public Builder setMaxLength(float value) { bitField0_ |= 0x20000000; maxLength_ = value; onChanged(); return this; } /** * <code>optional float max_length = 100;</code> * * <pre> * rope * </pre> */ public Builder clearMaxLength() { bitField0_ = (bitField0_ & ~0x20000000); maxLength_ = 0F; onChanged(); return this; } // repeated int32 bodies = 110; private java.util.List<java.lang.Integer> bodies_ = java.util.Collections.emptyList(); private void ensureBodiesIsMutable() { if (!((bitField0_ & 0x40000000) == 0x40000000)) { bodies_ = new java.util.ArrayList<java.lang.Integer>(bodies_); bitField0_ |= 0x40000000; } } /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public java.util.List<java.lang.Integer> getBodiesList() { return java.util.Collections.unmodifiableList(bodies_); } /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public int getBodiesCount() { return bodies_.size(); } /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public int getBodies(int index) { return bodies_.get(index); } /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public Builder setBodies( int index, int value) { ensureBodiesIsMutable(); bodies_.set(index, value); onChanged(); return this; } /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public Builder addBodies(int value) { ensureBodiesIsMutable(); bodies_.add(value); onChanged(); return this; } /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public Builder addAllBodies( java.lang.Iterable<? extends java.lang.Integer> values) { ensureBodiesIsMutable(); super.addAll(values, bodies_); onChanged(); return this; } /** * <code>repeated int32 bodies = 110;</code> * * <pre> * con vol * </pre> */ public Builder clearBodies() { bodies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } // repeated int32 joints = 111; private java.util.List<java.lang.Integer> joints_ = java.util.Collections.emptyList(); private void ensureJointsIsMutable() { if (!((bitField0_ & 0x80000000) == 0x80000000)) { joints_ = new java.util.ArrayList<java.lang.Integer>(joints_); bitField0_ |= 0x80000000; } } /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public java.util.List<java.lang.Integer> getJointsList() { return java.util.Collections.unmodifiableList(joints_); } /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public int getJointsCount() { return joints_.size(); } /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public int getJoints(int index) { return joints_.get(index); } /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public Builder setJoints( int index, int value) { ensureJointsIsMutable(); joints_.set(index, value); onChanged(); return this; } /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public Builder addJoints(int value) { ensureJointsIsMutable(); joints_.add(value); onChanged(); return this; } /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public Builder addAllJoints( java.lang.Iterable<? extends java.lang.Integer> values) { ensureJointsIsMutable(); super.addAll(values, joints_); onChanged(); return this; } /** * <code>repeated int32 joints = 111;</code> * * <pre> * con vol * </pre> */ public Builder clearJoints() { joints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x80000000); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:box2d.PbJoint) } static { defaultInstance = new PbJoint(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:box2d.PbJoint) } public interface PbBodyOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 tag = 1; /** * <code>optional int64 tag = 1;</code> */ boolean hasTag(); /** * <code>optional int64 tag = 1;</code> */ long getTag(); // required .box2d.PbBodyType type = 2; /** * <code>required .box2d.PbBodyType type = 2;</code> */ boolean hasType(); /** * <code>required .box2d.PbBodyType type = 2;</code> */ org.box2d.proto.Box2D.PbBodyType getType(); // optional .box2d.PbVec2 position = 10; /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ boolean hasPosition(); /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ org.box2d.proto.Box2D.PbVec2 getPosition(); /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ org.box2d.proto.Box2D.PbVec2OrBuilder getPositionOrBuilder(); // optional float angle = 11; /** * <code>optional float angle = 11;</code> */ boolean hasAngle(); /** * <code>optional float angle = 11;</code> */ float getAngle(); // optional .box2d.PbVec2 linear_velocity = 12; /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ boolean hasLinearVelocity(); /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ org.box2d.proto.Box2D.PbVec2 getLinearVelocity(); /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ org.box2d.proto.Box2D.PbVec2OrBuilder getLinearVelocityOrBuilder(); // optional float angular_velocity = 13; /** * <code>optional float angular_velocity = 13;</code> */ boolean hasAngularVelocity(); /** * <code>optional float angular_velocity = 13;</code> */ float getAngularVelocity(); // optional float linear_damping = 50; /** * <code>optional float linear_damping = 50;</code> * * <pre> * configuration * </pre> */ boolean hasLinearDamping(); /** * <code>optional float linear_damping = 50;</code> * * <pre> * configuration * </pre> */ float getLinearDamping(); // optional float angular_damping = 51; /** * <code>optional float angular_damping = 51;</code> */ boolean hasAngularDamping(); /** * <code>optional float angular_damping = 51;</code> */ float getAngularDamping(); // optional float gravity_scale = 52; /** * <code>optional float gravity_scale = 52;</code> */ boolean hasGravityScale(); /** * <code>optional float gravity_scale = 52;</code> */ float getGravityScale(); // optional bool bullet = 53; /** * <code>optional bool bullet = 53;</code> */ boolean hasBullet(); /** * <code>optional bool bullet = 53;</code> */ boolean getBullet(); // optional bool allow_sleep = 54; /** * <code>optional bool allow_sleep = 54;</code> */ boolean hasAllowSleep(); /** * <code>optional bool allow_sleep = 54;</code> */ boolean getAllowSleep(); // optional bool awake = 55; /** * <code>optional bool awake = 55;</code> */ boolean hasAwake(); /** * <code>optional bool awake = 55;</code> */ boolean getAwake(); // optional bool active = 56; /** * <code>optional bool active = 56;</code> */ boolean hasActive(); /** * <code>optional bool active = 56;</code> */ boolean getActive(); // optional bool fixed_rotation = 57; /** * <code>optional bool fixed_rotation = 57;</code> */ boolean hasFixedRotation(); /** * <code>optional bool fixed_rotation = 57;</code> */ boolean getFixedRotation(); // repeated .box2d.PbFixture fixtures = 100; /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ java.util.List<org.box2d.proto.Box2D.PbFixture> getFixturesList(); /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ org.box2d.proto.Box2D.PbFixture getFixtures(int index); /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ int getFixturesCount(); /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ java.util.List<? extends org.box2d.proto.Box2D.PbFixtureOrBuilder> getFixturesOrBuilderList(); /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ org.box2d.proto.Box2D.PbFixtureOrBuilder getFixturesOrBuilder( int index); } /** * Protobuf type {@code box2d.PbBody} */ public static final class PbBody extends com.google.protobuf.GeneratedMessage implements PbBodyOrBuilder { // Use PbBody.newBuilder() to construct. private PbBody(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PbBody(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PbBody defaultInstance; public static PbBody getDefaultInstance() { return defaultInstance; } public PbBody getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PbBody( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; tag_ = input.readInt64(); break; } case 16: { int rawValue = input.readEnum(); org.box2d.proto.Box2D.PbBodyType value = org.box2d.proto.Box2D.PbBodyType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; type_ = value; } break; } case 82: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = position_.toBuilder(); } position_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(position_); position_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 93: { bitField0_ |= 0x00000008; angle_ = input.readFloat(); break; } case 98: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = linearVelocity_.toBuilder(); } linearVelocity_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(linearVelocity_); linearVelocity_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 109: { bitField0_ |= 0x00000020; angularVelocity_ = input.readFloat(); break; } case 405: { bitField0_ |= 0x00000040; linearDamping_ = input.readFloat(); break; } case 413: { bitField0_ |= 0x00000080; angularDamping_ = input.readFloat(); break; } case 421: { bitField0_ |= 0x00000100; gravityScale_ = input.readFloat(); break; } case 424: { bitField0_ |= 0x00000200; bullet_ = input.readBool(); break; } case 432: { bitField0_ |= 0x00000400; allowSleep_ = input.readBool(); break; } case 440: { bitField0_ |= 0x00000800; awake_ = input.readBool(); break; } case 448: { bitField0_ |= 0x00001000; active_ = input.readBool(); break; } case 456: { bitField0_ |= 0x00002000; fixedRotation_ = input.readBool(); break; } case 802: { if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { fixtures_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbFixture>(); mutable_bitField0_ |= 0x00004000; } fixtures_.add(input.readMessage(org.box2d.proto.Box2D.PbFixture.PARSER, extensionRegistry)); 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_ & 0x00004000) == 0x00004000)) { fixtures_ = java.util.Collections.unmodifiableList(fixtures_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbBody_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbBody_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbBody.class, org.box2d.proto.Box2D.PbBody.Builder.class); } public static com.google.protobuf.Parser<PbBody> PARSER = new com.google.protobuf.AbstractParser<PbBody>() { public PbBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PbBody(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PbBody> getParserForType() { return PARSER; } private int bitField0_; // optional int64 tag = 1; public static final int TAG_FIELD_NUMBER = 1; private long tag_; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } // required .box2d.PbBodyType type = 2; public static final int TYPE_FIELD_NUMBER = 2; private org.box2d.proto.Box2D.PbBodyType type_; /** * <code>required .box2d.PbBodyType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .box2d.PbBodyType type = 2;</code> */ public org.box2d.proto.Box2D.PbBodyType getType() { return type_; } // optional .box2d.PbVec2 position = 10; public static final int POSITION_FIELD_NUMBER = 10; private org.box2d.proto.Box2D.PbVec2 position_; /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public boolean hasPosition() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public org.box2d.proto.Box2D.PbVec2 getPosition() { return position_; } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getPositionOrBuilder() { return position_; } // optional float angle = 11; public static final int ANGLE_FIELD_NUMBER = 11; private float angle_; /** * <code>optional float angle = 11;</code> */ public boolean hasAngle() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional float angle = 11;</code> */ public float getAngle() { return angle_; } // optional .box2d.PbVec2 linear_velocity = 12; public static final int LINEAR_VELOCITY_FIELD_NUMBER = 12; private org.box2d.proto.Box2D.PbVec2 linearVelocity_; /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public boolean hasLinearVelocity() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public org.box2d.proto.Box2D.PbVec2 getLinearVelocity() { return linearVelocity_; } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getLinearVelocityOrBuilder() { return linearVelocity_; } // optional float angular_velocity = 13; public static final int ANGULAR_VELOCITY_FIELD_NUMBER = 13; private float angularVelocity_; /** * <code>optional float angular_velocity = 13;</code> */ public boolean hasAngularVelocity() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional float angular_velocity = 13;</code> */ public float getAngularVelocity() { return angularVelocity_; } // optional float linear_damping = 50; public static final int LINEAR_DAMPING_FIELD_NUMBER = 50; private float linearDamping_; /** * <code>optional float linear_damping = 50;</code> * * <pre> * configuration * </pre> */ public boolean hasLinearDamping() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional float linear_damping = 50;</code> * * <pre> * configuration * </pre> */ public float getLinearDamping() { return linearDamping_; } // optional float angular_damping = 51; public static final int ANGULAR_DAMPING_FIELD_NUMBER = 51; private float angularDamping_; /** * <code>optional float angular_damping = 51;</code> */ public boolean hasAngularDamping() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional float angular_damping = 51;</code> */ public float getAngularDamping() { return angularDamping_; } // optional float gravity_scale = 52; public static final int GRAVITY_SCALE_FIELD_NUMBER = 52; private float gravityScale_; /** * <code>optional float gravity_scale = 52;</code> */ public boolean hasGravityScale() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional float gravity_scale = 52;</code> */ public float getGravityScale() { return gravityScale_; } // optional bool bullet = 53; public static final int BULLET_FIELD_NUMBER = 53; private boolean bullet_; /** * <code>optional bool bullet = 53;</code> */ public boolean hasBullet() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional bool bullet = 53;</code> */ public boolean getBullet() { return bullet_; } // optional bool allow_sleep = 54; public static final int ALLOW_SLEEP_FIELD_NUMBER = 54; private boolean allowSleep_; /** * <code>optional bool allow_sleep = 54;</code> */ public boolean hasAllowSleep() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool allow_sleep = 54;</code> */ public boolean getAllowSleep() { return allowSleep_; } // optional bool awake = 55; public static final int AWAKE_FIELD_NUMBER = 55; private boolean awake_; /** * <code>optional bool awake = 55;</code> */ public boolean hasAwake() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional bool awake = 55;</code> */ public boolean getAwake() { return awake_; } // optional bool active = 56; public static final int ACTIVE_FIELD_NUMBER = 56; private boolean active_; /** * <code>optional bool active = 56;</code> */ public boolean hasActive() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional bool active = 56;</code> */ public boolean getActive() { return active_; } // optional bool fixed_rotation = 57; public static final int FIXED_ROTATION_FIELD_NUMBER = 57; private boolean fixedRotation_; /** * <code>optional bool fixed_rotation = 57;</code> */ public boolean hasFixedRotation() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional bool fixed_rotation = 57;</code> */ public boolean getFixedRotation() { return fixedRotation_; } // repeated .box2d.PbFixture fixtures = 100; public static final int FIXTURES_FIELD_NUMBER = 100; private java.util.List<org.box2d.proto.Box2D.PbFixture> fixtures_; /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public java.util.List<org.box2d.proto.Box2D.PbFixture> getFixturesList() { return fixtures_; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public java.util.List<? extends org.box2d.proto.Box2D.PbFixtureOrBuilder> getFixturesOrBuilderList() { return fixtures_; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public int getFixturesCount() { return fixtures_.size(); } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public org.box2d.proto.Box2D.PbFixture getFixtures(int index) { return fixtures_.get(index); } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public org.box2d.proto.Box2D.PbFixtureOrBuilder getFixturesOrBuilder( int index) { return fixtures_.get(index); } private void initFields() { tag_ = 0L; type_ = org.box2d.proto.Box2D.PbBodyType.STATIC; position_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); angle_ = 0F; linearVelocity_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); angularVelocity_ = 0F; linearDamping_ = 0F; angularDamping_ = 0F; gravityScale_ = 0F; bullet_ = false; allowSleep_ = false; awake_ = false; active_ = false; fixedRotation_ = false; fixtures_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasPosition()) { if (!getPosition().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLinearVelocity()) { if (!getLinearVelocity().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getFixturesCount(); i++) { if (!getFixtures(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(10, position_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeFloat(11, angle_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(12, linearVelocity_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeFloat(13, angularVelocity_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeFloat(50, linearDamping_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeFloat(51, angularDamping_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeFloat(52, gravityScale_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(53, bullet_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(54, allowSleep_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBool(55, awake_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBool(56, active_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeBool(57, fixedRotation_); } for (int i = 0; i < fixtures_.size(); i++) { output.writeMessage(100, fixtures_.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 .computeInt64Size(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, position_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(11, angle_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, linearVelocity_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(13, angularVelocity_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(50, linearDamping_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(51, angularDamping_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(52, gravityScale_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(53, bullet_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(54, allowSleep_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(55, awake_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(56, active_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(57, fixedRotation_); } for (int i = 0; i < fixtures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(100, fixtures_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.box2d.proto.Box2D.PbBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbBody parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbBody parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbBody parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbBody parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.box2d.proto.Box2D.PbBody parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbBody parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbBody 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(org.box2d.proto.Box2D.PbBody prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code box2d.PbBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.box2d.proto.Box2D.PbBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbBody_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbBody_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbBody.class, org.box2d.proto.Box2D.PbBody.Builder.class); } // Construct using org.box2d.proto.Box2D.PbBody.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPositionFieldBuilder(); getLinearVelocityFieldBuilder(); getFixturesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); tag_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); type_ = org.box2d.proto.Box2D.PbBodyType.STATIC; bitField0_ = (bitField0_ & ~0x00000002); if (positionBuilder_ == null) { position_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { positionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); angle_ = 0F; bitField0_ = (bitField0_ & ~0x00000008); if (linearVelocityBuilder_ == null) { linearVelocity_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { linearVelocityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); angularVelocity_ = 0F; bitField0_ = (bitField0_ & ~0x00000020); linearDamping_ = 0F; bitField0_ = (bitField0_ & ~0x00000040); angularDamping_ = 0F; bitField0_ = (bitField0_ & ~0x00000080); gravityScale_ = 0F; bitField0_ = (bitField0_ & ~0x00000100); bullet_ = false; bitField0_ = (bitField0_ & ~0x00000200); allowSleep_ = false; bitField0_ = (bitField0_ & ~0x00000400); awake_ = false; bitField0_ = (bitField0_ & ~0x00000800); active_ = false; bitField0_ = (bitField0_ & ~0x00001000); fixedRotation_ = false; bitField0_ = (bitField0_ & ~0x00002000); if (fixturesBuilder_ == null) { fixtures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); } else { fixturesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.box2d.proto.Box2D.internal_static_box2d_PbBody_descriptor; } public org.box2d.proto.Box2D.PbBody getDefaultInstanceForType() { return org.box2d.proto.Box2D.PbBody.getDefaultInstance(); } public org.box2d.proto.Box2D.PbBody build() { org.box2d.proto.Box2D.PbBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.box2d.proto.Box2D.PbBody buildPartial() { org.box2d.proto.Box2D.PbBody result = new org.box2d.proto.Box2D.PbBody(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (positionBuilder_ == null) { result.position_ = position_; } else { result.position_ = positionBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.angle_ = angle_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (linearVelocityBuilder_ == null) { result.linearVelocity_ = linearVelocity_; } else { result.linearVelocity_ = linearVelocityBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.angularVelocity_ = angularVelocity_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.linearDamping_ = linearDamping_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.angularDamping_ = angularDamping_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.gravityScale_ = gravityScale_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.bullet_ = bullet_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.allowSleep_ = allowSleep_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.awake_ = awake_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.active_ = active_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.fixedRotation_ = fixedRotation_; if (fixturesBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000)) { fixtures_ = java.util.Collections.unmodifiableList(fixtures_); bitField0_ = (bitField0_ & ~0x00004000); } result.fixtures_ = fixtures_; } else { result.fixtures_ = fixturesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.box2d.proto.Box2D.PbBody) { return mergeFrom((org.box2d.proto.Box2D.PbBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.box2d.proto.Box2D.PbBody other) { if (other == org.box2d.proto.Box2D.PbBody.getDefaultInstance()) return this; if (other.hasTag()) { setTag(other.getTag()); } if (other.hasType()) { setType(other.getType()); } if (other.hasPosition()) { mergePosition(other.getPosition()); } if (other.hasAngle()) { setAngle(other.getAngle()); } if (other.hasLinearVelocity()) { mergeLinearVelocity(other.getLinearVelocity()); } if (other.hasAngularVelocity()) { setAngularVelocity(other.getAngularVelocity()); } if (other.hasLinearDamping()) { setLinearDamping(other.getLinearDamping()); } if (other.hasAngularDamping()) { setAngularDamping(other.getAngularDamping()); } if (other.hasGravityScale()) { setGravityScale(other.getGravityScale()); } if (other.hasBullet()) { setBullet(other.getBullet()); } if (other.hasAllowSleep()) { setAllowSleep(other.getAllowSleep()); } if (other.hasAwake()) { setAwake(other.getAwake()); } if (other.hasActive()) { setActive(other.getActive()); } if (other.hasFixedRotation()) { setFixedRotation(other.getFixedRotation()); } if (fixturesBuilder_ == null) { if (!other.fixtures_.isEmpty()) { if (fixtures_.isEmpty()) { fixtures_ = other.fixtures_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureFixturesIsMutable(); fixtures_.addAll(other.fixtures_); } onChanged(); } } else { if (!other.fixtures_.isEmpty()) { if (fixturesBuilder_.isEmpty()) { fixturesBuilder_.dispose(); fixturesBuilder_ = null; fixtures_ = other.fixtures_; bitField0_ = (bitField0_ & ~0x00004000); fixturesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFixturesFieldBuilder() : null; } else { fixturesBuilder_.addAllMessages(other.fixtures_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (hasPosition()) { if (!getPosition().isInitialized()) { return false; } } if (hasLinearVelocity()) { if (!getLinearVelocity().isInitialized()) { return false; } } for (int i = 0; i < getFixturesCount(); i++) { if (!getFixtures(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.box2d.proto.Box2D.PbBody parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.box2d.proto.Box2D.PbBody) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 tag = 1; private long tag_ ; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } /** * <code>optional int64 tag = 1;</code> */ public Builder setTag(long value) { bitField0_ |= 0x00000001; tag_ = value; onChanged(); return this; } /** * <code>optional int64 tag = 1;</code> */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000001); tag_ = 0L; onChanged(); return this; } // required .box2d.PbBodyType type = 2; private org.box2d.proto.Box2D.PbBodyType type_ = org.box2d.proto.Box2D.PbBodyType.STATIC; /** * <code>required .box2d.PbBodyType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .box2d.PbBodyType type = 2;</code> */ public org.box2d.proto.Box2D.PbBodyType getType() { return type_; } /** * <code>required .box2d.PbBodyType type = 2;</code> */ public Builder setType(org.box2d.proto.Box2D.PbBodyType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * <code>required .box2d.PbBodyType type = 2;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = org.box2d.proto.Box2D.PbBodyType.STATIC; onChanged(); return this; } // optional .box2d.PbVec2 position = 10; private org.box2d.proto.Box2D.PbVec2 position_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> positionBuilder_; /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public boolean hasPosition() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public org.box2d.proto.Box2D.PbVec2 getPosition() { if (positionBuilder_ == null) { return position_; } else { return positionBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public Builder setPosition(org.box2d.proto.Box2D.PbVec2 value) { if (positionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } position_ = value; onChanged(); } else { positionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public Builder setPosition( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (positionBuilder_ == null) { position_ = builderForValue.build(); onChanged(); } else { positionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public Builder mergePosition(org.box2d.proto.Box2D.PbVec2 value) { if (positionBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && position_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { position_ = org.box2d.proto.Box2D.PbVec2.newBuilder(position_).mergeFrom(value).buildPartial(); } else { position_ = value; } onChanged(); } else { positionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public Builder clearPosition() { if (positionBuilder_ == null) { position_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { positionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public org.box2d.proto.Box2D.PbVec2.Builder getPositionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPositionFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getPositionOrBuilder() { if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { return position_; } } /** * <code>optional .box2d.PbVec2 position = 10;</code> * * <pre> * physical attributes * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { positionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( position_, getParentForChildren(), isClean()); position_ = null; } return positionBuilder_; } // optional float angle = 11; private float angle_ ; /** * <code>optional float angle = 11;</code> */ public boolean hasAngle() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional float angle = 11;</code> */ public float getAngle() { return angle_; } /** * <code>optional float angle = 11;</code> */ public Builder setAngle(float value) { bitField0_ |= 0x00000008; angle_ = value; onChanged(); return this; } /** * <code>optional float angle = 11;</code> */ public Builder clearAngle() { bitField0_ = (bitField0_ & ~0x00000008); angle_ = 0F; onChanged(); return this; } // optional .box2d.PbVec2 linear_velocity = 12; private org.box2d.proto.Box2D.PbVec2 linearVelocity_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> linearVelocityBuilder_; /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public boolean hasLinearVelocity() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public org.box2d.proto.Box2D.PbVec2 getLinearVelocity() { if (linearVelocityBuilder_ == null) { return linearVelocity_; } else { return linearVelocityBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public Builder setLinearVelocity(org.box2d.proto.Box2D.PbVec2 value) { if (linearVelocityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } linearVelocity_ = value; onChanged(); } else { linearVelocityBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public Builder setLinearVelocity( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (linearVelocityBuilder_ == null) { linearVelocity_ = builderForValue.build(); onChanged(); } else { linearVelocityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public Builder mergeLinearVelocity(org.box2d.proto.Box2D.PbVec2 value) { if (linearVelocityBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && linearVelocity_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { linearVelocity_ = org.box2d.proto.Box2D.PbVec2.newBuilder(linearVelocity_).mergeFrom(value).buildPartial(); } else { linearVelocity_ = value; } onChanged(); } else { linearVelocityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public Builder clearLinearVelocity() { if (linearVelocityBuilder_ == null) { linearVelocity_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { linearVelocityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public org.box2d.proto.Box2D.PbVec2.Builder getLinearVelocityBuilder() { bitField0_ |= 0x00000010; onChanged(); return getLinearVelocityFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getLinearVelocityOrBuilder() { if (linearVelocityBuilder_ != null) { return linearVelocityBuilder_.getMessageOrBuilder(); } else { return linearVelocity_; } } /** * <code>optional .box2d.PbVec2 linear_velocity = 12;</code> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getLinearVelocityFieldBuilder() { if (linearVelocityBuilder_ == null) { linearVelocityBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( linearVelocity_, getParentForChildren(), isClean()); linearVelocity_ = null; } return linearVelocityBuilder_; } // optional float angular_velocity = 13; private float angularVelocity_ ; /** * <code>optional float angular_velocity = 13;</code> */ public boolean hasAngularVelocity() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional float angular_velocity = 13;</code> */ public float getAngularVelocity() { return angularVelocity_; } /** * <code>optional float angular_velocity = 13;</code> */ public Builder setAngularVelocity(float value) { bitField0_ |= 0x00000020; angularVelocity_ = value; onChanged(); return this; } /** * <code>optional float angular_velocity = 13;</code> */ public Builder clearAngularVelocity() { bitField0_ = (bitField0_ & ~0x00000020); angularVelocity_ = 0F; onChanged(); return this; } // optional float linear_damping = 50; private float linearDamping_ ; /** * <code>optional float linear_damping = 50;</code> * * <pre> * configuration * </pre> */ public boolean hasLinearDamping() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional float linear_damping = 50;</code> * * <pre> * configuration * </pre> */ public float getLinearDamping() { return linearDamping_; } /** * <code>optional float linear_damping = 50;</code> * * <pre> * configuration * </pre> */ public Builder setLinearDamping(float value) { bitField0_ |= 0x00000040; linearDamping_ = value; onChanged(); return this; } /** * <code>optional float linear_damping = 50;</code> * * <pre> * configuration * </pre> */ public Builder clearLinearDamping() { bitField0_ = (bitField0_ & ~0x00000040); linearDamping_ = 0F; onChanged(); return this; } // optional float angular_damping = 51; private float angularDamping_ ; /** * <code>optional float angular_damping = 51;</code> */ public boolean hasAngularDamping() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional float angular_damping = 51;</code> */ public float getAngularDamping() { return angularDamping_; } /** * <code>optional float angular_damping = 51;</code> */ public Builder setAngularDamping(float value) { bitField0_ |= 0x00000080; angularDamping_ = value; onChanged(); return this; } /** * <code>optional float angular_damping = 51;</code> */ public Builder clearAngularDamping() { bitField0_ = (bitField0_ & ~0x00000080); angularDamping_ = 0F; onChanged(); return this; } // optional float gravity_scale = 52; private float gravityScale_ ; /** * <code>optional float gravity_scale = 52;</code> */ public boolean hasGravityScale() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional float gravity_scale = 52;</code> */ public float getGravityScale() { return gravityScale_; } /** * <code>optional float gravity_scale = 52;</code> */ public Builder setGravityScale(float value) { bitField0_ |= 0x00000100; gravityScale_ = value; onChanged(); return this; } /** * <code>optional float gravity_scale = 52;</code> */ public Builder clearGravityScale() { bitField0_ = (bitField0_ & ~0x00000100); gravityScale_ = 0F; onChanged(); return this; } // optional bool bullet = 53; private boolean bullet_ ; /** * <code>optional bool bullet = 53;</code> */ public boolean hasBullet() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional bool bullet = 53;</code> */ public boolean getBullet() { return bullet_; } /** * <code>optional bool bullet = 53;</code> */ public Builder setBullet(boolean value) { bitField0_ |= 0x00000200; bullet_ = value; onChanged(); return this; } /** * <code>optional bool bullet = 53;</code> */ public Builder clearBullet() { bitField0_ = (bitField0_ & ~0x00000200); bullet_ = false; onChanged(); return this; } // optional bool allow_sleep = 54; private boolean allowSleep_ ; /** * <code>optional bool allow_sleep = 54;</code> */ public boolean hasAllowSleep() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool allow_sleep = 54;</code> */ public boolean getAllowSleep() { return allowSleep_; } /** * <code>optional bool allow_sleep = 54;</code> */ public Builder setAllowSleep(boolean value) { bitField0_ |= 0x00000400; allowSleep_ = value; onChanged(); return this; } /** * <code>optional bool allow_sleep = 54;</code> */ public Builder clearAllowSleep() { bitField0_ = (bitField0_ & ~0x00000400); allowSleep_ = false; onChanged(); return this; } // optional bool awake = 55; private boolean awake_ ; /** * <code>optional bool awake = 55;</code> */ public boolean hasAwake() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional bool awake = 55;</code> */ public boolean getAwake() { return awake_; } /** * <code>optional bool awake = 55;</code> */ public Builder setAwake(boolean value) { bitField0_ |= 0x00000800; awake_ = value; onChanged(); return this; } /** * <code>optional bool awake = 55;</code> */ public Builder clearAwake() { bitField0_ = (bitField0_ & ~0x00000800); awake_ = false; onChanged(); return this; } // optional bool active = 56; private boolean active_ ; /** * <code>optional bool active = 56;</code> */ public boolean hasActive() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional bool active = 56;</code> */ public boolean getActive() { return active_; } /** * <code>optional bool active = 56;</code> */ public Builder setActive(boolean value) { bitField0_ |= 0x00001000; active_ = value; onChanged(); return this; } /** * <code>optional bool active = 56;</code> */ public Builder clearActive() { bitField0_ = (bitField0_ & ~0x00001000); active_ = false; onChanged(); return this; } // optional bool fixed_rotation = 57; private boolean fixedRotation_ ; /** * <code>optional bool fixed_rotation = 57;</code> */ public boolean hasFixedRotation() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional bool fixed_rotation = 57;</code> */ public boolean getFixedRotation() { return fixedRotation_; } /** * <code>optional bool fixed_rotation = 57;</code> */ public Builder setFixedRotation(boolean value) { bitField0_ |= 0x00002000; fixedRotation_ = value; onChanged(); return this; } /** * <code>optional bool fixed_rotation = 57;</code> */ public Builder clearFixedRotation() { bitField0_ = (bitField0_ & ~0x00002000); fixedRotation_ = false; onChanged(); return this; } // repeated .box2d.PbFixture fixtures = 100; private java.util.List<org.box2d.proto.Box2D.PbFixture> fixtures_ = java.util.Collections.emptyList(); private void ensureFixturesIsMutable() { if (!((bitField0_ & 0x00004000) == 0x00004000)) { fixtures_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbFixture>(fixtures_); bitField0_ |= 0x00004000; } } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbFixture, org.box2d.proto.Box2D.PbFixture.Builder, org.box2d.proto.Box2D.PbFixtureOrBuilder> fixturesBuilder_; /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public java.util.List<org.box2d.proto.Box2D.PbFixture> getFixturesList() { if (fixturesBuilder_ == null) { return java.util.Collections.unmodifiableList(fixtures_); } else { return fixturesBuilder_.getMessageList(); } } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public int getFixturesCount() { if (fixturesBuilder_ == null) { return fixtures_.size(); } else { return fixturesBuilder_.getCount(); } } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public org.box2d.proto.Box2D.PbFixture getFixtures(int index) { if (fixturesBuilder_ == null) { return fixtures_.get(index); } else { return fixturesBuilder_.getMessage(index); } } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public Builder setFixtures( int index, org.box2d.proto.Box2D.PbFixture value) { if (fixturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFixturesIsMutable(); fixtures_.set(index, value); onChanged(); } else { fixturesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public Builder setFixtures( int index, org.box2d.proto.Box2D.PbFixture.Builder builderForValue) { if (fixturesBuilder_ == null) { ensureFixturesIsMutable(); fixtures_.set(index, builderForValue.build()); onChanged(); } else { fixturesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public Builder addFixtures(org.box2d.proto.Box2D.PbFixture value) { if (fixturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFixturesIsMutable(); fixtures_.add(value); onChanged(); } else { fixturesBuilder_.addMessage(value); } return this; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public Builder addFixtures( int index, org.box2d.proto.Box2D.PbFixture value) { if (fixturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFixturesIsMutable(); fixtures_.add(index, value); onChanged(); } else { fixturesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public Builder addFixtures( org.box2d.proto.Box2D.PbFixture.Builder builderForValue) { if (fixturesBuilder_ == null) { ensureFixturesIsMutable(); fixtures_.add(builderForValue.build()); onChanged(); } else { fixturesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public Builder addFixtures( int index, org.box2d.proto.Box2D.PbFixture.Builder builderForValue) { if (fixturesBuilder_ == null) { ensureFixturesIsMutable(); fixtures_.add(index, builderForValue.build()); onChanged(); } else { fixturesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public Builder addAllFixtures( java.lang.Iterable<? extends org.box2d.proto.Box2D.PbFixture> values) { if (fixturesBuilder_ == null) { ensureFixturesIsMutable(); super.addAll(values, fixtures_); onChanged(); } else { fixturesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public Builder clearFixtures() { if (fixturesBuilder_ == null) { fixtures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { fixturesBuilder_.clear(); } return this; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public Builder removeFixtures(int index) { if (fixturesBuilder_ == null) { ensureFixturesIsMutable(); fixtures_.remove(index); onChanged(); } else { fixturesBuilder_.remove(index); } return this; } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public org.box2d.proto.Box2D.PbFixture.Builder getFixturesBuilder( int index) { return getFixturesFieldBuilder().getBuilder(index); } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public org.box2d.proto.Box2D.PbFixtureOrBuilder getFixturesOrBuilder( int index) { if (fixturesBuilder_ == null) { return fixtures_.get(index); } else { return fixturesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public java.util.List<? extends org.box2d.proto.Box2D.PbFixtureOrBuilder> getFixturesOrBuilderList() { if (fixturesBuilder_ != null) { return fixturesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fixtures_); } } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public org.box2d.proto.Box2D.PbFixture.Builder addFixturesBuilder() { return getFixturesFieldBuilder().addBuilder( org.box2d.proto.Box2D.PbFixture.getDefaultInstance()); } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public org.box2d.proto.Box2D.PbFixture.Builder addFixturesBuilder( int index) { return getFixturesFieldBuilder().addBuilder( index, org.box2d.proto.Box2D.PbFixture.getDefaultInstance()); } /** * <code>repeated .box2d.PbFixture fixtures = 100;</code> */ public java.util.List<org.box2d.proto.Box2D.PbFixture.Builder> getFixturesBuilderList() { return getFixturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbFixture, org.box2d.proto.Box2D.PbFixture.Builder, org.box2d.proto.Box2D.PbFixtureOrBuilder> getFixturesFieldBuilder() { if (fixturesBuilder_ == null) { fixturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbFixture, org.box2d.proto.Box2D.PbFixture.Builder, org.box2d.proto.Box2D.PbFixtureOrBuilder>( fixtures_, ((bitField0_ & 0x00004000) == 0x00004000), getParentForChildren(), isClean()); fixtures_ = null; } return fixturesBuilder_; } // @@protoc_insertion_point(builder_scope:box2d.PbBody) } static { defaultInstance = new PbBody(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:box2d.PbBody) } public interface PbWorldOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 tag = 1; /** * <code>optional int64 tag = 1;</code> */ boolean hasTag(); /** * <code>optional int64 tag = 1;</code> */ long getTag(); // optional .box2d.PbVec2 gravity = 2; /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ boolean hasGravity(); /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ org.box2d.proto.Box2D.PbVec2 getGravity(); /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ org.box2d.proto.Box2D.PbVec2OrBuilder getGravityOrBuilder(); // optional bool allow_sleep = 3; /** * <code>optional bool allow_sleep = 3;</code> */ boolean hasAllowSleep(); /** * <code>optional bool allow_sleep = 3;</code> */ boolean getAllowSleep(); // optional bool auto_clear_forces = 4; /** * <code>optional bool auto_clear_forces = 4;</code> */ boolean hasAutoClearForces(); /** * <code>optional bool auto_clear_forces = 4;</code> */ boolean getAutoClearForces(); // optional bool warm_starting = 5; /** * <code>optional bool warm_starting = 5;</code> */ boolean hasWarmStarting(); /** * <code>optional bool warm_starting = 5;</code> */ boolean getWarmStarting(); // optional bool continuous_physics = 6; /** * <code>optional bool continuous_physics = 6;</code> */ boolean hasContinuousPhysics(); /** * <code>optional bool continuous_physics = 6;</code> */ boolean getContinuousPhysics(); // optional bool sub_stepping = 7; /** * <code>optional bool sub_stepping = 7;</code> */ boolean hasSubStepping(); /** * <code>optional bool sub_stepping = 7;</code> */ boolean getSubStepping(); // repeated .box2d.PbBody bodies = 20; /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ java.util.List<org.box2d.proto.Box2D.PbBody> getBodiesList(); /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ org.box2d.proto.Box2D.PbBody getBodies(int index); /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ int getBodiesCount(); /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ java.util.List<? extends org.box2d.proto.Box2D.PbBodyOrBuilder> getBodiesOrBuilderList(); /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ org.box2d.proto.Box2D.PbBodyOrBuilder getBodiesOrBuilder( int index); // repeated .box2d.PbJoint joints = 21; /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ java.util.List<org.box2d.proto.Box2D.PbJoint> getJointsList(); /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ org.box2d.proto.Box2D.PbJoint getJoints(int index); /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ int getJointsCount(); /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ java.util.List<? extends org.box2d.proto.Box2D.PbJointOrBuilder> getJointsOrBuilderList(); /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ org.box2d.proto.Box2D.PbJointOrBuilder getJointsOrBuilder( int index); } /** * Protobuf type {@code box2d.PbWorld} */ public static final class PbWorld extends com.google.protobuf.GeneratedMessage implements PbWorldOrBuilder { // Use PbWorld.newBuilder() to construct. private PbWorld(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PbWorld(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PbWorld defaultInstance; public static PbWorld getDefaultInstance() { return defaultInstance; } public PbWorld getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PbWorld( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; tag_ = input.readInt64(); break; } case 18: { org.box2d.proto.Box2D.PbVec2.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = gravity_.toBuilder(); } gravity_ = input.readMessage(org.box2d.proto.Box2D.PbVec2.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(gravity_); gravity_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 24: { bitField0_ |= 0x00000004; allowSleep_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; autoClearForces_ = input.readBool(); break; } case 40: { bitField0_ |= 0x00000010; warmStarting_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000020; continuousPhysics_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000040; subStepping_ = input.readBool(); break; } case 162: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { bodies_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbBody>(); mutable_bitField0_ |= 0x00000080; } bodies_.add(input.readMessage(org.box2d.proto.Box2D.PbBody.PARSER, extensionRegistry)); break; } case 170: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { joints_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbJoint>(); mutable_bitField0_ |= 0x00000100; } joints_.add(input.readMessage(org.box2d.proto.Box2D.PbJoint.PARSER, extensionRegistry)); 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_ & 0x00000080) == 0x00000080)) { bodies_ = java.util.Collections.unmodifiableList(bodies_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { joints_ = java.util.Collections.unmodifiableList(joints_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbWorld_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbWorld_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbWorld.class, org.box2d.proto.Box2D.PbWorld.Builder.class); } public static com.google.protobuf.Parser<PbWorld> PARSER = new com.google.protobuf.AbstractParser<PbWorld>() { public PbWorld parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PbWorld(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PbWorld> getParserForType() { return PARSER; } private int bitField0_; // optional int64 tag = 1; public static final int TAG_FIELD_NUMBER = 1; private long tag_; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } // optional .box2d.PbVec2 gravity = 2; public static final int GRAVITY_FIELD_NUMBER = 2; private org.box2d.proto.Box2D.PbVec2 gravity_; /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public boolean hasGravity() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public org.box2d.proto.Box2D.PbVec2 getGravity() { return gravity_; } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getGravityOrBuilder() { return gravity_; } // optional bool allow_sleep = 3; public static final int ALLOW_SLEEP_FIELD_NUMBER = 3; private boolean allowSleep_; /** * <code>optional bool allow_sleep = 3;</code> */ public boolean hasAllowSleep() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool allow_sleep = 3;</code> */ public boolean getAllowSleep() { return allowSleep_; } // optional bool auto_clear_forces = 4; public static final int AUTO_CLEAR_FORCES_FIELD_NUMBER = 4; private boolean autoClearForces_; /** * <code>optional bool auto_clear_forces = 4;</code> */ public boolean hasAutoClearForces() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool auto_clear_forces = 4;</code> */ public boolean getAutoClearForces() { return autoClearForces_; } // optional bool warm_starting = 5; public static final int WARM_STARTING_FIELD_NUMBER = 5; private boolean warmStarting_; /** * <code>optional bool warm_starting = 5;</code> */ public boolean hasWarmStarting() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool warm_starting = 5;</code> */ public boolean getWarmStarting() { return warmStarting_; } // optional bool continuous_physics = 6; public static final int CONTINUOUS_PHYSICS_FIELD_NUMBER = 6; private boolean continuousPhysics_; /** * <code>optional bool continuous_physics = 6;</code> */ public boolean hasContinuousPhysics() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool continuous_physics = 6;</code> */ public boolean getContinuousPhysics() { return continuousPhysics_; } // optional bool sub_stepping = 7; public static final int SUB_STEPPING_FIELD_NUMBER = 7; private boolean subStepping_; /** * <code>optional bool sub_stepping = 7;</code> */ public boolean hasSubStepping() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool sub_stepping = 7;</code> */ public boolean getSubStepping() { return subStepping_; } // repeated .box2d.PbBody bodies = 20; public static final int BODIES_FIELD_NUMBER = 20; private java.util.List<org.box2d.proto.Box2D.PbBody> bodies_; /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public java.util.List<org.box2d.proto.Box2D.PbBody> getBodiesList() { return bodies_; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public java.util.List<? extends org.box2d.proto.Box2D.PbBodyOrBuilder> getBodiesOrBuilderList() { return bodies_; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public int getBodiesCount() { return bodies_.size(); } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public org.box2d.proto.Box2D.PbBody getBodies(int index) { return bodies_.get(index); } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public org.box2d.proto.Box2D.PbBodyOrBuilder getBodiesOrBuilder( int index) { return bodies_.get(index); } // repeated .box2d.PbJoint joints = 21; public static final int JOINTS_FIELD_NUMBER = 21; private java.util.List<org.box2d.proto.Box2D.PbJoint> joints_; /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public java.util.List<org.box2d.proto.Box2D.PbJoint> getJointsList() { return joints_; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public java.util.List<? extends org.box2d.proto.Box2D.PbJointOrBuilder> getJointsOrBuilderList() { return joints_; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public int getJointsCount() { return joints_.size(); } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public org.box2d.proto.Box2D.PbJoint getJoints(int index) { return joints_.get(index); } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public org.box2d.proto.Box2D.PbJointOrBuilder getJointsOrBuilder( int index) { return joints_.get(index); } private void initFields() { tag_ = 0L; gravity_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); allowSleep_ = false; autoClearForces_ = false; warmStarting_ = false; continuousPhysics_ = false; subStepping_ = false; bodies_ = java.util.Collections.emptyList(); joints_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasGravity()) { if (!getGravity().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getBodiesCount(); i++) { if (!getBodies(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getJointsCount(); i++) { if (!getJoints(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, gravity_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, allowSleep_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, autoClearForces_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, warmStarting_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, continuousPhysics_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, subStepping_); } for (int i = 0; i < bodies_.size(); i++) { output.writeMessage(20, bodies_.get(i)); } for (int i = 0; i < joints_.size(); i++) { output.writeMessage(21, joints_.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 .computeInt64Size(1, tag_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, gravity_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, allowSleep_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, autoClearForces_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, warmStarting_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, continuousPhysics_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, subStepping_); } for (int i = 0; i < bodies_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, bodies_.get(i)); } for (int i = 0; i < joints_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, joints_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.box2d.proto.Box2D.PbWorld parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbWorld parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbWorld parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.box2d.proto.Box2D.PbWorld parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.box2d.proto.Box2D.PbWorld parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbWorld parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbWorld parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.box2d.proto.Box2D.PbWorld parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.box2d.proto.Box2D.PbWorld parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.box2d.proto.Box2D.PbWorld 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(org.box2d.proto.Box2D.PbWorld prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code box2d.PbWorld} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.box2d.proto.Box2D.PbWorldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.box2d.proto.Box2D.internal_static_box2d_PbWorld_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.box2d.proto.Box2D.internal_static_box2d_PbWorld_fieldAccessorTable .ensureFieldAccessorsInitialized( org.box2d.proto.Box2D.PbWorld.class, org.box2d.proto.Box2D.PbWorld.Builder.class); } // Construct using org.box2d.proto.Box2D.PbWorld.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getGravityFieldBuilder(); getBodiesFieldBuilder(); getJointsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); tag_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); if (gravityBuilder_ == null) { gravity_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); } else { gravityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); allowSleep_ = false; bitField0_ = (bitField0_ & ~0x00000004); autoClearForces_ = false; bitField0_ = (bitField0_ & ~0x00000008); warmStarting_ = false; bitField0_ = (bitField0_ & ~0x00000010); continuousPhysics_ = false; bitField0_ = (bitField0_ & ~0x00000020); subStepping_ = false; bitField0_ = (bitField0_ & ~0x00000040); if (bodiesBuilder_ == null) { bodies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { bodiesBuilder_.clear(); } if (jointsBuilder_ == null) { joints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { jointsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.box2d.proto.Box2D.internal_static_box2d_PbWorld_descriptor; } public org.box2d.proto.Box2D.PbWorld getDefaultInstanceForType() { return org.box2d.proto.Box2D.PbWorld.getDefaultInstance(); } public org.box2d.proto.Box2D.PbWorld build() { org.box2d.proto.Box2D.PbWorld result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.box2d.proto.Box2D.PbWorld buildPartial() { org.box2d.proto.Box2D.PbWorld result = new org.box2d.proto.Box2D.PbWorld(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (gravityBuilder_ == null) { result.gravity_ = gravity_; } else { result.gravity_ = gravityBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.allowSleep_ = allowSleep_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.autoClearForces_ = autoClearForces_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.warmStarting_ = warmStarting_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.continuousPhysics_ = continuousPhysics_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.subStepping_ = subStepping_; if (bodiesBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { bodies_ = java.util.Collections.unmodifiableList(bodies_); bitField0_ = (bitField0_ & ~0x00000080); } result.bodies_ = bodies_; } else { result.bodies_ = bodiesBuilder_.build(); } if (jointsBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { joints_ = java.util.Collections.unmodifiableList(joints_); bitField0_ = (bitField0_ & ~0x00000100); } result.joints_ = joints_; } else { result.joints_ = jointsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.box2d.proto.Box2D.PbWorld) { return mergeFrom((org.box2d.proto.Box2D.PbWorld)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.box2d.proto.Box2D.PbWorld other) { if (other == org.box2d.proto.Box2D.PbWorld.getDefaultInstance()) return this; if (other.hasTag()) { setTag(other.getTag()); } if (other.hasGravity()) { mergeGravity(other.getGravity()); } if (other.hasAllowSleep()) { setAllowSleep(other.getAllowSleep()); } if (other.hasAutoClearForces()) { setAutoClearForces(other.getAutoClearForces()); } if (other.hasWarmStarting()) { setWarmStarting(other.getWarmStarting()); } if (other.hasContinuousPhysics()) { setContinuousPhysics(other.getContinuousPhysics()); } if (other.hasSubStepping()) { setSubStepping(other.getSubStepping()); } if (bodiesBuilder_ == null) { if (!other.bodies_.isEmpty()) { if (bodies_.isEmpty()) { bodies_ = other.bodies_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureBodiesIsMutable(); bodies_.addAll(other.bodies_); } onChanged(); } } else { if (!other.bodies_.isEmpty()) { if (bodiesBuilder_.isEmpty()) { bodiesBuilder_.dispose(); bodiesBuilder_ = null; bodies_ = other.bodies_; bitField0_ = (bitField0_ & ~0x00000080); bodiesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBodiesFieldBuilder() : null; } else { bodiesBuilder_.addAllMessages(other.bodies_); } } } if (jointsBuilder_ == null) { if (!other.joints_.isEmpty()) { if (joints_.isEmpty()) { joints_ = other.joints_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureJointsIsMutable(); joints_.addAll(other.joints_); } onChanged(); } } else { if (!other.joints_.isEmpty()) { if (jointsBuilder_.isEmpty()) { jointsBuilder_.dispose(); jointsBuilder_ = null; joints_ = other.joints_; bitField0_ = (bitField0_ & ~0x00000100); jointsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getJointsFieldBuilder() : null; } else { jointsBuilder_.addAllMessages(other.joints_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasGravity()) { if (!getGravity().isInitialized()) { return false; } } for (int i = 0; i < getBodiesCount(); i++) { if (!getBodies(i).isInitialized()) { return false; } } for (int i = 0; i < getJointsCount(); i++) { if (!getJoints(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.box2d.proto.Box2D.PbWorld parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.box2d.proto.Box2D.PbWorld) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 tag = 1; private long tag_ ; /** * <code>optional int64 tag = 1;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 tag = 1;</code> */ public long getTag() { return tag_; } /** * <code>optional int64 tag = 1;</code> */ public Builder setTag(long value) { bitField0_ |= 0x00000001; tag_ = value; onChanged(); return this; } /** * <code>optional int64 tag = 1;</code> */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000001); tag_ = 0L; onChanged(); return this; } // optional .box2d.PbVec2 gravity = 2; private org.box2d.proto.Box2D.PbVec2 gravity_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> gravityBuilder_; /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public boolean hasGravity() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public org.box2d.proto.Box2D.PbVec2 getGravity() { if (gravityBuilder_ == null) { return gravity_; } else { return gravityBuilder_.getMessage(); } } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public Builder setGravity(org.box2d.proto.Box2D.PbVec2 value) { if (gravityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gravity_ = value; onChanged(); } else { gravityBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public Builder setGravity( org.box2d.proto.Box2D.PbVec2.Builder builderForValue) { if (gravityBuilder_ == null) { gravity_ = builderForValue.build(); onChanged(); } else { gravityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public Builder mergeGravity(org.box2d.proto.Box2D.PbVec2 value) { if (gravityBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && gravity_ != org.box2d.proto.Box2D.PbVec2.getDefaultInstance()) { gravity_ = org.box2d.proto.Box2D.PbVec2.newBuilder(gravity_).mergeFrom(value).buildPartial(); } else { gravity_ = value; } onChanged(); } else { gravityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public Builder clearGravity() { if (gravityBuilder_ == null) { gravity_ = org.box2d.proto.Box2D.PbVec2.getDefaultInstance(); onChanged(); } else { gravityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public org.box2d.proto.Box2D.PbVec2.Builder getGravityBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGravityFieldBuilder().getBuilder(); } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ public org.box2d.proto.Box2D.PbVec2OrBuilder getGravityOrBuilder() { if (gravityBuilder_ != null) { return gravityBuilder_.getMessageOrBuilder(); } else { return gravity_; } } /** * <code>optional .box2d.PbVec2 gravity = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder> getGravityFieldBuilder() { if (gravityBuilder_ == null) { gravityBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.box2d.proto.Box2D.PbVec2, org.box2d.proto.Box2D.PbVec2.Builder, org.box2d.proto.Box2D.PbVec2OrBuilder>( gravity_, getParentForChildren(), isClean()); gravity_ = null; } return gravityBuilder_; } // optional bool allow_sleep = 3; private boolean allowSleep_ ; /** * <code>optional bool allow_sleep = 3;</code> */ public boolean hasAllowSleep() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool allow_sleep = 3;</code> */ public boolean getAllowSleep() { return allowSleep_; } /** * <code>optional bool allow_sleep = 3;</code> */ public Builder setAllowSleep(boolean value) { bitField0_ |= 0x00000004; allowSleep_ = value; onChanged(); return this; } /** * <code>optional bool allow_sleep = 3;</code> */ public Builder clearAllowSleep() { bitField0_ = (bitField0_ & ~0x00000004); allowSleep_ = false; onChanged(); return this; } // optional bool auto_clear_forces = 4; private boolean autoClearForces_ ; /** * <code>optional bool auto_clear_forces = 4;</code> */ public boolean hasAutoClearForces() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool auto_clear_forces = 4;</code> */ public boolean getAutoClearForces() { return autoClearForces_; } /** * <code>optional bool auto_clear_forces = 4;</code> */ public Builder setAutoClearForces(boolean value) { bitField0_ |= 0x00000008; autoClearForces_ = value; onChanged(); return this; } /** * <code>optional bool auto_clear_forces = 4;</code> */ public Builder clearAutoClearForces() { bitField0_ = (bitField0_ & ~0x00000008); autoClearForces_ = false; onChanged(); return this; } // optional bool warm_starting = 5; private boolean warmStarting_ ; /** * <code>optional bool warm_starting = 5;</code> */ public boolean hasWarmStarting() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool warm_starting = 5;</code> */ public boolean getWarmStarting() { return warmStarting_; } /** * <code>optional bool warm_starting = 5;</code> */ public Builder setWarmStarting(boolean value) { bitField0_ |= 0x00000010; warmStarting_ = value; onChanged(); return this; } /** * <code>optional bool warm_starting = 5;</code> */ public Builder clearWarmStarting() { bitField0_ = (bitField0_ & ~0x00000010); warmStarting_ = false; onChanged(); return this; } // optional bool continuous_physics = 6; private boolean continuousPhysics_ ; /** * <code>optional bool continuous_physics = 6;</code> */ public boolean hasContinuousPhysics() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool continuous_physics = 6;</code> */ public boolean getContinuousPhysics() { return continuousPhysics_; } /** * <code>optional bool continuous_physics = 6;</code> */ public Builder setContinuousPhysics(boolean value) { bitField0_ |= 0x00000020; continuousPhysics_ = value; onChanged(); return this; } /** * <code>optional bool continuous_physics = 6;</code> */ public Builder clearContinuousPhysics() { bitField0_ = (bitField0_ & ~0x00000020); continuousPhysics_ = false; onChanged(); return this; } // optional bool sub_stepping = 7; private boolean subStepping_ ; /** * <code>optional bool sub_stepping = 7;</code> */ public boolean hasSubStepping() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool sub_stepping = 7;</code> */ public boolean getSubStepping() { return subStepping_; } /** * <code>optional bool sub_stepping = 7;</code> */ public Builder setSubStepping(boolean value) { bitField0_ |= 0x00000040; subStepping_ = value; onChanged(); return this; } /** * <code>optional bool sub_stepping = 7;</code> */ public Builder clearSubStepping() { bitField0_ = (bitField0_ & ~0x00000040); subStepping_ = false; onChanged(); return this; } // repeated .box2d.PbBody bodies = 20; private java.util.List<org.box2d.proto.Box2D.PbBody> bodies_ = java.util.Collections.emptyList(); private void ensureBodiesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { bodies_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbBody>(bodies_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbBody, org.box2d.proto.Box2D.PbBody.Builder, org.box2d.proto.Box2D.PbBodyOrBuilder> bodiesBuilder_; /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public java.util.List<org.box2d.proto.Box2D.PbBody> getBodiesList() { if (bodiesBuilder_ == null) { return java.util.Collections.unmodifiableList(bodies_); } else { return bodiesBuilder_.getMessageList(); } } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public int getBodiesCount() { if (bodiesBuilder_ == null) { return bodies_.size(); } else { return bodiesBuilder_.getCount(); } } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public org.box2d.proto.Box2D.PbBody getBodies(int index) { if (bodiesBuilder_ == null) { return bodies_.get(index); } else { return bodiesBuilder_.getMessage(index); } } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public Builder setBodies( int index, org.box2d.proto.Box2D.PbBody value) { if (bodiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBodiesIsMutable(); bodies_.set(index, value); onChanged(); } else { bodiesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public Builder setBodies( int index, org.box2d.proto.Box2D.PbBody.Builder builderForValue) { if (bodiesBuilder_ == null) { ensureBodiesIsMutable(); bodies_.set(index, builderForValue.build()); onChanged(); } else { bodiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public Builder addBodies(org.box2d.proto.Box2D.PbBody value) { if (bodiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBodiesIsMutable(); bodies_.add(value); onChanged(); } else { bodiesBuilder_.addMessage(value); } return this; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public Builder addBodies( int index, org.box2d.proto.Box2D.PbBody value) { if (bodiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBodiesIsMutable(); bodies_.add(index, value); onChanged(); } else { bodiesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public Builder addBodies( org.box2d.proto.Box2D.PbBody.Builder builderForValue) { if (bodiesBuilder_ == null) { ensureBodiesIsMutable(); bodies_.add(builderForValue.build()); onChanged(); } else { bodiesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public Builder addBodies( int index, org.box2d.proto.Box2D.PbBody.Builder builderForValue) { if (bodiesBuilder_ == null) { ensureBodiesIsMutable(); bodies_.add(index, builderForValue.build()); onChanged(); } else { bodiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public Builder addAllBodies( java.lang.Iterable<? extends org.box2d.proto.Box2D.PbBody> values) { if (bodiesBuilder_ == null) { ensureBodiesIsMutable(); super.addAll(values, bodies_); onChanged(); } else { bodiesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public Builder clearBodies() { if (bodiesBuilder_ == null) { bodies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { bodiesBuilder_.clear(); } return this; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public Builder removeBodies(int index) { if (bodiesBuilder_ == null) { ensureBodiesIsMutable(); bodies_.remove(index); onChanged(); } else { bodiesBuilder_.remove(index); } return this; } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public org.box2d.proto.Box2D.PbBody.Builder getBodiesBuilder( int index) { return getBodiesFieldBuilder().getBuilder(index); } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public org.box2d.proto.Box2D.PbBodyOrBuilder getBodiesOrBuilder( int index) { if (bodiesBuilder_ == null) { return bodies_.get(index); } else { return bodiesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public java.util.List<? extends org.box2d.proto.Box2D.PbBodyOrBuilder> getBodiesOrBuilderList() { if (bodiesBuilder_ != null) { return bodiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(bodies_); } } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public org.box2d.proto.Box2D.PbBody.Builder addBodiesBuilder() { return getBodiesFieldBuilder().addBuilder( org.box2d.proto.Box2D.PbBody.getDefaultInstance()); } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public org.box2d.proto.Box2D.PbBody.Builder addBodiesBuilder( int index) { return getBodiesFieldBuilder().addBuilder( index, org.box2d.proto.Box2D.PbBody.getDefaultInstance()); } /** * <code>repeated .box2d.PbBody bodies = 20;</code> */ public java.util.List<org.box2d.proto.Box2D.PbBody.Builder> getBodiesBuilderList() { return getBodiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbBody, org.box2d.proto.Box2D.PbBody.Builder, org.box2d.proto.Box2D.PbBodyOrBuilder> getBodiesFieldBuilder() { if (bodiesBuilder_ == null) { bodiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbBody, org.box2d.proto.Box2D.PbBody.Builder, org.box2d.proto.Box2D.PbBodyOrBuilder>( bodies_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); bodies_ = null; } return bodiesBuilder_; } // repeated .box2d.PbJoint joints = 21; private java.util.List<org.box2d.proto.Box2D.PbJoint> joints_ = java.util.Collections.emptyList(); private void ensureJointsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { joints_ = new java.util.ArrayList<org.box2d.proto.Box2D.PbJoint>(joints_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbJoint, org.box2d.proto.Box2D.PbJoint.Builder, org.box2d.proto.Box2D.PbJointOrBuilder> jointsBuilder_; /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public java.util.List<org.box2d.proto.Box2D.PbJoint> getJointsList() { if (jointsBuilder_ == null) { return java.util.Collections.unmodifiableList(joints_); } else { return jointsBuilder_.getMessageList(); } } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public int getJointsCount() { if (jointsBuilder_ == null) { return joints_.size(); } else { return jointsBuilder_.getCount(); } } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public org.box2d.proto.Box2D.PbJoint getJoints(int index) { if (jointsBuilder_ == null) { return joints_.get(index); } else { return jointsBuilder_.getMessage(index); } } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public Builder setJoints( int index, org.box2d.proto.Box2D.PbJoint value) { if (jointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureJointsIsMutable(); joints_.set(index, value); onChanged(); } else { jointsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public Builder setJoints( int index, org.box2d.proto.Box2D.PbJoint.Builder builderForValue) { if (jointsBuilder_ == null) { ensureJointsIsMutable(); joints_.set(index, builderForValue.build()); onChanged(); } else { jointsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public Builder addJoints(org.box2d.proto.Box2D.PbJoint value) { if (jointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureJointsIsMutable(); joints_.add(value); onChanged(); } else { jointsBuilder_.addMessage(value); } return this; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public Builder addJoints( int index, org.box2d.proto.Box2D.PbJoint value) { if (jointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureJointsIsMutable(); joints_.add(index, value); onChanged(); } else { jointsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public Builder addJoints( org.box2d.proto.Box2D.PbJoint.Builder builderForValue) { if (jointsBuilder_ == null) { ensureJointsIsMutable(); joints_.add(builderForValue.build()); onChanged(); } else { jointsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public Builder addJoints( int index, org.box2d.proto.Box2D.PbJoint.Builder builderForValue) { if (jointsBuilder_ == null) { ensureJointsIsMutable(); joints_.add(index, builderForValue.build()); onChanged(); } else { jointsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public Builder addAllJoints( java.lang.Iterable<? extends org.box2d.proto.Box2D.PbJoint> values) { if (jointsBuilder_ == null) { ensureJointsIsMutable(); super.addAll(values, joints_); onChanged(); } else { jointsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public Builder clearJoints() { if (jointsBuilder_ == null) { joints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { jointsBuilder_.clear(); } return this; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public Builder removeJoints(int index) { if (jointsBuilder_ == null) { ensureJointsIsMutable(); joints_.remove(index); onChanged(); } else { jointsBuilder_.remove(index); } return this; } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public org.box2d.proto.Box2D.PbJoint.Builder getJointsBuilder( int index) { return getJointsFieldBuilder().getBuilder(index); } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public org.box2d.proto.Box2D.PbJointOrBuilder getJointsOrBuilder( int index) { if (jointsBuilder_ == null) { return joints_.get(index); } else { return jointsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public java.util.List<? extends org.box2d.proto.Box2D.PbJointOrBuilder> getJointsOrBuilderList() { if (jointsBuilder_ != null) { return jointsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(joints_); } } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public org.box2d.proto.Box2D.PbJoint.Builder addJointsBuilder() { return getJointsFieldBuilder().addBuilder( org.box2d.proto.Box2D.PbJoint.getDefaultInstance()); } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public org.box2d.proto.Box2D.PbJoint.Builder addJointsBuilder( int index) { return getJointsFieldBuilder().addBuilder( index, org.box2d.proto.Box2D.PbJoint.getDefaultInstance()); } /** * <code>repeated .box2d.PbJoint joints = 21;</code> */ public java.util.List<org.box2d.proto.Box2D.PbJoint.Builder> getJointsBuilderList() { return getJointsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbJoint, org.box2d.proto.Box2D.PbJoint.Builder, org.box2d.proto.Box2D.PbJointOrBuilder> getJointsFieldBuilder() { if (jointsBuilder_ == null) { jointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.box2d.proto.Box2D.PbJoint, org.box2d.proto.Box2D.PbJoint.Builder, org.box2d.proto.Box2D.PbJointOrBuilder>( joints_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); joints_ = null; } return jointsBuilder_; } // @@protoc_insertion_point(builder_scope:box2d.PbWorld) } static { defaultInstance = new PbWorld(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:box2d.PbWorld) } private static com.google.protobuf.Descriptors.Descriptor internal_static_box2d_PbVec2_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_box2d_PbVec2_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_box2d_PbFilter_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_box2d_PbFilter_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_box2d_PbShape_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_box2d_PbShape_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_box2d_PbFixture_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_box2d_PbFixture_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_box2d_PbJoint_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_box2d_PbJoint_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_box2d_PbBody_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_box2d_PbBody_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_box2d_PbWorld_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_box2d_PbWorld_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n$src/main/resources/proto/box2d.proto\022\005" + "box2d\"\036\n\006PbVec2\022\t\n\001x\030\001 \002(\002\022\t\n\001y\030\002 \002(\002\"I\n" + "\010PbFilter\022\025\n\rcategory_bits\030\001 \001(\005\022\021\n\tmask" + "_bits\030\002 \001(\005\022\023\n\013group_index\030\003 \001(\005\"\211\003\n\007PbS" + "hape\022\013\n\003tag\030\001 \001(\003\022 \n\004type\030\002 \002(\0162\022.box2d." + "PbShapeType\022\035\n\006center\030\n \001(\0132\r.box2d.PbVe" + "c2\022\016\n\006radius\030\013 \001(\002\022\035\n\006points\030\024 \003(\0132\r.box" + "2d.PbVec2\022\036\n\007normals\030\025 \003(\0132\r.box2d.PbVec" + "2\022\037\n\010centroid\030\026 \001(\0132\r.box2d.PbVec2\022\031\n\002v0" + "\030\036 \001(\0132\r.box2d.PbVec2\022\031\n\002v1\030\037 \001(\0132\r.box2", "d.PbVec2\022\031\n\002v2\030 \001(\0132\r.box2d.PbVec2\022\031\n\002v" + "3\030! \001(\0132\r.box2d.PbVec2\022\014\n\004has0\030\" \001(\010\022\014\n\004" + "has3\030# \001(\010\022\033\n\004prev\030( \001(\0132\r.box2d.PbVec2\022" + "\033\n\004next\030) \001(\0132\r.box2d.PbVec2\"\240\001\n\tPbFixtu" + "re\022\013\n\003tag\030\001 \001(\003\022\023\n\013restitution\030\002 \001(\002\022\020\n\010" + "friction\030\003 \001(\002\022\017\n\007density\030\004 \001(\002\022\016\n\006senso" + "r\030\005 \001(\010\022\037\n\006filter\030\n \001(\0132\017.box2d.PbFilter" + "\022\035\n\005shape\030\013 \001(\0132\016.box2d.PbShape\"\355\005\n\007PbJo" + "int\022\013\n\003tag\030\001 \001(\003\022 \n\004type\030\002 \002(\0162\022.box2d.P" + "bJointType\022\016\n\006body_a\030\003 \001(\005\022\016\n\006body_b\030\004 \001", "(\005\022\030\n\020collideConnected\030\005 \001(\010\022%\n\016local_an" + "chor_a\030\006 \001(\0132\r.box2d.PbVec2\022%\n\016local_anc" + "hor_b\030\007 \001(\0132\r.box2d.PbVec2\022\021\n\tref_angle\030" + "\n \001(\002\022\024\n\014enable_limit\030\014 \001(\010\022\023\n\013lower_lim" + "it\030\r \001(\002\022\023\n\013upper_limit\030\016 \001(\002\022\024\n\014enable_" + "motor\030\017 \001(\010\022\023\n\013motor_speed\030\020 \001(\002\022\030\n\020max_" + "motor_torque\030\021 \001(\002\022#\n\014local_axis_a\030\024 \001(\013" + "2\r.box2d.PbVec2\022\027\n\017max_motor_force\030\025 \001(\002" + "\022\016\n\006length\030\036 \001(\002\022\021\n\tfrequency\030\037 \001(\002\022\025\n\rd" + "amping_ratio\030 \001(\002\022&\n\017ground_anchor_a\030( ", "\001(\0132\r.box2d.PbVec2\022&\n\017ground_anchor_b\030) " + "\001(\0132\r.box2d.PbVec2\022\020\n\010length_a\030* \001(\002\022\020\n\010" + "length_b\030+ \001(\002\022\r\n\005ratio\030, \001(\002\022\035\n\006target\030" + "2 \001(\0132\r.box2d.PbVec2\022\021\n\tmax_force\0303 \001(\002\022" + "\016\n\006joint1\030= \001(\005\022\016\n\006joint2\030> \001(\005\022\022\n\nmax_t" + "orque\030Z \001(\002\022\022\n\nmax_length\030d \001(\002\022\016\n\006bodie" + "s\030n \003(\005\022\016\n\006joints\030o \003(\005\"\360\002\n\006PbBody\022\013\n\003ta" + "g\030\001 \001(\003\022\037\n\004type\030\002 \002(\0162\021.box2d.PbBodyType" + "\022\037\n\010position\030\n \001(\0132\r.box2d.PbVec2\022\r\n\005ang" + "le\030\013 \001(\002\022&\n\017linear_velocity\030\014 \001(\0132\r.box2", "d.PbVec2\022\030\n\020angular_velocity\030\r \001(\002\022\026\n\016li" + "near_damping\0302 \001(\002\022\027\n\017angular_damping\0303 " + "\001(\002\022\025\n\rgravity_scale\0304 \001(\002\022\016\n\006bullet\0305 \001" + "(\010\022\023\n\013allow_sleep\0306 \001(\010\022\r\n\005awake\0307 \001(\010\022\016" + "\n\006active\0308 \001(\010\022\026\n\016fixed_rotation\0309 \001(\010\022\"" + "\n\010fixtures\030d \003(\0132\020.box2d.PbFixture\"\356\001\n\007P" + "bWorld\022\013\n\003tag\030\001 \001(\003\022\036\n\007gravity\030\002 \001(\0132\r.b" + "ox2d.PbVec2\022\023\n\013allow_sleep\030\003 \001(\010\022\031\n\021auto" + "_clear_forces\030\004 \001(\010\022\025\n\rwarm_starting\030\005 \001" + "(\010\022\032\n\022continuous_physics\030\006 \001(\010\022\024\n\014sub_st", "epping\030\007 \001(\010\022\035\n\006bodies\030\024 \003(\0132\r.box2d.PbB" + "ody\022\036\n\006joints\030\025 \003(\0132\016.box2d.PbJoint*4\n\nP" + "bBodyType\022\n\n\006STATIC\020\000\022\013\n\007DYNAMIC\020\001\022\r\n\tKI" + "NEMATIC\020\002*;\n\013PbShapeType\022\n\n\006CIRCLE\020\001\022\013\n\007" + "POLYGON\020\002\022\010\n\004EDGE\020\003\022\t\n\005CHAIN\020\004*\245\001\n\013PbJoi" + "ntType\022\014\n\010DISTANCE\020\001\022\014\n\010REVOLUTE\020\002\022\r\n\tPR" + "ISMATIC\020\003\022\n\n\006PULLEY\020\004\022\t\n\005MOUSE\020\005\022\010\n\004GEAR" + "\020\006\022\t\n\005WHEEL\020\007\022\010\n\004WELD\020\010\022\014\n\010FRICTION\020\t\022\010\n" + "\004ROPE\020\n\022\023\n\017CONSTANT_VOLUME\020\013\022\010\n\004LINE\020\014B\030" + "\n\017org.box2d.protoB\005Box2D" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_box2d_PbVec2_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_box2d_PbVec2_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_box2d_PbVec2_descriptor, new java.lang.String[] { "X", "Y", }); internal_static_box2d_PbFilter_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_box2d_PbFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_box2d_PbFilter_descriptor, new java.lang.String[] { "CategoryBits", "MaskBits", "GroupIndex", }); internal_static_box2d_PbShape_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_box2d_PbShape_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_box2d_PbShape_descriptor, new java.lang.String[] { "Tag", "Type", "Center", "Radius", "Points", "Normals", "Centroid", "V0", "V1", "V2", "V3", "Has0", "Has3", "Prev", "Next", }); internal_static_box2d_PbFixture_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_box2d_PbFixture_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_box2d_PbFixture_descriptor, new java.lang.String[] { "Tag", "Restitution", "Friction", "Density", "Sensor", "Filter", "Shape", }); internal_static_box2d_PbJoint_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_box2d_PbJoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_box2d_PbJoint_descriptor, new java.lang.String[] { "Tag", "Type", "BodyA", "BodyB", "CollideConnected", "LocalAnchorA", "LocalAnchorB", "RefAngle", "EnableLimit", "LowerLimit", "UpperLimit", "EnableMotor", "MotorSpeed", "MaxMotorTorque", "LocalAxisA", "MaxMotorForce", "Length", "Frequency", "DampingRatio", "GroundAnchorA", "GroundAnchorB", "LengthA", "LengthB", "Ratio", "Target", "MaxForce", "Joint1", "Joint2", "MaxTorque", "MaxLength", "Bodies", "Joints", }); internal_static_box2d_PbBody_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_box2d_PbBody_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_box2d_PbBody_descriptor, new java.lang.String[] { "Tag", "Type", "Position", "Angle", "LinearVelocity", "AngularVelocity", "LinearDamping", "AngularDamping", "GravityScale", "Bullet", "AllowSleep", "Awake", "Active", "FixedRotation", "Fixtures", }); internal_static_box2d_PbWorld_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_box2d_PbWorld_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_box2d_PbWorld_descriptor, new java.lang.String[] { "Tag", "Gravity", "AllowSleep", "AutoClearForces", "WarmStarting", "ContinuousPhysics", "SubStepping", "Bodies", "Joints", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }