Package org.box2d.proto
Class Box2D.PbBody
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- org.box2d.proto.Box2D.PbBody
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable,Box2D.PbBodyOrBuilder
- Enclosing class:
- Box2D
public static final class Box2D.PbBody extends com.google.protobuf.GeneratedMessage implements Box2D.PbBodyOrBuilder
Protobuf typebox2d.PbBody- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBox2D.PbBody.BuilderProtobuf typebox2d.PbBody-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleangetActive()optional bool active = 56;booleangetAllowSleep()optional bool allow_sleep = 54;floatgetAngle()optional float angle = 11;floatgetAngularDamping()optional float angular_damping = 51;floatgetAngularVelocity()optional float angular_velocity = 13;booleangetAwake()optional bool awake = 55;booleangetBullet()optional bool bullet = 53;static Box2D.PbBodygetDefaultInstance()Box2D.PbBodygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetFixedRotation()optional bool fixed_rotation = 57;Box2D.PbFixturegetFixtures(int index)repeated .box2d.PbFixture fixtures = 100;intgetFixturesCount()repeated .box2d.PbFixture fixtures = 100;java.util.List<Box2D.PbFixture>getFixturesList()repeated .box2d.PbFixture fixtures = 100;Box2D.PbFixtureOrBuildergetFixturesOrBuilder(int index)repeated .box2d.PbFixture fixtures = 100;java.util.List<? extends Box2D.PbFixtureOrBuilder>getFixturesOrBuilderList()repeated .box2d.PbFixture fixtures = 100;floatgetGravityScale()optional float gravity_scale = 52;floatgetLinearDamping()configurationBox2D.PbVec2getLinearVelocity()optional .box2d.PbVec2 linear_velocity = 12;Box2D.PbVec2OrBuildergetLinearVelocityOrBuilder()optional .box2d.PbVec2 linear_velocity = 12;com.google.protobuf.Parser<Box2D.PbBody>getParserForType()Box2D.PbVec2getPosition()physical attributesBox2D.PbVec2OrBuildergetPositionOrBuilder()physical attributesintgetSerializedSize()longgetTag()optional int64 tag = 1;Box2D.PbBodyTypegetType()required .box2d.PbBodyType type = 2;booleanhasActive()optional bool active = 56;booleanhasAllowSleep()optional bool allow_sleep = 54;booleanhasAngle()optional float angle = 11;booleanhasAngularDamping()optional float angular_damping = 51;booleanhasAngularVelocity()optional float angular_velocity = 13;booleanhasAwake()optional bool awake = 55;booleanhasBullet()optional bool bullet = 53;booleanhasFixedRotation()optional bool fixed_rotation = 57;booleanhasGravityScale()optional float gravity_scale = 52;inthashCode()booleanhasLinearDamping()configurationbooleanhasLinearVelocity()optional .box2d.PbVec2 linear_velocity = 12;booleanhasPosition()physical attributesbooleanhasTag()optional int64 tag = 1;booleanhasType()required .box2d.PbBodyType type = 2;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Box2D.PbBody.BuildernewBuilder()static Box2D.PbBody.BuildernewBuilder(Box2D.PbBody prototype)Box2D.PbBody.BuildernewBuilderForType()protected Box2D.PbBody.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static Box2D.PbBodyparseDelimitedFrom(java.io.InputStream input)static Box2D.PbBodyparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbBodyparseFrom(byte[] data)static Box2D.PbBodyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbBodyparseFrom(com.google.protobuf.ByteString data)static Box2D.PbBodyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbBodyparseFrom(com.google.protobuf.CodedInputStream input)static Box2D.PbBodyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbBodyparseFrom(java.io.InputStream input)static Box2D.PbBodyparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbBodyparseFrom(java.nio.ByteBuffer data)static Box2D.PbBodyparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Box2D.PbBody>parser()Box2D.PbBody.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
tag_
private long tag_
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
type_
private int type_
-
POSITION_FIELD_NUMBER
public static final int POSITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
position_
private Box2D.PbVec2 position_
-
ANGLE_FIELD_NUMBER
public static final int ANGLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
angle_
private float angle_
-
LINEAR_VELOCITY_FIELD_NUMBER
public static final int LINEAR_VELOCITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
linearVelocity_
private Box2D.PbVec2 linearVelocity_
-
ANGULAR_VELOCITY_FIELD_NUMBER
public static final int ANGULAR_VELOCITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
angularVelocity_
private float angularVelocity_
-
LINEAR_DAMPING_FIELD_NUMBER
public static final int LINEAR_DAMPING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
linearDamping_
private float linearDamping_
-
ANGULAR_DAMPING_FIELD_NUMBER
public static final int ANGULAR_DAMPING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
angularDamping_
private float angularDamping_
-
GRAVITY_SCALE_FIELD_NUMBER
public static final int GRAVITY_SCALE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
gravityScale_
private float gravityScale_
-
BULLET_FIELD_NUMBER
public static final int BULLET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
bullet_
private boolean bullet_
-
ALLOW_SLEEP_FIELD_NUMBER
public static final int ALLOW_SLEEP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
allowSleep_
private boolean allowSleep_
-
AWAKE_FIELD_NUMBER
public static final int AWAKE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
awake_
private boolean awake_
-
ACTIVE_FIELD_NUMBER
public static final int ACTIVE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
active_
private boolean active_
-
FIXED_ROTATION_FIELD_NUMBER
public static final int FIXED_ROTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
fixedRotation_
private boolean fixedRotation_
-
FIXTURES_FIELD_NUMBER
public static final int FIXTURES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
fixtures_
private java.util.List<Box2D.PbFixture> fixtures_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Box2D.PbBody DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Box2D.PbBody> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasTag
public boolean hasTag()
optional int64 tag = 1;- Specified by:
hasTagin interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the tag field is set.
-
getTag
public long getTag()
optional int64 tag = 1;- Specified by:
getTagin interfaceBox2D.PbBodyOrBuilder- Returns:
- The tag.
-
hasType
public boolean hasType()
required .box2d.PbBodyType type = 2;- Specified by:
hasTypein interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the type field is set.
-
getType
public Box2D.PbBodyType getType()
required .box2d.PbBodyType type = 2;- Specified by:
getTypein interfaceBox2D.PbBodyOrBuilder- Returns:
- The type.
-
hasPosition
public boolean hasPosition()
physical attributes
optional .box2d.PbVec2 position = 10;- Specified by:
hasPositionin interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the position field is set.
-
getPosition
public Box2D.PbVec2 getPosition()
physical attributes
optional .box2d.PbVec2 position = 10;- Specified by:
getPositionin interfaceBox2D.PbBodyOrBuilder- Returns:
- The position.
-
getPositionOrBuilder
public Box2D.PbVec2OrBuilder getPositionOrBuilder()
physical attributes
optional .box2d.PbVec2 position = 10;- Specified by:
getPositionOrBuilderin interfaceBox2D.PbBodyOrBuilder
-
hasAngle
public boolean hasAngle()
optional float angle = 11;- Specified by:
hasAnglein interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the angle field is set.
-
getAngle
public float getAngle()
optional float angle = 11;- Specified by:
getAnglein interfaceBox2D.PbBodyOrBuilder- Returns:
- The angle.
-
hasLinearVelocity
public boolean hasLinearVelocity()
optional .box2d.PbVec2 linear_velocity = 12;- Specified by:
hasLinearVelocityin interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the linearVelocity field is set.
-
getLinearVelocity
public Box2D.PbVec2 getLinearVelocity()
optional .box2d.PbVec2 linear_velocity = 12;- Specified by:
getLinearVelocityin interfaceBox2D.PbBodyOrBuilder- Returns:
- The linearVelocity.
-
getLinearVelocityOrBuilder
public Box2D.PbVec2OrBuilder getLinearVelocityOrBuilder()
optional .box2d.PbVec2 linear_velocity = 12;- Specified by:
getLinearVelocityOrBuilderin interfaceBox2D.PbBodyOrBuilder
-
hasAngularVelocity
public boolean hasAngularVelocity()
optional float angular_velocity = 13;- Specified by:
hasAngularVelocityin interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the angularVelocity field is set.
-
getAngularVelocity
public float getAngularVelocity()
optional float angular_velocity = 13;- Specified by:
getAngularVelocityin interfaceBox2D.PbBodyOrBuilder- Returns:
- The angularVelocity.
-
hasLinearDamping
public boolean hasLinearDamping()
configuration
optional float linear_damping = 50;- Specified by:
hasLinearDampingin interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the linearDamping field is set.
-
getLinearDamping
public float getLinearDamping()
configuration
optional float linear_damping = 50;- Specified by:
getLinearDampingin interfaceBox2D.PbBodyOrBuilder- Returns:
- The linearDamping.
-
hasAngularDamping
public boolean hasAngularDamping()
optional float angular_damping = 51;- Specified by:
hasAngularDampingin interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the angularDamping field is set.
-
getAngularDamping
public float getAngularDamping()
optional float angular_damping = 51;- Specified by:
getAngularDampingin interfaceBox2D.PbBodyOrBuilder- Returns:
- The angularDamping.
-
hasGravityScale
public boolean hasGravityScale()
optional float gravity_scale = 52;- Specified by:
hasGravityScalein interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the gravityScale field is set.
-
getGravityScale
public float getGravityScale()
optional float gravity_scale = 52;- Specified by:
getGravityScalein interfaceBox2D.PbBodyOrBuilder- Returns:
- The gravityScale.
-
hasBullet
public boolean hasBullet()
optional bool bullet = 53;- Specified by:
hasBulletin interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the bullet field is set.
-
getBullet
public boolean getBullet()
optional bool bullet = 53;- Specified by:
getBulletin interfaceBox2D.PbBodyOrBuilder- Returns:
- The bullet.
-
hasAllowSleep
public boolean hasAllowSleep()
optional bool allow_sleep = 54;- Specified by:
hasAllowSleepin interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the allowSleep field is set.
-
getAllowSleep
public boolean getAllowSleep()
optional bool allow_sleep = 54;- Specified by:
getAllowSleepin interfaceBox2D.PbBodyOrBuilder- Returns:
- The allowSleep.
-
hasAwake
public boolean hasAwake()
optional bool awake = 55;- Specified by:
hasAwakein interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the awake field is set.
-
getAwake
public boolean getAwake()
optional bool awake = 55;- Specified by:
getAwakein interfaceBox2D.PbBodyOrBuilder- Returns:
- The awake.
-
hasActive
public boolean hasActive()
optional bool active = 56;- Specified by:
hasActivein interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the active field is set.
-
getActive
public boolean getActive()
optional bool active = 56;- Specified by:
getActivein interfaceBox2D.PbBodyOrBuilder- Returns:
- The active.
-
hasFixedRotation
public boolean hasFixedRotation()
optional bool fixed_rotation = 57;- Specified by:
hasFixedRotationin interfaceBox2D.PbBodyOrBuilder- Returns:
- Whether the fixedRotation field is set.
-
getFixedRotation
public boolean getFixedRotation()
optional bool fixed_rotation = 57;- Specified by:
getFixedRotationin interfaceBox2D.PbBodyOrBuilder- Returns:
- The fixedRotation.
-
getFixturesList
public java.util.List<Box2D.PbFixture> getFixturesList()
repeated .box2d.PbFixture fixtures = 100;- Specified by:
getFixturesListin interfaceBox2D.PbBodyOrBuilder
-
getFixturesOrBuilderList
public java.util.List<? extends Box2D.PbFixtureOrBuilder> getFixturesOrBuilderList()
repeated .box2d.PbFixture fixtures = 100;- Specified by:
getFixturesOrBuilderListin interfaceBox2D.PbBodyOrBuilder
-
getFixturesCount
public int getFixturesCount()
repeated .box2d.PbFixture fixtures = 100;- Specified by:
getFixturesCountin interfaceBox2D.PbBodyOrBuilder
-
getFixtures
public Box2D.PbFixture getFixtures(int index)
repeated .box2d.PbFixture fixtures = 100;- Specified by:
getFixturesin interfaceBox2D.PbBodyOrBuilder
-
getFixturesOrBuilder
public Box2D.PbFixtureOrBuilder getFixturesOrBuilder(int index)
repeated .box2d.PbFixture fixtures = 100;- Specified by:
getFixturesOrBuilderin interfaceBox2D.PbBodyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Box2D.PbBody parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbBody parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbBody parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Box2D.PbBody parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Box2D.PbBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Box2D.PbBody parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Box2D.PbBody parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Box2D.PbBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Box2D.PbBody.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Box2D.PbBody.Builder newBuilder()
-
newBuilder
public static Box2D.PbBody.Builder newBuilder(Box2D.PbBody prototype)
-
toBuilder
public Box2D.PbBody.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Box2D.PbBody.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static Box2D.PbBody getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Box2D.PbBody> parser()
-
getParserForType
public com.google.protobuf.Parser<Box2D.PbBody> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public Box2D.PbBody getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-