Class Box2D.PbWorld.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Box2D.PbWorld.Builder>
com.google.protobuf.GeneratedMessage.Builder<Box2D.PbWorld.Builder>
org.box2d.proto.Box2D.PbWorld.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, Box2D.PbWorldOrBuilder
- Enclosing class:
Box2D.PbWorld
public static final class Box2D.PbWorld.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Box2D.PbWorld.Builder>
implements Box2D.PbWorldOrBuilder
Protobuf type
box2d.PbWorld-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate intprivate java.util.List<Box2D.PbBody> private com.google.protobuf.RepeatedFieldBuilder<Box2D.PbBody, Box2D.PbBody.Builder, Box2D.PbBodyOrBuilder> private booleanprivate Box2D.PbVec2private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private java.util.List<Box2D.PbJoint> private com.google.protobuf.RepeatedFieldBuilder<Box2D.PbJoint, Box2D.PbJoint.Builder, Box2D.PbJointOrBuilder> private booleanprivate longprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllBodies(java.lang.Iterable<? extends Box2D.PbBody> values) repeated .box2d.PbBody bodies = 20;addAllJoints(java.lang.Iterable<? extends Box2D.PbJoint> values) repeated .box2d.PbJoint joints = 21;addBodies(int index, Box2D.PbBody value) repeated .box2d.PbBody bodies = 20;addBodies(int index, Box2D.PbBody.Builder builderForValue) repeated .box2d.PbBody bodies = 20;addBodies(Box2D.PbBody value) repeated .box2d.PbBody bodies = 20;addBodies(Box2D.PbBody.Builder builderForValue) repeated .box2d.PbBody bodies = 20;repeated .box2d.PbBody bodies = 20;addBodiesBuilder(int index) repeated .box2d.PbBody bodies = 20;addJoints(int index, Box2D.PbJoint value) repeated .box2d.PbJoint joints = 21;addJoints(int index, Box2D.PbJoint.Builder builderForValue) repeated .box2d.PbJoint joints = 21;addJoints(Box2D.PbJoint value) repeated .box2d.PbJoint joints = 21;addJoints(Box2D.PbJoint.Builder builderForValue) repeated .box2d.PbJoint joints = 21;repeated .box2d.PbJoint joints = 21;addJointsBuilder(int index) repeated .box2d.PbJoint joints = 21;build()private voidbuildPartial0(Box2D.PbWorld result) private voidclear()optional bool allow_sleep = 3;optional bool auto_clear_forces = 4;repeated .box2d.PbBody bodies = 20;optional bool continuous_physics = 6;optional .box2d.PbVec2 gravity = 2;repeated .box2d.PbJoint joints = 21;optional bool sub_stepping = 7;clearTag()optional int64 tag = 1;optional bool warm_starting = 5;private voidprivate voidbooleanoptional bool allow_sleep = 3;booleanoptional bool auto_clear_forces = 4;getBodies(int index) repeated .box2d.PbBody bodies = 20;getBodiesBuilder(int index) repeated .box2d.PbBody bodies = 20;java.util.List<Box2D.PbBody.Builder> repeated .box2d.PbBody bodies = 20;intrepeated .box2d.PbBody bodies = 20;java.util.List<Box2D.PbBody> repeated .box2d.PbBody bodies = 20;getBodiesOrBuilder(int index) repeated .box2d.PbBody bodies = 20;java.util.List<? extends Box2D.PbBodyOrBuilder> repeated .box2d.PbBody bodies = 20;booleanoptional bool continuous_physics = 6;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional .box2d.PbVec2 gravity = 2;optional .box2d.PbVec2 gravity = 2;optional .box2d.PbVec2 gravity = 2;getJoints(int index) repeated .box2d.PbJoint joints = 21;getJointsBuilder(int index) repeated .box2d.PbJoint joints = 21;java.util.List<Box2D.PbJoint.Builder> repeated .box2d.PbJoint joints = 21;intrepeated .box2d.PbJoint joints = 21;java.util.List<Box2D.PbJoint> repeated .box2d.PbJoint joints = 21;getJointsOrBuilder(int index) repeated .box2d.PbJoint joints = 21;java.util.List<? extends Box2D.PbJointOrBuilder> repeated .box2d.PbJoint joints = 21;booleanoptional bool sub_stepping = 7;longgetTag()optional int64 tag = 1;booleanoptional bool warm_starting = 5;booleanoptional bool allow_sleep = 3;booleanoptional bool auto_clear_forces = 4;booleanoptional bool continuous_physics = 6;booleanoptional .box2d.PbVec2 gravity = 2;booleanoptional bool sub_stepping = 7;booleanhasTag()optional int64 tag = 1;booleanoptional bool warm_starting = 5;private com.google.protobuf.RepeatedFieldBuilder<Box2D.PbBody, Box2D.PbBody.Builder, Box2D.PbBodyOrBuilder> protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> optional .box2d.PbVec2 gravity = 2;private com.google.protobuf.RepeatedFieldBuilder<Box2D.PbJoint, Box2D.PbJoint.Builder, Box2D.PbJointOrBuilder> final booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Box2D.PbWorld other) mergeGravity(Box2D.PbVec2 value) optional .box2d.PbVec2 gravity = 2;removeBodies(int index) repeated .box2d.PbBody bodies = 20;removeJoints(int index) repeated .box2d.PbJoint joints = 21;setAllowSleep(boolean value) optional bool allow_sleep = 3;setAutoClearForces(boolean value) optional bool auto_clear_forces = 4;setBodies(int index, Box2D.PbBody value) repeated .box2d.PbBody bodies = 20;setBodies(int index, Box2D.PbBody.Builder builderForValue) repeated .box2d.PbBody bodies = 20;setContinuousPhysics(boolean value) optional bool continuous_physics = 6;setGravity(Box2D.PbVec2 value) optional .box2d.PbVec2 gravity = 2;setGravity(Box2D.PbVec2.Builder builderForValue) optional .box2d.PbVec2 gravity = 2;setJoints(int index, Box2D.PbJoint value) repeated .box2d.PbJoint joints = 21;setJoints(int index, Box2D.PbJoint.Builder builderForValue) repeated .box2d.PbJoint joints = 21;setSubStepping(boolean value) optional bool sub_stepping = 7;setTag(long value) optional int64 tag = 1;setWarmStarting(boolean value) optional bool warm_starting = 5;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
tag_
private long tag_ -
gravity_
-
gravityBuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> gravityBuilder_ -
allowSleep_
private boolean allowSleep_ -
autoClearForces_
private boolean autoClearForces_ -
warmStarting_
private boolean warmStarting_ -
continuousPhysics_
private boolean continuousPhysics_ -
subStepping_
private boolean subStepping_ -
bodies_
-
bodiesBuilder_
private com.google.protobuf.RepeatedFieldBuilder<Box2D.PbBody, Box2D.PbBody.Builder, Box2D.PbBodyOrBuilder> bodiesBuilder_ -
joints_
-
jointsBuilder_
private com.google.protobuf.RepeatedFieldBuilder<Box2D.PbJoint, Box2D.PbJoint.Builder, Box2D.PbJointOrBuilder> jointsBuilder_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
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.Builder<Box2D.PbWorld.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Box2D.PbWorld.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Box2D.PbWorld.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Box2D.PbWorld.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Box2D.PbWorld.Builder>
-
mergeFrom
public Box2D.PbWorld.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Box2D.PbWorld.Builder>- Throws:
java.io.IOException
-
hasTag
public boolean hasTag()optional int64 tag = 1;- Specified by:
hasTagin interfaceBox2D.PbWorldOrBuilder- Returns:
- Whether the tag field is set.
-
getTag
public long getTag()optional int64 tag = 1;- Specified by:
getTagin interfaceBox2D.PbWorldOrBuilder- Returns:
- The tag.
-
setTag
optional int64 tag = 1;- Parameters:
value- The tag to set.- Returns:
- This builder for chaining.
-
clearTag
-
hasGravity
public boolean hasGravity()optional .box2d.PbVec2 gravity = 2;- Specified by:
hasGravityin interfaceBox2D.PbWorldOrBuilder- Returns:
- Whether the gravity field is set.
-
getGravity
optional .box2d.PbVec2 gravity = 2;- Specified by:
getGravityin interfaceBox2D.PbWorldOrBuilder- Returns:
- The gravity.
-
setGravity
optional .box2d.PbVec2 gravity = 2; -
setGravity
optional .box2d.PbVec2 gravity = 2; -
mergeGravity
optional .box2d.PbVec2 gravity = 2; -
clearGravity
optional .box2d.PbVec2 gravity = 2; -
getGravityBuilder
optional .box2d.PbVec2 gravity = 2; -
getGravityOrBuilder
optional .box2d.PbVec2 gravity = 2;- Specified by:
getGravityOrBuilderin interfaceBox2D.PbWorldOrBuilder
-
internalGetGravityFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> internalGetGravityFieldBuilder()optional .box2d.PbVec2 gravity = 2; -
hasAllowSleep
public boolean hasAllowSleep()optional bool allow_sleep = 3;- Specified by:
hasAllowSleepin interfaceBox2D.PbWorldOrBuilder- Returns:
- Whether the allowSleep field is set.
-
getAllowSleep
public boolean getAllowSleep()optional bool allow_sleep = 3;- Specified by:
getAllowSleepin interfaceBox2D.PbWorldOrBuilder- Returns:
- The allowSleep.
-
setAllowSleep
optional bool allow_sleep = 3;- Parameters:
value- The allowSleep to set.- Returns:
- This builder for chaining.
-
clearAllowSleep
optional bool allow_sleep = 3;- Returns:
- This builder for chaining.
-
hasAutoClearForces
public boolean hasAutoClearForces()optional bool auto_clear_forces = 4;- Specified by:
hasAutoClearForcesin interfaceBox2D.PbWorldOrBuilder- Returns:
- Whether the autoClearForces field is set.
-
getAutoClearForces
public boolean getAutoClearForces()optional bool auto_clear_forces = 4;- Specified by:
getAutoClearForcesin interfaceBox2D.PbWorldOrBuilder- Returns:
- The autoClearForces.
-
setAutoClearForces
optional bool auto_clear_forces = 4;- Parameters:
value- The autoClearForces to set.- Returns:
- This builder for chaining.
-
clearAutoClearForces
optional bool auto_clear_forces = 4;- Returns:
- This builder for chaining.
-
hasWarmStarting
public boolean hasWarmStarting()optional bool warm_starting = 5;- Specified by:
hasWarmStartingin interfaceBox2D.PbWorldOrBuilder- Returns:
- Whether the warmStarting field is set.
-
getWarmStarting
public boolean getWarmStarting()optional bool warm_starting = 5;- Specified by:
getWarmStartingin interfaceBox2D.PbWorldOrBuilder- Returns:
- The warmStarting.
-
setWarmStarting
optional bool warm_starting = 5;- Parameters:
value- The warmStarting to set.- Returns:
- This builder for chaining.
-
clearWarmStarting
optional bool warm_starting = 5;- Returns:
- This builder for chaining.
-
hasContinuousPhysics
public boolean hasContinuousPhysics()optional bool continuous_physics = 6;- Specified by:
hasContinuousPhysicsin interfaceBox2D.PbWorldOrBuilder- Returns:
- Whether the continuousPhysics field is set.
-
getContinuousPhysics
public boolean getContinuousPhysics()optional bool continuous_physics = 6;- Specified by:
getContinuousPhysicsin interfaceBox2D.PbWorldOrBuilder- Returns:
- The continuousPhysics.
-
setContinuousPhysics
optional bool continuous_physics = 6;- Parameters:
value- The continuousPhysics to set.- Returns:
- This builder for chaining.
-
clearContinuousPhysics
optional bool continuous_physics = 6;- Returns:
- This builder for chaining.
-
hasSubStepping
public boolean hasSubStepping()optional bool sub_stepping = 7;- Specified by:
hasSubSteppingin interfaceBox2D.PbWorldOrBuilder- Returns:
- Whether the subStepping field is set.
-
getSubStepping
public boolean getSubStepping()optional bool sub_stepping = 7;- Specified by:
getSubSteppingin interfaceBox2D.PbWorldOrBuilder- Returns:
- The subStepping.
-
setSubStepping
optional bool sub_stepping = 7;- Parameters:
value- The subStepping to set.- Returns:
- This builder for chaining.
-
clearSubStepping
optional bool sub_stepping = 7;- Returns:
- This builder for chaining.
-
ensureBodiesIsMutable
private void ensureBodiesIsMutable() -
getBodiesList
repeated .box2d.PbBody bodies = 20;- Specified by:
getBodiesListin interfaceBox2D.PbWorldOrBuilder
-
getBodiesCount
public int getBodiesCount()repeated .box2d.PbBody bodies = 20;- Specified by:
getBodiesCountin interfaceBox2D.PbWorldOrBuilder
-
getBodies
repeated .box2d.PbBody bodies = 20;- Specified by:
getBodiesin interfaceBox2D.PbWorldOrBuilder
-
setBodies
repeated .box2d.PbBody bodies = 20; -
setBodies
repeated .box2d.PbBody bodies = 20; -
addBodies
repeated .box2d.PbBody bodies = 20; -
addBodies
repeated .box2d.PbBody bodies = 20; -
addBodies
repeated .box2d.PbBody bodies = 20; -
addBodies
repeated .box2d.PbBody bodies = 20; -
addAllBodies
repeated .box2d.PbBody bodies = 20; -
clearBodies
repeated .box2d.PbBody bodies = 20; -
removeBodies
repeated .box2d.PbBody bodies = 20; -
getBodiesBuilder
repeated .box2d.PbBody bodies = 20; -
getBodiesOrBuilder
repeated .box2d.PbBody bodies = 20;- Specified by:
getBodiesOrBuilderin interfaceBox2D.PbWorldOrBuilder
-
getBodiesOrBuilderList
repeated .box2d.PbBody bodies = 20;- Specified by:
getBodiesOrBuilderListin interfaceBox2D.PbWorldOrBuilder
-
addBodiesBuilder
repeated .box2d.PbBody bodies = 20; -
addBodiesBuilder
repeated .box2d.PbBody bodies = 20; -
getBodiesBuilderList
repeated .box2d.PbBody bodies = 20; -
internalGetBodiesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Box2D.PbBody, Box2D.PbBody.Builder, Box2D.PbBodyOrBuilder> internalGetBodiesFieldBuilder() -
ensureJointsIsMutable
private void ensureJointsIsMutable() -
getJointsList
repeated .box2d.PbJoint joints = 21;- Specified by:
getJointsListin interfaceBox2D.PbWorldOrBuilder
-
getJointsCount
public int getJointsCount()repeated .box2d.PbJoint joints = 21;- Specified by:
getJointsCountin interfaceBox2D.PbWorldOrBuilder
-
getJoints
repeated .box2d.PbJoint joints = 21;- Specified by:
getJointsin interfaceBox2D.PbWorldOrBuilder
-
setJoints
repeated .box2d.PbJoint joints = 21; -
setJoints
repeated .box2d.PbJoint joints = 21; -
addJoints
repeated .box2d.PbJoint joints = 21; -
addJoints
repeated .box2d.PbJoint joints = 21; -
addJoints
repeated .box2d.PbJoint joints = 21; -
addJoints
repeated .box2d.PbJoint joints = 21; -
addAllJoints
repeated .box2d.PbJoint joints = 21; -
clearJoints
repeated .box2d.PbJoint joints = 21; -
removeJoints
repeated .box2d.PbJoint joints = 21; -
getJointsBuilder
repeated .box2d.PbJoint joints = 21; -
getJointsOrBuilder
repeated .box2d.PbJoint joints = 21;- Specified by:
getJointsOrBuilderin interfaceBox2D.PbWorldOrBuilder
-
getJointsOrBuilderList
repeated .box2d.PbJoint joints = 21;- Specified by:
getJointsOrBuilderListin interfaceBox2D.PbWorldOrBuilder
-
addJointsBuilder
repeated .box2d.PbJoint joints = 21; -
addJointsBuilder
repeated .box2d.PbJoint joints = 21; -
getJointsBuilderList
repeated .box2d.PbJoint joints = 21; -
internalGetJointsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Box2D.PbJoint, Box2D.PbJoint.Builder, Box2D.PbJointOrBuilder> internalGetJointsFieldBuilder()
-