Class Box2D.PbJoint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Box2D.PbJoint.Builder>
com.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
org.box2d.proto.Box2D.PbJoint.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.PbJointOrBuilder
- Enclosing class:
Box2D.PbJoint
public static final class Box2D.PbJoint.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
implements Box2D.PbJointOrBuilder
Protobuf type
box2d.PbJoint-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate com.google.protobuf.Internal.IntListprivate intprivate intprivate booleanprivate floatprivate booleanprivate booleanprivate floatprivate Box2D.PbVec2private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private Box2D.PbVec2private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private intprivate intprivate com.google.protobuf.Internal.IntListprivate floatprivate floatprivate floatprivate Box2D.PbVec2private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private Box2D.PbVec2private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private Box2D.PbVec2private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate longprivate Box2D.PbVec2private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> private intprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllBodies(java.lang.Iterable<? extends java.lang.Integer> values) con voladdAllJoints(java.lang.Iterable<? extends java.lang.Integer> values) con voladdBodies(int value) con voladdJoints(int value) con volbuild()private voidbuildPartial0(Box2D.PbJoint result) clear()con voloptional int32 body_a = 3;optional int32 body_b = 4;optional bool collideConnected = 5;distance, mouse, wheel, weld, col volrevolute, prismaticrevolute, prismatic, wheeldistance, mouse, wheel, weld, con volpulleypulleygeargearcon voldistancepulleypulleyoptional .box2d.PbVec2 local_anchor_a = 6;optional .box2d.PbVec2 local_anchor_b = 7;prismatic, wheelrevolute, prismaticmouse, friction, roperopeprismaticrevolute, wheelfrictionrevolute, prismatic, wheelpulley, gearrevolute, prismatic, jointclearTag()optional int64 tag = 1;mouserequired .box2d.PbJointType type = 2;revolute, prismaticprivate voidprivate voidintgetBodies(int index) con volintcon voljava.util.List<java.lang.Integer> con volintgetBodyA()optional int32 body_a = 3;intgetBodyB()optional int32 body_b = 4;booleanoptional bool collideConnected = 5;floatdistance, mouse, wheel, weld, col volstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorbooleanrevolute, prismaticbooleanrevolute, prismatic, wheelfloatdistance, mouse, wheel, weld, con volpulleypulleypulleypulleypulleypulleyintgearintgearintgetJoints(int index) con volintcon voljava.util.List<java.lang.Integer> con volfloatdistancefloatpulleyfloatpulleyoptional .box2d.PbVec2 local_anchor_a = 6;optional .box2d.PbVec2 local_anchor_a = 6;optional .box2d.PbVec2 local_anchor_a = 6;optional .box2d.PbVec2 local_anchor_b = 7;optional .box2d.PbVec2 local_anchor_b = 7;optional .box2d.PbVec2 local_anchor_b = 7;prismatic, wheelprismatic, wheelprismatic, wheelfloatrevolute, prismaticfloatmouse, friction, ropefloatropefloatprismaticfloatrevolute, wheelfloatfrictionfloatrevolute, prismatic, wheelfloatgetRatio()pulley, gearfloatrevolute, prismatic, jointlonggetTag()optional int64 tag = 1;mousemousemousegetType()required .box2d.PbJointType type = 2;floatrevolute, prismaticbooleanhasBodyA()optional int32 body_a = 3;booleanhasBodyB()optional int32 body_b = 4;booleanoptional bool collideConnected = 5;booleandistance, mouse, wheel, weld, col volbooleanrevolute, prismaticbooleanrevolute, prismatic, wheelbooleandistance, mouse, wheel, weld, con volbooleanpulleybooleanpulleybooleangearbooleangearbooleandistancebooleanpulleybooleanpulleybooleanoptional .box2d.PbVec2 local_anchor_a = 6;booleanoptional .box2d.PbVec2 local_anchor_b = 7;booleanprismatic, wheelbooleanrevolute, prismaticbooleanmouse, friction, ropebooleanropebooleanprismaticbooleanrevolute, wheelbooleanfrictionbooleanrevolute, prismatic, wheelbooleanhasRatio()pulley, gearbooleanrevolute, prismatic, jointbooleanhasTag()optional int64 tag = 1;booleanmousebooleanhasType()required .box2d.PbJointType type = 2;booleanrevolute, prismaticprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> pulleyprivate com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> pulleyprivate com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> optional .box2d.PbVec2 local_anchor_a = 6;private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> optional .box2d.PbVec2 local_anchor_b = 7;private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> prismatic, wheelprivate com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> mousefinal booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Box2D.PbJoint other) mergeGroundAnchorA(Box2D.PbVec2 value) pulleymergeGroundAnchorB(Box2D.PbVec2 value) pulleymergeLocalAnchorA(Box2D.PbVec2 value) optional .box2d.PbVec2 local_anchor_a = 6;mergeLocalAnchorB(Box2D.PbVec2 value) optional .box2d.PbVec2 local_anchor_b = 7;mergeLocalAxisA(Box2D.PbVec2 value) prismatic, wheelmergeTarget(Box2D.PbVec2 value) mousesetBodies(int index, int value) con volsetBodyA(int value) optional int32 body_a = 3;setBodyB(int value) optional int32 body_b = 4;setCollideConnected(boolean value) optional bool collideConnected = 5;setDampingRatio(float value) distance, mouse, wheel, weld, col volsetEnableLimit(boolean value) revolute, prismaticsetEnableMotor(boolean value) revolute, prismatic, wheelsetFrequency(float value) distance, mouse, wheel, weld, con volsetGroundAnchorA(Box2D.PbVec2 value) pulleysetGroundAnchorA(Box2D.PbVec2.Builder builderForValue) pulleysetGroundAnchorB(Box2D.PbVec2 value) pulleysetGroundAnchorB(Box2D.PbVec2.Builder builderForValue) pulleysetJoint1(int value) gearsetJoint2(int value) gearsetJoints(int index, int value) con volsetLength(float value) distancesetLengthA(float value) pulleysetLengthB(float value) pulleysetLocalAnchorA(Box2D.PbVec2 value) optional .box2d.PbVec2 local_anchor_a = 6;setLocalAnchorA(Box2D.PbVec2.Builder builderForValue) optional .box2d.PbVec2 local_anchor_a = 6;setLocalAnchorB(Box2D.PbVec2 value) optional .box2d.PbVec2 local_anchor_b = 7;setLocalAnchorB(Box2D.PbVec2.Builder builderForValue) optional .box2d.PbVec2 local_anchor_b = 7;setLocalAxisA(Box2D.PbVec2 value) prismatic, wheelsetLocalAxisA(Box2D.PbVec2.Builder builderForValue) prismatic, wheelsetLowerLimit(float value) revolute, prismaticsetMaxForce(float value) mouse, friction, ropesetMaxLength(float value) ropesetMaxMotorForce(float value) prismaticsetMaxMotorTorque(float value) revolute, wheelsetMaxTorque(float value) frictionsetMotorSpeed(float value) revolute, prismatic, wheelsetRatio(float value) pulley, gearsetRefAngle(float value) revolute, prismatic, jointsetTag(long value) optional int64 tag = 1;setTarget(Box2D.PbVec2 value) mousesetTarget(Box2D.PbVec2.Builder builderForValue) mousesetType(Box2D.PbJointType value) required .box2d.PbJointType type = 2;setUpperLimit(float value) revolute, prismaticMethods 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_ -
type_
private int type_ -
bodyA_
private int bodyA_ -
bodyB_
private int bodyB_ -
collideConnected_
private boolean collideConnected_ -
localAnchorA_
-
localAnchorABuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> localAnchorABuilder_ -
localAnchorB_
-
localAnchorBBuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> localAnchorBBuilder_ -
refAngle_
private float refAngle_ -
enableLimit_
private boolean enableLimit_ -
lowerLimit_
private float lowerLimit_ -
upperLimit_
private float upperLimit_ -
enableMotor_
private boolean enableMotor_ -
motorSpeed_
private float motorSpeed_ -
maxMotorTorque_
private float maxMotorTorque_ -
localAxisA_
-
localAxisABuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> localAxisABuilder_ -
maxMotorForce_
private float maxMotorForce_ -
length_
private float length_ -
frequency_
private float frequency_ -
dampingRatio_
private float dampingRatio_ -
groundAnchorA_
-
groundAnchorABuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> groundAnchorABuilder_ -
groundAnchorB_
-
groundAnchorBBuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> groundAnchorBBuilder_ -
lengthA_
private float lengthA_ -
lengthB_
private float lengthB_ -
ratio_
private float ratio_ -
target_
-
targetBuilder_
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> targetBuilder_ -
maxForce_
private float maxForce_ -
joint1_
private int joint1_ -
joint2_
private int joint2_ -
maxTorque_
private float maxTorque_ -
maxLength_
private float maxLength_ -
bodies_
private com.google.protobuf.Internal.IntList bodies_ -
joints_
private com.google.protobuf.Internal.IntList joints_
-
-
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.PbJoint.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.PbJoint.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.PbJoint.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
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Box2D.PbJoint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Box2D.PbJoint.Builder>
-
mergeFrom
public Box2D.PbJoint.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.PbJoint.Builder>- Throws:
java.io.IOException
-
hasTag
public boolean hasTag()optional int64 tag = 1;- Specified by:
hasTagin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the tag field is set.
-
getTag
public long getTag()optional int64 tag = 1;- Specified by:
getTagin interfaceBox2D.PbJointOrBuilder- Returns:
- The tag.
-
setTag
optional int64 tag = 1;- Parameters:
value- The tag to set.- Returns:
- This builder for chaining.
-
clearTag
-
hasType
public boolean hasType()required .box2d.PbJointType type = 2;- Specified by:
hasTypein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the type field is set.
-
getType
required .box2d.PbJointType type = 2;- Specified by:
getTypein interfaceBox2D.PbJointOrBuilder- Returns:
- The type.
-
setType
required .box2d.PbJointType type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
required .box2d.PbJointType type = 2;- Returns:
- This builder for chaining.
-
hasBodyA
public boolean hasBodyA()optional int32 body_a = 3;- Specified by:
hasBodyAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the bodyA field is set.
-
getBodyA
public int getBodyA()optional int32 body_a = 3;- Specified by:
getBodyAin interfaceBox2D.PbJointOrBuilder- Returns:
- The bodyA.
-
setBodyA
optional int32 body_a = 3;- Parameters:
value- The bodyA to set.- Returns:
- This builder for chaining.
-
clearBodyA
optional int32 body_a = 3;- Returns:
- This builder for chaining.
-
hasBodyB
public boolean hasBodyB()optional int32 body_b = 4;- Specified by:
hasBodyBin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the bodyB field is set.
-
getBodyB
public int getBodyB()optional int32 body_b = 4;- Specified by:
getBodyBin interfaceBox2D.PbJointOrBuilder- Returns:
- The bodyB.
-
setBodyB
optional int32 body_b = 4;- Parameters:
value- The bodyB to set.- Returns:
- This builder for chaining.
-
clearBodyB
optional int32 body_b = 4;- Returns:
- This builder for chaining.
-
hasCollideConnected
public boolean hasCollideConnected()optional bool collideConnected = 5;- Specified by:
hasCollideConnectedin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the collideConnected field is set.
-
getCollideConnected
public boolean getCollideConnected()optional bool collideConnected = 5;- Specified by:
getCollideConnectedin interfaceBox2D.PbJointOrBuilder- Returns:
- The collideConnected.
-
setCollideConnected
optional bool collideConnected = 5;- Parameters:
value- The collideConnected to set.- Returns:
- This builder for chaining.
-
clearCollideConnected
optional bool collideConnected = 5;- Returns:
- This builder for chaining.
-
hasLocalAnchorA
public boolean hasLocalAnchorA()optional .box2d.PbVec2 local_anchor_a = 6;- Specified by:
hasLocalAnchorAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the localAnchorA field is set.
-
getLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6;- Specified by:
getLocalAnchorAin interfaceBox2D.PbJointOrBuilder- Returns:
- The localAnchorA.
-
setLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6; -
setLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6; -
mergeLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6; -
clearLocalAnchorA
optional .box2d.PbVec2 local_anchor_a = 6; -
getLocalAnchorABuilder
optional .box2d.PbVec2 local_anchor_a = 6; -
getLocalAnchorAOrBuilder
optional .box2d.PbVec2 local_anchor_a = 6;- Specified by:
getLocalAnchorAOrBuilderin interfaceBox2D.PbJointOrBuilder
-
internalGetLocalAnchorAFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> internalGetLocalAnchorAFieldBuilder()optional .box2d.PbVec2 local_anchor_a = 6; -
hasLocalAnchorB
public boolean hasLocalAnchorB()optional .box2d.PbVec2 local_anchor_b = 7;- Specified by:
hasLocalAnchorBin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the localAnchorB field is set.
-
getLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7;- Specified by:
getLocalAnchorBin interfaceBox2D.PbJointOrBuilder- Returns:
- The localAnchorB.
-
setLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7; -
setLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7; -
mergeLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7; -
clearLocalAnchorB
optional .box2d.PbVec2 local_anchor_b = 7; -
getLocalAnchorBBuilder
optional .box2d.PbVec2 local_anchor_b = 7; -
getLocalAnchorBOrBuilder
optional .box2d.PbVec2 local_anchor_b = 7;- Specified by:
getLocalAnchorBOrBuilderin interfaceBox2D.PbJointOrBuilder
-
internalGetLocalAnchorBFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> internalGetLocalAnchorBFieldBuilder()optional .box2d.PbVec2 local_anchor_b = 7; -
hasRefAngle
public boolean hasRefAngle()revolute, prismatic, joint
optional float ref_angle = 10;- Specified by:
hasRefAnglein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the refAngle field is set.
-
getRefAngle
public float getRefAngle()revolute, prismatic, joint
optional float ref_angle = 10;- Specified by:
getRefAnglein interfaceBox2D.PbJointOrBuilder- Returns:
- The refAngle.
-
setRefAngle
revolute, prismatic, joint
optional float ref_angle = 10;- Parameters:
value- The refAngle to set.- Returns:
- This builder for chaining.
-
clearRefAngle
revolute, prismatic, joint
optional float ref_angle = 10;- Returns:
- This builder for chaining.
-
hasEnableLimit
public boolean hasEnableLimit()revolute, prismatic
optional bool enable_limit = 12;- Specified by:
hasEnableLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the enableLimit field is set.
-
getEnableLimit
public boolean getEnableLimit()revolute, prismatic
optional bool enable_limit = 12;- Specified by:
getEnableLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- The enableLimit.
-
setEnableLimit
revolute, prismatic
optional bool enable_limit = 12;- Parameters:
value- The enableLimit to set.- Returns:
- This builder for chaining.
-
clearEnableLimit
revolute, prismatic
optional bool enable_limit = 12;- Returns:
- This builder for chaining.
-
hasLowerLimit
public boolean hasLowerLimit()revolute, prismatic
optional float lower_limit = 13;- Specified by:
hasLowerLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the lowerLimit field is set.
-
getLowerLimit
public float getLowerLimit()revolute, prismatic
optional float lower_limit = 13;- Specified by:
getLowerLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- The lowerLimit.
-
setLowerLimit
revolute, prismatic
optional float lower_limit = 13;- Parameters:
value- The lowerLimit to set.- Returns:
- This builder for chaining.
-
clearLowerLimit
revolute, prismatic
optional float lower_limit = 13;- Returns:
- This builder for chaining.
-
hasUpperLimit
public boolean hasUpperLimit()revolute, prismatic
optional float upper_limit = 14;- Specified by:
hasUpperLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the upperLimit field is set.
-
getUpperLimit
public float getUpperLimit()revolute, prismatic
optional float upper_limit = 14;- Specified by:
getUpperLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- The upperLimit.
-
setUpperLimit
revolute, prismatic
optional float upper_limit = 14;- Parameters:
value- The upperLimit to set.- Returns:
- This builder for chaining.
-
clearUpperLimit
revolute, prismatic
optional float upper_limit = 14;- Returns:
- This builder for chaining.
-
hasEnableMotor
public boolean hasEnableMotor()revolute, prismatic, wheel
optional bool enable_motor = 15;- Specified by:
hasEnableMotorin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the enableMotor field is set.
-
getEnableMotor
public boolean getEnableMotor()revolute, prismatic, wheel
optional bool enable_motor = 15;- Specified by:
getEnableMotorin interfaceBox2D.PbJointOrBuilder- Returns:
- The enableMotor.
-
setEnableMotor
revolute, prismatic, wheel
optional bool enable_motor = 15;- Parameters:
value- The enableMotor to set.- Returns:
- This builder for chaining.
-
clearEnableMotor
revolute, prismatic, wheel
optional bool enable_motor = 15;- Returns:
- This builder for chaining.
-
hasMotorSpeed
public boolean hasMotorSpeed()revolute, prismatic, wheel
optional float motor_speed = 16;- Specified by:
hasMotorSpeedin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the motorSpeed field is set.
-
getMotorSpeed
public float getMotorSpeed()revolute, prismatic, wheel
optional float motor_speed = 16;- Specified by:
getMotorSpeedin interfaceBox2D.PbJointOrBuilder- Returns:
- The motorSpeed.
-
setMotorSpeed
revolute, prismatic, wheel
optional float motor_speed = 16;- Parameters:
value- The motorSpeed to set.- Returns:
- This builder for chaining.
-
clearMotorSpeed
revolute, prismatic, wheel
optional float motor_speed = 16;- Returns:
- This builder for chaining.
-
hasMaxMotorTorque
public boolean hasMaxMotorTorque()revolute, wheel
optional float max_motor_torque = 17;- Specified by:
hasMaxMotorTorquein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxMotorTorque field is set.
-
getMaxMotorTorque
public float getMaxMotorTorque()revolute, wheel
optional float max_motor_torque = 17;- Specified by:
getMaxMotorTorquein interfaceBox2D.PbJointOrBuilder- Returns:
- The maxMotorTorque.
-
setMaxMotorTorque
revolute, wheel
optional float max_motor_torque = 17;- Parameters:
value- The maxMotorTorque to set.- Returns:
- This builder for chaining.
-
clearMaxMotorTorque
revolute, wheel
optional float max_motor_torque = 17;- Returns:
- This builder for chaining.
-
hasLocalAxisA
public boolean hasLocalAxisA()prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;- Specified by:
hasLocalAxisAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the localAxisA field is set.
-
getLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;- Specified by:
getLocalAxisAin interfaceBox2D.PbJointOrBuilder- Returns:
- The localAxisA.
-
setLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20; -
setLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20; -
mergeLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20; -
clearLocalAxisA
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20; -
getLocalAxisABuilder
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20; -
getLocalAxisAOrBuilder
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;- Specified by:
getLocalAxisAOrBuilderin interfaceBox2D.PbJointOrBuilder
-
internalGetLocalAxisAFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> internalGetLocalAxisAFieldBuilder()prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20; -
hasMaxMotorForce
public boolean hasMaxMotorForce()prismatic
optional float max_motor_force = 21;- Specified by:
hasMaxMotorForcein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxMotorForce field is set.
-
getMaxMotorForce
public float getMaxMotorForce()prismatic
optional float max_motor_force = 21;- Specified by:
getMaxMotorForcein interfaceBox2D.PbJointOrBuilder- Returns:
- The maxMotorForce.
-
setMaxMotorForce
prismatic
optional float max_motor_force = 21;- Parameters:
value- The maxMotorForce to set.- Returns:
- This builder for chaining.
-
clearMaxMotorForce
prismatic
optional float max_motor_force = 21;- Returns:
- This builder for chaining.
-
hasLength
public boolean hasLength()distance
optional float length = 30;- Specified by:
hasLengthin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the length field is set.
-
getLength
public float getLength()distance
optional float length = 30;- Specified by:
getLengthin interfaceBox2D.PbJointOrBuilder- Returns:
- The length.
-
setLength
distance
optional float length = 30;- Parameters:
value- The length to set.- Returns:
- This builder for chaining.
-
clearLength
distance
optional float length = 30;- Returns:
- This builder for chaining.
-
hasFrequency
public boolean hasFrequency()distance, mouse, wheel, weld, con vol
optional float frequency = 31;- Specified by:
hasFrequencyin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the frequency field is set.
-
getFrequency
public float getFrequency()distance, mouse, wheel, weld, con vol
optional float frequency = 31;- Specified by:
getFrequencyin interfaceBox2D.PbJointOrBuilder- Returns:
- The frequency.
-
setFrequency
distance, mouse, wheel, weld, con vol
optional float frequency = 31;- Parameters:
value- The frequency to set.- Returns:
- This builder for chaining.
-
clearFrequency
distance, mouse, wheel, weld, con vol
optional float frequency = 31;- Returns:
- This builder for chaining.
-
hasDampingRatio
public boolean hasDampingRatio()distance, mouse, wheel, weld, col vol
optional float damping_ratio = 32;- Specified by:
hasDampingRatioin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the dampingRatio field is set.
-
getDampingRatio
public float getDampingRatio()distance, mouse, wheel, weld, col vol
optional float damping_ratio = 32;- Specified by:
getDampingRatioin interfaceBox2D.PbJointOrBuilder- Returns:
- The dampingRatio.
-
setDampingRatio
distance, mouse, wheel, weld, col vol
optional float damping_ratio = 32;- Parameters:
value- The dampingRatio to set.- Returns:
- This builder for chaining.
-
clearDampingRatio
distance, mouse, wheel, weld, col vol
optional float damping_ratio = 32;- Returns:
- This builder for chaining.
-
hasGroundAnchorA
public boolean hasGroundAnchorA()pulley
optional .box2d.PbVec2 ground_anchor_a = 40;- Specified by:
hasGroundAnchorAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the groundAnchorA field is set.
-
getGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;- Specified by:
getGroundAnchorAin interfaceBox2D.PbJointOrBuilder- Returns:
- The groundAnchorA.
-
setGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40; -
setGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40; -
mergeGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40; -
clearGroundAnchorA
pulley
optional .box2d.PbVec2 ground_anchor_a = 40; -
getGroundAnchorABuilder
pulley
optional .box2d.PbVec2 ground_anchor_a = 40; -
getGroundAnchorAOrBuilder
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;- Specified by:
getGroundAnchorAOrBuilderin interfaceBox2D.PbJointOrBuilder
-
internalGetGroundAnchorAFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> internalGetGroundAnchorAFieldBuilder()pulley
optional .box2d.PbVec2 ground_anchor_a = 40; -
hasGroundAnchorB
public boolean hasGroundAnchorB()pulley
optional .box2d.PbVec2 ground_anchor_b = 41;- Specified by:
hasGroundAnchorBin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the groundAnchorB field is set.
-
getGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;- Specified by:
getGroundAnchorBin interfaceBox2D.PbJointOrBuilder- Returns:
- The groundAnchorB.
-
setGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41; -
setGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41; -
mergeGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41; -
clearGroundAnchorB
pulley
optional .box2d.PbVec2 ground_anchor_b = 41; -
getGroundAnchorBBuilder
pulley
optional .box2d.PbVec2 ground_anchor_b = 41; -
getGroundAnchorBOrBuilder
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;- Specified by:
getGroundAnchorBOrBuilderin interfaceBox2D.PbJointOrBuilder
-
internalGetGroundAnchorBFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> internalGetGroundAnchorBFieldBuilder()pulley
optional .box2d.PbVec2 ground_anchor_b = 41; -
hasLengthA
public boolean hasLengthA()pulley
optional float length_a = 42;- Specified by:
hasLengthAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the lengthA field is set.
-
getLengthA
public float getLengthA()pulley
optional float length_a = 42;- Specified by:
getLengthAin interfaceBox2D.PbJointOrBuilder- Returns:
- The lengthA.
-
setLengthA
pulley
optional float length_a = 42;- Parameters:
value- The lengthA to set.- Returns:
- This builder for chaining.
-
clearLengthA
pulley
optional float length_a = 42;- Returns:
- This builder for chaining.
-
hasLengthB
public boolean hasLengthB()pulley
optional float length_b = 43;- Specified by:
hasLengthBin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the lengthB field is set.
-
getLengthB
public float getLengthB()pulley
optional float length_b = 43;- Specified by:
getLengthBin interfaceBox2D.PbJointOrBuilder- Returns:
- The lengthB.
-
setLengthB
pulley
optional float length_b = 43;- Parameters:
value- The lengthB to set.- Returns:
- This builder for chaining.
-
clearLengthB
pulley
optional float length_b = 43;- Returns:
- This builder for chaining.
-
hasRatio
public boolean hasRatio()pulley, gear
optional float ratio = 44;- Specified by:
hasRatioin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the ratio field is set.
-
getRatio
public float getRatio()pulley, gear
optional float ratio = 44;- Specified by:
getRatioin interfaceBox2D.PbJointOrBuilder- Returns:
- The ratio.
-
setRatio
pulley, gear
optional float ratio = 44;- Parameters:
value- The ratio to set.- Returns:
- This builder for chaining.
-
clearRatio
pulley, gear
optional float ratio = 44;- Returns:
- This builder for chaining.
-
hasTarget
public boolean hasTarget()mouse
optional .box2d.PbVec2 target = 50;- Specified by:
hasTargetin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the target field is set.
-
getTarget
mouse
optional .box2d.PbVec2 target = 50;- Specified by:
getTargetin interfaceBox2D.PbJointOrBuilder- Returns:
- The target.
-
setTarget
mouse
optional .box2d.PbVec2 target = 50; -
setTarget
mouse
optional .box2d.PbVec2 target = 50; -
mergeTarget
mouse
optional .box2d.PbVec2 target = 50; -
clearTarget
mouse
optional .box2d.PbVec2 target = 50; -
getTargetBuilder
mouse
optional .box2d.PbVec2 target = 50; -
getTargetOrBuilder
mouse
optional .box2d.PbVec2 target = 50;- Specified by:
getTargetOrBuilderin interfaceBox2D.PbJointOrBuilder
-
internalGetTargetFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Box2D.PbVec2, Box2D.PbVec2.Builder, Box2D.PbVec2OrBuilder> internalGetTargetFieldBuilder()mouse
optional .box2d.PbVec2 target = 50; -
hasMaxForce
public boolean hasMaxForce()mouse, friction, rope
optional float max_force = 51;- Specified by:
hasMaxForcein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxForce field is set.
-
getMaxForce
public float getMaxForce()mouse, friction, rope
optional float max_force = 51;- Specified by:
getMaxForcein interfaceBox2D.PbJointOrBuilder- Returns:
- The maxForce.
-
setMaxForce
mouse, friction, rope
optional float max_force = 51;- Parameters:
value- The maxForce to set.- Returns:
- This builder for chaining.
-
clearMaxForce
mouse, friction, rope
optional float max_force = 51;- Returns:
- This builder for chaining.
-
hasJoint1
public boolean hasJoint1()gear
optional int32 joint1 = 61;- Specified by:
hasJoint1in interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the joint1 field is set.
-
getJoint1
public int getJoint1()gear
optional int32 joint1 = 61;- Specified by:
getJoint1in interfaceBox2D.PbJointOrBuilder- Returns:
- The joint1.
-
setJoint1
gear
optional int32 joint1 = 61;- Parameters:
value- The joint1 to set.- Returns:
- This builder for chaining.
-
clearJoint1
gear
optional int32 joint1 = 61;- Returns:
- This builder for chaining.
-
hasJoint2
public boolean hasJoint2()gear
optional int32 joint2 = 62;- Specified by:
hasJoint2in interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the joint2 field is set.
-
getJoint2
public int getJoint2()gear
optional int32 joint2 = 62;- Specified by:
getJoint2in interfaceBox2D.PbJointOrBuilder- Returns:
- The joint2.
-
setJoint2
gear
optional int32 joint2 = 62;- Parameters:
value- The joint2 to set.- Returns:
- This builder for chaining.
-
clearJoint2
gear
optional int32 joint2 = 62;- Returns:
- This builder for chaining.
-
hasMaxTorque
public boolean hasMaxTorque()friction
optional float max_torque = 90;- Specified by:
hasMaxTorquein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxTorque field is set.
-
getMaxTorque
public float getMaxTorque()friction
optional float max_torque = 90;- Specified by:
getMaxTorquein interfaceBox2D.PbJointOrBuilder- Returns:
- The maxTorque.
-
setMaxTorque
friction
optional float max_torque = 90;- Parameters:
value- The maxTorque to set.- Returns:
- This builder for chaining.
-
clearMaxTorque
friction
optional float max_torque = 90;- Returns:
- This builder for chaining.
-
hasMaxLength
public boolean hasMaxLength()rope
optional float max_length = 100;- Specified by:
hasMaxLengthin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxLength field is set.
-
getMaxLength
public float getMaxLength()rope
optional float max_length = 100;- Specified by:
getMaxLengthin interfaceBox2D.PbJointOrBuilder- Returns:
- The maxLength.
-
setMaxLength
rope
optional float max_length = 100;- Parameters:
value- The maxLength to set.- Returns:
- This builder for chaining.
-
clearMaxLength
rope
optional float max_length = 100;- Returns:
- This builder for chaining.
-
ensureBodiesIsMutable
private void ensureBodiesIsMutable() -
getBodiesList
public java.util.List<java.lang.Integer> getBodiesList()con vol
repeated int32 bodies = 110;- Specified by:
getBodiesListin interfaceBox2D.PbJointOrBuilder- Returns:
- A list containing the bodies.
-
getBodiesCount
public int getBodiesCount()con vol
repeated int32 bodies = 110;- Specified by:
getBodiesCountin interfaceBox2D.PbJointOrBuilder- Returns:
- The count of bodies.
-
getBodies
public int getBodies(int index) con vol
repeated int32 bodies = 110;- Specified by:
getBodiesin interfaceBox2D.PbJointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The bodies at the given index.
-
setBodies
con vol
repeated int32 bodies = 110;- Parameters:
index- The index to set the value at.value- The bodies to set.- Returns:
- This builder for chaining.
-
addBodies
con vol
repeated int32 bodies = 110;- Parameters:
value- The bodies to add.- Returns:
- This builder for chaining.
-
addAllBodies
con vol
repeated int32 bodies = 110;- Parameters:
values- The bodies to add.- Returns:
- This builder for chaining.
-
clearBodies
con vol
repeated int32 bodies = 110;- Returns:
- This builder for chaining.
-
ensureJointsIsMutable
private void ensureJointsIsMutable() -
getJointsList
public java.util.List<java.lang.Integer> getJointsList()con vol
repeated int32 joints = 111;- Specified by:
getJointsListin interfaceBox2D.PbJointOrBuilder- Returns:
- A list containing the joints.
-
getJointsCount
public int getJointsCount()con vol
repeated int32 joints = 111;- Specified by:
getJointsCountin interfaceBox2D.PbJointOrBuilder- Returns:
- The count of joints.
-
getJoints
public int getJoints(int index) con vol
repeated int32 joints = 111;- Specified by:
getJointsin interfaceBox2D.PbJointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The joints at the given index.
-
setJoints
con vol
repeated int32 joints = 111;- Parameters:
index- The index to set the value at.value- The joints to set.- Returns:
- This builder for chaining.
-
addJoints
con vol
repeated int32 joints = 111;- Parameters:
value- The joints to add.- Returns:
- This builder for chaining.
-
addAllJoints
con vol
repeated int32 joints = 111;- Parameters:
values- The joints to add.- Returns:
- This builder for chaining.
-
clearJoints
con vol
repeated int32 joints = 111;- Returns:
- This builder for chaining.
-