/jbox2d-serialization/src/generated/org/box2d/proto/Box2D.java
Java | 1976 lines | 1757 code | 171 blank | 48 comment | 259 complexity | 3f126acab01eb02d55c3a1f27f552101 MD5 | raw file
Possible License(s): BSD-3-Clause
Large files files are truncated, but you can click here to view the full file
- // 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) {
- }
- public enum PbBodyType
- implements com.google.protobuf.ProtocolMessageEnum {
- STATIC(0, 0),
- DYNAMIC(1, 1),
- KINEMATIC(2, 2),
- ;
-
- public static final int STATIC_VALUE = 0;
- public static final int DYNAMIC_VALUE = 1;
- 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 = {
- STATIC, DYNAMIC, KINEMATIC,
- };
-
- 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)
- }
-
- public enum PbShapeType
- implements com.google.protobuf.ProtocolMessageEnum {
- CIRCLE(0, 1),
- POLYGON(1, 2),
- EDGE(2, 3),
- LOOP(3, 4),
- ;
-
- public static final int CIRCLE_VALUE = 1;
- public static final int POLYGON_VALUE = 2;
- public static final int EDGE_VALUE = 3;
- public static final int LOOP_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 LOOP;
- 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 = {
- CIRCLE, POLYGON, EDGE, LOOP,
- };
-
- 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)
- }
-
- public enum PbJointType
- implements com.google.protobuf.ProtocolMessageEnum {
- DISTANCE(0, 1),
- REVOLUTE(1, 2),
- PRISMATIC(2, 3),
- PULLEY(3, 4),
- MOUSE(4, 5),
- GEAR(5, 6),
- WHEEL(6, 7),
- WELD(7, 8),
- FRICTION(8, 9),
- ROPE(9, 10),
- CONSTANT_VOLUME(10, 11),
- LINE(11, 12),
- ;
-
- public static final int DISTANCE_VALUE = 1;
- public static final int REVOLUTE_VALUE = 2;
- public static final int PRISMATIC_VALUE = 3;
- public static final int PULLEY_VALUE = 4;
- public static final int MOUSE_VALUE = 5;
- public static final int GEAR_VALUE = 6;
- public static final int WHEEL_VALUE = 7;
- public static final int WELD_VALUE = 8;
- public static final int FRICTION_VALUE = 9;
- public static final int ROPE_VALUE = 10;
- public static final int CONSTANT_VOLUME_VALUE = 11;
- 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 = {
- DISTANCE, REVOLUTE, PRISMATIC, PULLEY, MOUSE, GEAR, WHEEL, WELD, FRICTION, ROPE, CONSTANT_VOLUME, LINE,
- };
-
- 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;
- boolean hasX();
- float getX();
-
- // required float y = 2;
- boolean hasY();
- float getY();
- }
- public static final class PbVec2 extends
- com.google.protobuf.GeneratedMessage
- implements PbVec2OrBuilder {
- // Use PbVec2.newBuilder() to construct.
- private PbVec2(Builder builder) {
- super(builder);
- }
- private PbVec2(boolean noInit) {}
-
- private static final PbVec2 defaultInstance;
- public static PbVec2 getDefaultInstance() {
- return defaultInstance;
- }
-
- public PbVec2 getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- 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;
- }
-
- private int bitField0_;
- // required float x = 1;
- public static final int X_FIELD_NUMBER = 1;
- private float x_;
- public boolean hasX() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public float getX() {
- return x_;
- }
-
- // required float y = 2;
- public static final int Y_FIELD_NUMBER = 2;
- private float y_;
- public boolean hasY() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- 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 newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbVec2 parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.box2d.proto.Box2D.PbVec2 parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbVec2 parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.box2d.proto.Box2D.PbVec2 parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbVec2 parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.box2d.proto.Box2D.PbVec2 parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.box2d.proto.Box2D.PbVec2 parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.box2d.proto.Box2D.PbVec2 parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbVec2 parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- 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;
- }
- 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;
- }
-
- // Construct using org.box2d.proto.Box2D.PbVec2.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- x_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000001);
- y_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.box2d.proto.Box2D.PbVec2.getDescriptor();
- }
-
- 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;
- }
-
- private org.box2d.proto.Box2D.PbVec2 buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.box2d.proto.Box2D.PbVec2 result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- 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 {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- break;
- }
- case 13: {
- bitField0_ |= 0x00000001;
- x_ = input.readFloat();
- break;
- }
- case 21: {
- bitField0_ |= 0x00000002;
- y_ = input.readFloat();
- break;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // required float x = 1;
- private float x_ ;
- public boolean hasX() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public float getX() {
- return x_;
- }
- public Builder setX(float value) {
- bitField0_ |= 0x00000001;
- x_ = value;
- onChanged();
- return this;
- }
- public Builder clearX() {
- bitField0_ = (bitField0_ & ~0x00000001);
- x_ = 0F;
- onChanged();
- return this;
- }
-
- // required float y = 2;
- private float y_ ;
- public boolean hasY() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public float getY() {
- return y_;
- }
- public Builder setY(float value) {
- bitField0_ |= 0x00000002;
- y_ = value;
- onChanged();
- return this;
- }
- 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;
- boolean hasCategoryBits();
- int getCategoryBits();
-
- // optional int32 mask_bits = 2;
- boolean hasMaskBits();
- int getMaskBits();
-
- // optional int32 group_index = 3;
- boolean hasGroupIndex();
- int getGroupIndex();
- }
- public static final class PbFilter extends
- com.google.protobuf.GeneratedMessage
- implements PbFilterOrBuilder {
- // Use PbFilter.newBuilder() to construct.
- private PbFilter(Builder builder) {
- super(builder);
- }
- private PbFilter(boolean noInit) {}
-
- private static final PbFilter defaultInstance;
- public static PbFilter getDefaultInstance() {
- return defaultInstance;
- }
-
- public PbFilter getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- 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;
- }
-
- private int bitField0_;
- // optional int32 category_bits = 1;
- public static final int CATEGORY_BITS_FIELD_NUMBER = 1;
- private int categoryBits_;
- public boolean hasCategoryBits() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public int getCategoryBits() {
- return categoryBits_;
- }
-
- // optional int32 mask_bits = 2;
- public static final int MASK_BITS_FIELD_NUMBER = 2;
- private int maskBits_;
- public boolean hasMaskBits() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public int getMaskBits() {
- return maskBits_;
- }
-
- // optional int32 group_index = 3;
- public static final int GROUP_INDEX_FIELD_NUMBER = 3;
- private int groupIndex_;
- public boolean hasGroupIndex() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- 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 newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbFilter parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.box2d.proto.Box2D.PbFilter parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbFilter parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.box2d.proto.Box2D.PbFilter parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbFilter parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.box2d.proto.Box2D.PbFilter parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.box2d.proto.Box2D.PbFilter parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.box2d.proto.Box2D.PbFilter parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbFilter parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- 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;
- }
- 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;
- }
-
- // Construct using org.box2d.proto.Box2D.PbFilter.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- 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.PbFilter.getDescriptor();
- }
-
- 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;
- }
-
- private org.box2d.proto.Box2D.PbFilter buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.box2d.proto.Box2D.PbFilter result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- 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 {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- onChanged();
- return this;
- }
- 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;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // optional int32 category_bits = 1;
- private int categoryBits_ ;
- public boolean hasCategoryBits() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public int getCategoryBits() {
- return categoryBits_;
- }
- public Builder setCategoryBits(int value) {
- bitField0_ |= 0x00000001;
- categoryBits_ = value;
- onChanged();
- return this;
- }
- public Builder clearCategoryBits() {
- bitField0_ = (bitField0_ & ~0x00000001);
- categoryBits_ = 0;
- onChanged();
- return this;
- }
-
- // optional int32 mask_bits = 2;
- private int maskBits_ ;
- public boolean hasMaskBits() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public int getMaskBits() {
- return maskBits_;
- }
- public Builder setMaskBits(int value) {
- bitField0_ |= 0x00000002;
- maskBits_ = value;
- onChanged();
- return this;
- }
- public Builder clearMaskBits() {
- bitField0_ = (bitField0_ & ~0x00000002);
- maskBits_ = 0;
- onChanged();
- return this;
- }
-
- // optional int32 group_index = 3;
- private int groupIndex_ ;
- public boolean hasGroupIndex() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public int getGroupIndex() {
- return groupIndex_;
- }
- public Builder setGroupIndex(int value) {
- bitField0_ |= 0x00000004;
- groupIndex_ = value;
- onChanged();
- return this;
- }
- 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;
- boolean hasTag();
- long getTag();
-
- // required .box2d.PbShapeType type = 2;
- boolean hasType();
- org.box2d.proto.Box2D.PbShapeType getType();
-
- // optional .box2d.PbVec2 center = 10;
- boolean hasCenter();
- org.box2d.proto.Box2D.PbVec2 getCenter();
- org.box2d.proto.Box2D.PbVec2OrBuilder getCenterOrBuilder();
-
- // optional float radius = 11;
- boolean hasRadius();
- float getRadius();
-
- // repeated .box2d.PbVec2 points = 20;
- java.util.List<org.box2d.proto.Box2D.PbVec2>
- getPointsList();
- org.box2d.proto.Box2D.PbVec2 getPoints(int index);
- int getPointsCount();
- java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder>
- getPointsOrBuilderList();
- org.box2d.proto.Box2D.PbVec2OrBuilder getPointsOrBuilder(
- int index);
-
- // repeated .box2d.PbVec2 normals = 21;
- java.util.List<org.box2d.proto.Box2D.PbVec2>
- getNormalsList();
- org.box2d.proto.Box2D.PbVec2 getNormals(int index);
- int getNormalsCount();
- java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder>
- getNormalsOrBuilderList();
- org.box2d.proto.Box2D.PbVec2OrBuilder getNormalsOrBuilder(
- int index);
-
- // optional .box2d.PbVec2 centroid = 22;
- boolean hasCentroid();
- org.box2d.proto.Box2D.PbVec2 getCentroid();
- org.box2d.proto.Box2D.PbVec2OrBuilder getCentroidOrBuilder();
- }
- public static final class PbShape extends
- com.google.protobuf.GeneratedMessage
- implements PbShapeOrBuilder {
- // Use PbShape.newBuilder() to construct.
- private PbShape(Builder builder) {
- super(builder);
- }
- private PbShape(boolean noInit) {}
-
- private static final PbShape defaultInstance;
- public static PbShape getDefaultInstance() {
- return defaultInstance;
- }
-
- public PbShape getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- 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;
- }
-
- private int bitField0_;
- // optional int64 tag = 1;
- public static final int TAG_FIELD_NUMBER = 1;
- private long tag_;
- public boolean hasTag() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- 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_;
- public boolean hasType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- 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_;
- public boolean hasCenter() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public org.box2d.proto.Box2D.PbVec2 getCenter() {
- return center_;
- }
- public org.box2d.proto.Box2D.PbVec2OrBuilder getCenterOrBuilder() {
- return center_;
- }
-
- // optional float radius = 11;
- public static final int RADIUS_FIELD_NUMBER = 11;
- private float radius_;
- public boolean hasRadius() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- 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_;
- public java.util.List<org.box2d.proto.Box2D.PbVec2> getPointsList() {
- return points_;
- }
- public java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder>
- getPointsOrBuilderList() {
- return points_;
- }
- public int getPointsCount() {
- return points_.size();
- }
- public org.box2d.proto.Box2D.PbVec2 getPoints(int index) {
- return points_.get(index);
- }
- 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_;
- public java.util.List<org.box2d.proto.Box2D.PbVec2> getNormalsList() {
- return normals_;
- }
- public java.util.List<? extends org.box2d.proto.Box2D.PbVec2OrBuilder>
- getNormalsOrBuilderList() {
- return normals_;
- }
- public int getNormalsCount() {
- return normals_.size();
- }
- public org.box2d.proto.Box2D.PbVec2 getNormals(int index) {
- return normals_.get(index);
- }
- 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_;
- public boolean hasCentroid() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- public org.box2d.proto.Box2D.PbVec2 getCentroid() {
- return centroid_;
- }
- public org.box2d.proto.Box2D.PbVec2OrBuilder getCentroidOrBuilder() {
- return centroid_;
- }
-
- 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();
- }
- 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;
- }
- }
- 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_);
- }
- 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_);
- }
- 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 newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbShape parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.box2d.proto.Box2D.PbShape parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbShape parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.box2d.proto.Box2D.PbShape parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbShape parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.box2d.proto.Box2D.PbShape parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.box2d.proto.Box2D.PbShape parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.box2d.proto.Box2D.PbShape parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.box2d.proto.Box2D.PbShape parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- 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;
- }
- 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;
- }
-
- // Construct using org.box2d.proto.Box2D.PbShape.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getCenterFieldBuilder();
- getPointsFieldBuilder();
- getNormalsFieldBuilder();
- getCentroidFieldBuilder();
- }
- }
- priva…
Large files files are truncated, but you can click here to view the full file