// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/laex/cg2d/model/ScreenModel.proto
package com.laex.cg2d.model;
public final class ScreenModel {
private ScreenModel() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code com.laex.cg2d.model.CGJointType}
*/
public enum CGJointType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>UNKNOWN = 1;</code>
*/
UNKNOWN(0, 1),
/**
* <code>REVOLUTE = 2;</code>
*/
REVOLUTE(1, 2),
/**
* <code>PRISMATIC = 3;</code>
*/
PRISMATIC(2, 3),
/**
* <code>DISTANCE = 4;</code>
*/
DISTANCE(3, 4),
/**
* <code>PULLEY = 5;</code>
*/
PULLEY(4, 5),
/**
* <code>MOUSE = 6;</code>
*/
MOUSE(5, 6),
/**
* <code>GEAR = 7;</code>
*/
GEAR(6, 7),
/**
* <code>WHEEL = 8;</code>
*/
WHEEL(7, 8),
/**
* <code>WELD = 9;</code>
*/
WELD(8, 9),
/**
* <code>FRICTION = 10;</code>
*/
FRICTION(9, 10),
/**
* <code>ROPE = 11;</code>
*/
ROPE(10, 11),
;
/**
* <code>UNKNOWN = 1;</code>
*/
public static final int UNKNOWN_VALUE = 1;
/**
* <code>REVOLUTE = 2;</code>
*/
public static final int REVOLUTE_VALUE = 2;
/**
* <code>PRISMATIC = 3;</code>
*/
public static final int PRISMATIC_VALUE = 3;
/**
* <code>DISTANCE = 4;</code>
*/
public static final int DISTANCE_VALUE = 4;
/**
* <code>PULLEY = 5;</code>
*/
public static final int PULLEY_VALUE = 5;
/**
* <code>MOUSE = 6;</code>
*/
public static final int MOUSE_VALUE = 6;
/**
* <code>GEAR = 7;</code>
*/
public static final int GEAR_VALUE = 7;
/**
* <code>WHEEL = 8;</code>
*/
public static final int WHEEL_VALUE = 8;
/**
* <code>WELD = 9;</code>
*/
public static final int WELD_VALUE = 9;
/**
* <code>FRICTION = 10;</code>
*/
public static final int FRICTION_VALUE = 10;
/**
* <code>ROPE = 11;</code>
*/
public static final int ROPE_VALUE = 11;
public final int getNumber() { return value; }
public static CGJointType valueOf(int value) {
switch (value) {
case 1: return UNKNOWN;
case 2: return REVOLUTE;
case 3: return PRISMATIC;
case 4: return DISTANCE;
case 5: return PULLEY;
case 6: return MOUSE;
case 7: return GEAR;
case 8: return WHEEL;
case 9: return WELD;
case 10: return FRICTION;
case 11: return ROPE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CGJointType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<CGJointType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CGJointType>() {
public CGJointType findValueByNumber(int number) {
return CGJointType.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 com.laex.cg2d.model.ScreenModel.getDescriptor().getEnumTypes().get(0);
}
private static final CGJointType[] VALUES = values();
public static CGJointType 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 CGJointType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.laex.cg2d.model.CGJointType)
}
/**
* Protobuf enum {@code com.laex.cg2d.model.CGEntityCollisionType}
*/
public enum CGEntityCollisionType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>NONE = 0;</code>
*/
NONE(0, 0),
/**
* <code>BOX = 1;</code>
*/
BOX(1, 1),
/**
* <code>CIRCLE = 2;</code>
*/
CIRCLE(2, 2),
/**
* <code>CUSTOM = 3;</code>
*/
CUSTOM(3, 3),
;
/**
* <code>NONE = 0;</code>
*/
public static final int NONE_VALUE = 0;
/**
* <code>BOX = 1;</code>
*/
public static final int BOX_VALUE = 1;
/**
* <code>CIRCLE = 2;</code>
*/
public static final int CIRCLE_VALUE = 2;
/**
* <code>CUSTOM = 3;</code>
*/
public static final int CUSTOM_VALUE = 3;
public final int getNumber() { return value; }
public static CGEntityCollisionType valueOf(int value) {
switch (value) {
case 0: return NONE;
case 1: return BOX;
case 2: return CIRCLE;
case 3: return CUSTOM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CGEntityCollisionType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<CGEntityCollisionType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CGEntityCollisionType>() {
public CGEntityCollisionType findValueByNumber(int number) {
return CGEntityCollisionType.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 com.laex.cg2d.model.ScreenModel.getDescriptor().getEnumTypes().get(1);
}
private static final CGEntityCollisionType[] VALUES = values();
public static CGEntityCollisionType 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 CGEntityCollisionType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.laex.cg2d.model.CGEntityCollisionType)
}
/**
* Protobuf enum {@code com.laex.cg2d.model.CGBodyType}
*/
public enum CGBodyType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>STATIC = 1;</code>
*/
STATIC(0, 1),
/**
* <code>KINEMATIC = 2;</code>
*/
KINEMATIC(1, 2),
/**
* <code>DYNAMIC = 3;</code>
*/
DYNAMIC(2, 3),
;
/**
* <code>STATIC = 1;</code>
*/
public static final int STATIC_VALUE = 1;
/**
* <code>KINEMATIC = 2;</code>
*/
public static final int KINEMATIC_VALUE = 2;
/**
* <code>DYNAMIC = 3;</code>
*/
public static final int DYNAMIC_VALUE = 3;
public final int getNumber() { return value; }
public static CGBodyType valueOf(int value) {
switch (value) {
case 1: return STATIC;
case 2: return KINEMATIC;
case 3: return DYNAMIC;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CGBodyType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<CGBodyType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CGBodyType>() {
public CGBodyType findValueByNumber(int number) {
return CGBodyType.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 com.laex.cg2d.model.ScreenModel.getDescriptor().getEnumTypes().get(2);
}
private static final CGBodyType[] VALUES = values();
public static CGBodyType 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 CGBodyType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.laex.cg2d.model.CGBodyType)
}
/**
* Protobuf enum {@code com.laex.cg2d.model.CGEditorShapeType}
*/
public enum CGEditorShapeType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>SIMPLE_SHAPE_CIRCLE = 1;</code>
*/
SIMPLE_SHAPE_CIRCLE(0, 1),
/**
* <code>SIMPLE_SHAPE_BOX = 2;</code>
*/
SIMPLE_SHAPE_BOX(1, 2),
/**
* <code>SIMPLE_SHAPE_HEDGE = 3;</code>
*/
SIMPLE_SHAPE_HEDGE(2, 3),
/**
* <code>SIMPLE_SHAPE_VEDGE = 4;</code>
*/
SIMPLE_SHAPE_VEDGE(3, 4),
/**
* <code>BACKGROUND_SHAPE = 5;</code>
*/
BACKGROUND_SHAPE(4, 5),
/**
* <code>ENTITY_SHAPE = 6;</code>
*/
ENTITY_SHAPE(5, 6),
;
/**
* <code>SIMPLE_SHAPE_CIRCLE = 1;</code>
*/
public static final int SIMPLE_SHAPE_CIRCLE_VALUE = 1;
/**
* <code>SIMPLE_SHAPE_BOX = 2;</code>
*/
public static final int SIMPLE_SHAPE_BOX_VALUE = 2;
/**
* <code>SIMPLE_SHAPE_HEDGE = 3;</code>
*/
public static final int SIMPLE_SHAPE_HEDGE_VALUE = 3;
/**
* <code>SIMPLE_SHAPE_VEDGE = 4;</code>
*/
public static final int SIMPLE_SHAPE_VEDGE_VALUE = 4;
/**
* <code>BACKGROUND_SHAPE = 5;</code>
*/
public static final int BACKGROUND_SHAPE_VALUE = 5;
/**
* <code>ENTITY_SHAPE = 6;</code>
*/
public static final int ENTITY_SHAPE_VALUE = 6;
public final int getNumber() { return value; }
public static CGEditorShapeType valueOf(int value) {
switch (value) {
case 1: return SIMPLE_SHAPE_CIRCLE;
case 2: return SIMPLE_SHAPE_BOX;
case 3: return SIMPLE_SHAPE_HEDGE;
case 4: return SIMPLE_SHAPE_VEDGE;
case 5: return BACKGROUND_SHAPE;
case 6: return ENTITY_SHAPE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CGEditorShapeType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<CGEditorShapeType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CGEditorShapeType>() {
public CGEditorShapeType findValueByNumber(int number) {
return CGEditorShapeType.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 com.laex.cg2d.model.ScreenModel.getDescriptor().getEnumTypes().get(3);
}
private static final CGEditorShapeType[] VALUES = values();
public static CGEditorShapeType 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 CGEditorShapeType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.laex.cg2d.model.CGEditorShapeType)
}
public interface CGScreenModelOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
boolean hasScreenPrefs();
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
com.laex.cg2d.model.ScreenModel.CGScreenPreferences getScreenPrefs();
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
com.laex.cg2d.model.ScreenModel.CGScreenPreferencesOrBuilder getScreenPrefsOrBuilder();
// repeated .com.laex.cg2d.model.CGLayer layers = 2;
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
java.util.List<com.laex.cg2d.model.ScreenModel.CGLayer>
getLayersList();
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
com.laex.cg2d.model.ScreenModel.CGLayer getLayers(int index);
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
int getLayersCount();
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder>
getLayersOrBuilderList();
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder getLayersOrBuilder(
int index);
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenModel}
*/
public static final class CGScreenModel extends
com.google.protobuf.GeneratedMessage
implements CGScreenModelOrBuilder {
// Use CGScreenModel.newBuilder() to construct.
private CGScreenModel(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGScreenModel(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGScreenModel defaultInstance;
public static CGScreenModel getDefaultInstance() {
return defaultInstance;
}
public CGScreenModel getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGScreenModel(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = screenPrefs_.toBuilder();
}
screenPrefs_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(screenPrefs_);
screenPrefs_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
layers_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGLayer>();
mutable_bitField0_ |= 0x00000002;
}
layers_.add(input.readMessage(com.laex.cg2d.model.ScreenModel.CGLayer.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
layers_ = java.util.Collections.unmodifiableList(layers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenModel_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenModel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenModel.class, com.laex.cg2d.model.ScreenModel.CGScreenModel.Builder.class);
}
public static com.google.protobuf.Parser<CGScreenModel> PARSER =
new com.google.protobuf.AbstractParser<CGScreenModel>() {
public CGScreenModel parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGScreenModel(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGScreenModel> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;
public static final int SCREENPREFS_FIELD_NUMBER = 1;
private com.laex.cg2d.model.ScreenModel.CGScreenPreferences screenPrefs_;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public boolean hasScreenPrefs() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences getScreenPrefs() {
return screenPrefs_;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferencesOrBuilder getScreenPrefsOrBuilder() {
return screenPrefs_;
}
// repeated .com.laex.cg2d.model.CGLayer layers = 2;
public static final int LAYERS_FIELD_NUMBER = 2;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGLayer> layers_;
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGLayer> getLayersList() {
return layers_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder>
getLayersOrBuilderList() {
return layers_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public int getLayersCount() {
return layers_.size();
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGLayer getLayers(int index) {
return layers_.get(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder getLayersOrBuilder(
int index) {
return layers_.get(index);
}
private void initFields() {
screenPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.getDefaultInstance();
layers_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasScreenPrefs()) {
if (!getScreenPrefs().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getLayersCount(); i++) {
if (!getLayers(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, screenPrefs_);
}
for (int i = 0; i < layers_.size(); i++) {
output.writeMessage(2, layers_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, screenPrefs_);
}
for (int i = 0; i < layers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, layers_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenModel parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGScreenModel prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenModel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGScreenModelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenModel_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenModel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenModel.class, com.laex.cg2d.model.ScreenModel.CGScreenModel.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGScreenModel.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getScreenPrefsFieldBuilder();
getLayersFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (screenPrefsBuilder_ == null) {
screenPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.getDefaultInstance();
} else {
screenPrefsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (layersBuilder_ == null) {
layers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
layersBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenModel_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGScreenModel getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGScreenModel.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGScreenModel build() {
com.laex.cg2d.model.ScreenModel.CGScreenModel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGScreenModel buildPartial() {
com.laex.cg2d.model.ScreenModel.CGScreenModel result = new com.laex.cg2d.model.ScreenModel.CGScreenModel(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (screenPrefsBuilder_ == null) {
result.screenPrefs_ = screenPrefs_;
} else {
result.screenPrefs_ = screenPrefsBuilder_.build();
}
if (layersBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
layers_ = java.util.Collections.unmodifiableList(layers_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.layers_ = layers_;
} else {
result.layers_ = layersBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGScreenModel) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGScreenModel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGScreenModel other) {
if (other == com.laex.cg2d.model.ScreenModel.CGScreenModel.getDefaultInstance()) return this;
if (other.hasScreenPrefs()) {
mergeScreenPrefs(other.getScreenPrefs());
}
if (layersBuilder_ == null) {
if (!other.layers_.isEmpty()) {
if (layers_.isEmpty()) {
layers_ = other.layers_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLayersIsMutable();
layers_.addAll(other.layers_);
}
onChanged();
}
} else {
if (!other.layers_.isEmpty()) {
if (layersBuilder_.isEmpty()) {
layersBuilder_.dispose();
layersBuilder_ = null;
layers_ = other.layers_;
bitField0_ = (bitField0_ & ~0x00000002);
layersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getLayersFieldBuilder() : null;
} else {
layersBuilder_.addAllMessages(other.layers_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasScreenPrefs()) {
if (!getScreenPrefs().isInitialized()) {
return false;
}
}
for (int i = 0; i < getLayersCount(); i++) {
if (!getLayers(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGScreenModel parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGScreenModel) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;
private com.laex.cg2d.model.ScreenModel.CGScreenPreferences screenPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferencesOrBuilder> screenPrefsBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public boolean hasScreenPrefs() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences getScreenPrefs() {
if (screenPrefsBuilder_ == null) {
return screenPrefs_;
} else {
return screenPrefsBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public Builder setScreenPrefs(com.laex.cg2d.model.ScreenModel.CGScreenPreferences value) {
if (screenPrefsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
screenPrefs_ = value;
onChanged();
} else {
screenPrefsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public Builder setScreenPrefs(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.Builder builderForValue) {
if (screenPrefsBuilder_ == null) {
screenPrefs_ = builderForValue.build();
onChanged();
} else {
screenPrefsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public Builder mergeScreenPrefs(com.laex.cg2d.model.ScreenModel.CGScreenPreferences value) {
if (screenPrefsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
screenPrefs_ != com.laex.cg2d.model.ScreenModel.CGScreenPreferences.getDefaultInstance()) {
screenPrefs_ =
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.newBuilder(screenPrefs_).mergeFrom(value).buildPartial();
} else {
screenPrefs_ = value;
}
onChanged();
} else {
screenPrefsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public Builder clearScreenPrefs() {
if (screenPrefsBuilder_ == null) {
screenPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.getDefaultInstance();
onChanged();
} else {
screenPrefsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.Builder getScreenPrefsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getScreenPrefsFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferencesOrBuilder getScreenPrefsOrBuilder() {
if (screenPrefsBuilder_ != null) {
return screenPrefsBuilder_.getMessageOrBuilder();
} else {
return screenPrefs_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferencesOrBuilder>
getScreenPrefsFieldBuilder() {
if (screenPrefsBuilder_ == null) {
screenPrefsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferencesOrBuilder>(
screenPrefs_,
getParentForChildren(),
isClean());
screenPrefs_ = null;
}
return screenPrefsBuilder_;
}
// repeated .com.laex.cg2d.model.CGLayer layers = 2;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGLayer> layers_ =
java.util.Collections.emptyList();
private void ensureLayersIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
layers_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGLayer>(layers_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGLayer, com.laex.cg2d.model.ScreenModel.CGLayer.Builder, com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder> layersBuilder_;
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGLayer> getLayersList() {
if (layersBuilder_ == null) {
return java.util.Collections.unmodifiableList(layers_);
} else {
return layersBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public int getLayersCount() {
if (layersBuilder_ == null) {
return layers_.size();
} else {
return layersBuilder_.getCount();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGLayer getLayers(int index) {
if (layersBuilder_ == null) {
return layers_.get(index);
} else {
return layersBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public Builder setLayers(
int index, com.laex.cg2d.model.ScreenModel.CGLayer value) {
if (layersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLayersIsMutable();
layers_.set(index, value);
onChanged();
} else {
layersBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public Builder setLayers(
int index, com.laex.cg2d.model.ScreenModel.CGLayer.Builder builderForValue) {
if (layersBuilder_ == null) {
ensureLayersIsMutable();
layers_.set(index, builderForValue.build());
onChanged();
} else {
layersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public Builder addLayers(com.laex.cg2d.model.ScreenModel.CGLayer value) {
if (layersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLayersIsMutable();
layers_.add(value);
onChanged();
} else {
layersBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public Builder addLayers(
int index, com.laex.cg2d.model.ScreenModel.CGLayer value) {
if (layersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLayersIsMutable();
layers_.add(index, value);
onChanged();
} else {
layersBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public Builder addLayers(
com.laex.cg2d.model.ScreenModel.CGLayer.Builder builderForValue) {
if (layersBuilder_ == null) {
ensureLayersIsMutable();
layers_.add(builderForValue.build());
onChanged();
} else {
layersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public Builder addLayers(
int index, com.laex.cg2d.model.ScreenModel.CGLayer.Builder builderForValue) {
if (layersBuilder_ == null) {
ensureLayersIsMutable();
layers_.add(index, builderForValue.build());
onChanged();
} else {
layersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public Builder addAllLayers(
java.lang.Iterable<? extends com.laex.cg2d.model.ScreenModel.CGLayer> values) {
if (layersBuilder_ == null) {
ensureLayersIsMutable();
super.addAll(values, layers_);
onChanged();
} else {
layersBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public Builder clearLayers() {
if (layersBuilder_ == null) {
layers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
layersBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public Builder removeLayers(int index) {
if (layersBuilder_ == null) {
ensureLayersIsMutable();
layers_.remove(index);
onChanged();
} else {
layersBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGLayer.Builder getLayersBuilder(
int index) {
return getLayersFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder getLayersOrBuilder(
int index) {
if (layersBuilder_ == null) {
return layers_.get(index); } else {
return layersBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder>
getLayersOrBuilderList() {
if (layersBuilder_ != null) {
return layersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(layers_);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGLayer.Builder addLayersBuilder() {
return getLayersFieldBuilder().addBuilder(
com.laex.cg2d.model.ScreenModel.CGLayer.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGLayer.Builder addLayersBuilder(
int index) {
return getLayersFieldBuilder().addBuilder(
index, com.laex.cg2d.model.ScreenModel.CGLayer.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGLayer layers = 2;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGLayer.Builder>
getLayersBuilderList() {
return getLayersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGLayer, com.laex.cg2d.model.ScreenModel.CGLayer.Builder, com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder>
getLayersFieldBuilder() {
if (layersBuilder_ == null) {
layersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGLayer, com.laex.cg2d.model.ScreenModel.CGLayer.Builder, com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder>(
layers_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
layers_ = null;
}
return layersBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGScreenModel)
}
static {
defaultInstance = new CGScreenModel(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGScreenModel)
}
public interface CGJointOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string sourceShapeId = 1;
/**
* <code>optional string sourceShapeId = 1;</code>
*/
boolean hasSourceShapeId();
/**
* <code>optional string sourceShapeId = 1;</code>
*/
java.lang.String getSourceShapeId();
/**
* <code>optional string sourceShapeId = 1;</code>
*/
com.google.protobuf.ByteString
getSourceShapeIdBytes();
// optional string targetShapeId = 2;
/**
* <code>optional string targetShapeId = 2;</code>
*/
boolean hasTargetShapeId();
/**
* <code>optional string targetShapeId = 2;</code>
*/
java.lang.String getTargetShapeId();
/**
* <code>optional string targetShapeId = 2;</code>
*/
com.google.protobuf.ByteString
getTargetShapeIdBytes();
// optional .com.laex.cg2d.model.CGJointType type = 3;
/**
* <code>optional .com.laex.cg2d.model.CGJointType type = 3;</code>
*/
boolean hasType();
/**
* <code>optional .com.laex.cg2d.model.CGJointType type = 3;</code>
*/
com.laex.cg2d.model.ScreenModel.CGJointType getType();
// optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
boolean hasDistanceJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef getDistanceJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGDistanceJointDefOrBuilder getDistanceJointDefOrBuilder();
// optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
boolean hasRevoluteJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef getRevoluteJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDefOrBuilder getRevoluteJointDefOrBuilder();
// optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
boolean hasPrismaticJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef getPrismaticJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDefOrBuilder getPrismaticJointDefOrBuilder();
// optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
boolean hasPulleyJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef getPulleyJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
com.laex.cg2d.model.ScreenModel.CGPulleyJointDefOrBuilder getPulleyJointDefOrBuilder();
// optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
boolean hasFrictionJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef getFrictionJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
com.laex.cg2d.model.ScreenModel.CGFrictionJointDefOrBuilder getFrictionJointDefOrBuilder();
// optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
boolean hasWeldJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
com.laex.cg2d.model.ScreenModel.CGWeldJointDef getWeldJointDef();
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
com.laex.cg2d.model.ScreenModel.CGWeldJointDefOrBuilder getWeldJointDefOrBuilder();
// optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
boolean hasLocalAnchorA();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
com.laex.cg2d.model.ScreenModel.CGVector2 getLocalAnchorA();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getLocalAnchorAOrBuilder();
// optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
boolean hasLocalAnchorB();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2 getLocalAnchorB();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getLocalAnchorBOrBuilder();
// optional bool useLocalAnchors = 13;
/**
* <code>optional bool useLocalAnchors = 13;</code>
*/
boolean hasUseLocalAnchors();
/**
* <code>optional bool useLocalAnchors = 13;</code>
*/
boolean getUseLocalAnchors();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGJoint}
*/
public static final class CGJoint extends
com.google.protobuf.GeneratedMessage
implements CGJointOrBuilder {
// Use CGJoint.newBuilder() to construct.
private CGJoint(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGJoint(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGJoint defaultInstance;
public static CGJoint getDefaultInstance() {
return defaultInstance;
}
public CGJoint getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGJoint(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
sourceShapeId_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
targetShapeId_ = input.readBytes();
break;
}
case 24: {
int rawValue = input.readEnum();
com.laex.cg2d.model.ScreenModel.CGJointType value = com.laex.cg2d.model.ScreenModel.CGJointType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
type_ = value;
}
break;
}
case 42: {
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = distanceJointDef_.toBuilder();
}
distanceJointDef_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(distanceJointDef_);
distanceJointDef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 50: {
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = revoluteJointDef_.toBuilder();
}
revoluteJointDef_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(revoluteJointDef_);
revoluteJointDef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 58: {
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = prismaticJointDef_.toBuilder();
}
prismaticJointDef_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(prismaticJointDef_);
prismaticJointDef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 66: {
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = pulleyJointDef_.toBuilder();
}
pulleyJointDef_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pulleyJointDef_);
pulleyJointDef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 74: {
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = frictionJointDef_.toBuilder();
}
frictionJointDef_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(frictionJointDef_);
frictionJointDef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 82: {
com.laex.cg2d.model.ScreenModel.CGWeldJointDef.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
subBuilder = weldJointDef_.toBuilder();
}
weldJointDef_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGWeldJointDef.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(weldJointDef_);
weldJointDef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 90: {
com.laex.cg2d.model.ScreenModel.CGVector2.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
subBuilder = localAnchorA_.toBuilder();
}
localAnchorA_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGVector2.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localAnchorA_);
localAnchorA_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 98: {
com.laex.cg2d.model.ScreenModel.CGVector2.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
subBuilder = localAnchorB_.toBuilder();
}
localAnchorB_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGVector2.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localAnchorB_);
localAnchorB_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
case 104: {
bitField0_ |= 0x00000800;
useLocalAnchors_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGJoint_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGJoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGJoint.class, com.laex.cg2d.model.ScreenModel.CGJoint.Builder.class);
}
public static com.google.protobuf.Parser<CGJoint> PARSER =
new com.google.protobuf.AbstractParser<CGJoint>() {
public CGJoint parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGJoint(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGJoint> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string sourceShapeId = 1;
public static final int SOURCESHAPEID_FIELD_NUMBER = 1;
private java.lang.Object sourceShapeId_;
/**
* <code>optional string sourceShapeId = 1;</code>
*/
public boolean hasSourceShapeId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string sourceShapeId = 1;</code>
*/
public java.lang.String getSourceShapeId() {
java.lang.Object ref = sourceShapeId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
sourceShapeId_ = s;
}
return s;
}
}
/**
* <code>optional string sourceShapeId = 1;</code>
*/
public com.google.protobuf.ByteString
getSourceShapeIdBytes() {
java.lang.Object ref = sourceShapeId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceShapeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string targetShapeId = 2;
public static final int TARGETSHAPEID_FIELD_NUMBER = 2;
private java.lang.Object targetShapeId_;
/**
* <code>optional string targetShapeId = 2;</code>
*/
public boolean hasTargetShapeId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string targetShapeId = 2;</code>
*/
public java.lang.String getTargetShapeId() {
java.lang.Object ref = targetShapeId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
targetShapeId_ = s;
}
return s;
}
}
/**
* <code>optional string targetShapeId = 2;</code>
*/
public com.google.protobuf.ByteString
getTargetShapeIdBytes() {
java.lang.Object ref = targetShapeId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetShapeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional .com.laex.cg2d.model.CGJointType type = 3;
public static final int TYPE_FIELD_NUMBER = 3;
private com.laex.cg2d.model.ScreenModel.CGJointType type_;
/**
* <code>optional .com.laex.cg2d.model.CGJointType type = 3;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.laex.cg2d.model.CGJointType type = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGJointType getType() {
return type_;
}
// optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;
public static final int DISTANCEJOINTDEF_FIELD_NUMBER = 5;
private com.laex.cg2d.model.ScreenModel.CGDistanceJointDef distanceJointDef_;
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public boolean hasDistanceJointDef() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGDistanceJointDef getDistanceJointDef() {
return distanceJointDef_;
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGDistanceJointDefOrBuilder getDistanceJointDefOrBuilder() {
return distanceJointDef_;
}
// optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;
public static final int REVOLUTEJOINTDEF_FIELD_NUMBER = 6;
private com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef revoluteJointDef_;
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public boolean hasRevoluteJointDef() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef getRevoluteJointDef() {
return revoluteJointDef_;
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGRevoluteJointDefOrBuilder getRevoluteJointDefOrBuilder() {
return revoluteJointDef_;
}
// optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;
public static final int PRISMATICJOINTDEF_FIELD_NUMBER = 7;
private com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef prismaticJointDef_;
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public boolean hasPrismaticJointDef() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef getPrismaticJointDef() {
return prismaticJointDef_;
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPrismaticJointDefOrBuilder getPrismaticJointDefOrBuilder() {
return prismaticJointDef_;
}
// optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;
public static final int PULLEYJOINTDEF_FIELD_NUMBER = 8;
private com.laex.cg2d.model.ScreenModel.CGPulleyJointDef pulleyJointDef_;
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public boolean hasPulleyJointDef() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPulleyJointDef getPulleyJointDef() {
return pulleyJointDef_;
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPulleyJointDefOrBuilder getPulleyJointDefOrBuilder() {
return pulleyJointDef_;
}
// optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;
public static final int FRICTIONJOINTDEF_FIELD_NUMBER = 9;
private com.laex.cg2d.model.ScreenModel.CGFrictionJointDef frictionJointDef_;
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public boolean hasFrictionJointDef() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFrictionJointDef getFrictionJointDef() {
return frictionJointDef_;
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFrictionJointDefOrBuilder getFrictionJointDefOrBuilder() {
return frictionJointDef_;
}
// optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;
public static final int WELDJOINTDEF_FIELD_NUMBER = 10;
private com.laex.cg2d.model.ScreenModel.CGWeldJointDef weldJointDef_;
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public boolean hasWeldJointDef() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGWeldJointDef getWeldJointDef() {
return weldJointDef_;
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGWeldJointDefOrBuilder getWeldJointDefOrBuilder() {
return weldJointDef_;
}
// optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;
public static final int LOCALANCHORA_FIELD_NUMBER = 11;
private com.laex.cg2d.model.ScreenModel.CGVector2 localAnchorA_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public boolean hasLocalAnchorA() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getLocalAnchorA() {
return localAnchorA_;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getLocalAnchorAOrBuilder() {
return localAnchorA_;
}
// optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;
public static final int LOCALANCHORB_FIELD_NUMBER = 12;
private com.laex.cg2d.model.ScreenModel.CGVector2 localAnchorB_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public boolean hasLocalAnchorB() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getLocalAnchorB() {
return localAnchorB_;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getLocalAnchorBOrBuilder() {
return localAnchorB_;
}
// optional bool useLocalAnchors = 13;
public static final int USELOCALANCHORS_FIELD_NUMBER = 13;
private boolean useLocalAnchors_;
/**
* <code>optional bool useLocalAnchors = 13;</code>
*/
public boolean hasUseLocalAnchors() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional bool useLocalAnchors = 13;</code>
*/
public boolean getUseLocalAnchors() {
return useLocalAnchors_;
}
private void initFields() {
sourceShapeId_ = "";
targetShapeId_ = "";
type_ = com.laex.cg2d.model.ScreenModel.CGJointType.UNKNOWN;
distanceJointDef_ = com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.getDefaultInstance();
revoluteJointDef_ = com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.getDefaultInstance();
prismaticJointDef_ = com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.getDefaultInstance();
pulleyJointDef_ = com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.getDefaultInstance();
frictionJointDef_ = com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.getDefaultInstance();
weldJointDef_ = com.laex.cg2d.model.ScreenModel.CGWeldJointDef.getDefaultInstance();
localAnchorA_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
localAnchorB_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
useLocalAnchors_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasPrismaticJointDef()) {
if (!getPrismaticJointDef().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasPulleyJointDef()) {
if (!getPulleyJointDef().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasLocalAnchorA()) {
if (!getLocalAnchorA().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasLocalAnchorB()) {
if (!getLocalAnchorB().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.writeBytes(1, getSourceShapeIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getTargetShapeIdBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeEnum(3, type_.getNumber());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(5, distanceJointDef_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(6, revoluteJointDef_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(7, prismaticJointDef_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(8, pulleyJointDef_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(9, frictionJointDef_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeMessage(10, weldJointDef_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeMessage(11, localAnchorA_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeMessage(12, localAnchorB_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeBool(13, useLocalAnchors_);
}
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
.computeBytesSize(1, getSourceShapeIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getTargetShapeIdBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, type_.getNumber());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, distanceJointDef_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, revoluteJointDef_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, prismaticJointDef_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, pulleyJointDef_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, frictionJointDef_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, weldJointDef_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, localAnchorA_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, localAnchorB_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, useLocalAnchors_);
}
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 com.laex.cg2d.model.ScreenModel.CGJoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGJoint parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGJoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGJoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGJoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGJoint parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGJoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGJoint parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGJoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGJoint parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGJoint prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGJoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGJointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGJoint_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGJoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGJoint.class, com.laex.cg2d.model.ScreenModel.CGJoint.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGJoint.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getDistanceJointDefFieldBuilder();
getRevoluteJointDefFieldBuilder();
getPrismaticJointDefFieldBuilder();
getPulleyJointDefFieldBuilder();
getFrictionJointDefFieldBuilder();
getWeldJointDefFieldBuilder();
getLocalAnchorAFieldBuilder();
getLocalAnchorBFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
sourceShapeId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
targetShapeId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
type_ = com.laex.cg2d.model.ScreenModel.CGJointType.UNKNOWN;
bitField0_ = (bitField0_ & ~0x00000004);
if (distanceJointDefBuilder_ == null) {
distanceJointDef_ = com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.getDefaultInstance();
} else {
distanceJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (revoluteJointDefBuilder_ == null) {
revoluteJointDef_ = com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.getDefaultInstance();
} else {
revoluteJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (prismaticJointDefBuilder_ == null) {
prismaticJointDef_ = com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.getDefaultInstance();
} else {
prismaticJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (pulleyJointDefBuilder_ == null) {
pulleyJointDef_ = com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.getDefaultInstance();
} else {
pulleyJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (frictionJointDefBuilder_ == null) {
frictionJointDef_ = com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.getDefaultInstance();
} else {
frictionJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (weldJointDefBuilder_ == null) {
weldJointDef_ = com.laex.cg2d.model.ScreenModel.CGWeldJointDef.getDefaultInstance();
} else {
weldJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (localAnchorABuilder_ == null) {
localAnchorA_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
} else {
localAnchorABuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
if (localAnchorBBuilder_ == null) {
localAnchorB_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
} else {
localAnchorBBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
useLocalAnchors_ = false;
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGJoint_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGJoint getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGJoint.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGJoint build() {
com.laex.cg2d.model.ScreenModel.CGJoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGJoint buildPartial() {
com.laex.cg2d.model.ScreenModel.CGJoint result = new com.laex.cg2d.model.ScreenModel.CGJoint(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.sourceShapeId_ = sourceShapeId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.targetShapeId_ = targetShapeId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (distanceJointDefBuilder_ == null) {
result.distanceJointDef_ = distanceJointDef_;
} else {
result.distanceJointDef_ = distanceJointDefBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (revoluteJointDefBuilder_ == null) {
result.revoluteJointDef_ = revoluteJointDef_;
} else {
result.revoluteJointDef_ = revoluteJointDefBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (prismaticJointDefBuilder_ == null) {
result.prismaticJointDef_ = prismaticJointDef_;
} else {
result.prismaticJointDef_ = prismaticJointDefBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (pulleyJointDefBuilder_ == null) {
result.pulleyJointDef_ = pulleyJointDef_;
} else {
result.pulleyJointDef_ = pulleyJointDefBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (frictionJointDefBuilder_ == null) {
result.frictionJointDef_ = frictionJointDef_;
} else {
result.frictionJointDef_ = frictionJointDefBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
if (weldJointDefBuilder_ == null) {
result.weldJointDef_ = weldJointDef_;
} else {
result.weldJointDef_ = weldJointDefBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
if (localAnchorABuilder_ == null) {
result.localAnchorA_ = localAnchorA_;
} else {
result.localAnchorA_ = localAnchorABuilder_.build();
}
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
if (localAnchorBBuilder_ == null) {
result.localAnchorB_ = localAnchorB_;
} else {
result.localAnchorB_ = localAnchorBBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.useLocalAnchors_ = useLocalAnchors_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGJoint) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGJoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGJoint other) {
if (other == com.laex.cg2d.model.ScreenModel.CGJoint.getDefaultInstance()) return this;
if (other.hasSourceShapeId()) {
bitField0_ |= 0x00000001;
sourceShapeId_ = other.sourceShapeId_;
onChanged();
}
if (other.hasTargetShapeId()) {
bitField0_ |= 0x00000002;
targetShapeId_ = other.targetShapeId_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasDistanceJointDef()) {
mergeDistanceJointDef(other.getDistanceJointDef());
}
if (other.hasRevoluteJointDef()) {
mergeRevoluteJointDef(other.getRevoluteJointDef());
}
if (other.hasPrismaticJointDef()) {
mergePrismaticJointDef(other.getPrismaticJointDef());
}
if (other.hasPulleyJointDef()) {
mergePulleyJointDef(other.getPulleyJointDef());
}
if (other.hasFrictionJointDef()) {
mergeFrictionJointDef(other.getFrictionJointDef());
}
if (other.hasWeldJointDef()) {
mergeWeldJointDef(other.getWeldJointDef());
}
if (other.hasLocalAnchorA()) {
mergeLocalAnchorA(other.getLocalAnchorA());
}
if (other.hasLocalAnchorB()) {
mergeLocalAnchorB(other.getLocalAnchorB());
}
if (other.hasUseLocalAnchors()) {
setUseLocalAnchors(other.getUseLocalAnchors());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasPrismaticJointDef()) {
if (!getPrismaticJointDef().isInitialized()) {
return false;
}
}
if (hasPulleyJointDef()) {
if (!getPulleyJointDef().isInitialized()) {
return false;
}
}
if (hasLocalAnchorA()) {
if (!getLocalAnchorA().isInitialized()) {
return false;
}
}
if (hasLocalAnchorB()) {
if (!getLocalAnchorB().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGJoint parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGJoint) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string sourceShapeId = 1;
private java.lang.Object sourceShapeId_ = "";
/**
* <code>optional string sourceShapeId = 1;</code>
*/
public boolean hasSourceShapeId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string sourceShapeId = 1;</code>
*/
public java.lang.String getSourceShapeId() {
java.lang.Object ref = sourceShapeId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
sourceShapeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string sourceShapeId = 1;</code>
*/
public com.google.protobuf.ByteString
getSourceShapeIdBytes() {
java.lang.Object ref = sourceShapeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceShapeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string sourceShapeId = 1;</code>
*/
public Builder setSourceShapeId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
sourceShapeId_ = value;
onChanged();
return this;
}
/**
* <code>optional string sourceShapeId = 1;</code>
*/
public Builder clearSourceShapeId() {
bitField0_ = (bitField0_ & ~0x00000001);
sourceShapeId_ = getDefaultInstance().getSourceShapeId();
onChanged();
return this;
}
/**
* <code>optional string sourceShapeId = 1;</code>
*/
public Builder setSourceShapeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
sourceShapeId_ = value;
onChanged();
return this;
}
// optional string targetShapeId = 2;
private java.lang.Object targetShapeId_ = "";
/**
* <code>optional string targetShapeId = 2;</code>
*/
public boolean hasTargetShapeId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string targetShapeId = 2;</code>
*/
public java.lang.String getTargetShapeId() {
java.lang.Object ref = targetShapeId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
targetShapeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string targetShapeId = 2;</code>
*/
public com.google.protobuf.ByteString
getTargetShapeIdBytes() {
java.lang.Object ref = targetShapeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetShapeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string targetShapeId = 2;</code>
*/
public Builder setTargetShapeId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
targetShapeId_ = value;
onChanged();
return this;
}
/**
* <code>optional string targetShapeId = 2;</code>
*/
public Builder clearTargetShapeId() {
bitField0_ = (bitField0_ & ~0x00000002);
targetShapeId_ = getDefaultInstance().getTargetShapeId();
onChanged();
return this;
}
/**
* <code>optional string targetShapeId = 2;</code>
*/
public Builder setTargetShapeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
targetShapeId_ = value;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGJointType type = 3;
private com.laex.cg2d.model.ScreenModel.CGJointType type_ = com.laex.cg2d.model.ScreenModel.CGJointType.UNKNOWN;
/**
* <code>optional .com.laex.cg2d.model.CGJointType type = 3;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.laex.cg2d.model.CGJointType type = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGJointType getType() {
return type_;
}
/**
* <code>optional .com.laex.cg2d.model.CGJointType type = 3;</code>
*/
public Builder setType(com.laex.cg2d.model.ScreenModel.CGJointType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
type_ = value;
onChanged();
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGJointType type = 3;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = com.laex.cg2d.model.ScreenModel.CGJointType.UNKNOWN;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;
private com.laex.cg2d.model.ScreenModel.CGDistanceJointDef distanceJointDef_ = com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef, com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGDistanceJointDefOrBuilder> distanceJointDefBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public boolean hasDistanceJointDef() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGDistanceJointDef getDistanceJointDef() {
if (distanceJointDefBuilder_ == null) {
return distanceJointDef_;
} else {
return distanceJointDefBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public Builder setDistanceJointDef(com.laex.cg2d.model.ScreenModel.CGDistanceJointDef value) {
if (distanceJointDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
distanceJointDef_ = value;
onChanged();
} else {
distanceJointDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public Builder setDistanceJointDef(
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.Builder builderForValue) {
if (distanceJointDefBuilder_ == null) {
distanceJointDef_ = builderForValue.build();
onChanged();
} else {
distanceJointDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public Builder mergeDistanceJointDef(com.laex.cg2d.model.ScreenModel.CGDistanceJointDef value) {
if (distanceJointDefBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
distanceJointDef_ != com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.getDefaultInstance()) {
distanceJointDef_ =
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.newBuilder(distanceJointDef_).mergeFrom(value).buildPartial();
} else {
distanceJointDef_ = value;
}
onChanged();
} else {
distanceJointDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public Builder clearDistanceJointDef() {
if (distanceJointDefBuilder_ == null) {
distanceJointDef_ = com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.getDefaultInstance();
onChanged();
} else {
distanceJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.Builder getDistanceJointDefBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getDistanceJointDefFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGDistanceJointDefOrBuilder getDistanceJointDefOrBuilder() {
if (distanceJointDefBuilder_ != null) {
return distanceJointDefBuilder_.getMessageOrBuilder();
} else {
return distanceJointDef_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGDistanceJointDef distanceJointDef = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef, com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGDistanceJointDefOrBuilder>
getDistanceJointDefFieldBuilder() {
if (distanceJointDefBuilder_ == null) {
distanceJointDefBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef, com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGDistanceJointDefOrBuilder>(
distanceJointDef_,
getParentForChildren(),
isClean());
distanceJointDef_ = null;
}
return distanceJointDefBuilder_;
}
// optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;
private com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef revoluteJointDef_ = com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef, com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGRevoluteJointDefOrBuilder> revoluteJointDefBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public boolean hasRevoluteJointDef() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef getRevoluteJointDef() {
if (revoluteJointDefBuilder_ == null) {
return revoluteJointDef_;
} else {
return revoluteJointDefBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public Builder setRevoluteJointDef(com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef value) {
if (revoluteJointDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
revoluteJointDef_ = value;
onChanged();
} else {
revoluteJointDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public Builder setRevoluteJointDef(
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.Builder builderForValue) {
if (revoluteJointDefBuilder_ == null) {
revoluteJointDef_ = builderForValue.build();
onChanged();
} else {
revoluteJointDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public Builder mergeRevoluteJointDef(com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef value) {
if (revoluteJointDefBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
revoluteJointDef_ != com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.getDefaultInstance()) {
revoluteJointDef_ =
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.newBuilder(revoluteJointDef_).mergeFrom(value).buildPartial();
} else {
revoluteJointDef_ = value;
}
onChanged();
} else {
revoluteJointDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public Builder clearRevoluteJointDef() {
if (revoluteJointDefBuilder_ == null) {
revoluteJointDef_ = com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.getDefaultInstance();
onChanged();
} else {
revoluteJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.Builder getRevoluteJointDefBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getRevoluteJointDefFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGRevoluteJointDefOrBuilder getRevoluteJointDefOrBuilder() {
if (revoluteJointDefBuilder_ != null) {
return revoluteJointDefBuilder_.getMessageOrBuilder();
} else {
return revoluteJointDef_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGRevoluteJointDef revoluteJointDef = 6;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef, com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGRevoluteJointDefOrBuilder>
getRevoluteJointDefFieldBuilder() {
if (revoluteJointDefBuilder_ == null) {
revoluteJointDefBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef, com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGRevoluteJointDefOrBuilder>(
revoluteJointDef_,
getParentForChildren(),
isClean());
revoluteJointDef_ = null;
}
return revoluteJointDefBuilder_;
}
// optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;
private com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef prismaticJointDef_ = com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef, com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGPrismaticJointDefOrBuilder> prismaticJointDefBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public boolean hasPrismaticJointDef() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef getPrismaticJointDef() {
if (prismaticJointDefBuilder_ == null) {
return prismaticJointDef_;
} else {
return prismaticJointDefBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public Builder setPrismaticJointDef(com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef value) {
if (prismaticJointDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
prismaticJointDef_ = value;
onChanged();
} else {
prismaticJointDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public Builder setPrismaticJointDef(
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.Builder builderForValue) {
if (prismaticJointDefBuilder_ == null) {
prismaticJointDef_ = builderForValue.build();
onChanged();
} else {
prismaticJointDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public Builder mergePrismaticJointDef(com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef value) {
if (prismaticJointDefBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
prismaticJointDef_ != com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.getDefaultInstance()) {
prismaticJointDef_ =
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.newBuilder(prismaticJointDef_).mergeFrom(value).buildPartial();
} else {
prismaticJointDef_ = value;
}
onChanged();
} else {
prismaticJointDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public Builder clearPrismaticJointDef() {
if (prismaticJointDefBuilder_ == null) {
prismaticJointDef_ = com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.getDefaultInstance();
onChanged();
} else {
prismaticJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.Builder getPrismaticJointDefBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getPrismaticJointDefFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPrismaticJointDefOrBuilder getPrismaticJointDefOrBuilder() {
if (prismaticJointDefBuilder_ != null) {
return prismaticJointDefBuilder_.getMessageOrBuilder();
} else {
return prismaticJointDef_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGPrismaticJointDef prismaticJointDef = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef, com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGPrismaticJointDefOrBuilder>
getPrismaticJointDefFieldBuilder() {
if (prismaticJointDefBuilder_ == null) {
prismaticJointDefBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef, com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGPrismaticJointDefOrBuilder>(
prismaticJointDef_,
getParentForChildren(),
isClean());
prismaticJointDef_ = null;
}
return prismaticJointDefBuilder_;
}
// optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;
private com.laex.cg2d.model.ScreenModel.CGPulleyJointDef pulleyJointDef_ = com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef, com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGPulleyJointDefOrBuilder> pulleyJointDefBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public boolean hasPulleyJointDef() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPulleyJointDef getPulleyJointDef() {
if (pulleyJointDefBuilder_ == null) {
return pulleyJointDef_;
} else {
return pulleyJointDefBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public Builder setPulleyJointDef(com.laex.cg2d.model.ScreenModel.CGPulleyJointDef value) {
if (pulleyJointDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pulleyJointDef_ = value;
onChanged();
} else {
pulleyJointDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public Builder setPulleyJointDef(
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.Builder builderForValue) {
if (pulleyJointDefBuilder_ == null) {
pulleyJointDef_ = builderForValue.build();
onChanged();
} else {
pulleyJointDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public Builder mergePulleyJointDef(com.laex.cg2d.model.ScreenModel.CGPulleyJointDef value) {
if (pulleyJointDefBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
pulleyJointDef_ != com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.getDefaultInstance()) {
pulleyJointDef_ =
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.newBuilder(pulleyJointDef_).mergeFrom(value).buildPartial();
} else {
pulleyJointDef_ = value;
}
onChanged();
} else {
pulleyJointDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public Builder clearPulleyJointDef() {
if (pulleyJointDefBuilder_ == null) {
pulleyJointDef_ = com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.getDefaultInstance();
onChanged();
} else {
pulleyJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.Builder getPulleyJointDefBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getPulleyJointDefFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGPulleyJointDefOrBuilder getPulleyJointDefOrBuilder() {
if (pulleyJointDefBuilder_ != null) {
return pulleyJointDefBuilder_.getMessageOrBuilder();
} else {
return pulleyJointDef_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGPulleyJointDef pulleyJointDef = 8;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef, com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGPulleyJointDefOrBuilder>
getPulleyJointDefFieldBuilder() {
if (pulleyJointDefBuilder_ == null) {
pulleyJointDefBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef, com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGPulleyJointDefOrBuilder>(
pulleyJointDef_,
getParentForChildren(),
isClean());
pulleyJointDef_ = null;
}
return pulleyJointDefBuilder_;
}
// optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;
private com.laex.cg2d.model.ScreenModel.CGFrictionJointDef frictionJointDef_ = com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef, com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGFrictionJointDefOrBuilder> frictionJointDefBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public boolean hasFrictionJointDef() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFrictionJointDef getFrictionJointDef() {
if (frictionJointDefBuilder_ == null) {
return frictionJointDef_;
} else {
return frictionJointDefBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public Builder setFrictionJointDef(com.laex.cg2d.model.ScreenModel.CGFrictionJointDef value) {
if (frictionJointDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
frictionJointDef_ = value;
onChanged();
} else {
frictionJointDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public Builder setFrictionJointDef(
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.Builder builderForValue) {
if (frictionJointDefBuilder_ == null) {
frictionJointDef_ = builderForValue.build();
onChanged();
} else {
frictionJointDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public Builder mergeFrictionJointDef(com.laex.cg2d.model.ScreenModel.CGFrictionJointDef value) {
if (frictionJointDefBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
frictionJointDef_ != com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.getDefaultInstance()) {
frictionJointDef_ =
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.newBuilder(frictionJointDef_).mergeFrom(value).buildPartial();
} else {
frictionJointDef_ = value;
}
onChanged();
} else {
frictionJointDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public Builder clearFrictionJointDef() {
if (frictionJointDefBuilder_ == null) {
frictionJointDef_ = com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.getDefaultInstance();
onChanged();
} else {
frictionJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.Builder getFrictionJointDefBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getFrictionJointDefFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFrictionJointDefOrBuilder getFrictionJointDefOrBuilder() {
if (frictionJointDefBuilder_ != null) {
return frictionJointDefBuilder_.getMessageOrBuilder();
} else {
return frictionJointDef_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGFrictionJointDef frictionJointDef = 9;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef, com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGFrictionJointDefOrBuilder>
getFrictionJointDefFieldBuilder() {
if (frictionJointDefBuilder_ == null) {
frictionJointDefBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef, com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGFrictionJointDefOrBuilder>(
frictionJointDef_,
getParentForChildren(),
isClean());
frictionJointDef_ = null;
}
return frictionJointDefBuilder_;
}
// optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;
private com.laex.cg2d.model.ScreenModel.CGWeldJointDef weldJointDef_ = com.laex.cg2d.model.ScreenModel.CGWeldJointDef.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGWeldJointDef, com.laex.cg2d.model.ScreenModel.CGWeldJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGWeldJointDefOrBuilder> weldJointDefBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public boolean hasWeldJointDef() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGWeldJointDef getWeldJointDef() {
if (weldJointDefBuilder_ == null) {
return weldJointDef_;
} else {
return weldJointDefBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public Builder setWeldJointDef(com.laex.cg2d.model.ScreenModel.CGWeldJointDef value) {
if (weldJointDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
weldJointDef_ = value;
onChanged();
} else {
weldJointDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public Builder setWeldJointDef(
com.laex.cg2d.model.ScreenModel.CGWeldJointDef.Builder builderForValue) {
if (weldJointDefBuilder_ == null) {
weldJointDef_ = builderForValue.build();
onChanged();
} else {
weldJointDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public Builder mergeWeldJointDef(com.laex.cg2d.model.ScreenModel.CGWeldJointDef value) {
if (weldJointDefBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
weldJointDef_ != com.laex.cg2d.model.ScreenModel.CGWeldJointDef.getDefaultInstance()) {
weldJointDef_ =
com.laex.cg2d.model.ScreenModel.CGWeldJointDef.newBuilder(weldJointDef_).mergeFrom(value).buildPartial();
} else {
weldJointDef_ = value;
}
onChanged();
} else {
weldJointDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public Builder clearWeldJointDef() {
if (weldJointDefBuilder_ == null) {
weldJointDef_ = com.laex.cg2d.model.ScreenModel.CGWeldJointDef.getDefaultInstance();
onChanged();
} else {
weldJointDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGWeldJointDef.Builder getWeldJointDefBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getWeldJointDefFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGWeldJointDefOrBuilder getWeldJointDefOrBuilder() {
if (weldJointDefBuilder_ != null) {
return weldJointDefBuilder_.getMessageOrBuilder();
} else {
return weldJointDef_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGWeldJointDef weldJointDef = 10;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGWeldJointDef, com.laex.cg2d.model.ScreenModel.CGWeldJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGWeldJointDefOrBuilder>
getWeldJointDefFieldBuilder() {
if (weldJointDefBuilder_ == null) {
weldJointDefBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGWeldJointDef, com.laex.cg2d.model.ScreenModel.CGWeldJointDef.Builder, com.laex.cg2d.model.ScreenModel.CGWeldJointDefOrBuilder>(
weldJointDef_,
getParentForChildren(),
isClean());
weldJointDef_ = null;
}
return weldJointDefBuilder_;
}
// optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;
private com.laex.cg2d.model.ScreenModel.CGVector2 localAnchorA_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder> localAnchorABuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public boolean hasLocalAnchorA() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getLocalAnchorA() {
if (localAnchorABuilder_ == null) {
return localAnchorA_;
} else {
return localAnchorABuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public Builder setLocalAnchorA(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (localAnchorABuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localAnchorA_ = value;
onChanged();
} else {
localAnchorABuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public Builder setLocalAnchorA(
com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (localAnchorABuilder_ == null) {
localAnchorA_ = builderForValue.build();
onChanged();
} else {
localAnchorABuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public Builder mergeLocalAnchorA(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (localAnchorABuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200) &&
localAnchorA_ != com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance()) {
localAnchorA_ =
com.laex.cg2d.model.ScreenModel.CGVector2.newBuilder(localAnchorA_).mergeFrom(value).buildPartial();
} else {
localAnchorA_ = value;
}
onChanged();
} else {
localAnchorABuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public Builder clearLocalAnchorA() {
if (localAnchorABuilder_ == null) {
localAnchorA_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
onChanged();
} else {
localAnchorABuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder getLocalAnchorABuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getLocalAnchorAFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getLocalAnchorAOrBuilder() {
if (localAnchorABuilder_ != null) {
return localAnchorABuilder_.getMessageOrBuilder();
} else {
return localAnchorA_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorA = 11;</code>
*
* <pre>
* Common anchors for all the joints
* </pre>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getLocalAnchorAFieldBuilder() {
if (localAnchorABuilder_ == null) {
localAnchorABuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>(
localAnchorA_,
getParentForChildren(),
isClean());
localAnchorA_ = null;
}
return localAnchorABuilder_;
}
// optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;
private com.laex.cg2d.model.ScreenModel.CGVector2 localAnchorB_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder> localAnchorBBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public boolean hasLocalAnchorB() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getLocalAnchorB() {
if (localAnchorBBuilder_ == null) {
return localAnchorB_;
} else {
return localAnchorBBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public Builder setLocalAnchorB(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (localAnchorBBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localAnchorB_ = value;
onChanged();
} else {
localAnchorBBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public Builder setLocalAnchorB(
com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (localAnchorBBuilder_ == null) {
localAnchorB_ = builderForValue.build();
onChanged();
} else {
localAnchorBBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public Builder mergeLocalAnchorB(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (localAnchorBBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400) &&
localAnchorB_ != com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance()) {
localAnchorB_ =
com.laex.cg2d.model.ScreenModel.CGVector2.newBuilder(localAnchorB_).mergeFrom(value).buildPartial();
} else {
localAnchorB_ = value;
}
onChanged();
} else {
localAnchorBBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public Builder clearLocalAnchorB() {
if (localAnchorBBuilder_ == null) {
localAnchorB_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
onChanged();
} else {
localAnchorBBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder getLocalAnchorBBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getLocalAnchorBFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getLocalAnchorBOrBuilder() {
if (localAnchorBBuilder_ != null) {
return localAnchorBBuilder_.getMessageOrBuilder();
} else {
return localAnchorB_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 localAnchorB = 12;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getLocalAnchorBFieldBuilder() {
if (localAnchorBBuilder_ == null) {
localAnchorBBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>(
localAnchorB_,
getParentForChildren(),
isClean());
localAnchorB_ = null;
}
return localAnchorBBuilder_;
}
// optional bool useLocalAnchors = 13;
private boolean useLocalAnchors_ ;
/**
* <code>optional bool useLocalAnchors = 13;</code>
*/
public boolean hasUseLocalAnchors() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional bool useLocalAnchors = 13;</code>
*/
public boolean getUseLocalAnchors() {
return useLocalAnchors_;
}
/**
* <code>optional bool useLocalAnchors = 13;</code>
*/
public Builder setUseLocalAnchors(boolean value) {
bitField0_ |= 0x00000800;
useLocalAnchors_ = value;
onChanged();
return this;
}
/**
* <code>optional bool useLocalAnchors = 13;</code>
*/
public Builder clearUseLocalAnchors() {
bitField0_ = (bitField0_ & ~0x00000800);
useLocalAnchors_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGJoint)
}
static {
defaultInstance = new CGJoint(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGJoint)
}
public interface CGDistanceJointDefOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool collideConnected = 1;
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean hasCollideConnected();
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean getCollideConnected();
// optional float freqencyHz = 2;
/**
* <code>optional float freqencyHz = 2;</code>
*/
boolean hasFreqencyHz();
/**
* <code>optional float freqencyHz = 2;</code>
*/
float getFreqencyHz();
// optional float dampingRatio = 3;
/**
* <code>optional float dampingRatio = 3;</code>
*/
boolean hasDampingRatio();
/**
* <code>optional float dampingRatio = 3;</code>
*/
float getDampingRatio();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGDistanceJointDef}
*/
public static final class CGDistanceJointDef extends
com.google.protobuf.GeneratedMessage
implements CGDistanceJointDefOrBuilder {
// Use CGDistanceJointDef.newBuilder() to construct.
private CGDistanceJointDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGDistanceJointDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGDistanceJointDef defaultInstance;
public static CGDistanceJointDef getDefaultInstance() {
return defaultInstance;
}
public CGDistanceJointDef getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGDistanceJointDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
collideConnected_ = input.readBool();
break;
}
case 21: {
bitField0_ |= 0x00000002;
freqencyHz_ = input.readFloat();
break;
}
case 29: {
bitField0_ |= 0x00000004;
dampingRatio_ = input.readFloat();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGDistanceJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGDistanceJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.class, com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.Builder.class);
}
public static com.google.protobuf.Parser<CGDistanceJointDef> PARSER =
new com.google.protobuf.AbstractParser<CGDistanceJointDef>() {
public CGDistanceJointDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGDistanceJointDef(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGDistanceJointDef> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool collideConnected = 1;
public static final int COLLIDECONNECTED_FIELD_NUMBER = 1;
private boolean collideConnected_;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
// optional float freqencyHz = 2;
public static final int FREQENCYHZ_FIELD_NUMBER = 2;
private float freqencyHz_;
/**
* <code>optional float freqencyHz = 2;</code>
*/
public boolean hasFreqencyHz() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float freqencyHz = 2;</code>
*/
public float getFreqencyHz() {
return freqencyHz_;
}
// optional float dampingRatio = 3;
public static final int DAMPINGRATIO_FIELD_NUMBER = 3;
private float dampingRatio_;
/**
* <code>optional float dampingRatio = 3;</code>
*/
public boolean hasDampingRatio() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float dampingRatio = 3;</code>
*/
public float getDampingRatio() {
return dampingRatio_;
}
private void initFields() {
collideConnected_ = false;
freqencyHz_ = 0F;
dampingRatio_ = 0F;
}
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.writeBool(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, freqencyHz_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, dampingRatio_);
}
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
.computeBoolSize(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, freqencyHz_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, dampingRatio_);
}
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 com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGDistanceJointDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGDistanceJointDef prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGDistanceJointDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGDistanceJointDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGDistanceJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGDistanceJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.class, com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
collideConnected_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
freqencyHz_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
dampingRatio_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGDistanceJointDef_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGDistanceJointDef getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGDistanceJointDef build() {
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGDistanceJointDef buildPartial() {
com.laex.cg2d.model.ScreenModel.CGDistanceJointDef result = new com.laex.cg2d.model.ScreenModel.CGDistanceJointDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.collideConnected_ = collideConnected_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.freqencyHz_ = freqencyHz_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.dampingRatio_ = dampingRatio_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGDistanceJointDef) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGDistanceJointDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGDistanceJointDef other) {
if (other == com.laex.cg2d.model.ScreenModel.CGDistanceJointDef.getDefaultInstance()) return this;
if (other.hasCollideConnected()) {
setCollideConnected(other.getCollideConnected());
}
if (other.hasFreqencyHz()) {
setFreqencyHz(other.getFreqencyHz());
}
if (other.hasDampingRatio()) {
setDampingRatio(other.getDampingRatio());
}
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.laex.cg2d.model.ScreenModel.CGDistanceJointDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGDistanceJointDef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool collideConnected = 1;
private boolean collideConnected_ ;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder setCollideConnected(boolean value) {
bitField0_ |= 0x00000001;
collideConnected_ = value;
onChanged();
return this;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder clearCollideConnected() {
bitField0_ = (bitField0_ & ~0x00000001);
collideConnected_ = false;
onChanged();
return this;
}
// optional float freqencyHz = 2;
private float freqencyHz_ ;
/**
* <code>optional float freqencyHz = 2;</code>
*/
public boolean hasFreqencyHz() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float freqencyHz = 2;</code>
*/
public float getFreqencyHz() {
return freqencyHz_;
}
/**
* <code>optional float freqencyHz = 2;</code>
*/
public Builder setFreqencyHz(float value) {
bitField0_ |= 0x00000002;
freqencyHz_ = value;
onChanged();
return this;
}
/**
* <code>optional float freqencyHz = 2;</code>
*/
public Builder clearFreqencyHz() {
bitField0_ = (bitField0_ & ~0x00000002);
freqencyHz_ = 0F;
onChanged();
return this;
}
// optional float dampingRatio = 3;
private float dampingRatio_ ;
/**
* <code>optional float dampingRatio = 3;</code>
*/
public boolean hasDampingRatio() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float dampingRatio = 3;</code>
*/
public float getDampingRatio() {
return dampingRatio_;
}
/**
* <code>optional float dampingRatio = 3;</code>
*/
public Builder setDampingRatio(float value) {
bitField0_ |= 0x00000004;
dampingRatio_ = value;
onChanged();
return this;
}
/**
* <code>optional float dampingRatio = 3;</code>
*/
public Builder clearDampingRatio() {
bitField0_ = (bitField0_ & ~0x00000004);
dampingRatio_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGDistanceJointDef)
}
static {
defaultInstance = new CGDistanceJointDef(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGDistanceJointDef)
}
public interface CGRevoluteJointDefOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool collideConnected = 1;
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean hasCollideConnected();
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean getCollideConnected();
// optional float referenceAngle = 2;
/**
* <code>optional float referenceAngle = 2;</code>
*/
boolean hasReferenceAngle();
/**
* <code>optional float referenceAngle = 2;</code>
*/
float getReferenceAngle();
// optional bool enableLimit = 3;
/**
* <code>optional bool enableLimit = 3;</code>
*/
boolean hasEnableLimit();
/**
* <code>optional bool enableLimit = 3;</code>
*/
boolean getEnableLimit();
// optional float lowerAngle = 4;
/**
* <code>optional float lowerAngle = 4;</code>
*/
boolean hasLowerAngle();
/**
* <code>optional float lowerAngle = 4;</code>
*/
float getLowerAngle();
// optional float upperAngle = 5;
/**
* <code>optional float upperAngle = 5;</code>
*/
boolean hasUpperAngle();
/**
* <code>optional float upperAngle = 5;</code>
*/
float getUpperAngle();
// optional bool enableMotor = 6;
/**
* <code>optional bool enableMotor = 6;</code>
*/
boolean hasEnableMotor();
/**
* <code>optional bool enableMotor = 6;</code>
*/
boolean getEnableMotor();
// optional float motorSpeed = 7;
/**
* <code>optional float motorSpeed = 7;</code>
*/
boolean hasMotorSpeed();
/**
* <code>optional float motorSpeed = 7;</code>
*/
float getMotorSpeed();
// optional float maxMotorTorque = 8;
/**
* <code>optional float maxMotorTorque = 8;</code>
*/
boolean hasMaxMotorTorque();
/**
* <code>optional float maxMotorTorque = 8;</code>
*/
float getMaxMotorTorque();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGRevoluteJointDef}
*/
public static final class CGRevoluteJointDef extends
com.google.protobuf.GeneratedMessage
implements CGRevoluteJointDefOrBuilder {
// Use CGRevoluteJointDef.newBuilder() to construct.
private CGRevoluteJointDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGRevoluteJointDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGRevoluteJointDef defaultInstance;
public static CGRevoluteJointDef getDefaultInstance() {
return defaultInstance;
}
public CGRevoluteJointDef getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGRevoluteJointDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
collideConnected_ = input.readBool();
break;
}
case 21: {
bitField0_ |= 0x00000002;
referenceAngle_ = input.readFloat();
break;
}
case 24: {
bitField0_ |= 0x00000004;
enableLimit_ = input.readBool();
break;
}
case 37: {
bitField0_ |= 0x00000008;
lowerAngle_ = input.readFloat();
break;
}
case 45: {
bitField0_ |= 0x00000010;
upperAngle_ = input.readFloat();
break;
}
case 48: {
bitField0_ |= 0x00000020;
enableMotor_ = input.readBool();
break;
}
case 61: {
bitField0_ |= 0x00000040;
motorSpeed_ = input.readFloat();
break;
}
case 69: {
bitField0_ |= 0x00000080;
maxMotorTorque_ = input.readFloat();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGRevoluteJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGRevoluteJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.class, com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.Builder.class);
}
public static com.google.protobuf.Parser<CGRevoluteJointDef> PARSER =
new com.google.protobuf.AbstractParser<CGRevoluteJointDef>() {
public CGRevoluteJointDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGRevoluteJointDef(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGRevoluteJointDef> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool collideConnected = 1;
public static final int COLLIDECONNECTED_FIELD_NUMBER = 1;
private boolean collideConnected_;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
// optional float referenceAngle = 2;
public static final int REFERENCEANGLE_FIELD_NUMBER = 2;
private float referenceAngle_;
/**
* <code>optional float referenceAngle = 2;</code>
*/
public boolean hasReferenceAngle() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float referenceAngle = 2;</code>
*/
public float getReferenceAngle() {
return referenceAngle_;
}
// optional bool enableLimit = 3;
public static final int ENABLELIMIT_FIELD_NUMBER = 3;
private boolean enableLimit_;
/**
* <code>optional bool enableLimit = 3;</code>
*/
public boolean hasEnableLimit() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool enableLimit = 3;</code>
*/
public boolean getEnableLimit() {
return enableLimit_;
}
// optional float lowerAngle = 4;
public static final int LOWERANGLE_FIELD_NUMBER = 4;
private float lowerAngle_;
/**
* <code>optional float lowerAngle = 4;</code>
*/
public boolean hasLowerAngle() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float lowerAngle = 4;</code>
*/
public float getLowerAngle() {
return lowerAngle_;
}
// optional float upperAngle = 5;
public static final int UPPERANGLE_FIELD_NUMBER = 5;
private float upperAngle_;
/**
* <code>optional float upperAngle = 5;</code>
*/
public boolean hasUpperAngle() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float upperAngle = 5;</code>
*/
public float getUpperAngle() {
return upperAngle_;
}
// optional bool enableMotor = 6;
public static final int ENABLEMOTOR_FIELD_NUMBER = 6;
private boolean enableMotor_;
/**
* <code>optional bool enableMotor = 6;</code>
*/
public boolean hasEnableMotor() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool enableMotor = 6;</code>
*/
public boolean getEnableMotor() {
return enableMotor_;
}
// optional float motorSpeed = 7;
public static final int MOTORSPEED_FIELD_NUMBER = 7;
private float motorSpeed_;
/**
* <code>optional float motorSpeed = 7;</code>
*/
public boolean hasMotorSpeed() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional float motorSpeed = 7;</code>
*/
public float getMotorSpeed() {
return motorSpeed_;
}
// optional float maxMotorTorque = 8;
public static final int MAXMOTORTORQUE_FIELD_NUMBER = 8;
private float maxMotorTorque_;
/**
* <code>optional float maxMotorTorque = 8;</code>
*/
public boolean hasMaxMotorTorque() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional float maxMotorTorque = 8;</code>
*/
public float getMaxMotorTorque() {
return maxMotorTorque_;
}
private void initFields() {
collideConnected_ = false;
referenceAngle_ = 0F;
enableLimit_ = false;
lowerAngle_ = 0F;
upperAngle_ = 0F;
enableMotor_ = false;
motorSpeed_ = 0F;
maxMotorTorque_ = 0F;
}
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.writeBool(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, referenceAngle_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, enableLimit_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFloat(4, lowerAngle_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFloat(5, upperAngle_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, enableMotor_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeFloat(7, motorSpeed_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeFloat(8, maxMotorTorque_);
}
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
.computeBoolSize(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, referenceAngle_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, enableLimit_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, lowerAngle_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, upperAngle_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, enableMotor_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(7, motorSpeed_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(8, maxMotorTorque_);
}
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 com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGRevoluteJointDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGRevoluteJointDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGRevoluteJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGRevoluteJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.class, com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
collideConnected_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
referenceAngle_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
enableLimit_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
lowerAngle_ = 0F;
bitField0_ = (bitField0_ & ~0x00000008);
upperAngle_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
enableMotor_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
motorSpeed_ = 0F;
bitField0_ = (bitField0_ & ~0x00000040);
maxMotorTorque_ = 0F;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGRevoluteJointDef_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef build() {
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef buildPartial() {
com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef result = new com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.collideConnected_ = collideConnected_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.referenceAngle_ = referenceAngle_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.enableLimit_ = enableLimit_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.lowerAngle_ = lowerAngle_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.upperAngle_ = upperAngle_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.enableMotor_ = enableMotor_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.motorSpeed_ = motorSpeed_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.maxMotorTorque_ = maxMotorTorque_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef other) {
if (other == com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef.getDefaultInstance()) return this;
if (other.hasCollideConnected()) {
setCollideConnected(other.getCollideConnected());
}
if (other.hasReferenceAngle()) {
setReferenceAngle(other.getReferenceAngle());
}
if (other.hasEnableLimit()) {
setEnableLimit(other.getEnableLimit());
}
if (other.hasLowerAngle()) {
setLowerAngle(other.getLowerAngle());
}
if (other.hasUpperAngle()) {
setUpperAngle(other.getUpperAngle());
}
if (other.hasEnableMotor()) {
setEnableMotor(other.getEnableMotor());
}
if (other.hasMotorSpeed()) {
setMotorSpeed(other.getMotorSpeed());
}
if (other.hasMaxMotorTorque()) {
setMaxMotorTorque(other.getMaxMotorTorque());
}
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.laex.cg2d.model.ScreenModel.CGRevoluteJointDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGRevoluteJointDef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool collideConnected = 1;
private boolean collideConnected_ ;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder setCollideConnected(boolean value) {
bitField0_ |= 0x00000001;
collideConnected_ = value;
onChanged();
return this;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder clearCollideConnected() {
bitField0_ = (bitField0_ & ~0x00000001);
collideConnected_ = false;
onChanged();
return this;
}
// optional float referenceAngle = 2;
private float referenceAngle_ ;
/**
* <code>optional float referenceAngle = 2;</code>
*/
public boolean hasReferenceAngle() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float referenceAngle = 2;</code>
*/
public float getReferenceAngle() {
return referenceAngle_;
}
/**
* <code>optional float referenceAngle = 2;</code>
*/
public Builder setReferenceAngle(float value) {
bitField0_ |= 0x00000002;
referenceAngle_ = value;
onChanged();
return this;
}
/**
* <code>optional float referenceAngle = 2;</code>
*/
public Builder clearReferenceAngle() {
bitField0_ = (bitField0_ & ~0x00000002);
referenceAngle_ = 0F;
onChanged();
return this;
}
// optional bool enableLimit = 3;
private boolean enableLimit_ ;
/**
* <code>optional bool enableLimit = 3;</code>
*/
public boolean hasEnableLimit() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool enableLimit = 3;</code>
*/
public boolean getEnableLimit() {
return enableLimit_;
}
/**
* <code>optional bool enableLimit = 3;</code>
*/
public Builder setEnableLimit(boolean value) {
bitField0_ |= 0x00000004;
enableLimit_ = value;
onChanged();
return this;
}
/**
* <code>optional bool enableLimit = 3;</code>
*/
public Builder clearEnableLimit() {
bitField0_ = (bitField0_ & ~0x00000004);
enableLimit_ = false;
onChanged();
return this;
}
// optional float lowerAngle = 4;
private float lowerAngle_ ;
/**
* <code>optional float lowerAngle = 4;</code>
*/
public boolean hasLowerAngle() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float lowerAngle = 4;</code>
*/
public float getLowerAngle() {
return lowerAngle_;
}
/**
* <code>optional float lowerAngle = 4;</code>
*/
public Builder setLowerAngle(float value) {
bitField0_ |= 0x00000008;
lowerAngle_ = value;
onChanged();
return this;
}
/**
* <code>optional float lowerAngle = 4;</code>
*/
public Builder clearLowerAngle() {
bitField0_ = (bitField0_ & ~0x00000008);
lowerAngle_ = 0F;
onChanged();
return this;
}
// optional float upperAngle = 5;
private float upperAngle_ ;
/**
* <code>optional float upperAngle = 5;</code>
*/
public boolean hasUpperAngle() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float upperAngle = 5;</code>
*/
public float getUpperAngle() {
return upperAngle_;
}
/**
* <code>optional float upperAngle = 5;</code>
*/
public Builder setUpperAngle(float value) {
bitField0_ |= 0x00000010;
upperAngle_ = value;
onChanged();
return this;
}
/**
* <code>optional float upperAngle = 5;</code>
*/
public Builder clearUpperAngle() {
bitField0_ = (bitField0_ & ~0x00000010);
upperAngle_ = 0F;
onChanged();
return this;
}
// optional bool enableMotor = 6;
private boolean enableMotor_ ;
/**
* <code>optional bool enableMotor = 6;</code>
*/
public boolean hasEnableMotor() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool enableMotor = 6;</code>
*/
public boolean getEnableMotor() {
return enableMotor_;
}
/**
* <code>optional bool enableMotor = 6;</code>
*/
public Builder setEnableMotor(boolean value) {
bitField0_ |= 0x00000020;
enableMotor_ = value;
onChanged();
return this;
}
/**
* <code>optional bool enableMotor = 6;</code>
*/
public Builder clearEnableMotor() {
bitField0_ = (bitField0_ & ~0x00000020);
enableMotor_ = false;
onChanged();
return this;
}
// optional float motorSpeed = 7;
private float motorSpeed_ ;
/**
* <code>optional float motorSpeed = 7;</code>
*/
public boolean hasMotorSpeed() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional float motorSpeed = 7;</code>
*/
public float getMotorSpeed() {
return motorSpeed_;
}
/**
* <code>optional float motorSpeed = 7;</code>
*/
public Builder setMotorSpeed(float value) {
bitField0_ |= 0x00000040;
motorSpeed_ = value;
onChanged();
return this;
}
/**
* <code>optional float motorSpeed = 7;</code>
*/
public Builder clearMotorSpeed() {
bitField0_ = (bitField0_ & ~0x00000040);
motorSpeed_ = 0F;
onChanged();
return this;
}
// optional float maxMotorTorque = 8;
private float maxMotorTorque_ ;
/**
* <code>optional float maxMotorTorque = 8;</code>
*/
public boolean hasMaxMotorTorque() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional float maxMotorTorque = 8;</code>
*/
public float getMaxMotorTorque() {
return maxMotorTorque_;
}
/**
* <code>optional float maxMotorTorque = 8;</code>
*/
public Builder setMaxMotorTorque(float value) {
bitField0_ |= 0x00000080;
maxMotorTorque_ = value;
onChanged();
return this;
}
/**
* <code>optional float maxMotorTorque = 8;</code>
*/
public Builder clearMaxMotorTorque() {
bitField0_ = (bitField0_ & ~0x00000080);
maxMotorTorque_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGRevoluteJointDef)
}
static {
defaultInstance = new CGRevoluteJointDef(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGRevoluteJointDef)
}
public interface CGPrismaticJointDefOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool collideConnected = 1;
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean hasCollideConnected();
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean getCollideConnected();
// optional .com.laex.cg2d.model.CGVector2 anchor = 2;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
boolean hasAnchor();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2 getAnchor();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getAnchorOrBuilder();
// optional .com.laex.cg2d.model.CGVector2 axis = 3;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
boolean hasAxis();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2 getAxis();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getAxisOrBuilder();
// optional float referenceAngle = 5;
/**
* <code>optional float referenceAngle = 5;</code>
*/
boolean hasReferenceAngle();
/**
* <code>optional float referenceAngle = 5;</code>
*/
float getReferenceAngle();
// optional bool enableLimit = 6;
/**
* <code>optional bool enableLimit = 6;</code>
*/
boolean hasEnableLimit();
/**
* <code>optional bool enableLimit = 6;</code>
*/
boolean getEnableLimit();
// optional float lowerTranslation = 7;
/**
* <code>optional float lowerTranslation = 7;</code>
*/
boolean hasLowerTranslation();
/**
* <code>optional float lowerTranslation = 7;</code>
*/
float getLowerTranslation();
// optional float upperTranslation = 8;
/**
* <code>optional float upperTranslation = 8;</code>
*/
boolean hasUpperTranslation();
/**
* <code>optional float upperTranslation = 8;</code>
*/
float getUpperTranslation();
// optional bool enableMotor = 9;
/**
* <code>optional bool enableMotor = 9;</code>
*/
boolean hasEnableMotor();
/**
* <code>optional bool enableMotor = 9;</code>
*/
boolean getEnableMotor();
// optional float maxMotorForce = 10;
/**
* <code>optional float maxMotorForce = 10;</code>
*/
boolean hasMaxMotorForce();
/**
* <code>optional float maxMotorForce = 10;</code>
*/
float getMaxMotorForce();
// optional float motorSpeed = 11;
/**
* <code>optional float motorSpeed = 11;</code>
*/
boolean hasMotorSpeed();
/**
* <code>optional float motorSpeed = 11;</code>
*/
float getMotorSpeed();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGPrismaticJointDef}
*/
public static final class CGPrismaticJointDef extends
com.google.protobuf.GeneratedMessage
implements CGPrismaticJointDefOrBuilder {
// Use CGPrismaticJointDef.newBuilder() to construct.
private CGPrismaticJointDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGPrismaticJointDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGPrismaticJointDef defaultInstance;
public static CGPrismaticJointDef getDefaultInstance() {
return defaultInstance;
}
public CGPrismaticJointDef getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGPrismaticJointDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
collideConnected_ = input.readBool();
break;
}
case 18: {
com.laex.cg2d.model.ScreenModel.CGVector2.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = anchor_.toBuilder();
}
anchor_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGVector2.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(anchor_);
anchor_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.laex.cg2d.model.ScreenModel.CGVector2.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = axis_.toBuilder();
}
axis_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGVector2.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(axis_);
axis_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 45: {
bitField0_ |= 0x00000008;
referenceAngle_ = input.readFloat();
break;
}
case 48: {
bitField0_ |= 0x00000010;
enableLimit_ = input.readBool();
break;
}
case 61: {
bitField0_ |= 0x00000020;
lowerTranslation_ = input.readFloat();
break;
}
case 69: {
bitField0_ |= 0x00000040;
upperTranslation_ = input.readFloat();
break;
}
case 72: {
bitField0_ |= 0x00000080;
enableMotor_ = input.readBool();
break;
}
case 85: {
bitField0_ |= 0x00000100;
maxMotorForce_ = input.readFloat();
break;
}
case 93: {
bitField0_ |= 0x00000200;
motorSpeed_ = input.readFloat();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPrismaticJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPrismaticJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.class, com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.Builder.class);
}
public static com.google.protobuf.Parser<CGPrismaticJointDef> PARSER =
new com.google.protobuf.AbstractParser<CGPrismaticJointDef>() {
public CGPrismaticJointDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGPrismaticJointDef(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGPrismaticJointDef> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool collideConnected = 1;
public static final int COLLIDECONNECTED_FIELD_NUMBER = 1;
private boolean collideConnected_;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
// optional .com.laex.cg2d.model.CGVector2 anchor = 2;
public static final int ANCHOR_FIELD_NUMBER = 2;
private com.laex.cg2d.model.ScreenModel.CGVector2 anchor_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public boolean hasAnchor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getAnchor() {
return anchor_;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getAnchorOrBuilder() {
return anchor_;
}
// optional .com.laex.cg2d.model.CGVector2 axis = 3;
public static final int AXIS_FIELD_NUMBER = 3;
private com.laex.cg2d.model.ScreenModel.CGVector2 axis_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public boolean hasAxis() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getAxis() {
return axis_;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getAxisOrBuilder() {
return axis_;
}
// optional float referenceAngle = 5;
public static final int REFERENCEANGLE_FIELD_NUMBER = 5;
private float referenceAngle_;
/**
* <code>optional float referenceAngle = 5;</code>
*/
public boolean hasReferenceAngle() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float referenceAngle = 5;</code>
*/
public float getReferenceAngle() {
return referenceAngle_;
}
// optional bool enableLimit = 6;
public static final int ENABLELIMIT_FIELD_NUMBER = 6;
private boolean enableLimit_;
/**
* <code>optional bool enableLimit = 6;</code>
*/
public boolean hasEnableLimit() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool enableLimit = 6;</code>
*/
public boolean getEnableLimit() {
return enableLimit_;
}
// optional float lowerTranslation = 7;
public static final int LOWERTRANSLATION_FIELD_NUMBER = 7;
private float lowerTranslation_;
/**
* <code>optional float lowerTranslation = 7;</code>
*/
public boolean hasLowerTranslation() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional float lowerTranslation = 7;</code>
*/
public float getLowerTranslation() {
return lowerTranslation_;
}
// optional float upperTranslation = 8;
public static final int UPPERTRANSLATION_FIELD_NUMBER = 8;
private float upperTranslation_;
/**
* <code>optional float upperTranslation = 8;</code>
*/
public boolean hasUpperTranslation() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional float upperTranslation = 8;</code>
*/
public float getUpperTranslation() {
return upperTranslation_;
}
// optional bool enableMotor = 9;
public static final int ENABLEMOTOR_FIELD_NUMBER = 9;
private boolean enableMotor_;
/**
* <code>optional bool enableMotor = 9;</code>
*/
public boolean hasEnableMotor() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional bool enableMotor = 9;</code>
*/
public boolean getEnableMotor() {
return enableMotor_;
}
// optional float maxMotorForce = 10;
public static final int MAXMOTORFORCE_FIELD_NUMBER = 10;
private float maxMotorForce_;
/**
* <code>optional float maxMotorForce = 10;</code>
*/
public boolean hasMaxMotorForce() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional float maxMotorForce = 10;</code>
*/
public float getMaxMotorForce() {
return maxMotorForce_;
}
// optional float motorSpeed = 11;
public static final int MOTORSPEED_FIELD_NUMBER = 11;
private float motorSpeed_;
/**
* <code>optional float motorSpeed = 11;</code>
*/
public boolean hasMotorSpeed() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional float motorSpeed = 11;</code>
*/
public float getMotorSpeed() {
return motorSpeed_;
}
private void initFields() {
collideConnected_ = false;
anchor_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
axis_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
referenceAngle_ = 0F;
enableLimit_ = false;
lowerTranslation_ = 0F;
upperTranslation_ = 0F;
enableMotor_ = false;
maxMotorForce_ = 0F;
motorSpeed_ = 0F;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasAnchor()) {
if (!getAnchor().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAxis()) {
if (!getAxis().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.writeBool(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, anchor_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, axis_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFloat(5, referenceAngle_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(6, enableLimit_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeFloat(7, lowerTranslation_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeFloat(8, upperTranslation_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(9, enableMotor_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeFloat(10, maxMotorForce_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeFloat(11, motorSpeed_);
}
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
.computeBoolSize(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, anchor_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, axis_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, referenceAngle_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, enableLimit_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(7, lowerTranslation_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(8, upperTranslation_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, enableMotor_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(10, maxMotorForce_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(11, motorSpeed_);
}
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 com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGPrismaticJointDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGPrismaticJointDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPrismaticJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPrismaticJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.class, com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAnchorFieldBuilder();
getAxisFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
collideConnected_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
if (anchorBuilder_ == null) {
anchor_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
} else {
anchorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (axisBuilder_ == null) {
axis_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
} else {
axisBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
referenceAngle_ = 0F;
bitField0_ = (bitField0_ & ~0x00000008);
enableLimit_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
lowerTranslation_ = 0F;
bitField0_ = (bitField0_ & ~0x00000020);
upperTranslation_ = 0F;
bitField0_ = (bitField0_ & ~0x00000040);
enableMotor_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
maxMotorForce_ = 0F;
bitField0_ = (bitField0_ & ~0x00000100);
motorSpeed_ = 0F;
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPrismaticJointDef_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef build() {
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef buildPartial() {
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef result = new com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.collideConnected_ = collideConnected_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (anchorBuilder_ == null) {
result.anchor_ = anchor_;
} else {
result.anchor_ = anchorBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (axisBuilder_ == null) {
result.axis_ = axis_;
} else {
result.axis_ = axisBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.referenceAngle_ = referenceAngle_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.enableLimit_ = enableLimit_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.lowerTranslation_ = lowerTranslation_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.upperTranslation_ = upperTranslation_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.enableMotor_ = enableMotor_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.maxMotorForce_ = maxMotorForce_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.motorSpeed_ = motorSpeed_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef other) {
if (other == com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef.getDefaultInstance()) return this;
if (other.hasCollideConnected()) {
setCollideConnected(other.getCollideConnected());
}
if (other.hasAnchor()) {
mergeAnchor(other.getAnchor());
}
if (other.hasAxis()) {
mergeAxis(other.getAxis());
}
if (other.hasReferenceAngle()) {
setReferenceAngle(other.getReferenceAngle());
}
if (other.hasEnableLimit()) {
setEnableLimit(other.getEnableLimit());
}
if (other.hasLowerTranslation()) {
setLowerTranslation(other.getLowerTranslation());
}
if (other.hasUpperTranslation()) {
setUpperTranslation(other.getUpperTranslation());
}
if (other.hasEnableMotor()) {
setEnableMotor(other.getEnableMotor());
}
if (other.hasMaxMotorForce()) {
setMaxMotorForce(other.getMaxMotorForce());
}
if (other.hasMotorSpeed()) {
setMotorSpeed(other.getMotorSpeed());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasAnchor()) {
if (!getAnchor().isInitialized()) {
return false;
}
}
if (hasAxis()) {
if (!getAxis().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGPrismaticJointDef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool collideConnected = 1;
private boolean collideConnected_ ;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder setCollideConnected(boolean value) {
bitField0_ |= 0x00000001;
collideConnected_ = value;
onChanged();
return this;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder clearCollideConnected() {
bitField0_ = (bitField0_ & ~0x00000001);
collideConnected_ = false;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGVector2 anchor = 2;
private com.laex.cg2d.model.ScreenModel.CGVector2 anchor_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder> anchorBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public boolean hasAnchor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getAnchor() {
if (anchorBuilder_ == null) {
return anchor_;
} else {
return anchorBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public Builder setAnchor(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (anchorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
anchor_ = value;
onChanged();
} else {
anchorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public Builder setAnchor(
com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (anchorBuilder_ == null) {
anchor_ = builderForValue.build();
onChanged();
} else {
anchorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public Builder mergeAnchor(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (anchorBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
anchor_ != com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance()) {
anchor_ =
com.laex.cg2d.model.ScreenModel.CGVector2.newBuilder(anchor_).mergeFrom(value).buildPartial();
} else {
anchor_ = value;
}
onChanged();
} else {
anchorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public Builder clearAnchor() {
if (anchorBuilder_ == null) {
anchor_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
onChanged();
} else {
anchorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder getAnchorBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAnchorFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getAnchorOrBuilder() {
if (anchorBuilder_ != null) {
return anchorBuilder_.getMessageOrBuilder();
} else {
return anchor_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 anchor = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getAnchorFieldBuilder() {
if (anchorBuilder_ == null) {
anchorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>(
anchor_,
getParentForChildren(),
isClean());
anchor_ = null;
}
return anchorBuilder_;
}
// optional .com.laex.cg2d.model.CGVector2 axis = 3;
private com.laex.cg2d.model.ScreenModel.CGVector2 axis_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder> axisBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public boolean hasAxis() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getAxis() {
if (axisBuilder_ == null) {
return axis_;
} else {
return axisBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public Builder setAxis(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (axisBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
axis_ = value;
onChanged();
} else {
axisBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public Builder setAxis(
com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (axisBuilder_ == null) {
axis_ = builderForValue.build();
onChanged();
} else {
axisBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public Builder mergeAxis(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (axisBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
axis_ != com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance()) {
axis_ =
com.laex.cg2d.model.ScreenModel.CGVector2.newBuilder(axis_).mergeFrom(value).buildPartial();
} else {
axis_ = value;
}
onChanged();
} else {
axisBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public Builder clearAxis() {
if (axisBuilder_ == null) {
axis_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
onChanged();
} else {
axisBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder getAxisBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAxisFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getAxisOrBuilder() {
if (axisBuilder_ != null) {
return axisBuilder_.getMessageOrBuilder();
} else {
return axis_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 axis = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getAxisFieldBuilder() {
if (axisBuilder_ == null) {
axisBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>(
axis_,
getParentForChildren(),
isClean());
axis_ = null;
}
return axisBuilder_;
}
// optional float referenceAngle = 5;
private float referenceAngle_ ;
/**
* <code>optional float referenceAngle = 5;</code>
*/
public boolean hasReferenceAngle() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float referenceAngle = 5;</code>
*/
public float getReferenceAngle() {
return referenceAngle_;
}
/**
* <code>optional float referenceAngle = 5;</code>
*/
public Builder setReferenceAngle(float value) {
bitField0_ |= 0x00000008;
referenceAngle_ = value;
onChanged();
return this;
}
/**
* <code>optional float referenceAngle = 5;</code>
*/
public Builder clearReferenceAngle() {
bitField0_ = (bitField0_ & ~0x00000008);
referenceAngle_ = 0F;
onChanged();
return this;
}
// optional bool enableLimit = 6;
private boolean enableLimit_ ;
/**
* <code>optional bool enableLimit = 6;</code>
*/
public boolean hasEnableLimit() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool enableLimit = 6;</code>
*/
public boolean getEnableLimit() {
return enableLimit_;
}
/**
* <code>optional bool enableLimit = 6;</code>
*/
public Builder setEnableLimit(boolean value) {
bitField0_ |= 0x00000010;
enableLimit_ = value;
onChanged();
return this;
}
/**
* <code>optional bool enableLimit = 6;</code>
*/
public Builder clearEnableLimit() {
bitField0_ = (bitField0_ & ~0x00000010);
enableLimit_ = false;
onChanged();
return this;
}
// optional float lowerTranslation = 7;
private float lowerTranslation_ ;
/**
* <code>optional float lowerTranslation = 7;</code>
*/
public boolean hasLowerTranslation() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional float lowerTranslation = 7;</code>
*/
public float getLowerTranslation() {
return lowerTranslation_;
}
/**
* <code>optional float lowerTranslation = 7;</code>
*/
public Builder setLowerTranslation(float value) {
bitField0_ |= 0x00000020;
lowerTranslation_ = value;
onChanged();
return this;
}
/**
* <code>optional float lowerTranslation = 7;</code>
*/
public Builder clearLowerTranslation() {
bitField0_ = (bitField0_ & ~0x00000020);
lowerTranslation_ = 0F;
onChanged();
return this;
}
// optional float upperTranslation = 8;
private float upperTranslation_ ;
/**
* <code>optional float upperTranslation = 8;</code>
*/
public boolean hasUpperTranslation() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional float upperTranslation = 8;</code>
*/
public float getUpperTranslation() {
return upperTranslation_;
}
/**
* <code>optional float upperTranslation = 8;</code>
*/
public Builder setUpperTranslation(float value) {
bitField0_ |= 0x00000040;
upperTranslation_ = value;
onChanged();
return this;
}
/**
* <code>optional float upperTranslation = 8;</code>
*/
public Builder clearUpperTranslation() {
bitField0_ = (bitField0_ & ~0x00000040);
upperTranslation_ = 0F;
onChanged();
return this;
}
// optional bool enableMotor = 9;
private boolean enableMotor_ ;
/**
* <code>optional bool enableMotor = 9;</code>
*/
public boolean hasEnableMotor() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional bool enableMotor = 9;</code>
*/
public boolean getEnableMotor() {
return enableMotor_;
}
/**
* <code>optional bool enableMotor = 9;</code>
*/
public Builder setEnableMotor(boolean value) {
bitField0_ |= 0x00000080;
enableMotor_ = value;
onChanged();
return this;
}
/**
* <code>optional bool enableMotor = 9;</code>
*/
public Builder clearEnableMotor() {
bitField0_ = (bitField0_ & ~0x00000080);
enableMotor_ = false;
onChanged();
return this;
}
// optional float maxMotorForce = 10;
private float maxMotorForce_ ;
/**
* <code>optional float maxMotorForce = 10;</code>
*/
public boolean hasMaxMotorForce() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional float maxMotorForce = 10;</code>
*/
public float getMaxMotorForce() {
return maxMotorForce_;
}
/**
* <code>optional float maxMotorForce = 10;</code>
*/
public Builder setMaxMotorForce(float value) {
bitField0_ |= 0x00000100;
maxMotorForce_ = value;
onChanged();
return this;
}
/**
* <code>optional float maxMotorForce = 10;</code>
*/
public Builder clearMaxMotorForce() {
bitField0_ = (bitField0_ & ~0x00000100);
maxMotorForce_ = 0F;
onChanged();
return this;
}
// optional float motorSpeed = 11;
private float motorSpeed_ ;
/**
* <code>optional float motorSpeed = 11;</code>
*/
public boolean hasMotorSpeed() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional float motorSpeed = 11;</code>
*/
public float getMotorSpeed() {
return motorSpeed_;
}
/**
* <code>optional float motorSpeed = 11;</code>
*/
public Builder setMotorSpeed(float value) {
bitField0_ |= 0x00000200;
motorSpeed_ = value;
onChanged();
return this;
}
/**
* <code>optional float motorSpeed = 11;</code>
*/
public Builder clearMotorSpeed() {
bitField0_ = (bitField0_ & ~0x00000200);
motorSpeed_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGPrismaticJointDef)
}
static {
defaultInstance = new CGPrismaticJointDef(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGPrismaticJointDef)
}
public interface CGPulleyJointDefOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool collideConnected = 1;
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean hasCollideConnected();
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean getCollideConnected();
// optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
boolean hasGroundAnchorA();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2 getGroundAnchorA();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getGroundAnchorAOrBuilder();
// optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
boolean hasGroundAnchorB();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2 getGroundAnchorB();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getGroundAnchorBOrBuilder();
// optional float ratio = 4;
/**
* <code>optional float ratio = 4;</code>
*/
boolean hasRatio();
/**
* <code>optional float ratio = 4;</code>
*/
float getRatio();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGPulleyJointDef}
*/
public static final class CGPulleyJointDef extends
com.google.protobuf.GeneratedMessage
implements CGPulleyJointDefOrBuilder {
// Use CGPulleyJointDef.newBuilder() to construct.
private CGPulleyJointDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGPulleyJointDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGPulleyJointDef defaultInstance;
public static CGPulleyJointDef getDefaultInstance() {
return defaultInstance;
}
public CGPulleyJointDef getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGPulleyJointDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
collideConnected_ = input.readBool();
break;
}
case 18: {
com.laex.cg2d.model.ScreenModel.CGVector2.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = groundAnchorA_.toBuilder();
}
groundAnchorA_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGVector2.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(groundAnchorA_);
groundAnchorA_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.laex.cg2d.model.ScreenModel.CGVector2.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = groundAnchorB_.toBuilder();
}
groundAnchorB_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGVector2.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(groundAnchorB_);
groundAnchorB_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 37: {
bitField0_ |= 0x00000008;
ratio_ = input.readFloat();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPulleyJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPulleyJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.class, com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.Builder.class);
}
public static com.google.protobuf.Parser<CGPulleyJointDef> PARSER =
new com.google.protobuf.AbstractParser<CGPulleyJointDef>() {
public CGPulleyJointDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGPulleyJointDef(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGPulleyJointDef> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool collideConnected = 1;
public static final int COLLIDECONNECTED_FIELD_NUMBER = 1;
private boolean collideConnected_;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
// optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;
public static final int GROUNDANCHORA_FIELD_NUMBER = 2;
private com.laex.cg2d.model.ScreenModel.CGVector2 groundAnchorA_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public boolean hasGroundAnchorA() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getGroundAnchorA() {
return groundAnchorA_;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getGroundAnchorAOrBuilder() {
return groundAnchorA_;
}
// optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;
public static final int GROUNDANCHORB_FIELD_NUMBER = 3;
private com.laex.cg2d.model.ScreenModel.CGVector2 groundAnchorB_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public boolean hasGroundAnchorB() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getGroundAnchorB() {
return groundAnchorB_;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getGroundAnchorBOrBuilder() {
return groundAnchorB_;
}
// optional float ratio = 4;
public static final int RATIO_FIELD_NUMBER = 4;
private float ratio_;
/**
* <code>optional float ratio = 4;</code>
*/
public boolean hasRatio() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float ratio = 4;</code>
*/
public float getRatio() {
return ratio_;
}
private void initFields() {
collideConnected_ = false;
groundAnchorA_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
groundAnchorB_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
ratio_ = 0F;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasGroundAnchorA()) {
if (!getGroundAnchorA().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasGroundAnchorB()) {
if (!getGroundAnchorB().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.writeBool(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, groundAnchorA_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, groundAnchorB_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFloat(4, ratio_);
}
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
.computeBoolSize(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, groundAnchorA_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, groundAnchorB_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, ratio_);
}
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 com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGPulleyJointDef prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGPulleyJointDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGPulleyJointDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPulleyJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPulleyJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.class, com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getGroundAnchorAFieldBuilder();
getGroundAnchorBFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
collideConnected_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
if (groundAnchorABuilder_ == null) {
groundAnchorA_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
} else {
groundAnchorABuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (groundAnchorBBuilder_ == null) {
groundAnchorB_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
} else {
groundAnchorBBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
ratio_ = 0F;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGPulleyJointDef_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGPulleyJointDef getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGPulleyJointDef build() {
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGPulleyJointDef buildPartial() {
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef result = new com.laex.cg2d.model.ScreenModel.CGPulleyJointDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.collideConnected_ = collideConnected_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (groundAnchorABuilder_ == null) {
result.groundAnchorA_ = groundAnchorA_;
} else {
result.groundAnchorA_ = groundAnchorABuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (groundAnchorBBuilder_ == null) {
result.groundAnchorB_ = groundAnchorB_;
} else {
result.groundAnchorB_ = groundAnchorBBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.ratio_ = ratio_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGPulleyJointDef) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGPulleyJointDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGPulleyJointDef other) {
if (other == com.laex.cg2d.model.ScreenModel.CGPulleyJointDef.getDefaultInstance()) return this;
if (other.hasCollideConnected()) {
setCollideConnected(other.getCollideConnected());
}
if (other.hasGroundAnchorA()) {
mergeGroundAnchorA(other.getGroundAnchorA());
}
if (other.hasGroundAnchorB()) {
mergeGroundAnchorB(other.getGroundAnchorB());
}
if (other.hasRatio()) {
setRatio(other.getRatio());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasGroundAnchorA()) {
if (!getGroundAnchorA().isInitialized()) {
return false;
}
}
if (hasGroundAnchorB()) {
if (!getGroundAnchorB().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGPulleyJointDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGPulleyJointDef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool collideConnected = 1;
private boolean collideConnected_ ;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder setCollideConnected(boolean value) {
bitField0_ |= 0x00000001;
collideConnected_ = value;
onChanged();
return this;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder clearCollideConnected() {
bitField0_ = (bitField0_ & ~0x00000001);
collideConnected_ = false;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;
private com.laex.cg2d.model.ScreenModel.CGVector2 groundAnchorA_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder> groundAnchorABuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public boolean hasGroundAnchorA() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getGroundAnchorA() {
if (groundAnchorABuilder_ == null) {
return groundAnchorA_;
} else {
return groundAnchorABuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public Builder setGroundAnchorA(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (groundAnchorABuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
groundAnchorA_ = value;
onChanged();
} else {
groundAnchorABuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public Builder setGroundAnchorA(
com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (groundAnchorABuilder_ == null) {
groundAnchorA_ = builderForValue.build();
onChanged();
} else {
groundAnchorABuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public Builder mergeGroundAnchorA(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (groundAnchorABuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
groundAnchorA_ != com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance()) {
groundAnchorA_ =
com.laex.cg2d.model.ScreenModel.CGVector2.newBuilder(groundAnchorA_).mergeFrom(value).buildPartial();
} else {
groundAnchorA_ = value;
}
onChanged();
} else {
groundAnchorABuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public Builder clearGroundAnchorA() {
if (groundAnchorABuilder_ == null) {
groundAnchorA_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
onChanged();
} else {
groundAnchorABuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder getGroundAnchorABuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getGroundAnchorAFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getGroundAnchorAOrBuilder() {
if (groundAnchorABuilder_ != null) {
return groundAnchorABuilder_.getMessageOrBuilder();
} else {
return groundAnchorA_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorA = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getGroundAnchorAFieldBuilder() {
if (groundAnchorABuilder_ == null) {
groundAnchorABuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>(
groundAnchorA_,
getParentForChildren(),
isClean());
groundAnchorA_ = null;
}
return groundAnchorABuilder_;
}
// optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;
private com.laex.cg2d.model.ScreenModel.CGVector2 groundAnchorB_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder> groundAnchorBBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public boolean hasGroundAnchorB() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getGroundAnchorB() {
if (groundAnchorBBuilder_ == null) {
return groundAnchorB_;
} else {
return groundAnchorBBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public Builder setGroundAnchorB(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (groundAnchorBBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
groundAnchorB_ = value;
onChanged();
} else {
groundAnchorBBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public Builder setGroundAnchorB(
com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (groundAnchorBBuilder_ == null) {
groundAnchorB_ = builderForValue.build();
onChanged();
} else {
groundAnchorBBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public Builder mergeGroundAnchorB(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (groundAnchorBBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
groundAnchorB_ != com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance()) {
groundAnchorB_ =
com.laex.cg2d.model.ScreenModel.CGVector2.newBuilder(groundAnchorB_).mergeFrom(value).buildPartial();
} else {
groundAnchorB_ = value;
}
onChanged();
} else {
groundAnchorBBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public Builder clearGroundAnchorB() {
if (groundAnchorBBuilder_ == null) {
groundAnchorB_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
onChanged();
} else {
groundAnchorBBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder getGroundAnchorBBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getGroundAnchorBFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getGroundAnchorBOrBuilder() {
if (groundAnchorBBuilder_ != null) {
return groundAnchorBBuilder_.getMessageOrBuilder();
} else {
return groundAnchorB_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 groundAnchorB = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getGroundAnchorBFieldBuilder() {
if (groundAnchorBBuilder_ == null) {
groundAnchorBBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>(
groundAnchorB_,
getParentForChildren(),
isClean());
groundAnchorB_ = null;
}
return groundAnchorBBuilder_;
}
// optional float ratio = 4;
private float ratio_ ;
/**
* <code>optional float ratio = 4;</code>
*/
public boolean hasRatio() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float ratio = 4;</code>
*/
public float getRatio() {
return ratio_;
}
/**
* <code>optional float ratio = 4;</code>
*/
public Builder setRatio(float value) {
bitField0_ |= 0x00000008;
ratio_ = value;
onChanged();
return this;
}
/**
* <code>optional float ratio = 4;</code>
*/
public Builder clearRatio() {
bitField0_ = (bitField0_ & ~0x00000008);
ratio_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGPulleyJointDef)
}
static {
defaultInstance = new CGPulleyJointDef(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGPulleyJointDef)
}
public interface CGFrictionJointDefOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool collideConnected = 1;
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean hasCollideConnected();
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean getCollideConnected();
// optional float maxForce = 2;
/**
* <code>optional float maxForce = 2;</code>
*/
boolean hasMaxForce();
/**
* <code>optional float maxForce = 2;</code>
*/
float getMaxForce();
// optional float maxTorque = 3;
/**
* <code>optional float maxTorque = 3;</code>
*/
boolean hasMaxTorque();
/**
* <code>optional float maxTorque = 3;</code>
*/
float getMaxTorque();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGFrictionJointDef}
*/
public static final class CGFrictionJointDef extends
com.google.protobuf.GeneratedMessage
implements CGFrictionJointDefOrBuilder {
// Use CGFrictionJointDef.newBuilder() to construct.
private CGFrictionJointDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGFrictionJointDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGFrictionJointDef defaultInstance;
public static CGFrictionJointDef getDefaultInstance() {
return defaultInstance;
}
public CGFrictionJointDef getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGFrictionJointDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
collideConnected_ = input.readBool();
break;
}
case 21: {
bitField0_ |= 0x00000002;
maxForce_ = input.readFloat();
break;
}
case 29: {
bitField0_ |= 0x00000004;
maxTorque_ = input.readFloat();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFrictionJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFrictionJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.class, com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.Builder.class);
}
public static com.google.protobuf.Parser<CGFrictionJointDef> PARSER =
new com.google.protobuf.AbstractParser<CGFrictionJointDef>() {
public CGFrictionJointDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGFrictionJointDef(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGFrictionJointDef> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool collideConnected = 1;
public static final int COLLIDECONNECTED_FIELD_NUMBER = 1;
private boolean collideConnected_;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
// optional float maxForce = 2;
public static final int MAXFORCE_FIELD_NUMBER = 2;
private float maxForce_;
/**
* <code>optional float maxForce = 2;</code>
*/
public boolean hasMaxForce() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float maxForce = 2;</code>
*/
public float getMaxForce() {
return maxForce_;
}
// optional float maxTorque = 3;
public static final int MAXTORQUE_FIELD_NUMBER = 3;
private float maxTorque_;
/**
* <code>optional float maxTorque = 3;</code>
*/
public boolean hasMaxTorque() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float maxTorque = 3;</code>
*/
public float getMaxTorque() {
return maxTorque_;
}
private void initFields() {
collideConnected_ = false;
maxForce_ = 0F;
maxTorque_ = 0F;
}
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.writeBool(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, maxForce_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, maxTorque_);
}
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
.computeBoolSize(1, collideConnected_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, maxForce_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, maxTorque_);
}
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 com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGFrictionJointDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGFrictionJointDef prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGFrictionJointDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGFrictionJointDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFrictionJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFrictionJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.class, com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
collideConnected_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
maxForce_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
maxTorque_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFrictionJointDef_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGFrictionJointDef getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGFrictionJointDef build() {
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGFrictionJointDef buildPartial() {
com.laex.cg2d.model.ScreenModel.CGFrictionJointDef result = new com.laex.cg2d.model.ScreenModel.CGFrictionJointDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.collideConnected_ = collideConnected_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.maxForce_ = maxForce_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.maxTorque_ = maxTorque_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGFrictionJointDef) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGFrictionJointDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGFrictionJointDef other) {
if (other == com.laex.cg2d.model.ScreenModel.CGFrictionJointDef.getDefaultInstance()) return this;
if (other.hasCollideConnected()) {
setCollideConnected(other.getCollideConnected());
}
if (other.hasMaxForce()) {
setMaxForce(other.getMaxForce());
}
if (other.hasMaxTorque()) {
setMaxTorque(other.getMaxTorque());
}
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.laex.cg2d.model.ScreenModel.CGFrictionJointDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGFrictionJointDef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool collideConnected = 1;
private boolean collideConnected_ ;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder setCollideConnected(boolean value) {
bitField0_ |= 0x00000001;
collideConnected_ = value;
onChanged();
return this;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder clearCollideConnected() {
bitField0_ = (bitField0_ & ~0x00000001);
collideConnected_ = false;
onChanged();
return this;
}
// optional float maxForce = 2;
private float maxForce_ ;
/**
* <code>optional float maxForce = 2;</code>
*/
public boolean hasMaxForce() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float maxForce = 2;</code>
*/
public float getMaxForce() {
return maxForce_;
}
/**
* <code>optional float maxForce = 2;</code>
*/
public Builder setMaxForce(float value) {
bitField0_ |= 0x00000002;
maxForce_ = value;
onChanged();
return this;
}
/**
* <code>optional float maxForce = 2;</code>
*/
public Builder clearMaxForce() {
bitField0_ = (bitField0_ & ~0x00000002);
maxForce_ = 0F;
onChanged();
return this;
}
// optional float maxTorque = 3;
private float maxTorque_ ;
/**
* <code>optional float maxTorque = 3;</code>
*/
public boolean hasMaxTorque() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float maxTorque = 3;</code>
*/
public float getMaxTorque() {
return maxTorque_;
}
/**
* <code>optional float maxTorque = 3;</code>
*/
public Builder setMaxTorque(float value) {
bitField0_ |= 0x00000004;
maxTorque_ = value;
onChanged();
return this;
}
/**
* <code>optional float maxTorque = 3;</code>
*/
public Builder clearMaxTorque() {
bitField0_ = (bitField0_ & ~0x00000004);
maxTorque_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGFrictionJointDef)
}
static {
defaultInstance = new CGFrictionJointDef(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGFrictionJointDef)
}
public interface CGWeldJointDefOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool collideConnected = 1;
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean hasCollideConnected();
/**
* <code>optional bool collideConnected = 1;</code>
*/
boolean getCollideConnected();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGWeldJointDef}
*/
public static final class CGWeldJointDef extends
com.google.protobuf.GeneratedMessage
implements CGWeldJointDefOrBuilder {
// Use CGWeldJointDef.newBuilder() to construct.
private CGWeldJointDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGWeldJointDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGWeldJointDef defaultInstance;
public static CGWeldJointDef getDefaultInstance() {
return defaultInstance;
}
public CGWeldJointDef getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGWeldJointDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
collideConnected_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGWeldJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGWeldJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGWeldJointDef.class, com.laex.cg2d.model.ScreenModel.CGWeldJointDef.Builder.class);
}
public static com.google.protobuf.Parser<CGWeldJointDef> PARSER =
new com.google.protobuf.AbstractParser<CGWeldJointDef>() {
public CGWeldJointDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGWeldJointDef(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGWeldJointDef> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool collideConnected = 1;
public static final int COLLIDECONNECTED_FIELD_NUMBER = 1;
private boolean collideConnected_;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
private void initFields() {
collideConnected_ = false;
}
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.writeBool(1, collideConnected_);
}
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
.computeBoolSize(1, collideConnected_);
}
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 com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGWeldJointDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGWeldJointDef prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGWeldJointDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGWeldJointDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGWeldJointDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGWeldJointDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGWeldJointDef.class, com.laex.cg2d.model.ScreenModel.CGWeldJointDef.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGWeldJointDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
collideConnected_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGWeldJointDef_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGWeldJointDef getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGWeldJointDef.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGWeldJointDef build() {
com.laex.cg2d.model.ScreenModel.CGWeldJointDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGWeldJointDef buildPartial() {
com.laex.cg2d.model.ScreenModel.CGWeldJointDef result = new com.laex.cg2d.model.ScreenModel.CGWeldJointDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.collideConnected_ = collideConnected_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGWeldJointDef) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGWeldJointDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGWeldJointDef other) {
if (other == com.laex.cg2d.model.ScreenModel.CGWeldJointDef.getDefaultInstance()) return this;
if (other.hasCollideConnected()) {
setCollideConnected(other.getCollideConnected());
}
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.laex.cg2d.model.ScreenModel.CGWeldJointDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGWeldJointDef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool collideConnected = 1;
private boolean collideConnected_ ;
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean hasCollideConnected() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public boolean getCollideConnected() {
return collideConnected_;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder setCollideConnected(boolean value) {
bitField0_ |= 0x00000001;
collideConnected_ = value;
onChanged();
return this;
}
/**
* <code>optional bool collideConnected = 1;</code>
*/
public Builder clearCollideConnected() {
bitField0_ = (bitField0_ & ~0x00000001);
collideConnected_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGWeldJointDef)
}
static {
defaultInstance = new CGWeldJointDef(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGWeldJointDef)
}
public interface CGResourceFileOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string resourceFile = 1;
/**
* <code>optional string resourceFile = 1;</code>
*/
boolean hasResourceFile();
/**
* <code>optional string resourceFile = 1;</code>
*/
java.lang.String getResourceFile();
/**
* <code>optional string resourceFile = 1;</code>
*/
com.google.protobuf.ByteString
getResourceFileBytes();
// optional string resourceFileAbsolute = 2;
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
boolean hasResourceFileAbsolute();
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
java.lang.String getResourceFileAbsolute();
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
com.google.protobuf.ByteString
getResourceFileAbsoluteBytes();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGResourceFile}
*/
public static final class CGResourceFile extends
com.google.protobuf.GeneratedMessage
implements CGResourceFileOrBuilder {
// Use CGResourceFile.newBuilder() to construct.
private CGResourceFile(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGResourceFile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGResourceFile defaultInstance;
public static CGResourceFile getDefaultInstance() {
return defaultInstance;
}
public CGResourceFile getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGResourceFile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
resourceFile_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
resourceFileAbsolute_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGResourceFile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGResourceFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGResourceFile.class, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder.class);
}
public static com.google.protobuf.Parser<CGResourceFile> PARSER =
new com.google.protobuf.AbstractParser<CGResourceFile>() {
public CGResourceFile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGResourceFile(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGResourceFile> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string resourceFile = 1;
public static final int RESOURCEFILE_FIELD_NUMBER = 1;
private java.lang.Object resourceFile_;
/**
* <code>optional string resourceFile = 1;</code>
*/
public boolean hasResourceFile() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string resourceFile = 1;</code>
*/
public java.lang.String getResourceFile() {
java.lang.Object ref = resourceFile_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
resourceFile_ = s;
}
return s;
}
}
/**
* <code>optional string resourceFile = 1;</code>
*/
public com.google.protobuf.ByteString
getResourceFileBytes() {
java.lang.Object ref = resourceFile_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceFile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string resourceFileAbsolute = 2;
public static final int RESOURCEFILEABSOLUTE_FIELD_NUMBER = 2;
private java.lang.Object resourceFileAbsolute_;
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
public boolean hasResourceFileAbsolute() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
public java.lang.String getResourceFileAbsolute() {
java.lang.Object ref = resourceFileAbsolute_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
resourceFileAbsolute_ = s;
}
return s;
}
}
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
public com.google.protobuf.ByteString
getResourceFileAbsoluteBytes() {
java.lang.Object ref = resourceFileAbsolute_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceFileAbsolute_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
resourceFile_ = "";
resourceFileAbsolute_ = "";
}
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.writeBytes(1, getResourceFileBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getResourceFileAbsoluteBytes());
}
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
.computeBytesSize(1, getResourceFileBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getResourceFileAbsoluteBytes());
}
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 com.laex.cg2d.model.ScreenModel.CGResourceFile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGResourceFile parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGResourceFile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGResourceFile parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGResourceFile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGResourceFile parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGResourceFile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGResourceFile parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGResourceFile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGResourceFile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGResourceFile prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGResourceFile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGResourceFile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGResourceFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGResourceFile.class, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGResourceFile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
resourceFile_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
resourceFileAbsolute_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGResourceFile_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGResourceFile getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGResourceFile build() {
com.laex.cg2d.model.ScreenModel.CGResourceFile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGResourceFile buildPartial() {
com.laex.cg2d.model.ScreenModel.CGResourceFile result = new com.laex.cg2d.model.ScreenModel.CGResourceFile(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.resourceFile_ = resourceFile_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.resourceFileAbsolute_ = resourceFileAbsolute_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGResourceFile) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGResourceFile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGResourceFile other) {
if (other == com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance()) return this;
if (other.hasResourceFile()) {
bitField0_ |= 0x00000001;
resourceFile_ = other.resourceFile_;
onChanged();
}
if (other.hasResourceFileAbsolute()) {
bitField0_ |= 0x00000002;
resourceFileAbsolute_ = other.resourceFileAbsolute_;
onChanged();
}
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.laex.cg2d.model.ScreenModel.CGResourceFile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGResourceFile) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string resourceFile = 1;
private java.lang.Object resourceFile_ = "";
/**
* <code>optional string resourceFile = 1;</code>
*/
public boolean hasResourceFile() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string resourceFile = 1;</code>
*/
public java.lang.String getResourceFile() {
java.lang.Object ref = resourceFile_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
resourceFile_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string resourceFile = 1;</code>
*/
public com.google.protobuf.ByteString
getResourceFileBytes() {
java.lang.Object ref = resourceFile_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceFile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string resourceFile = 1;</code>
*/
public Builder setResourceFile(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
resourceFile_ = value;
onChanged();
return this;
}
/**
* <code>optional string resourceFile = 1;</code>
*/
public Builder clearResourceFile() {
bitField0_ = (bitField0_ & ~0x00000001);
resourceFile_ = getDefaultInstance().getResourceFile();
onChanged();
return this;
}
/**
* <code>optional string resourceFile = 1;</code>
*/
public Builder setResourceFileBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
resourceFile_ = value;
onChanged();
return this;
}
// optional string resourceFileAbsolute = 2;
private java.lang.Object resourceFileAbsolute_ = "";
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
public boolean hasResourceFileAbsolute() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
public java.lang.String getResourceFileAbsolute() {
java.lang.Object ref = resourceFileAbsolute_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
resourceFileAbsolute_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
public com.google.protobuf.ByteString
getResourceFileAbsoluteBytes() {
java.lang.Object ref = resourceFileAbsolute_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceFileAbsolute_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
public Builder setResourceFileAbsolute(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
resourceFileAbsolute_ = value;
onChanged();
return this;
}
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
public Builder clearResourceFileAbsolute() {
bitField0_ = (bitField0_ & ~0x00000002);
resourceFileAbsolute_ = getDefaultInstance().getResourceFileAbsolute();
onChanged();
return this;
}
/**
* <code>optional string resourceFileAbsolute = 2;</code>
*/
public Builder setResourceFileAbsoluteBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
resourceFileAbsolute_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGResourceFile)
}
static {
defaultInstance = new CGResourceFile(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGResourceFile)
}
public interface CGEntitySpritesheetItemOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .com.laex.cg2d.model.CGBounds extractBounds = 1;
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
boolean hasExtractBounds();
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
com.laex.cg2d.model.ScreenModel.CGBounds getExtractBounds();
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder getExtractBoundsOrBuilder();
// optional int32 frameIndex = 2;
/**
* <code>optional int32 frameIndex = 2;</code>
*/
boolean hasFrameIndex();
/**
* <code>optional int32 frameIndex = 2;</code>
*/
int getFrameIndex();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGEntitySpritesheetItem}
*/
public static final class CGEntitySpritesheetItem extends
com.google.protobuf.GeneratedMessage
implements CGEntitySpritesheetItemOrBuilder {
// Use CGEntitySpritesheetItem.newBuilder() to construct.
private CGEntitySpritesheetItem(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGEntitySpritesheetItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGEntitySpritesheetItem defaultInstance;
public static CGEntitySpritesheetItem getDefaultInstance() {
return defaultInstance;
}
public CGEntitySpritesheetItem getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGEntitySpritesheetItem(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.laex.cg2d.model.ScreenModel.CGBounds.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = extractBounds_.toBuilder();
}
extractBounds_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGBounds.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(extractBounds_);
extractBounds_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
frameIndex_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.class, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder.class);
}
public static com.google.protobuf.Parser<CGEntitySpritesheetItem> PARSER =
new com.google.protobuf.AbstractParser<CGEntitySpritesheetItem>() {
public CGEntitySpritesheetItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGEntitySpritesheetItem(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGEntitySpritesheetItem> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .com.laex.cg2d.model.CGBounds extractBounds = 1;
public static final int EXTRACTBOUNDS_FIELD_NUMBER = 1;
private com.laex.cg2d.model.ScreenModel.CGBounds extractBounds_;
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public boolean hasExtractBounds() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBounds getExtractBounds() {
return extractBounds_;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder getExtractBoundsOrBuilder() {
return extractBounds_;
}
// optional int32 frameIndex = 2;
public static final int FRAMEINDEX_FIELD_NUMBER = 2;
private int frameIndex_;
/**
* <code>optional int32 frameIndex = 2;</code>
*/
public boolean hasFrameIndex() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 frameIndex = 2;</code>
*/
public int getFrameIndex() {
return frameIndex_;
}
private void initFields() {
extractBounds_ = com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance();
frameIndex_ = 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.writeMessage(1, extractBounds_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, frameIndex_);
}
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
.computeMessageSize(1, extractBounds_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, frameIndex_);
}
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 com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGEntitySpritesheetItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.class, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getExtractBoundsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (extractBoundsBuilder_ == null) {
extractBounds_ = com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance();
} else {
extractBoundsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
frameIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem build() {
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem buildPartial() {
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem result = new com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (extractBoundsBuilder_ == null) {
result.extractBounds_ = extractBounds_;
} else {
result.extractBounds_ = extractBoundsBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.frameIndex_ = frameIndex_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem other) {
if (other == com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.getDefaultInstance()) return this;
if (other.hasExtractBounds()) {
mergeExtractBounds(other.getExtractBounds());
}
if (other.hasFrameIndex()) {
setFrameIndex(other.getFrameIndex());
}
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.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .com.laex.cg2d.model.CGBounds extractBounds = 1;
private com.laex.cg2d.model.ScreenModel.CGBounds extractBounds_ = com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGBounds, com.laex.cg2d.model.ScreenModel.CGBounds.Builder, com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder> extractBoundsBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public boolean hasExtractBounds() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBounds getExtractBounds() {
if (extractBoundsBuilder_ == null) {
return extractBounds_;
} else {
return extractBoundsBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public Builder setExtractBounds(com.laex.cg2d.model.ScreenModel.CGBounds value) {
if (extractBoundsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
extractBounds_ = value;
onChanged();
} else {
extractBoundsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public Builder setExtractBounds(
com.laex.cg2d.model.ScreenModel.CGBounds.Builder builderForValue) {
if (extractBoundsBuilder_ == null) {
extractBounds_ = builderForValue.build();
onChanged();
} else {
extractBoundsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public Builder mergeExtractBounds(com.laex.cg2d.model.ScreenModel.CGBounds value) {
if (extractBoundsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
extractBounds_ != com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance()) {
extractBounds_ =
com.laex.cg2d.model.ScreenModel.CGBounds.newBuilder(extractBounds_).mergeFrom(value).buildPartial();
} else {
extractBounds_ = value;
}
onChanged();
} else {
extractBoundsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public Builder clearExtractBounds() {
if (extractBoundsBuilder_ == null) {
extractBounds_ = com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance();
onChanged();
} else {
extractBoundsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBounds.Builder getExtractBoundsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getExtractBoundsFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder getExtractBoundsOrBuilder() {
if (extractBoundsBuilder_ != null) {
return extractBoundsBuilder_.getMessageOrBuilder();
} else {
return extractBounds_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds extractBounds = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGBounds, com.laex.cg2d.model.ScreenModel.CGBounds.Builder, com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder>
getExtractBoundsFieldBuilder() {
if (extractBoundsBuilder_ == null) {
extractBoundsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGBounds, com.laex.cg2d.model.ScreenModel.CGBounds.Builder, com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder>(
extractBounds_,
getParentForChildren(),
isClean());
extractBounds_ = null;
}
return extractBoundsBuilder_;
}
// optional int32 frameIndex = 2;
private int frameIndex_ ;
/**
* <code>optional int32 frameIndex = 2;</code>
*/
public boolean hasFrameIndex() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 frameIndex = 2;</code>
*/
public int getFrameIndex() {
return frameIndex_;
}
/**
* <code>optional int32 frameIndex = 2;</code>
*/
public Builder setFrameIndex(int value) {
bitField0_ |= 0x00000002;
frameIndex_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 frameIndex = 2;</code>
*/
public Builder clearFrameIndex() {
bitField0_ = (bitField0_ & ~0x00000002);
frameIndex_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGEntitySpritesheetItem)
}
static {
defaultInstance = new CGEntitySpritesheetItem(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGEntitySpritesheetItem)
}
public interface CGEntityAnimationOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string animationName = 1;
/**
* <code>optional string animationName = 1;</code>
*/
boolean hasAnimationName();
/**
* <code>optional string animationName = 1;</code>
*/
java.lang.String getAnimationName();
/**
* <code>optional string animationName = 1;</code>
*/
com.google.protobuf.ByteString
getAnimationNameBytes();
// optional float animationDuration = 2;
/**
* <code>optional float animationDuration = 2;</code>
*/
boolean hasAnimationDuration();
/**
* <code>optional float animationDuration = 2;</code>
*/
float getAnimationDuration();
// optional bool defaultAnimation = 3;
/**
* <code>optional bool defaultAnimation = 3;</code>
*/
boolean hasDefaultAnimation();
/**
* <code>optional bool defaultAnimation = 3;</code>
*/
boolean getDefaultAnimation();
// optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;
/**
* <code>optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;</code>
*/
boolean hasCollisionType();
/**
* <code>optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;</code>
*/
com.laex.cg2d.model.ScreenModel.CGEntityCollisionType getCollisionType();
// optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
boolean hasSpritesheetFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFile getSpritesheetFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getSpritesheetFileOrBuilder();
// optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
boolean hasSpritesheetJsonFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFile getSpritesheetJsonFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getSpritesheetJsonFileOrBuilder();
// optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
boolean hasFixtureFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFile getFixtureFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getFixtureFileOrBuilder();
// repeated .com.laex.cg2d.model.CGVector2 vertices = 8;
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
java.util.List<com.laex.cg2d.model.ScreenModel.CGVector2>
getVerticesList();
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2 getVertices(int index);
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
int getVerticesCount();
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getVerticesOrBuilderList();
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getVerticesOrBuilder(
int index);
// repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
java.util.List<com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem>
getSpritesheetItemsList();
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem getSpritesheetItems(int index);
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
int getSpritesheetItemsCount();
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder>
getSpritesheetItemsOrBuilderList();
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder getSpritesheetItemsOrBuilder(
int index);
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGEntityAnimation}
*/
public static final class CGEntityAnimation extends
com.google.protobuf.GeneratedMessage
implements CGEntityAnimationOrBuilder {
// Use CGEntityAnimation.newBuilder() to construct.
private CGEntityAnimation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGEntityAnimation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGEntityAnimation defaultInstance;
public static CGEntityAnimation getDefaultInstance() {
return defaultInstance;
}
public CGEntityAnimation getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGEntityAnimation(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
animationName_ = input.readBytes();
break;
}
case 21: {
bitField0_ |= 0x00000002;
animationDuration_ = input.readFloat();
break;
}
case 24: {
bitField0_ |= 0x00000004;
defaultAnimation_ = input.readBool();
break;
}
case 32: {
int rawValue = input.readEnum();
com.laex.cg2d.model.ScreenModel.CGEntityCollisionType value = com.laex.cg2d.model.ScreenModel.CGEntityCollisionType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
collisionType_ = value;
}
break;
}
case 42: {
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = spritesheetFile_.toBuilder();
}
spritesheetFile_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGResourceFile.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spritesheetFile_);
spritesheetFile_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = spritesheetJsonFile_.toBuilder();
}
spritesheetJsonFile_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGResourceFile.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spritesheetJsonFile_);
spritesheetJsonFile_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 58: {
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = fixtureFile_.toBuilder();
}
fixtureFile_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGResourceFile.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fixtureFile_);
fixtureFile_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
vertices_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGVector2>();
mutable_bitField0_ |= 0x00000080;
}
vertices_.add(input.readMessage(com.laex.cg2d.model.ScreenModel.CGVector2.PARSER, extensionRegistry));
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
spritesheetItems_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem>();
mutable_bitField0_ |= 0x00000100;
}
spritesheetItems_.add(input.readMessage(com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
vertices_ = java.util.Collections.unmodifiableList(vertices_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
spritesheetItems_ = java.util.Collections.unmodifiableList(spritesheetItems_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntityAnimation_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntityAnimation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGEntityAnimation.class, com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder.class);
}
public static com.google.protobuf.Parser<CGEntityAnimation> PARSER =
new com.google.protobuf.AbstractParser<CGEntityAnimation>() {
public CGEntityAnimation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGEntityAnimation(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGEntityAnimation> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string animationName = 1;
public static final int ANIMATIONNAME_FIELD_NUMBER = 1;
private java.lang.Object animationName_;
/**
* <code>optional string animationName = 1;</code>
*/
public boolean hasAnimationName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string animationName = 1;</code>
*/
public java.lang.String getAnimationName() {
java.lang.Object ref = animationName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
animationName_ = s;
}
return s;
}
}
/**
* <code>optional string animationName = 1;</code>
*/
public com.google.protobuf.ByteString
getAnimationNameBytes() {
java.lang.Object ref = animationName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
animationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional float animationDuration = 2;
public static final int ANIMATIONDURATION_FIELD_NUMBER = 2;
private float animationDuration_;
/**
* <code>optional float animationDuration = 2;</code>
*/
public boolean hasAnimationDuration() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float animationDuration = 2;</code>
*/
public float getAnimationDuration() {
return animationDuration_;
}
// optional bool defaultAnimation = 3;
public static final int DEFAULTANIMATION_FIELD_NUMBER = 3;
private boolean defaultAnimation_;
/**
* <code>optional bool defaultAnimation = 3;</code>
*/
public boolean hasDefaultAnimation() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool defaultAnimation = 3;</code>
*/
public boolean getDefaultAnimation() {
return defaultAnimation_;
}
// optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;
public static final int COLLISIONTYPE_FIELD_NUMBER = 4;
private com.laex.cg2d.model.ScreenModel.CGEntityCollisionType collisionType_;
/**
* <code>optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;</code>
*/
public boolean hasCollisionType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntityCollisionType getCollisionType() {
return collisionType_;
}
// optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;
public static final int SPRITESHEETFILE_FIELD_NUMBER = 5;
private com.laex.cg2d.model.ScreenModel.CGResourceFile spritesheetFile_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public boolean hasSpritesheetFile() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getSpritesheetFile() {
return spritesheetFile_;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getSpritesheetFileOrBuilder() {
return spritesheetFile_;
}
// optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;
public static final int SPRITESHEETJSONFILE_FIELD_NUMBER = 6;
private com.laex.cg2d.model.ScreenModel.CGResourceFile spritesheetJsonFile_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public boolean hasSpritesheetJsonFile() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getSpritesheetJsonFile() {
return spritesheetJsonFile_;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getSpritesheetJsonFileOrBuilder() {
return spritesheetJsonFile_;
}
// optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;
public static final int FIXTUREFILE_FIELD_NUMBER = 7;
private com.laex.cg2d.model.ScreenModel.CGResourceFile fixtureFile_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public boolean hasFixtureFile() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getFixtureFile() {
return fixtureFile_;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getFixtureFileOrBuilder() {
return fixtureFile_;
}
// repeated .com.laex.cg2d.model.CGVector2 vertices = 8;
public static final int VERTICES_FIELD_NUMBER = 8;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGVector2> vertices_;
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGVector2> getVerticesList() {
return vertices_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getVerticesOrBuilderList() {
return vertices_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public int getVerticesCount() {
return vertices_.size();
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getVertices(int index) {
return vertices_.get(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getVerticesOrBuilder(
int index) {
return vertices_.get(index);
}
// repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;
public static final int SPRITESHEETITEMS_FIELD_NUMBER = 9;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem> spritesheetItems_;
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem> getSpritesheetItemsList() {
return spritesheetItems_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder>
getSpritesheetItemsOrBuilderList() {
return spritesheetItems_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public int getSpritesheetItemsCount() {
return spritesheetItems_.size();
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem getSpritesheetItems(int index) {
return spritesheetItems_.get(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder getSpritesheetItemsOrBuilder(
int index) {
return spritesheetItems_.get(index);
}
private void initFields() {
animationName_ = "";
animationDuration_ = 0F;
defaultAnimation_ = false;
collisionType_ = com.laex.cg2d.model.ScreenModel.CGEntityCollisionType.NONE;
spritesheetFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
spritesheetJsonFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
fixtureFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
vertices_ = java.util.Collections.emptyList();
spritesheetItems_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getVerticesCount(); i++) {
if (!getVertices(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getAnimationNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, animationDuration_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, defaultAnimation_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeEnum(4, collisionType_.getNumber());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, spritesheetFile_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, spritesheetJsonFile_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(7, fixtureFile_);
}
for (int i = 0; i < vertices_.size(); i++) {
output.writeMessage(8, vertices_.get(i));
}
for (int i = 0; i < spritesheetItems_.size(); i++) {
output.writeMessage(9, spritesheetItems_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getAnimationNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, animationDuration_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, defaultAnimation_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, collisionType_.getNumber());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, spritesheetFile_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, spritesheetJsonFile_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, fixtureFile_);
}
for (int i = 0; i < vertices_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, vertices_.get(i));
}
for (int i = 0; i < spritesheetItems_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, spritesheetItems_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGEntityAnimation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGEntityAnimation prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGEntityAnimation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntityAnimation_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntityAnimation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGEntityAnimation.class, com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGEntityAnimation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getSpritesheetFileFieldBuilder();
getSpritesheetJsonFileFieldBuilder();
getFixtureFileFieldBuilder();
getVerticesFieldBuilder();
getSpritesheetItemsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
animationName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
animationDuration_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
defaultAnimation_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
collisionType_ = com.laex.cg2d.model.ScreenModel.CGEntityCollisionType.NONE;
bitField0_ = (bitField0_ & ~0x00000008);
if (spritesheetFileBuilder_ == null) {
spritesheetFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
} else {
spritesheetFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (spritesheetJsonFileBuilder_ == null) {
spritesheetJsonFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
} else {
spritesheetJsonFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (fixtureFileBuilder_ == null) {
fixtureFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
} else {
fixtureFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (verticesBuilder_ == null) {
vertices_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
verticesBuilder_.clear();
}
if (spritesheetItemsBuilder_ == null) {
spritesheetItems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
spritesheetItemsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntityAnimation_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGEntityAnimation getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGEntityAnimation.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGEntityAnimation build() {
com.laex.cg2d.model.ScreenModel.CGEntityAnimation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGEntityAnimation buildPartial() {
com.laex.cg2d.model.ScreenModel.CGEntityAnimation result = new com.laex.cg2d.model.ScreenModel.CGEntityAnimation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.animationName_ = animationName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.animationDuration_ = animationDuration_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.defaultAnimation_ = defaultAnimation_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.collisionType_ = collisionType_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (spritesheetFileBuilder_ == null) {
result.spritesheetFile_ = spritesheetFile_;
} else {
result.spritesheetFile_ = spritesheetFileBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (spritesheetJsonFileBuilder_ == null) {
result.spritesheetJsonFile_ = spritesheetJsonFile_;
} else {
result.spritesheetJsonFile_ = spritesheetJsonFileBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (fixtureFileBuilder_ == null) {
result.fixtureFile_ = fixtureFile_;
} else {
result.fixtureFile_ = fixtureFileBuilder_.build();
}
if (verticesBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080)) {
vertices_ = java.util.Collections.unmodifiableList(vertices_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.vertices_ = vertices_;
} else {
result.vertices_ = verticesBuilder_.build();
}
if (spritesheetItemsBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100)) {
spritesheetItems_ = java.util.Collections.unmodifiableList(spritesheetItems_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.spritesheetItems_ = spritesheetItems_;
} else {
result.spritesheetItems_ = spritesheetItemsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGEntityAnimation) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGEntityAnimation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGEntityAnimation other) {
if (other == com.laex.cg2d.model.ScreenModel.CGEntityAnimation.getDefaultInstance()) return this;
if (other.hasAnimationName()) {
bitField0_ |= 0x00000001;
animationName_ = other.animationName_;
onChanged();
}
if (other.hasAnimationDuration()) {
setAnimationDuration(other.getAnimationDuration());
}
if (other.hasDefaultAnimation()) {
setDefaultAnimation(other.getDefaultAnimation());
}
if (other.hasCollisionType()) {
setCollisionType(other.getCollisionType());
}
if (other.hasSpritesheetFile()) {
mergeSpritesheetFile(other.getSpritesheetFile());
}
if (other.hasSpritesheetJsonFile()) {
mergeSpritesheetJsonFile(other.getSpritesheetJsonFile());
}
if (other.hasFixtureFile()) {
mergeFixtureFile(other.getFixtureFile());
}
if (verticesBuilder_ == null) {
if (!other.vertices_.isEmpty()) {
if (vertices_.isEmpty()) {
vertices_ = other.vertices_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureVerticesIsMutable();
vertices_.addAll(other.vertices_);
}
onChanged();
}
} else {
if (!other.vertices_.isEmpty()) {
if (verticesBuilder_.isEmpty()) {
verticesBuilder_.dispose();
verticesBuilder_ = null;
vertices_ = other.vertices_;
bitField0_ = (bitField0_ & ~0x00000080);
verticesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getVerticesFieldBuilder() : null;
} else {
verticesBuilder_.addAllMessages(other.vertices_);
}
}
}
if (spritesheetItemsBuilder_ == null) {
if (!other.spritesheetItems_.isEmpty()) {
if (spritesheetItems_.isEmpty()) {
spritesheetItems_ = other.spritesheetItems_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureSpritesheetItemsIsMutable();
spritesheetItems_.addAll(other.spritesheetItems_);
}
onChanged();
}
} else {
if (!other.spritesheetItems_.isEmpty()) {
if (spritesheetItemsBuilder_.isEmpty()) {
spritesheetItemsBuilder_.dispose();
spritesheetItemsBuilder_ = null;
spritesheetItems_ = other.spritesheetItems_;
bitField0_ = (bitField0_ & ~0x00000100);
spritesheetItemsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getSpritesheetItemsFieldBuilder() : null;
} else {
spritesheetItemsBuilder_.addAllMessages(other.spritesheetItems_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getVerticesCount(); i++) {
if (!getVertices(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGEntityAnimation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGEntityAnimation) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string animationName = 1;
private java.lang.Object animationName_ = "";
/**
* <code>optional string animationName = 1;</code>
*/
public boolean hasAnimationName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string animationName = 1;</code>
*/
public java.lang.String getAnimationName() {
java.lang.Object ref = animationName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
animationName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string animationName = 1;</code>
*/
public com.google.protobuf.ByteString
getAnimationNameBytes() {
java.lang.Object ref = animationName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
animationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string animationName = 1;</code>
*/
public Builder setAnimationName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
animationName_ = value;
onChanged();
return this;
}
/**
* <code>optional string animationName = 1;</code>
*/
public Builder clearAnimationName() {
bitField0_ = (bitField0_ & ~0x00000001);
animationName_ = getDefaultInstance().getAnimationName();
onChanged();
return this;
}
/**
* <code>optional string animationName = 1;</code>
*/
public Builder setAnimationNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
animationName_ = value;
onChanged();
return this;
}
// optional float animationDuration = 2;
private float animationDuration_ ;
/**
* <code>optional float animationDuration = 2;</code>
*/
public boolean hasAnimationDuration() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float animationDuration = 2;</code>
*/
public float getAnimationDuration() {
return animationDuration_;
}
/**
* <code>optional float animationDuration = 2;</code>
*/
public Builder setAnimationDuration(float value) {
bitField0_ |= 0x00000002;
animationDuration_ = value;
onChanged();
return this;
}
/**
* <code>optional float animationDuration = 2;</code>
*/
public Builder clearAnimationDuration() {
bitField0_ = (bitField0_ & ~0x00000002);
animationDuration_ = 0F;
onChanged();
return this;
}
// optional bool defaultAnimation = 3;
private boolean defaultAnimation_ ;
/**
* <code>optional bool defaultAnimation = 3;</code>
*/
public boolean hasDefaultAnimation() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool defaultAnimation = 3;</code>
*/
public boolean getDefaultAnimation() {
return defaultAnimation_;
}
/**
* <code>optional bool defaultAnimation = 3;</code>
*/
public Builder setDefaultAnimation(boolean value) {
bitField0_ |= 0x00000004;
defaultAnimation_ = value;
onChanged();
return this;
}
/**
* <code>optional bool defaultAnimation = 3;</code>
*/
public Builder clearDefaultAnimation() {
bitField0_ = (bitField0_ & ~0x00000004);
defaultAnimation_ = false;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;
private com.laex.cg2d.model.ScreenModel.CGEntityCollisionType collisionType_ = com.laex.cg2d.model.ScreenModel.CGEntityCollisionType.NONE;
/**
* <code>optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;</code>
*/
public boolean hasCollisionType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntityCollisionType getCollisionType() {
return collisionType_;
}
/**
* <code>optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;</code>
*/
public Builder setCollisionType(com.laex.cg2d.model.ScreenModel.CGEntityCollisionType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
collisionType_ = value;
onChanged();
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGEntityCollisionType collisionType = 4;</code>
*/
public Builder clearCollisionType() {
bitField0_ = (bitField0_ & ~0x00000008);
collisionType_ = com.laex.cg2d.model.ScreenModel.CGEntityCollisionType.NONE;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;
private com.laex.cg2d.model.ScreenModel.CGResourceFile spritesheetFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder> spritesheetFileBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public boolean hasSpritesheetFile() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getSpritesheetFile() {
if (spritesheetFileBuilder_ == null) {
return spritesheetFile_;
} else {
return spritesheetFileBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public Builder setSpritesheetFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (spritesheetFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spritesheetFile_ = value;
onChanged();
} else {
spritesheetFileBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public Builder setSpritesheetFile(
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder builderForValue) {
if (spritesheetFileBuilder_ == null) {
spritesheetFile_ = builderForValue.build();
onChanged();
} else {
spritesheetFileBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public Builder mergeSpritesheetFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (spritesheetFileBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
spritesheetFile_ != com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance()) {
spritesheetFile_ =
com.laex.cg2d.model.ScreenModel.CGResourceFile.newBuilder(spritesheetFile_).mergeFrom(value).buildPartial();
} else {
spritesheetFile_ = value;
}
onChanged();
} else {
spritesheetFileBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public Builder clearSpritesheetFile() {
if (spritesheetFileBuilder_ == null) {
spritesheetFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
onChanged();
} else {
spritesheetFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder getSpritesheetFileBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getSpritesheetFileFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getSpritesheetFileOrBuilder() {
if (spritesheetFileBuilder_ != null) {
return spritesheetFileBuilder_.getMessageOrBuilder();
} else {
return spritesheetFile_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetFile = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>
getSpritesheetFileFieldBuilder() {
if (spritesheetFileBuilder_ == null) {
spritesheetFileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>(
spritesheetFile_,
getParentForChildren(),
isClean());
spritesheetFile_ = null;
}
return spritesheetFileBuilder_;
}
// optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;
private com.laex.cg2d.model.ScreenModel.CGResourceFile spritesheetJsonFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder> spritesheetJsonFileBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public boolean hasSpritesheetJsonFile() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getSpritesheetJsonFile() {
if (spritesheetJsonFileBuilder_ == null) {
return spritesheetJsonFile_;
} else {
return spritesheetJsonFileBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public Builder setSpritesheetJsonFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (spritesheetJsonFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spritesheetJsonFile_ = value;
onChanged();
} else {
spritesheetJsonFileBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public Builder setSpritesheetJsonFile(
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder builderForValue) {
if (spritesheetJsonFileBuilder_ == null) {
spritesheetJsonFile_ = builderForValue.build();
onChanged();
} else {
spritesheetJsonFileBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public Builder mergeSpritesheetJsonFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (spritesheetJsonFileBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
spritesheetJsonFile_ != com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance()) {
spritesheetJsonFile_ =
com.laex.cg2d.model.ScreenModel.CGResourceFile.newBuilder(spritesheetJsonFile_).mergeFrom(value).buildPartial();
} else {
spritesheetJsonFile_ = value;
}
onChanged();
} else {
spritesheetJsonFileBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public Builder clearSpritesheetJsonFile() {
if (spritesheetJsonFileBuilder_ == null) {
spritesheetJsonFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
onChanged();
} else {
spritesheetJsonFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder getSpritesheetJsonFileBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getSpritesheetJsonFileFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getSpritesheetJsonFileOrBuilder() {
if (spritesheetJsonFileBuilder_ != null) {
return spritesheetJsonFileBuilder_.getMessageOrBuilder();
} else {
return spritesheetJsonFile_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile spritesheetJsonFile = 6;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>
getSpritesheetJsonFileFieldBuilder() {
if (spritesheetJsonFileBuilder_ == null) {
spritesheetJsonFileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>(
spritesheetJsonFile_,
getParentForChildren(),
isClean());
spritesheetJsonFile_ = null;
}
return spritesheetJsonFileBuilder_;
}
// optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;
private com.laex.cg2d.model.ScreenModel.CGResourceFile fixtureFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder> fixtureFileBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public boolean hasFixtureFile() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getFixtureFile() {
if (fixtureFileBuilder_ == null) {
return fixtureFile_;
} else {
return fixtureFileBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public Builder setFixtureFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (fixtureFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fixtureFile_ = value;
onChanged();
} else {
fixtureFileBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public Builder setFixtureFile(
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder builderForValue) {
if (fixtureFileBuilder_ == null) {
fixtureFile_ = builderForValue.build();
onChanged();
} else {
fixtureFileBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public Builder mergeFixtureFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (fixtureFileBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
fixtureFile_ != com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance()) {
fixtureFile_ =
com.laex.cg2d.model.ScreenModel.CGResourceFile.newBuilder(fixtureFile_).mergeFrom(value).buildPartial();
} else {
fixtureFile_ = value;
}
onChanged();
} else {
fixtureFileBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public Builder clearFixtureFile() {
if (fixtureFileBuilder_ == null) {
fixtureFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
onChanged();
} else {
fixtureFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder getFixtureFileBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getFixtureFileFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getFixtureFileOrBuilder() {
if (fixtureFileBuilder_ != null) {
return fixtureFileBuilder_.getMessageOrBuilder();
} else {
return fixtureFile_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile fixtureFile = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>
getFixtureFileFieldBuilder() {
if (fixtureFileBuilder_ == null) {
fixtureFileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>(
fixtureFile_,
getParentForChildren(),
isClean());
fixtureFile_ = null;
}
return fixtureFileBuilder_;
}
// repeated .com.laex.cg2d.model.CGVector2 vertices = 8;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGVector2> vertices_ =
java.util.Collections.emptyList();
private void ensureVerticesIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
vertices_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGVector2>(vertices_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder> verticesBuilder_;
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGVector2> getVerticesList() {
if (verticesBuilder_ == null) {
return java.util.Collections.unmodifiableList(vertices_);
} else {
return verticesBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public int getVerticesCount() {
if (verticesBuilder_ == null) {
return vertices_.size();
} else {
return verticesBuilder_.getCount();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getVertices(int index) {
if (verticesBuilder_ == null) {
return vertices_.get(index);
} else {
return verticesBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public Builder setVertices(
int index, com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (verticesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVerticesIsMutable();
vertices_.set(index, value);
onChanged();
} else {
verticesBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public Builder setVertices(
int index, com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
vertices_.set(index, builderForValue.build());
onChanged();
} else {
verticesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public Builder addVertices(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (verticesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVerticesIsMutable();
vertices_.add(value);
onChanged();
} else {
verticesBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public Builder addVertices(
int index, com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (verticesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVerticesIsMutable();
vertices_.add(index, value);
onChanged();
} else {
verticesBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public Builder addVertices(
com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
vertices_.add(builderForValue.build());
onChanged();
} else {
verticesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public Builder addVertices(
int index, com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
vertices_.add(index, builderForValue.build());
onChanged();
} else {
verticesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public Builder addAllVertices(
java.lang.Iterable<? extends com.laex.cg2d.model.ScreenModel.CGVector2> values) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
super.addAll(values, vertices_);
onChanged();
} else {
verticesBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public Builder clearVertices() {
if (verticesBuilder_ == null) {
vertices_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
verticesBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public Builder removeVertices(int index) {
if (verticesBuilder_ == null) {
ensureVerticesIsMutable();
vertices_.remove(index);
onChanged();
} else {
verticesBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder getVerticesBuilder(
int index) {
return getVerticesFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getVerticesOrBuilder(
int index) {
if (verticesBuilder_ == null) {
return vertices_.get(index); } else {
return verticesBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getVerticesOrBuilderList() {
if (verticesBuilder_ != null) {
return verticesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(vertices_);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder addVerticesBuilder() {
return getVerticesFieldBuilder().addBuilder(
com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder addVerticesBuilder(
int index) {
return getVerticesFieldBuilder().addBuilder(
index, com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGVector2 vertices = 8;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGVector2.Builder>
getVerticesBuilderList() {
return getVerticesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getVerticesFieldBuilder() {
if (verticesBuilder_ == null) {
verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>(
vertices_,
((bitField0_ & 0x00000080) == 0x00000080),
getParentForChildren(),
isClean());
vertices_ = null;
}
return verticesBuilder_;
}
// repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem> spritesheetItems_ =
java.util.Collections.emptyList();
private void ensureSpritesheetItemsIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
spritesheetItems_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem>(spritesheetItems_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder> spritesheetItemsBuilder_;
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem> getSpritesheetItemsList() {
if (spritesheetItemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(spritesheetItems_);
} else {
return spritesheetItemsBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public int getSpritesheetItemsCount() {
if (spritesheetItemsBuilder_ == null) {
return spritesheetItems_.size();
} else {
return spritesheetItemsBuilder_.getCount();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem getSpritesheetItems(int index) {
if (spritesheetItemsBuilder_ == null) {
return spritesheetItems_.get(index);
} else {
return spritesheetItemsBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public Builder setSpritesheetItems(
int index, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem value) {
if (spritesheetItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpritesheetItemsIsMutable();
spritesheetItems_.set(index, value);
onChanged();
} else {
spritesheetItemsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public Builder setSpritesheetItems(
int index, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder builderForValue) {
if (spritesheetItemsBuilder_ == null) {
ensureSpritesheetItemsIsMutable();
spritesheetItems_.set(index, builderForValue.build());
onChanged();
} else {
spritesheetItemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public Builder addSpritesheetItems(com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem value) {
if (spritesheetItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpritesheetItemsIsMutable();
spritesheetItems_.add(value);
onChanged();
} else {
spritesheetItemsBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public Builder addSpritesheetItems(
int index, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem value) {
if (spritesheetItemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpritesheetItemsIsMutable();
spritesheetItems_.add(index, value);
onChanged();
} else {
spritesheetItemsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public Builder addSpritesheetItems(
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder builderForValue) {
if (spritesheetItemsBuilder_ == null) {
ensureSpritesheetItemsIsMutable();
spritesheetItems_.add(builderForValue.build());
onChanged();
} else {
spritesheetItemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public Builder addSpritesheetItems(
int index, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder builderForValue) {
if (spritesheetItemsBuilder_ == null) {
ensureSpritesheetItemsIsMutable();
spritesheetItems_.add(index, builderForValue.build());
onChanged();
} else {
spritesheetItemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public Builder addAllSpritesheetItems(
java.lang.Iterable<? extends com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem> values) {
if (spritesheetItemsBuilder_ == null) {
ensureSpritesheetItemsIsMutable();
super.addAll(values, spritesheetItems_);
onChanged();
} else {
spritesheetItemsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public Builder clearSpritesheetItems() {
if (spritesheetItemsBuilder_ == null) {
spritesheetItems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
spritesheetItemsBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public Builder removeSpritesheetItems(int index) {
if (spritesheetItemsBuilder_ == null) {
ensureSpritesheetItemsIsMutable();
spritesheetItems_.remove(index);
onChanged();
} else {
spritesheetItemsBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder getSpritesheetItemsBuilder(
int index) {
return getSpritesheetItemsFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder getSpritesheetItemsOrBuilder(
int index) {
if (spritesheetItemsBuilder_ == null) {
return spritesheetItems_.get(index); } else {
return spritesheetItemsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder>
getSpritesheetItemsOrBuilderList() {
if (spritesheetItemsBuilder_ != null) {
return spritesheetItemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spritesheetItems_);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder addSpritesheetItemsBuilder() {
return getSpritesheetItemsFieldBuilder().addBuilder(
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder addSpritesheetItemsBuilder(
int index) {
return getSpritesheetItemsFieldBuilder().addBuilder(
index, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntitySpritesheetItem spritesheetItems = 9;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder>
getSpritesheetItemsBuilderList() {
return getSpritesheetItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder>
getSpritesheetItemsFieldBuilder() {
if (spritesheetItemsBuilder_ == null) {
spritesheetItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItem.Builder, com.laex.cg2d.model.ScreenModel.CGEntitySpritesheetItemOrBuilder>(
spritesheetItems_,
((bitField0_ & 0x00000100) == 0x00000100),
getParentForChildren(),
isClean());
spritesheetItems_ = null;
}
return spritesheetItemsBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGEntityAnimation)
}
static {
defaultInstance = new CGEntityAnimation(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGEntityAnimation)
}
public interface CGEntityOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
java.util.List<com.laex.cg2d.model.ScreenModel.CGEntityAnimation>
getAnimationsList();
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
com.laex.cg2d.model.ScreenModel.CGEntityAnimation getAnimations(int index);
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
int getAnimationsCount();
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder>
getAnimationsOrBuilderList();
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder getAnimationsOrBuilder(
int index);
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGEntity}
*/
public static final class CGEntity extends
com.google.protobuf.GeneratedMessage
implements CGEntityOrBuilder {
// Use CGEntity.newBuilder() to construct.
private CGEntity(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGEntity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGEntity defaultInstance;
public static CGEntity getDefaultInstance() {
return defaultInstance;
}
public CGEntity getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGEntity(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
animations_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGEntityAnimation>();
mutable_bitField0_ |= 0x00000001;
}
animations_.add(input.readMessage(com.laex.cg2d.model.ScreenModel.CGEntityAnimation.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
animations_ = java.util.Collections.unmodifiableList(animations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntity_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGEntity.class, com.laex.cg2d.model.ScreenModel.CGEntity.Builder.class);
}
public static com.google.protobuf.Parser<CGEntity> PARSER =
new com.google.protobuf.AbstractParser<CGEntity>() {
public CGEntity parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGEntity(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGEntity> getParserForType() {
return PARSER;
}
// repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;
public static final int ANIMATIONS_FIELD_NUMBER = 1;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGEntityAnimation> animations_;
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGEntityAnimation> getAnimationsList() {
return animations_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder>
getAnimationsOrBuilderList() {
return animations_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public int getAnimationsCount() {
return animations_.size();
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntityAnimation getAnimations(int index) {
return animations_.get(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder getAnimationsOrBuilder(
int index) {
return animations_.get(index);
}
private void initFields() {
animations_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getAnimationsCount(); i++) {
if (!getAnimations(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < animations_.size(); i++) {
output.writeMessage(1, animations_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < animations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, animations_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGEntity parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGEntity prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGEntity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGEntityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntity_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGEntity.class, com.laex.cg2d.model.ScreenModel.CGEntity.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGEntity.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAnimationsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (animationsBuilder_ == null) {
animations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
animationsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGEntity_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGEntity getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGEntity.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGEntity build() {
com.laex.cg2d.model.ScreenModel.CGEntity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGEntity buildPartial() {
com.laex.cg2d.model.ScreenModel.CGEntity result = new com.laex.cg2d.model.ScreenModel.CGEntity(this);
int from_bitField0_ = bitField0_;
if (animationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
animations_ = java.util.Collections.unmodifiableList(animations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.animations_ = animations_;
} else {
result.animations_ = animationsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGEntity) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGEntity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGEntity other) {
if (other == com.laex.cg2d.model.ScreenModel.CGEntity.getDefaultInstance()) return this;
if (animationsBuilder_ == null) {
if (!other.animations_.isEmpty()) {
if (animations_.isEmpty()) {
animations_ = other.animations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAnimationsIsMutable();
animations_.addAll(other.animations_);
}
onChanged();
}
} else {
if (!other.animations_.isEmpty()) {
if (animationsBuilder_.isEmpty()) {
animationsBuilder_.dispose();
animationsBuilder_ = null;
animations_ = other.animations_;
bitField0_ = (bitField0_ & ~0x00000001);
animationsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAnimationsFieldBuilder() : null;
} else {
animationsBuilder_.addAllMessages(other.animations_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getAnimationsCount(); i++) {
if (!getAnimations(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGEntity parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGEntity) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGEntityAnimation> animations_ =
java.util.Collections.emptyList();
private void ensureAnimationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
animations_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGEntityAnimation>(animations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGEntityAnimation, com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder, com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder> animationsBuilder_;
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGEntityAnimation> getAnimationsList() {
if (animationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(animations_);
} else {
return animationsBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public int getAnimationsCount() {
if (animationsBuilder_ == null) {
return animations_.size();
} else {
return animationsBuilder_.getCount();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntityAnimation getAnimations(int index) {
if (animationsBuilder_ == null) {
return animations_.get(index);
} else {
return animationsBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public Builder setAnimations(
int index, com.laex.cg2d.model.ScreenModel.CGEntityAnimation value) {
if (animationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnimationsIsMutable();
animations_.set(index, value);
onChanged();
} else {
animationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public Builder setAnimations(
int index, com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder builderForValue) {
if (animationsBuilder_ == null) {
ensureAnimationsIsMutable();
animations_.set(index, builderForValue.build());
onChanged();
} else {
animationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public Builder addAnimations(com.laex.cg2d.model.ScreenModel.CGEntityAnimation value) {
if (animationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnimationsIsMutable();
animations_.add(value);
onChanged();
} else {
animationsBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public Builder addAnimations(
int index, com.laex.cg2d.model.ScreenModel.CGEntityAnimation value) {
if (animationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnimationsIsMutable();
animations_.add(index, value);
onChanged();
} else {
animationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public Builder addAnimations(
com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder builderForValue) {
if (animationsBuilder_ == null) {
ensureAnimationsIsMutable();
animations_.add(builderForValue.build());
onChanged();
} else {
animationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public Builder addAnimations(
int index, com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder builderForValue) {
if (animationsBuilder_ == null) {
ensureAnimationsIsMutable();
animations_.add(index, builderForValue.build());
onChanged();
} else {
animationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public Builder addAllAnimations(
java.lang.Iterable<? extends com.laex.cg2d.model.ScreenModel.CGEntityAnimation> values) {
if (animationsBuilder_ == null) {
ensureAnimationsIsMutable();
super.addAll(values, animations_);
onChanged();
} else {
animationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public Builder clearAnimations() {
if (animationsBuilder_ == null) {
animations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
animationsBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public Builder removeAnimations(int index) {
if (animationsBuilder_ == null) {
ensureAnimationsIsMutable();
animations_.remove(index);
onChanged();
} else {
animationsBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder getAnimationsBuilder(
int index) {
return getAnimationsFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder getAnimationsOrBuilder(
int index) {
if (animationsBuilder_ == null) {
return animations_.get(index); } else {
return animationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder>
getAnimationsOrBuilderList() {
if (animationsBuilder_ != null) {
return animationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(animations_);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder addAnimationsBuilder() {
return getAnimationsFieldBuilder().addBuilder(
com.laex.cg2d.model.ScreenModel.CGEntityAnimation.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder addAnimationsBuilder(
int index) {
return getAnimationsFieldBuilder().addBuilder(
index, com.laex.cg2d.model.ScreenModel.CGEntityAnimation.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGEntityAnimation animations = 1;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder>
getAnimationsBuilderList() {
return getAnimationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGEntityAnimation, com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder, com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder>
getAnimationsFieldBuilder() {
if (animationsBuilder_ == null) {
animationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGEntityAnimation, com.laex.cg2d.model.ScreenModel.CGEntityAnimation.Builder, com.laex.cg2d.model.ScreenModel.CGEntityAnimationOrBuilder>(
animations_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
animations_ = null;
}
return animationsBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGEntity)
}
static {
defaultInstance = new CGEntity(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGEntity)
}
public interface CGBoundsOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional float x = 1;
/**
* <code>optional float x = 1;</code>
*/
boolean hasX();
/**
* <code>optional float x = 1;</code>
*/
float getX();
// optional float y = 2;
/**
* <code>optional float y = 2;</code>
*/
boolean hasY();
/**
* <code>optional float y = 2;</code>
*/
float getY();
// optional float width = 3;
/**
* <code>optional float width = 3;</code>
*/
boolean hasWidth();
/**
* <code>optional float width = 3;</code>
*/
float getWidth();
// optional float height = 4;
/**
* <code>optional float height = 4;</code>
*/
boolean hasHeight();
/**
* <code>optional float height = 4;</code>
*/
float getHeight();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGBounds}
*/
public static final class CGBounds extends
com.google.protobuf.GeneratedMessage
implements CGBoundsOrBuilder {
// Use CGBounds.newBuilder() to construct.
private CGBounds(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGBounds(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGBounds defaultInstance;
public static CGBounds getDefaultInstance() {
return defaultInstance;
}
public CGBounds getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGBounds(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 13: {
bitField0_ |= 0x00000001;
x_ = input.readFloat();
break;
}
case 21: {
bitField0_ |= 0x00000002;
y_ = input.readFloat();
break;
}
case 29: {
bitField0_ |= 0x00000004;
width_ = input.readFloat();
break;
}
case 37: {
bitField0_ |= 0x00000008;
height_ = input.readFloat();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBounds_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBounds_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGBounds.class, com.laex.cg2d.model.ScreenModel.CGBounds.Builder.class);
}
public static com.google.protobuf.Parser<CGBounds> PARSER =
new com.google.protobuf.AbstractParser<CGBounds>() {
public CGBounds parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGBounds(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGBounds> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional float x = 1;
public static final int X_FIELD_NUMBER = 1;
private float x_;
/**
* <code>optional float x = 1;</code>
*/
public boolean hasX() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional float x = 1;</code>
*/
public float getX() {
return x_;
}
// optional float y = 2;
public static final int Y_FIELD_NUMBER = 2;
private float y_;
/**
* <code>optional float y = 2;</code>
*/
public boolean hasY() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float y = 2;</code>
*/
public float getY() {
return y_;
}
// optional float width = 3;
public static final int WIDTH_FIELD_NUMBER = 3;
private float width_;
/**
* <code>optional float width = 3;</code>
*/
public boolean hasWidth() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float width = 3;</code>
*/
public float getWidth() {
return width_;
}
// optional float height = 4;
public static final int HEIGHT_FIELD_NUMBER = 4;
private float height_;
/**
* <code>optional float height = 4;</code>
*/
public boolean hasHeight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float height = 4;</code>
*/
public float getHeight() {
return height_;
}
private void initFields() {
x_ = 0F;
y_ = 0F;
width_ = 0F;
height_ = 0F;
}
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.writeFloat(1, x_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, y_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, width_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFloat(4, height_);
}
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_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, width_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, height_);
}
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 com.laex.cg2d.model.ScreenModel.CGBounds parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGBounds parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGBounds parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGBounds parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGBounds parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGBounds parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGBounds parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGBounds parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGBounds parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGBounds parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGBounds prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGBounds}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBounds_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBounds_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGBounds.class, com.laex.cg2d.model.ScreenModel.CGBounds.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGBounds.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
x_ = 0F;
bitField0_ = (bitField0_ & ~0x00000001);
y_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
width_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
height_ = 0F;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBounds_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGBounds getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGBounds build() {
com.laex.cg2d.model.ScreenModel.CGBounds result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGBounds buildPartial() {
com.laex.cg2d.model.ScreenModel.CGBounds result = new com.laex.cg2d.model.ScreenModel.CGBounds(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_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.width_ = width_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.height_ = height_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGBounds) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGBounds)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGBounds other) {
if (other == com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance()) return this;
if (other.hasX()) {
setX(other.getX());
}
if (other.hasY()) {
setY(other.getY());
}
if (other.hasWidth()) {
setWidth(other.getWidth());
}
if (other.hasHeight()) {
setHeight(other.getHeight());
}
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.laex.cg2d.model.ScreenModel.CGBounds parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGBounds) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional float x = 1;
private float x_ ;
/**
* <code>optional float x = 1;</code>
*/
public boolean hasX() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional float x = 1;</code>
*/
public float getX() {
return x_;
}
/**
* <code>optional float x = 1;</code>
*/
public Builder setX(float value) {
bitField0_ |= 0x00000001;
x_ = value;
onChanged();
return this;
}
/**
* <code>optional float x = 1;</code>
*/
public Builder clearX() {
bitField0_ = (bitField0_ & ~0x00000001);
x_ = 0F;
onChanged();
return this;
}
// optional float y = 2;
private float y_ ;
/**
* <code>optional float y = 2;</code>
*/
public boolean hasY() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float y = 2;</code>
*/
public float getY() {
return y_;
}
/**
* <code>optional float y = 2;</code>
*/
public Builder setY(float value) {
bitField0_ |= 0x00000002;
y_ = value;
onChanged();
return this;
}
/**
* <code>optional float y = 2;</code>
*/
public Builder clearY() {
bitField0_ = (bitField0_ & ~0x00000002);
y_ = 0F;
onChanged();
return this;
}
// optional float width = 3;
private float width_ ;
/**
* <code>optional float width = 3;</code>
*/
public boolean hasWidth() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float width = 3;</code>
*/
public float getWidth() {
return width_;
}
/**
* <code>optional float width = 3;</code>
*/
public Builder setWidth(float value) {
bitField0_ |= 0x00000004;
width_ = value;
onChanged();
return this;
}
/**
* <code>optional float width = 3;</code>
*/
public Builder clearWidth() {
bitField0_ = (bitField0_ & ~0x00000004);
width_ = 0F;
onChanged();
return this;
}
// optional float height = 4;
private float height_ ;
/**
* <code>optional float height = 4;</code>
*/
public boolean hasHeight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float height = 4;</code>
*/
public float getHeight() {
return height_;
}
/**
* <code>optional float height = 4;</code>
*/
public Builder setHeight(float value) {
bitField0_ |= 0x00000008;
height_ = value;
onChanged();
return this;
}
/**
* <code>optional float height = 4;</code>
*/
public Builder clearHeight() {
bitField0_ = (bitField0_ & ~0x00000008);
height_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGBounds)
}
static {
defaultInstance = new CGBounds(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGBounds)
}
public interface CGVector2OrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required float x = 1;
/**
* <code>required float x = 1;</code>
*/
boolean hasX();
/**
* <code>required float x = 1;</code>
*/
float getX();
// required float y = 2;
/**
* <code>required float y = 2;</code>
*/
boolean hasY();
/**
* <code>required float y = 2;</code>
*/
float getY();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGVector2}
*/
public static final class CGVector2 extends
com.google.protobuf.GeneratedMessage
implements CGVector2OrBuilder {
// Use CGVector2.newBuilder() to construct.
private CGVector2(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGVector2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGVector2 defaultInstance;
public static CGVector2 getDefaultInstance() {
return defaultInstance;
}
public CGVector2 getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGVector2(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 13: {
bitField0_ |= 0x00000001;
x_ = input.readFloat();
break;
}
case 21: {
bitField0_ |= 0x00000002;
y_ = input.readFloat();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGVector2_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGVector2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGVector2.class, com.laex.cg2d.model.ScreenModel.CGVector2.Builder.class);
}
public static com.google.protobuf.Parser<CGVector2> PARSER =
new com.google.protobuf.AbstractParser<CGVector2>() {
public CGVector2 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGVector2(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGVector2> getParserForType() {
return PARSER;
}
private int bitField0_;
// required float x = 1;
public static final int X_FIELD_NUMBER = 1;
private float x_;
/**
* <code>required float x = 1;</code>
*/
public boolean hasX() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required float x = 1;</code>
*/
public float getX() {
return x_;
}
// required float y = 2;
public static final int Y_FIELD_NUMBER = 2;
private float y_;
/**
* <code>required float y = 2;</code>
*/
public boolean hasY() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required float y = 2;</code>
*/
public float getY() {
return y_;
}
private void initFields() {
x_ = 0F;
y_ = 0F;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasX()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasY()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeFloat(1, x_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, y_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(1, x_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, y_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGVector2 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGVector2 prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGVector2}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGVector2_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGVector2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGVector2.class, com.laex.cg2d.model.ScreenModel.CGVector2.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGVector2.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
x_ = 0F;
bitField0_ = (bitField0_ & ~0x00000001);
y_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGVector2_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGVector2 getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGVector2 build() {
com.laex.cg2d.model.ScreenModel.CGVector2 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGVector2 buildPartial() {
com.laex.cg2d.model.ScreenModel.CGVector2 result = new com.laex.cg2d.model.ScreenModel.CGVector2(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 com.laex.cg2d.model.ScreenModel.CGVector2) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGVector2)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGVector2 other) {
if (other == com.laex.cg2d.model.ScreenModel.CGVector2.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.laex.cg2d.model.ScreenModel.CGVector2 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGVector2) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required float x = 1;
private float x_ ;
/**
* <code>required float x = 1;</code>
*/
public boolean hasX() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required float x = 1;</code>
*/
public float getX() {
return x_;
}
/**
* <code>required float x = 1;</code>
*/
public Builder setX(float value) {
bitField0_ |= 0x00000001;
x_ = value;
onChanged();
return this;
}
/**
* <code>required float x = 1;</code>
*/
public Builder clearX() {
bitField0_ = (bitField0_ & ~0x00000001);
x_ = 0F;
onChanged();
return this;
}
// required float y = 2;
private float y_ ;
/**
* <code>required float y = 2;</code>
*/
public boolean hasY() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required float y = 2;</code>
*/
public float getY() {
return y_;
}
/**
* <code>required float y = 2;</code>
*/
public Builder setY(float value) {
bitField0_ |= 0x00000002;
y_ = value;
onChanged();
return this;
}
/**
* <code>required float y = 2;</code>
*/
public Builder clearY() {
bitField0_ = (bitField0_ & ~0x00000002);
y_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGVector2)
}
static {
defaultInstance = new CGVector2(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGVector2)
}
public interface CGColorOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 r = 1;
/**
* <code>required int32 r = 1;</code>
*/
boolean hasR();
/**
* <code>required int32 r = 1;</code>
*/
int getR();
// required int32 g = 2;
/**
* <code>required int32 g = 2;</code>
*/
boolean hasG();
/**
* <code>required int32 g = 2;</code>
*/
int getG();
// required int32 b = 3;
/**
* <code>required int32 b = 3;</code>
*/
boolean hasB();
/**
* <code>required int32 b = 3;</code>
*/
int getB();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGColor}
*/
public static final class CGColor extends
com.google.protobuf.GeneratedMessage
implements CGColorOrBuilder {
// Use CGColor.newBuilder() to construct.
private CGColor(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGColor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGColor defaultInstance;
public static CGColor getDefaultInstance() {
return defaultInstance;
}
public CGColor getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGColor(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
r_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
g_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
b_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGColor_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGColor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGColor.class, com.laex.cg2d.model.ScreenModel.CGColor.Builder.class);
}
public static com.google.protobuf.Parser<CGColor> PARSER =
new com.google.protobuf.AbstractParser<CGColor>() {
public CGColor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGColor(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGColor> getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 r = 1;
public static final int R_FIELD_NUMBER = 1;
private int r_;
/**
* <code>required int32 r = 1;</code>
*/
public boolean hasR() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required int32 r = 1;</code>
*/
public int getR() {
return r_;
}
// required int32 g = 2;
public static final int G_FIELD_NUMBER = 2;
private int g_;
/**
* <code>required int32 g = 2;</code>
*/
public boolean hasG() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required int32 g = 2;</code>
*/
public int getG() {
return g_;
}
// required int32 b = 3;
public static final int B_FIELD_NUMBER = 3;
private int b_;
/**
* <code>required int32 b = 3;</code>
*/
public boolean hasB() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>required int32 b = 3;</code>
*/
public int getB() {
return b_;
}
private void initFields() {
r_ = 0;
g_ = 0;
b_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasR()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasG()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasB()) {
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.writeInt32(1, r_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, g_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, b_);
}
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, r_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, g_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, b_);
}
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 com.laex.cg2d.model.ScreenModel.CGColor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGColor parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGColor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGColor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGColor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGColor parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGColor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGColor parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGColor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGColor parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGColor prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGColor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGColorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGColor_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGColor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGColor.class, com.laex.cg2d.model.ScreenModel.CGColor.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGColor.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
r_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
g_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
b_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGColor_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGColor getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGColor.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGColor build() {
com.laex.cg2d.model.ScreenModel.CGColor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGColor buildPartial() {
com.laex.cg2d.model.ScreenModel.CGColor result = new com.laex.cg2d.model.ScreenModel.CGColor(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.r_ = r_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.g_ = g_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.b_ = b_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGColor) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGColor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGColor other) {
if (other == com.laex.cg2d.model.ScreenModel.CGColor.getDefaultInstance()) return this;
if (other.hasR()) {
setR(other.getR());
}
if (other.hasG()) {
setG(other.getG());
}
if (other.hasB()) {
setB(other.getB());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasR()) {
return false;
}
if (!hasG()) {
return false;
}
if (!hasB()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGColor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGColor) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 r = 1;
private int r_ ;
/**
* <code>required int32 r = 1;</code>
*/
public boolean hasR() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required int32 r = 1;</code>
*/
public int getR() {
return r_;
}
/**
* <code>required int32 r = 1;</code>
*/
public Builder setR(int value) {
bitField0_ |= 0x00000001;
r_ = value;
onChanged();
return this;
}
/**
* <code>required int32 r = 1;</code>
*/
public Builder clearR() {
bitField0_ = (bitField0_ & ~0x00000001);
r_ = 0;
onChanged();
return this;
}
// required int32 g = 2;
private int g_ ;
/**
* <code>required int32 g = 2;</code>
*/
public boolean hasG() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required int32 g = 2;</code>
*/
public int getG() {
return g_;
}
/**
* <code>required int32 g = 2;</code>
*/
public Builder setG(int value) {
bitField0_ |= 0x00000002;
g_ = value;
onChanged();
return this;
}
/**
* <code>required int32 g = 2;</code>
*/
public Builder clearG() {
bitField0_ = (bitField0_ & ~0x00000002);
g_ = 0;
onChanged();
return this;
}
// required int32 b = 3;
private int b_ ;
/**
* <code>required int32 b = 3;</code>
*/
public boolean hasB() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>required int32 b = 3;</code>
*/
public int getB() {
return b_;
}
/**
* <code>required int32 b = 3;</code>
*/
public Builder setB(int value) {
bitField0_ |= 0x00000004;
b_ = value;
onChanged();
return this;
}
/**
* <code>required int32 b = 3;</code>
*/
public Builder clearB() {
bitField0_ = (bitField0_ & ~0x00000004);
b_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGColor)
}
static {
defaultInstance = new CGColor(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGColor)
}
public interface CGBodyDefOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool active = 1;
/**
* <code>optional bool active = 1;</code>
*/
boolean hasActive();
/**
* <code>optional bool active = 1;</code>
*/
boolean getActive();
// optional bool allowSleep = 2;
/**
* <code>optional bool allowSleep = 2;</code>
*/
boolean hasAllowSleep();
/**
* <code>optional bool allowSleep = 2;</code>
*/
boolean getAllowSleep();
// optional float angle = 3;
/**
* <code>optional float angle = 3;</code>
*/
boolean hasAngle();
/**
* <code>optional float angle = 3;</code>
*/
float getAngle();
// optional float angularDamping = 4;
/**
* <code>optional float angularDamping = 4;</code>
*/
boolean hasAngularDamping();
/**
* <code>optional float angularDamping = 4;</code>
*/
float getAngularDamping();
// optional float angularVelocity = 5;
/**
* <code>optional float angularVelocity = 5;</code>
*/
boolean hasAngularVelocity();
/**
* <code>optional float angularVelocity = 5;</code>
*/
float getAngularVelocity();
// optional bool awake = 6;
/**
* <code>optional bool awake = 6;</code>
*/
boolean hasAwake();
/**
* <code>optional bool awake = 6;</code>
*/
boolean getAwake();
// optional bool bullet = 7;
/**
* <code>optional bool bullet = 7;</code>
*/
boolean hasBullet();
/**
* <code>optional bool bullet = 7;</code>
*/
boolean getBullet();
// optional bool fixedRotation = 8;
/**
* <code>optional bool fixedRotation = 8;</code>
*/
boolean hasFixedRotation();
/**
* <code>optional bool fixedRotation = 8;</code>
*/
boolean getFixedRotation();
// optional float intertialScale = 9;
/**
* <code>optional float intertialScale = 9;</code>
*/
boolean hasIntertialScale();
/**
* <code>optional float intertialScale = 9;</code>
*/
float getIntertialScale();
// optional float linearDamping = 10;
/**
* <code>optional float linearDamping = 10;</code>
*/
boolean hasLinearDamping();
/**
* <code>optional float linearDamping = 10;</code>
*/
float getLinearDamping();
// optional float gravityScale = 11;
/**
* <code>optional float gravityScale = 11;</code>
*/
boolean hasGravityScale();
/**
* <code>optional float gravityScale = 11;</code>
*/
float getGravityScale();
// optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
boolean hasLinearVelocity();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2 getLinearVelocity();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getLinearVelocityOrBuilder();
// optional .com.laex.cg2d.model.CGBodyType type = 13;
/**
* <code>optional .com.laex.cg2d.model.CGBodyType type = 13;</code>
*/
boolean hasType();
/**
* <code>optional .com.laex.cg2d.model.CGBodyType type = 13;</code>
*/
com.laex.cg2d.model.ScreenModel.CGBodyType getType();
// optional .com.laex.cg2d.model.CGVector2 position = 14;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
boolean hasPosition();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2 getPosition();
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getPositionOrBuilder();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGBodyDef}
*/
public static final class CGBodyDef extends
com.google.protobuf.GeneratedMessage
implements CGBodyDefOrBuilder {
// Use CGBodyDef.newBuilder() to construct.
private CGBodyDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGBodyDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGBodyDef defaultInstance;
public static CGBodyDef getDefaultInstance() {
return defaultInstance;
}
public CGBodyDef getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGBodyDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
active_ = input.readBool();
break;
}
case 16: {
bitField0_ |= 0x00000002;
allowSleep_ = input.readBool();
break;
}
case 29: {
bitField0_ |= 0x00000004;
angle_ = input.readFloat();
break;
}
case 37: {
bitField0_ |= 0x00000008;
angularDamping_ = input.readFloat();
break;
}
case 45: {
bitField0_ |= 0x00000010;
angularVelocity_ = input.readFloat();
break;
}
case 48: {
bitField0_ |= 0x00000020;
awake_ = input.readBool();
break;
}
case 56: {
bitField0_ |= 0x00000040;
bullet_ = input.readBool();
break;
}
case 64: {
bitField0_ |= 0x00000080;
fixedRotation_ = input.readBool();
break;
}
case 77: {
bitField0_ |= 0x00000100;
intertialScale_ = input.readFloat();
break;
}
case 85: {
bitField0_ |= 0x00000200;
linearDamping_ = input.readFloat();
break;
}
case 93: {
bitField0_ |= 0x00000400;
gravityScale_ = input.readFloat();
break;
}
case 98: {
com.laex.cg2d.model.ScreenModel.CGVector2.Builder subBuilder = null;
if (((bitField0_ & 0x00000800) == 0x00000800)) {
subBuilder = linearVelocity_.toBuilder();
}
linearVelocity_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGVector2.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(linearVelocity_);
linearVelocity_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000800;
break;
}
case 104: {
int rawValue = input.readEnum();
com.laex.cg2d.model.ScreenModel.CGBodyType value = com.laex.cg2d.model.ScreenModel.CGBodyType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(13, rawValue);
} else {
bitField0_ |= 0x00001000;
type_ = value;
}
break;
}
case 114: {
com.laex.cg2d.model.ScreenModel.CGVector2.Builder subBuilder = null;
if (((bitField0_ & 0x00002000) == 0x00002000)) {
subBuilder = position_.toBuilder();
}
position_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGVector2.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(position_);
position_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00002000;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBodyDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBodyDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGBodyDef.class, com.laex.cg2d.model.ScreenModel.CGBodyDef.Builder.class);
}
public static com.google.protobuf.Parser<CGBodyDef> PARSER =
new com.google.protobuf.AbstractParser<CGBodyDef>() {
public CGBodyDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGBodyDef(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGBodyDef> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool active = 1;
public static final int ACTIVE_FIELD_NUMBER = 1;
private boolean active_;
/**
* <code>optional bool active = 1;</code>
*/
public boolean hasActive() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool active = 1;</code>
*/
public boolean getActive() {
return active_;
}
// optional bool allowSleep = 2;
public static final int ALLOWSLEEP_FIELD_NUMBER = 2;
private boolean allowSleep_;
/**
* <code>optional bool allowSleep = 2;</code>
*/
public boolean hasAllowSleep() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool allowSleep = 2;</code>
*/
public boolean getAllowSleep() {
return allowSleep_;
}
// optional float angle = 3;
public static final int ANGLE_FIELD_NUMBER = 3;
private float angle_;
/**
* <code>optional float angle = 3;</code>
*/
public boolean hasAngle() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float angle = 3;</code>
*/
public float getAngle() {
return angle_;
}
// optional float angularDamping = 4;
public static final int ANGULARDAMPING_FIELD_NUMBER = 4;
private float angularDamping_;
/**
* <code>optional float angularDamping = 4;</code>
*/
public boolean hasAngularDamping() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float angularDamping = 4;</code>
*/
public float getAngularDamping() {
return angularDamping_;
}
// optional float angularVelocity = 5;
public static final int ANGULARVELOCITY_FIELD_NUMBER = 5;
private float angularVelocity_;
/**
* <code>optional float angularVelocity = 5;</code>
*/
public boolean hasAngularVelocity() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float angularVelocity = 5;</code>
*/
public float getAngularVelocity() {
return angularVelocity_;
}
// optional bool awake = 6;
public static final int AWAKE_FIELD_NUMBER = 6;
private boolean awake_;
/**
* <code>optional bool awake = 6;</code>
*/
public boolean hasAwake() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool awake = 6;</code>
*/
public boolean getAwake() {
return awake_;
}
// optional bool bullet = 7;
public static final int BULLET_FIELD_NUMBER = 7;
private boolean bullet_;
/**
* <code>optional bool bullet = 7;</code>
*/
public boolean hasBullet() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional bool bullet = 7;</code>
*/
public boolean getBullet() {
return bullet_;
}
// optional bool fixedRotation = 8;
public static final int FIXEDROTATION_FIELD_NUMBER = 8;
private boolean fixedRotation_;
/**
* <code>optional bool fixedRotation = 8;</code>
*/
public boolean hasFixedRotation() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional bool fixedRotation = 8;</code>
*/
public boolean getFixedRotation() {
return fixedRotation_;
}
// optional float intertialScale = 9;
public static final int INTERTIALSCALE_FIELD_NUMBER = 9;
private float intertialScale_;
/**
* <code>optional float intertialScale = 9;</code>
*/
public boolean hasIntertialScale() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional float intertialScale = 9;</code>
*/
public float getIntertialScale() {
return intertialScale_;
}
// optional float linearDamping = 10;
public static final int LINEARDAMPING_FIELD_NUMBER = 10;
private float linearDamping_;
/**
* <code>optional float linearDamping = 10;</code>
*/
public boolean hasLinearDamping() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional float linearDamping = 10;</code>
*/
public float getLinearDamping() {
return linearDamping_;
}
// optional float gravityScale = 11;
public static final int GRAVITYSCALE_FIELD_NUMBER = 11;
private float gravityScale_;
/**
* <code>optional float gravityScale = 11;</code>
*/
public boolean hasGravityScale() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional float gravityScale = 11;</code>
*/
public float getGravityScale() {
return gravityScale_;
}
// optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;
public static final int LINEARVELOCITY_FIELD_NUMBER = 12;
private com.laex.cg2d.model.ScreenModel.CGVector2 linearVelocity_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public boolean hasLinearVelocity() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getLinearVelocity() {
return linearVelocity_;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getLinearVelocityOrBuilder() {
return linearVelocity_;
}
// optional .com.laex.cg2d.model.CGBodyType type = 13;
public static final int TYPE_FIELD_NUMBER = 13;
private com.laex.cg2d.model.ScreenModel.CGBodyType type_;
/**
* <code>optional .com.laex.cg2d.model.CGBodyType type = 13;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyType type = 13;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBodyType getType() {
return type_;
}
// optional .com.laex.cg2d.model.CGVector2 position = 14;
public static final int POSITION_FIELD_NUMBER = 14;
private com.laex.cg2d.model.ScreenModel.CGVector2 position_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public boolean hasPosition() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getPosition() {
return position_;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getPositionOrBuilder() {
return position_;
}
private void initFields() {
active_ = false;
allowSleep_ = false;
angle_ = 0F;
angularDamping_ = 0F;
angularVelocity_ = 0F;
awake_ = false;
bullet_ = false;
fixedRotation_ = false;
intertialScale_ = 0F;
linearDamping_ = 0F;
gravityScale_ = 0F;
linearVelocity_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
type_ = com.laex.cg2d.model.ScreenModel.CGBodyType.STATIC;
position_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasLinearVelocity()) {
if (!getLinearVelocity().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasPosition()) {
if (!getPosition().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.writeBool(1, active_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, allowSleep_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, angle_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFloat(4, angularDamping_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFloat(5, angularVelocity_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, awake_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, bullet_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(8, fixedRotation_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeFloat(9, intertialScale_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeFloat(10, linearDamping_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeFloat(11, gravityScale_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeMessage(12, linearVelocity_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeEnum(13, type_.getNumber());
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeMessage(14, position_);
}
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
.computeBoolSize(1, active_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, allowSleep_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, angle_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, angularDamping_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, angularVelocity_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, awake_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, bullet_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, fixedRotation_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(9, intertialScale_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(10, linearDamping_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(11, gravityScale_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, linearVelocity_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(13, type_.getNumber());
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, position_);
}
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 com.laex.cg2d.model.ScreenModel.CGBodyDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGBodyDef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGBodyDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGBodyDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGBodyDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGBodyDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGBodyDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGBodyDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGBodyDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGBodyDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGBodyDef prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGBodyDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGBodyDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBodyDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBodyDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGBodyDef.class, com.laex.cg2d.model.ScreenModel.CGBodyDef.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGBodyDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getLinearVelocityFieldBuilder();
getPositionFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
active_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
allowSleep_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
angle_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
angularDamping_ = 0F;
bitField0_ = (bitField0_ & ~0x00000008);
angularVelocity_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
awake_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
bullet_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
fixedRotation_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
intertialScale_ = 0F;
bitField0_ = (bitField0_ & ~0x00000100);
linearDamping_ = 0F;
bitField0_ = (bitField0_ & ~0x00000200);
gravityScale_ = 0F;
bitField0_ = (bitField0_ & ~0x00000400);
if (linearVelocityBuilder_ == null) {
linearVelocity_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
} else {
linearVelocityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
type_ = com.laex.cg2d.model.ScreenModel.CGBodyType.STATIC;
bitField0_ = (bitField0_ & ~0x00001000);
if (positionBuilder_ == null) {
position_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
} else {
positionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGBodyDef_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGBodyDef getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGBodyDef.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGBodyDef build() {
com.laex.cg2d.model.ScreenModel.CGBodyDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGBodyDef buildPartial() {
com.laex.cg2d.model.ScreenModel.CGBodyDef result = new com.laex.cg2d.model.ScreenModel.CGBodyDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.active_ = active_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.allowSleep_ = allowSleep_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.angle_ = angle_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.angularDamping_ = angularDamping_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.angularVelocity_ = angularVelocity_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.awake_ = awake_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.bullet_ = bullet_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.fixedRotation_ = fixedRotation_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.intertialScale_ = intertialScale_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.linearDamping_ = linearDamping_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.gravityScale_ = gravityScale_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
if (linearVelocityBuilder_ == null) {
result.linearVelocity_ = linearVelocity_;
} else {
result.linearVelocity_ = linearVelocityBuilder_.build();
}
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
if (positionBuilder_ == null) {
result.position_ = position_;
} else {
result.position_ = positionBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGBodyDef) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGBodyDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGBodyDef other) {
if (other == com.laex.cg2d.model.ScreenModel.CGBodyDef.getDefaultInstance()) return this;
if (other.hasActive()) {
setActive(other.getActive());
}
if (other.hasAllowSleep()) {
setAllowSleep(other.getAllowSleep());
}
if (other.hasAngle()) {
setAngle(other.getAngle());
}
if (other.hasAngularDamping()) {
setAngularDamping(other.getAngularDamping());
}
if (other.hasAngularVelocity()) {
setAngularVelocity(other.getAngularVelocity());
}
if (other.hasAwake()) {
setAwake(other.getAwake());
}
if (other.hasBullet()) {
setBullet(other.getBullet());
}
if (other.hasFixedRotation()) {
setFixedRotation(other.getFixedRotation());
}
if (other.hasIntertialScale()) {
setIntertialScale(other.getIntertialScale());
}
if (other.hasLinearDamping()) {
setLinearDamping(other.getLinearDamping());
}
if (other.hasGravityScale()) {
setGravityScale(other.getGravityScale());
}
if (other.hasLinearVelocity()) {
mergeLinearVelocity(other.getLinearVelocity());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasPosition()) {
mergePosition(other.getPosition());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasLinearVelocity()) {
if (!getLinearVelocity().isInitialized()) {
return false;
}
}
if (hasPosition()) {
if (!getPosition().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGBodyDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGBodyDef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool active = 1;
private boolean active_ ;
/**
* <code>optional bool active = 1;</code>
*/
public boolean hasActive() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool active = 1;</code>
*/
public boolean getActive() {
return active_;
}
/**
* <code>optional bool active = 1;</code>
*/
public Builder setActive(boolean value) {
bitField0_ |= 0x00000001;
active_ = value;
onChanged();
return this;
}
/**
* <code>optional bool active = 1;</code>
*/
public Builder clearActive() {
bitField0_ = (bitField0_ & ~0x00000001);
active_ = false;
onChanged();
return this;
}
// optional bool allowSleep = 2;
private boolean allowSleep_ ;
/**
* <code>optional bool allowSleep = 2;</code>
*/
public boolean hasAllowSleep() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool allowSleep = 2;</code>
*/
public boolean getAllowSleep() {
return allowSleep_;
}
/**
* <code>optional bool allowSleep = 2;</code>
*/
public Builder setAllowSleep(boolean value) {
bitField0_ |= 0x00000002;
allowSleep_ = value;
onChanged();
return this;
}
/**
* <code>optional bool allowSleep = 2;</code>
*/
public Builder clearAllowSleep() {
bitField0_ = (bitField0_ & ~0x00000002);
allowSleep_ = false;
onChanged();
return this;
}
// optional float angle = 3;
private float angle_ ;
/**
* <code>optional float angle = 3;</code>
*/
public boolean hasAngle() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float angle = 3;</code>
*/
public float getAngle() {
return angle_;
}
/**
* <code>optional float angle = 3;</code>
*/
public Builder setAngle(float value) {
bitField0_ |= 0x00000004;
angle_ = value;
onChanged();
return this;
}
/**
* <code>optional float angle = 3;</code>
*/
public Builder clearAngle() {
bitField0_ = (bitField0_ & ~0x00000004);
angle_ = 0F;
onChanged();
return this;
}
// optional float angularDamping = 4;
private float angularDamping_ ;
/**
* <code>optional float angularDamping = 4;</code>
*/
public boolean hasAngularDamping() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float angularDamping = 4;</code>
*/
public float getAngularDamping() {
return angularDamping_;
}
/**
* <code>optional float angularDamping = 4;</code>
*/
public Builder setAngularDamping(float value) {
bitField0_ |= 0x00000008;
angularDamping_ = value;
onChanged();
return this;
}
/**
* <code>optional float angularDamping = 4;</code>
*/
public Builder clearAngularDamping() {
bitField0_ = (bitField0_ & ~0x00000008);
angularDamping_ = 0F;
onChanged();
return this;
}
// optional float angularVelocity = 5;
private float angularVelocity_ ;
/**
* <code>optional float angularVelocity = 5;</code>
*/
public boolean hasAngularVelocity() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float angularVelocity = 5;</code>
*/
public float getAngularVelocity() {
return angularVelocity_;
}
/**
* <code>optional float angularVelocity = 5;</code>
*/
public Builder setAngularVelocity(float value) {
bitField0_ |= 0x00000010;
angularVelocity_ = value;
onChanged();
return this;
}
/**
* <code>optional float angularVelocity = 5;</code>
*/
public Builder clearAngularVelocity() {
bitField0_ = (bitField0_ & ~0x00000010);
angularVelocity_ = 0F;
onChanged();
return this;
}
// optional bool awake = 6;
private boolean awake_ ;
/**
* <code>optional bool awake = 6;</code>
*/
public boolean hasAwake() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool awake = 6;</code>
*/
public boolean getAwake() {
return awake_;
}
/**
* <code>optional bool awake = 6;</code>
*/
public Builder setAwake(boolean value) {
bitField0_ |= 0x00000020;
awake_ = value;
onChanged();
return this;
}
/**
* <code>optional bool awake = 6;</code>
*/
public Builder clearAwake() {
bitField0_ = (bitField0_ & ~0x00000020);
awake_ = false;
onChanged();
return this;
}
// optional bool bullet = 7;
private boolean bullet_ ;
/**
* <code>optional bool bullet = 7;</code>
*/
public boolean hasBullet() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional bool bullet = 7;</code>
*/
public boolean getBullet() {
return bullet_;
}
/**
* <code>optional bool bullet = 7;</code>
*/
public Builder setBullet(boolean value) {
bitField0_ |= 0x00000040;
bullet_ = value;
onChanged();
return this;
}
/**
* <code>optional bool bullet = 7;</code>
*/
public Builder clearBullet() {
bitField0_ = (bitField0_ & ~0x00000040);
bullet_ = false;
onChanged();
return this;
}
// optional bool fixedRotation = 8;
private boolean fixedRotation_ ;
/**
* <code>optional bool fixedRotation = 8;</code>
*/
public boolean hasFixedRotation() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional bool fixedRotation = 8;</code>
*/
public boolean getFixedRotation() {
return fixedRotation_;
}
/**
* <code>optional bool fixedRotation = 8;</code>
*/
public Builder setFixedRotation(boolean value) {
bitField0_ |= 0x00000080;
fixedRotation_ = value;
onChanged();
return this;
}
/**
* <code>optional bool fixedRotation = 8;</code>
*/
public Builder clearFixedRotation() {
bitField0_ = (bitField0_ & ~0x00000080);
fixedRotation_ = false;
onChanged();
return this;
}
// optional float intertialScale = 9;
private float intertialScale_ ;
/**
* <code>optional float intertialScale = 9;</code>
*/
public boolean hasIntertialScale() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional float intertialScale = 9;</code>
*/
public float getIntertialScale() {
return intertialScale_;
}
/**
* <code>optional float intertialScale = 9;</code>
*/
public Builder setIntertialScale(float value) {
bitField0_ |= 0x00000100;
intertialScale_ = value;
onChanged();
return this;
}
/**
* <code>optional float intertialScale = 9;</code>
*/
public Builder clearIntertialScale() {
bitField0_ = (bitField0_ & ~0x00000100);
intertialScale_ = 0F;
onChanged();
return this;
}
// optional float linearDamping = 10;
private float linearDamping_ ;
/**
* <code>optional float linearDamping = 10;</code>
*/
public boolean hasLinearDamping() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional float linearDamping = 10;</code>
*/
public float getLinearDamping() {
return linearDamping_;
}
/**
* <code>optional float linearDamping = 10;</code>
*/
public Builder setLinearDamping(float value) {
bitField0_ |= 0x00000200;
linearDamping_ = value;
onChanged();
return this;
}
/**
* <code>optional float linearDamping = 10;</code>
*/
public Builder clearLinearDamping() {
bitField0_ = (bitField0_ & ~0x00000200);
linearDamping_ = 0F;
onChanged();
return this;
}
// optional float gravityScale = 11;
private float gravityScale_ ;
/**
* <code>optional float gravityScale = 11;</code>
*/
public boolean hasGravityScale() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional float gravityScale = 11;</code>
*/
public float getGravityScale() {
return gravityScale_;
}
/**
* <code>optional float gravityScale = 11;</code>
*/
public Builder setGravityScale(float value) {
bitField0_ |= 0x00000400;
gravityScale_ = value;
onChanged();
return this;
}
/**
* <code>optional float gravityScale = 11;</code>
*/
public Builder clearGravityScale() {
bitField0_ = (bitField0_ & ~0x00000400);
gravityScale_ = 0F;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;
private com.laex.cg2d.model.ScreenModel.CGVector2 linearVelocity_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder> linearVelocityBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public boolean hasLinearVelocity() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getLinearVelocity() {
if (linearVelocityBuilder_ == null) {
return linearVelocity_;
} else {
return linearVelocityBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public Builder setLinearVelocity(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (linearVelocityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
linearVelocity_ = value;
onChanged();
} else {
linearVelocityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public Builder setLinearVelocity(
com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (linearVelocityBuilder_ == null) {
linearVelocity_ = builderForValue.build();
onChanged();
} else {
linearVelocityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public Builder mergeLinearVelocity(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (linearVelocityBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800) &&
linearVelocity_ != com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance()) {
linearVelocity_ =
com.laex.cg2d.model.ScreenModel.CGVector2.newBuilder(linearVelocity_).mergeFrom(value).buildPartial();
} else {
linearVelocity_ = value;
}
onChanged();
} else {
linearVelocityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public Builder clearLinearVelocity() {
if (linearVelocityBuilder_ == null) {
linearVelocity_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
onChanged();
} else {
linearVelocityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder getLinearVelocityBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getLinearVelocityFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getLinearVelocityOrBuilder() {
if (linearVelocityBuilder_ != null) {
return linearVelocityBuilder_.getMessageOrBuilder();
} else {
return linearVelocity_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 linearVelocity = 12;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getLinearVelocityFieldBuilder() {
if (linearVelocityBuilder_ == null) {
linearVelocityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>(
linearVelocity_,
getParentForChildren(),
isClean());
linearVelocity_ = null;
}
return linearVelocityBuilder_;
}
// optional .com.laex.cg2d.model.CGBodyType type = 13;
private com.laex.cg2d.model.ScreenModel.CGBodyType type_ = com.laex.cg2d.model.ScreenModel.CGBodyType.STATIC;
/**
* <code>optional .com.laex.cg2d.model.CGBodyType type = 13;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyType type = 13;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBodyType getType() {
return type_;
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyType type = 13;</code>
*/
public Builder setType(com.laex.cg2d.model.ScreenModel.CGBodyType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
type_ = value;
onChanged();
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyType type = 13;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00001000);
type_ = com.laex.cg2d.model.ScreenModel.CGBodyType.STATIC;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGVector2 position = 14;
private com.laex.cg2d.model.ScreenModel.CGVector2 position_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder> positionBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public boolean hasPosition() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2 getPosition() {
if (positionBuilder_ == null) {
return position_;
} else {
return positionBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public Builder setPosition(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (positionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
position_ = value;
onChanged();
} else {
positionBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public Builder setPosition(
com.laex.cg2d.model.ScreenModel.CGVector2.Builder builderForValue) {
if (positionBuilder_ == null) {
position_ = builderForValue.build();
onChanged();
} else {
positionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public Builder mergePosition(com.laex.cg2d.model.ScreenModel.CGVector2 value) {
if (positionBuilder_ == null) {
if (((bitField0_ & 0x00002000) == 0x00002000) &&
position_ != com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance()) {
position_ =
com.laex.cg2d.model.ScreenModel.CGVector2.newBuilder(position_).mergeFrom(value).buildPartial();
} else {
position_ = value;
}
onChanged();
} else {
positionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00002000;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public Builder clearPosition() {
if (positionBuilder_ == null) {
position_ = com.laex.cg2d.model.ScreenModel.CGVector2.getDefaultInstance();
onChanged();
} else {
positionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2.Builder getPositionBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getPositionFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder getPositionOrBuilder() {
if (positionBuilder_ != null) {
return positionBuilder_.getMessageOrBuilder();
} else {
return position_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGVector2 position = 14;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>
getPositionFieldBuilder() {
if (positionBuilder_ == null) {
positionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGVector2, com.laex.cg2d.model.ScreenModel.CGVector2.Builder, com.laex.cg2d.model.ScreenModel.CGVector2OrBuilder>(
position_,
getParentForChildren(),
isClean());
position_ = null;
}
return positionBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGBodyDef)
}
static {
defaultInstance = new CGBodyDef(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGBodyDef)
}
public interface CGFilterOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 categoryBits = 1;
/**
* <code>optional int32 categoryBits = 1;</code>
*/
boolean hasCategoryBits();
/**
* <code>optional int32 categoryBits = 1;</code>
*/
int getCategoryBits();
// optional int32 maskBits = 2;
/**
* <code>optional int32 maskBits = 2;</code>
*/
boolean hasMaskBits();
/**
* <code>optional int32 maskBits = 2;</code>
*/
int getMaskBits();
// optional int32 groupIndex = 3;
/**
* <code>optional int32 groupIndex = 3;</code>
*/
boolean hasGroupIndex();
/**
* <code>optional int32 groupIndex = 3;</code>
*/
int getGroupIndex();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGFilter}
*/
public static final class CGFilter extends
com.google.protobuf.GeneratedMessage
implements CGFilterOrBuilder {
// Use CGFilter.newBuilder() to construct.
private CGFilter(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGFilter(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGFilter defaultInstance;
public static CGFilter getDefaultInstance() {
return defaultInstance;
}
public CGFilter getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGFilter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
categoryBits_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
maskBits_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
groupIndex_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFilter_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGFilter.class, com.laex.cg2d.model.ScreenModel.CGFilter.Builder.class);
}
public static com.google.protobuf.Parser<CGFilter> PARSER =
new com.google.protobuf.AbstractParser<CGFilter>() {
public CGFilter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGFilter(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGFilter> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 categoryBits = 1;
public static final int CATEGORYBITS_FIELD_NUMBER = 1;
private int categoryBits_;
/**
* <code>optional int32 categoryBits = 1;</code>
*/
public boolean hasCategoryBits() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 categoryBits = 1;</code>
*/
public int getCategoryBits() {
return categoryBits_;
}
// optional int32 maskBits = 2;
public static final int MASKBITS_FIELD_NUMBER = 2;
private int maskBits_;
/**
* <code>optional int32 maskBits = 2;</code>
*/
public boolean hasMaskBits() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 maskBits = 2;</code>
*/
public int getMaskBits() {
return maskBits_;
}
// optional int32 groupIndex = 3;
public static final int GROUPINDEX_FIELD_NUMBER = 3;
private int groupIndex_;
/**
* <code>optional int32 groupIndex = 3;</code>
*/
public boolean hasGroupIndex() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 groupIndex = 3;</code>
*/
public int getGroupIndex() {
return groupIndex_;
}
private void initFields() {
categoryBits_ = 0;
maskBits_ = 0;
groupIndex_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, categoryBits_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, maskBits_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, groupIndex_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, categoryBits_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, maskBits_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, groupIndex_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGFilter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGFilter prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGFilter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGFilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFilter_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGFilter.class, com.laex.cg2d.model.ScreenModel.CGFilter.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGFilter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
categoryBits_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
maskBits_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
groupIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFilter_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGFilter getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGFilter.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGFilter build() {
com.laex.cg2d.model.ScreenModel.CGFilter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGFilter buildPartial() {
com.laex.cg2d.model.ScreenModel.CGFilter result = new com.laex.cg2d.model.ScreenModel.CGFilter(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 com.laex.cg2d.model.ScreenModel.CGFilter) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGFilter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGFilter other) {
if (other == com.laex.cg2d.model.ScreenModel.CGFilter.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.laex.cg2d.model.ScreenModel.CGFilter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGFilter) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 categoryBits = 1;
private int categoryBits_ ;
/**
* <code>optional int32 categoryBits = 1;</code>
*/
public boolean hasCategoryBits() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 categoryBits = 1;</code>
*/
public int getCategoryBits() {
return categoryBits_;
}
/**
* <code>optional int32 categoryBits = 1;</code>
*/
public Builder setCategoryBits(int value) {
bitField0_ |= 0x00000001;
categoryBits_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 categoryBits = 1;</code>
*/
public Builder clearCategoryBits() {
bitField0_ = (bitField0_ & ~0x00000001);
categoryBits_ = 0;
onChanged();
return this;
}
// optional int32 maskBits = 2;
private int maskBits_ ;
/**
* <code>optional int32 maskBits = 2;</code>
*/
public boolean hasMaskBits() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 maskBits = 2;</code>
*/
public int getMaskBits() {
return maskBits_;
}
/**
* <code>optional int32 maskBits = 2;</code>
*/
public Builder setMaskBits(int value) {
bitField0_ |= 0x00000002;
maskBits_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 maskBits = 2;</code>
*/
public Builder clearMaskBits() {
bitField0_ = (bitField0_ & ~0x00000002);
maskBits_ = 0;
onChanged();
return this;
}
// optional int32 groupIndex = 3;
private int groupIndex_ ;
/**
* <code>optional int32 groupIndex = 3;</code>
*/
public boolean hasGroupIndex() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 groupIndex = 3;</code>
*/
public int getGroupIndex() {
return groupIndex_;
}
/**
* <code>optional int32 groupIndex = 3;</code>
*/
public Builder setGroupIndex(int value) {
bitField0_ |= 0x00000004;
groupIndex_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 groupIndex = 3;</code>
*/
public Builder clearGroupIndex() {
bitField0_ = (bitField0_ & ~0x00000004);
groupIndex_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGFilter)
}
static {
defaultInstance = new CGFilter(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGFilter)
}
public interface CGFixtureDefOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional float density = 1;
/**
* <code>optional float density = 1;</code>
*/
boolean hasDensity();
/**
* <code>optional float density = 1;</code>
*/
float getDensity();
// optional float friction = 2;
/**
* <code>optional float friction = 2;</code>
*/
boolean hasFriction();
/**
* <code>optional float friction = 2;</code>
*/
float getFriction();
// optional float restitution = 3;
/**
* <code>optional float restitution = 3;</code>
*/
boolean hasRestitution();
/**
* <code>optional float restitution = 3;</code>
*/
float getRestitution();
// optional bool sensor = 4;
/**
* <code>optional bool sensor = 4;</code>
*/
boolean hasSensor();
/**
* <code>optional bool sensor = 4;</code>
*/
boolean getSensor();
// optional .com.laex.cg2d.model.CGFilter filter = 5;
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
boolean hasFilter();
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGFilter getFilter();
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGFilterOrBuilder getFilterOrBuilder();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGFixtureDef}
*/
public static final class CGFixtureDef extends
com.google.protobuf.GeneratedMessage
implements CGFixtureDefOrBuilder {
// Use CGFixtureDef.newBuilder() to construct.
private CGFixtureDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGFixtureDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGFixtureDef defaultInstance;
public static CGFixtureDef getDefaultInstance() {
return defaultInstance;
}
public CGFixtureDef getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGFixtureDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 13: {
bitField0_ |= 0x00000001;
density_ = input.readFloat();
break;
}
case 21: {
bitField0_ |= 0x00000002;
friction_ = input.readFloat();
break;
}
case 29: {
bitField0_ |= 0x00000004;
restitution_ = input.readFloat();
break;
}
case 32: {
bitField0_ |= 0x00000008;
sensor_ = input.readBool();
break;
}
case 42: {
com.laex.cg2d.model.ScreenModel.CGFilter.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = filter_.toBuilder();
}
filter_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGFilter.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(filter_);
filter_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFixtureDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFixtureDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGFixtureDef.class, com.laex.cg2d.model.ScreenModel.CGFixtureDef.Builder.class);
}
public static com.google.protobuf.Parser<CGFixtureDef> PARSER =
new com.google.protobuf.AbstractParser<CGFixtureDef>() {
public CGFixtureDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGFixtureDef(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGFixtureDef> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional float density = 1;
public static final int DENSITY_FIELD_NUMBER = 1;
private float density_;
/**
* <code>optional float density = 1;</code>
*/
public boolean hasDensity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional float density = 1;</code>
*/
public float getDensity() {
return density_;
}
// optional float friction = 2;
public static final int FRICTION_FIELD_NUMBER = 2;
private float friction_;
/**
* <code>optional float friction = 2;</code>
*/
public boolean hasFriction() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float friction = 2;</code>
*/
public float getFriction() {
return friction_;
}
// optional float restitution = 3;
public static final int RESTITUTION_FIELD_NUMBER = 3;
private float restitution_;
/**
* <code>optional float restitution = 3;</code>
*/
public boolean hasRestitution() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float restitution = 3;</code>
*/
public float getRestitution() {
return restitution_;
}
// optional bool sensor = 4;
public static final int SENSOR_FIELD_NUMBER = 4;
private boolean sensor_;
/**
* <code>optional bool sensor = 4;</code>
*/
public boolean hasSensor() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool sensor = 4;</code>
*/
public boolean getSensor() {
return sensor_;
}
// optional .com.laex.cg2d.model.CGFilter filter = 5;
public static final int FILTER_FIELD_NUMBER = 5;
private com.laex.cg2d.model.ScreenModel.CGFilter filter_;
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public boolean hasFilter() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFilter getFilter() {
return filter_;
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFilterOrBuilder getFilterOrBuilder() {
return filter_;
}
private void initFields() {
density_ = 0F;
friction_ = 0F;
restitution_ = 0F;
sensor_ = false;
filter_ = com.laex.cg2d.model.ScreenModel.CGFilter.getDefaultInstance();
}
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.writeFloat(1, density_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, friction_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, restitution_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, sensor_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, filter_);
}
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, density_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, friction_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, restitution_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, sensor_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, filter_);
}
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 com.laex.cg2d.model.ScreenModel.CGFixtureDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGFixtureDef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFixtureDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGFixtureDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFixtureDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGFixtureDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFixtureDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGFixtureDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGFixtureDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGFixtureDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGFixtureDef prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGFixtureDef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGFixtureDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFixtureDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFixtureDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGFixtureDef.class, com.laex.cg2d.model.ScreenModel.CGFixtureDef.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGFixtureDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getFilterFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
density_ = 0F;
bitField0_ = (bitField0_ & ~0x00000001);
friction_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
restitution_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
sensor_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
if (filterBuilder_ == null) {
filter_ = com.laex.cg2d.model.ScreenModel.CGFilter.getDefaultInstance();
} else {
filterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGFixtureDef_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGFixtureDef getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGFixtureDef.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGFixtureDef build() {
com.laex.cg2d.model.ScreenModel.CGFixtureDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGFixtureDef buildPartial() {
com.laex.cg2d.model.ScreenModel.CGFixtureDef result = new com.laex.cg2d.model.ScreenModel.CGFixtureDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.density_ = density_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.friction_ = friction_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.restitution_ = restitution_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.sensor_ = sensor_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (filterBuilder_ == null) {
result.filter_ = filter_;
} else {
result.filter_ = filterBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGFixtureDef) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGFixtureDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGFixtureDef other) {
if (other == com.laex.cg2d.model.ScreenModel.CGFixtureDef.getDefaultInstance()) return this;
if (other.hasDensity()) {
setDensity(other.getDensity());
}
if (other.hasFriction()) {
setFriction(other.getFriction());
}
if (other.hasRestitution()) {
setRestitution(other.getRestitution());
}
if (other.hasSensor()) {
setSensor(other.getSensor());
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
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.laex.cg2d.model.ScreenModel.CGFixtureDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGFixtureDef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional float density = 1;
private float density_ ;
/**
* <code>optional float density = 1;</code>
*/
public boolean hasDensity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional float density = 1;</code>
*/
public float getDensity() {
return density_;
}
/**
* <code>optional float density = 1;</code>
*/
public Builder setDensity(float value) {
bitField0_ |= 0x00000001;
density_ = value;
onChanged();
return this;
}
/**
* <code>optional float density = 1;</code>
*/
public Builder clearDensity() {
bitField0_ = (bitField0_ & ~0x00000001);
density_ = 0F;
onChanged();
return this;
}
// optional float friction = 2;
private float friction_ ;
/**
* <code>optional float friction = 2;</code>
*/
public boolean hasFriction() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional float friction = 2;</code>
*/
public float getFriction() {
return friction_;
}
/**
* <code>optional float friction = 2;</code>
*/
public Builder setFriction(float value) {
bitField0_ |= 0x00000002;
friction_ = value;
onChanged();
return this;
}
/**
* <code>optional float friction = 2;</code>
*/
public Builder clearFriction() {
bitField0_ = (bitField0_ & ~0x00000002);
friction_ = 0F;
onChanged();
return this;
}
// optional float restitution = 3;
private float restitution_ ;
/**
* <code>optional float restitution = 3;</code>
*/
public boolean hasRestitution() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float restitution = 3;</code>
*/
public float getRestitution() {
return restitution_;
}
/**
* <code>optional float restitution = 3;</code>
*/
public Builder setRestitution(float value) {
bitField0_ |= 0x00000004;
restitution_ = value;
onChanged();
return this;
}
/**
* <code>optional float restitution = 3;</code>
*/
public Builder clearRestitution() {
bitField0_ = (bitField0_ & ~0x00000004);
restitution_ = 0F;
onChanged();
return this;
}
// optional bool sensor = 4;
private boolean sensor_ ;
/**
* <code>optional bool sensor = 4;</code>
*/
public boolean hasSensor() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool sensor = 4;</code>
*/
public boolean getSensor() {
return sensor_;
}
/**
* <code>optional bool sensor = 4;</code>
*/
public Builder setSensor(boolean value) {
bitField0_ |= 0x00000008;
sensor_ = value;
onChanged();
return this;
}
/**
* <code>optional bool sensor = 4;</code>
*/
public Builder clearSensor() {
bitField0_ = (bitField0_ & ~0x00000008);
sensor_ = false;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGFilter filter = 5;
private com.laex.cg2d.model.ScreenModel.CGFilter filter_ = com.laex.cg2d.model.ScreenModel.CGFilter.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGFilter, com.laex.cg2d.model.ScreenModel.CGFilter.Builder, com.laex.cg2d.model.ScreenModel.CGFilterOrBuilder> filterBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public boolean hasFilter() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFilter getFilter() {
if (filterBuilder_ == null) {
return filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public Builder setFilter(com.laex.cg2d.model.ScreenModel.CGFilter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public Builder setFilter(
com.laex.cg2d.model.ScreenModel.CGFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public Builder mergeFilter(com.laex.cg2d.model.ScreenModel.CGFilter value) {
if (filterBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
filter_ != com.laex.cg2d.model.ScreenModel.CGFilter.getDefaultInstance()) {
filter_ =
com.laex.cg2d.model.ScreenModel.CGFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
onChanged();
} else {
filterBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
filter_ = com.laex.cg2d.model.ScreenModel.CGFilter.getDefaultInstance();
onChanged();
} else {
filterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFilter.Builder getFilterBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFilterOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGFilter filter = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGFilter, com.laex.cg2d.model.ScreenModel.CGFilter.Builder, com.laex.cg2d.model.ScreenModel.CGFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGFilter, com.laex.cg2d.model.ScreenModel.CGFilter.Builder, com.laex.cg2d.model.ScreenModel.CGFilterOrBuilder>(
filter_,
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGFixtureDef)
}
static {
defaultInstance = new CGFixtureDef(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGFixtureDef)
}
public interface CGShapeOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string id = 1;
/**
* <code>optional string id = 1;</code>
*/
boolean hasId();
/**
* <code>optional string id = 1;</code>
*/
java.lang.String getId();
/**
* <code>optional string id = 1;</code>
*/
com.google.protobuf.ByteString
getIdBytes();
// optional bool visible = 2;
/**
* <code>optional bool visible = 2;</code>
*/
boolean hasVisible();
/**
* <code>optional bool visible = 2;</code>
*/
boolean getVisible();
// optional bool locked = 3;
/**
* <code>optional bool locked = 3;</code>
*/
boolean hasLocked();
/**
* <code>optional bool locked = 3;</code>
*/
boolean getLocked();
// optional bool background = 4;
/**
* <code>optional bool background = 4;</code>
*/
boolean hasBackground();
/**
* <code>optional bool background = 4;</code>
*/
boolean getBackground();
// optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
boolean hasBackgroundResourceFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFile getBackgroundResourceFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getBackgroundResourceFileOrBuilder();
// optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;
/**
* <code>optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;</code>
*/
boolean hasEditorShapeType();
/**
* <code>optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;</code>
*/
com.laex.cg2d.model.ScreenModel.CGEditorShapeType getEditorShapeType();
// optional .com.laex.cg2d.model.CGBounds bounds = 7;
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
boolean hasBounds();
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
com.laex.cg2d.model.ScreenModel.CGBounds getBounds();
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder getBoundsOrBuilder();
// optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
boolean hasBodyDef();
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
com.laex.cg2d.model.ScreenModel.CGBodyDef getBodyDef();
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
com.laex.cg2d.model.ScreenModel.CGBodyDefOrBuilder getBodyDefOrBuilder();
// optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
boolean hasFixtureDef();
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
com.laex.cg2d.model.ScreenModel.CGFixtureDef getFixtureDef();
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
com.laex.cg2d.model.ScreenModel.CGFixtureDefOrBuilder getFixtureDefOrBuilder();
// repeated .com.laex.cg2d.model.CGJoint joints = 10;
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
java.util.List<com.laex.cg2d.model.ScreenModel.CGJoint>
getJointsList();
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
com.laex.cg2d.model.ScreenModel.CGJoint getJoints(int index);
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
int getJointsCount();
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGJointOrBuilder>
getJointsOrBuilderList();
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
com.laex.cg2d.model.ScreenModel.CGJointOrBuilder getJointsOrBuilder(
int index);
// optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
boolean hasEntityRefFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFile getEntityRefFile();
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getEntityRefFileOrBuilder();
// optional string text = 12;
/**
* <code>optional string text = 12;</code>
*/
boolean hasText();
/**
* <code>optional string text = 12;</code>
*/
java.lang.String getText();
/**
* <code>optional string text = 12;</code>
*/
com.google.protobuf.ByteString
getTextBytes();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGShape}
*/
public static final class CGShape extends
com.google.protobuf.GeneratedMessage
implements CGShapeOrBuilder {
// Use CGShape.newBuilder() to construct.
private CGShape(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGShape(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGShape defaultInstance;
public static CGShape getDefaultInstance() {
return defaultInstance;
}
public CGShape getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGShape(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
id_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
visible_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000004;
locked_ = input.readBool();
break;
}
case 32: {
bitField0_ |= 0x00000008;
background_ = input.readBool();
break;
}
case 42: {
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = backgroundResourceFile_.toBuilder();
}
backgroundResourceFile_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGResourceFile.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backgroundResourceFile_);
backgroundResourceFile_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 48: {
int rawValue = input.readEnum();
com.laex.cg2d.model.ScreenModel.CGEditorShapeType value = com.laex.cg2d.model.ScreenModel.CGEditorShapeType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(6, rawValue);
} else {
bitField0_ |= 0x00000020;
editorShapeType_ = value;
}
break;
}
case 58: {
com.laex.cg2d.model.ScreenModel.CGBounds.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = bounds_.toBuilder();
}
bounds_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGBounds.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bounds_);
bounds_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 66: {
com.laex.cg2d.model.ScreenModel.CGBodyDef.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = bodyDef_.toBuilder();
}
bodyDef_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGBodyDef.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bodyDef_);
bodyDef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 74: {
com.laex.cg2d.model.ScreenModel.CGFixtureDef.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
subBuilder = fixtureDef_.toBuilder();
}
fixtureDef_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGFixtureDef.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fixtureDef_);
fixtureDef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
joints_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGJoint>();
mutable_bitField0_ |= 0x00000200;
}
joints_.add(input.readMessage(com.laex.cg2d.model.ScreenModel.CGJoint.PARSER, extensionRegistry));
break;
}
case 90: {
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
subBuilder = entityRefFile_.toBuilder();
}
entityRefFile_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGResourceFile.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(entityRefFile_);
entityRefFile_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 98: {
bitField0_ |= 0x00000400;
text_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
joints_ = java.util.Collections.unmodifiableList(joints_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGShape_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGShape_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGShape.class, com.laex.cg2d.model.ScreenModel.CGShape.Builder.class);
}
public static com.google.protobuf.Parser<CGShape> PARSER =
new com.google.protobuf.AbstractParser<CGShape>() {
public CGShape parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGShape(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGShape> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string id = 1;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.Object id_;
/**
* <code>optional string id = 1;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string id = 1;</code>
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
}
}
/**
* <code>optional string id = 1;</code>
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool visible = 2;
public static final int VISIBLE_FIELD_NUMBER = 2;
private boolean visible_;
/**
* <code>optional bool visible = 2;</code>
*/
public boolean hasVisible() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool visible = 2;</code>
*/
public boolean getVisible() {
return visible_;
}
// optional bool locked = 3;
public static final int LOCKED_FIELD_NUMBER = 3;
private boolean locked_;
/**
* <code>optional bool locked = 3;</code>
*/
public boolean hasLocked() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool locked = 3;</code>
*/
public boolean getLocked() {
return locked_;
}
// optional bool background = 4;
public static final int BACKGROUND_FIELD_NUMBER = 4;
private boolean background_;
/**
* <code>optional bool background = 4;</code>
*/
public boolean hasBackground() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool background = 4;</code>
*/
public boolean getBackground() {
return background_;
}
// optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;
public static final int BACKGROUNDRESOURCEFILE_FIELD_NUMBER = 5;
private com.laex.cg2d.model.ScreenModel.CGResourceFile backgroundResourceFile_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public boolean hasBackgroundResourceFile() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getBackgroundResourceFile() {
return backgroundResourceFile_;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getBackgroundResourceFileOrBuilder() {
return backgroundResourceFile_;
}
// optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;
public static final int EDITORSHAPETYPE_FIELD_NUMBER = 6;
private com.laex.cg2d.model.ScreenModel.CGEditorShapeType editorShapeType_;
/**
* <code>optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;</code>
*/
public boolean hasEditorShapeType() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEditorShapeType getEditorShapeType() {
return editorShapeType_;
}
// optional .com.laex.cg2d.model.CGBounds bounds = 7;
public static final int BOUNDS_FIELD_NUMBER = 7;
private com.laex.cg2d.model.ScreenModel.CGBounds bounds_;
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public boolean hasBounds() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBounds getBounds() {
return bounds_;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder getBoundsOrBuilder() {
return bounds_;
}
// optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;
public static final int BODYDEF_FIELD_NUMBER = 8;
private com.laex.cg2d.model.ScreenModel.CGBodyDef bodyDef_;
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public boolean hasBodyDef() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBodyDef getBodyDef() {
return bodyDef_;
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBodyDefOrBuilder getBodyDefOrBuilder() {
return bodyDef_;
}
// optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;
public static final int FIXTUREDEF_FIELD_NUMBER = 9;
private com.laex.cg2d.model.ScreenModel.CGFixtureDef fixtureDef_;
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public boolean hasFixtureDef() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFixtureDef getFixtureDef() {
return fixtureDef_;
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFixtureDefOrBuilder getFixtureDefOrBuilder() {
return fixtureDef_;
}
// repeated .com.laex.cg2d.model.CGJoint joints = 10;
public static final int JOINTS_FIELD_NUMBER = 10;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGJoint> joints_;
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGJoint> getJointsList() {
return joints_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGJointOrBuilder>
getJointsOrBuilderList() {
return joints_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public int getJointsCount() {
return joints_.size();
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGJoint getJoints(int index) {
return joints_.get(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGJointOrBuilder getJointsOrBuilder(
int index) {
return joints_.get(index);
}
// optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;
public static final int ENTITYREFFILE_FIELD_NUMBER = 11;
private com.laex.cg2d.model.ScreenModel.CGResourceFile entityRefFile_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public boolean hasEntityRefFile() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getEntityRefFile() {
return entityRefFile_;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getEntityRefFileOrBuilder() {
return entityRefFile_;
}
// optional string text = 12;
public static final int TEXT_FIELD_NUMBER = 12;
private java.lang.Object text_;
/**
* <code>optional string text = 12;</code>
*/
public boolean hasText() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional string text = 12;</code>
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
text_ = s;
}
return s;
}
}
/**
* <code>optional string text = 12;</code>
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
id_ = "";
visible_ = false;
locked_ = false;
background_ = false;
backgroundResourceFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
editorShapeType_ = com.laex.cg2d.model.ScreenModel.CGEditorShapeType.SIMPLE_SHAPE_CIRCLE;
bounds_ = com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance();
bodyDef_ = com.laex.cg2d.model.ScreenModel.CGBodyDef.getDefaultInstance();
fixtureDef_ = com.laex.cg2d.model.ScreenModel.CGFixtureDef.getDefaultInstance();
joints_ = java.util.Collections.emptyList();
entityRefFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
text_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasBodyDef()) {
if (!getBodyDef().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getJointsCount(); i++) {
if (!getJoints(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, visible_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, locked_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, background_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, backgroundResourceFile_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeEnum(6, editorShapeType_.getNumber());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(7, bounds_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(8, bodyDef_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeMessage(9, fixtureDef_);
}
for (int i = 0; i < joints_.size(); i++) {
output.writeMessage(10, joints_.get(i));
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeMessage(11, entityRefFile_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBytes(12, getTextBytes());
}
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
.computeBytesSize(1, getIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, visible_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, locked_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, background_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, backgroundResourceFile_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, editorShapeType_.getNumber());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, bounds_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, bodyDef_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, fixtureDef_);
}
for (int i = 0; i < joints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, joints_.get(i));
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, entityRefFile_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(12, getTextBytes());
}
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 com.laex.cg2d.model.ScreenModel.CGShape parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGShape parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGShape parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGShape parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGShape parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGShape parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGShape parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGShape parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGShape parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGShape parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGShape prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGShape}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGShape_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGShape_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGShape.class, com.laex.cg2d.model.ScreenModel.CGShape.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGShape.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getBackgroundResourceFileFieldBuilder();
getBoundsFieldBuilder();
getBodyDefFieldBuilder();
getFixtureDefFieldBuilder();
getJointsFieldBuilder();
getEntityRefFileFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
visible_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
locked_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
background_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
if (backgroundResourceFileBuilder_ == null) {
backgroundResourceFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
} else {
backgroundResourceFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
editorShapeType_ = com.laex.cg2d.model.ScreenModel.CGEditorShapeType.SIMPLE_SHAPE_CIRCLE;
bitField0_ = (bitField0_ & ~0x00000020);
if (boundsBuilder_ == null) {
bounds_ = com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance();
} else {
boundsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (bodyDefBuilder_ == null) {
bodyDef_ = com.laex.cg2d.model.ScreenModel.CGBodyDef.getDefaultInstance();
} else {
bodyDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (fixtureDefBuilder_ == null) {
fixtureDef_ = com.laex.cg2d.model.ScreenModel.CGFixtureDef.getDefaultInstance();
} else {
fixtureDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (jointsBuilder_ == null) {
joints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
jointsBuilder_.clear();
}
if (entityRefFileBuilder_ == null) {
entityRefFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
} else {
entityRefFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
text_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGShape_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGShape getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGShape.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGShape build() {
com.laex.cg2d.model.ScreenModel.CGShape result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGShape buildPartial() {
com.laex.cg2d.model.ScreenModel.CGShape result = new com.laex.cg2d.model.ScreenModel.CGShape(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.visible_ = visible_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.locked_ = locked_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.background_ = background_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (backgroundResourceFileBuilder_ == null) {
result.backgroundResourceFile_ = backgroundResourceFile_;
} else {
result.backgroundResourceFile_ = backgroundResourceFileBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.editorShapeType_ = editorShapeType_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (boundsBuilder_ == null) {
result.bounds_ = bounds_;
} else {
result.bounds_ = boundsBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (bodyDefBuilder_ == null) {
result.bodyDef_ = bodyDef_;
} else {
result.bodyDef_ = bodyDefBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
if (fixtureDefBuilder_ == null) {
result.fixtureDef_ = fixtureDef_;
} else {
result.fixtureDef_ = fixtureDefBuilder_.build();
}
if (jointsBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200)) {
joints_ = java.util.Collections.unmodifiableList(joints_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.joints_ = joints_;
} else {
result.joints_ = jointsBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000200;
}
if (entityRefFileBuilder_ == null) {
result.entityRefFile_ = entityRefFile_;
} else {
result.entityRefFile_ = entityRefFileBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000400;
}
result.text_ = text_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGShape) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGShape)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGShape other) {
if (other == com.laex.cg2d.model.ScreenModel.CGShape.getDefaultInstance()) return this;
if (other.hasId()) {
bitField0_ |= 0x00000001;
id_ = other.id_;
onChanged();
}
if (other.hasVisible()) {
setVisible(other.getVisible());
}
if (other.hasLocked()) {
setLocked(other.getLocked());
}
if (other.hasBackground()) {
setBackground(other.getBackground());
}
if (other.hasBackgroundResourceFile()) {
mergeBackgroundResourceFile(other.getBackgroundResourceFile());
}
if (other.hasEditorShapeType()) {
setEditorShapeType(other.getEditorShapeType());
}
if (other.hasBounds()) {
mergeBounds(other.getBounds());
}
if (other.hasBodyDef()) {
mergeBodyDef(other.getBodyDef());
}
if (other.hasFixtureDef()) {
mergeFixtureDef(other.getFixtureDef());
}
if (jointsBuilder_ == null) {
if (!other.joints_.isEmpty()) {
if (joints_.isEmpty()) {
joints_ = other.joints_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureJointsIsMutable();
joints_.addAll(other.joints_);
}
onChanged();
}
} else {
if (!other.joints_.isEmpty()) {
if (jointsBuilder_.isEmpty()) {
jointsBuilder_.dispose();
jointsBuilder_ = null;
joints_ = other.joints_;
bitField0_ = (bitField0_ & ~0x00000200);
jointsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getJointsFieldBuilder() : null;
} else {
jointsBuilder_.addAllMessages(other.joints_);
}
}
}
if (other.hasEntityRefFile()) {
mergeEntityRefFile(other.getEntityRefFile());
}
if (other.hasText()) {
bitField0_ |= 0x00000800;
text_ = other.text_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasBodyDef()) {
if (!getBodyDef().isInitialized()) {
return false;
}
}
for (int i = 0; i < getJointsCount(); i++) {
if (!getJoints(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGShape parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGShape) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string id = 1;
private java.lang.Object id_ = "";
/**
* <code>optional string id = 1;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string id = 1;</code>
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string id = 1;</code>
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string id = 1;</code>
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* <code>optional string id = 1;</code>
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* <code>optional string id = 1;</code>
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
// optional bool visible = 2;
private boolean visible_ ;
/**
* <code>optional bool visible = 2;</code>
*/
public boolean hasVisible() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool visible = 2;</code>
*/
public boolean getVisible() {
return visible_;
}
/**
* <code>optional bool visible = 2;</code>
*/
public Builder setVisible(boolean value) {
bitField0_ |= 0x00000002;
visible_ = value;
onChanged();
return this;
}
/**
* <code>optional bool visible = 2;</code>
*/
public Builder clearVisible() {
bitField0_ = (bitField0_ & ~0x00000002);
visible_ = false;
onChanged();
return this;
}
// optional bool locked = 3;
private boolean locked_ ;
/**
* <code>optional bool locked = 3;</code>
*/
public boolean hasLocked() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool locked = 3;</code>
*/
public boolean getLocked() {
return locked_;
}
/**
* <code>optional bool locked = 3;</code>
*/
public Builder setLocked(boolean value) {
bitField0_ |= 0x00000004;
locked_ = value;
onChanged();
return this;
}
/**
* <code>optional bool locked = 3;</code>
*/
public Builder clearLocked() {
bitField0_ = (bitField0_ & ~0x00000004);
locked_ = false;
onChanged();
return this;
}
// optional bool background = 4;
private boolean background_ ;
/**
* <code>optional bool background = 4;</code>
*/
public boolean hasBackground() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool background = 4;</code>
*/
public boolean getBackground() {
return background_;
}
/**
* <code>optional bool background = 4;</code>
*/
public Builder setBackground(boolean value) {
bitField0_ |= 0x00000008;
background_ = value;
onChanged();
return this;
}
/**
* <code>optional bool background = 4;</code>
*/
public Builder clearBackground() {
bitField0_ = (bitField0_ & ~0x00000008);
background_ = false;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;
private com.laex.cg2d.model.ScreenModel.CGResourceFile backgroundResourceFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder> backgroundResourceFileBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public boolean hasBackgroundResourceFile() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getBackgroundResourceFile() {
if (backgroundResourceFileBuilder_ == null) {
return backgroundResourceFile_;
} else {
return backgroundResourceFileBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public Builder setBackgroundResourceFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (backgroundResourceFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backgroundResourceFile_ = value;
onChanged();
} else {
backgroundResourceFileBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public Builder setBackgroundResourceFile(
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder builderForValue) {
if (backgroundResourceFileBuilder_ == null) {
backgroundResourceFile_ = builderForValue.build();
onChanged();
} else {
backgroundResourceFileBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public Builder mergeBackgroundResourceFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (backgroundResourceFileBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
backgroundResourceFile_ != com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance()) {
backgroundResourceFile_ =
com.laex.cg2d.model.ScreenModel.CGResourceFile.newBuilder(backgroundResourceFile_).mergeFrom(value).buildPartial();
} else {
backgroundResourceFile_ = value;
}
onChanged();
} else {
backgroundResourceFileBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public Builder clearBackgroundResourceFile() {
if (backgroundResourceFileBuilder_ == null) {
backgroundResourceFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
onChanged();
} else {
backgroundResourceFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder getBackgroundResourceFileBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getBackgroundResourceFileFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getBackgroundResourceFileOrBuilder() {
if (backgroundResourceFileBuilder_ != null) {
return backgroundResourceFileBuilder_.getMessageOrBuilder();
} else {
return backgroundResourceFile_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile backgroundResourceFile = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>
getBackgroundResourceFileFieldBuilder() {
if (backgroundResourceFileBuilder_ == null) {
backgroundResourceFileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>(
backgroundResourceFile_,
getParentForChildren(),
isClean());
backgroundResourceFile_ = null;
}
return backgroundResourceFileBuilder_;
}
// optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;
private com.laex.cg2d.model.ScreenModel.CGEditorShapeType editorShapeType_ = com.laex.cg2d.model.ScreenModel.CGEditorShapeType.SIMPLE_SHAPE_CIRCLE;
/**
* <code>optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;</code>
*/
public boolean hasEditorShapeType() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGEditorShapeType getEditorShapeType() {
return editorShapeType_;
}
/**
* <code>optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;</code>
*/
public Builder setEditorShapeType(com.laex.cg2d.model.ScreenModel.CGEditorShapeType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
editorShapeType_ = value;
onChanged();
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGEditorShapeType editorShapeType = 6;</code>
*/
public Builder clearEditorShapeType() {
bitField0_ = (bitField0_ & ~0x00000020);
editorShapeType_ = com.laex.cg2d.model.ScreenModel.CGEditorShapeType.SIMPLE_SHAPE_CIRCLE;
onChanged();
return this;
}
// optional .com.laex.cg2d.model.CGBounds bounds = 7;
private com.laex.cg2d.model.ScreenModel.CGBounds bounds_ = com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGBounds, com.laex.cg2d.model.ScreenModel.CGBounds.Builder, com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder> boundsBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public boolean hasBounds() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBounds getBounds() {
if (boundsBuilder_ == null) {
return bounds_;
} else {
return boundsBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public Builder setBounds(com.laex.cg2d.model.ScreenModel.CGBounds value) {
if (boundsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bounds_ = value;
onChanged();
} else {
boundsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public Builder setBounds(
com.laex.cg2d.model.ScreenModel.CGBounds.Builder builderForValue) {
if (boundsBuilder_ == null) {
bounds_ = builderForValue.build();
onChanged();
} else {
boundsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public Builder mergeBounds(com.laex.cg2d.model.ScreenModel.CGBounds value) {
if (boundsBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
bounds_ != com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance()) {
bounds_ =
com.laex.cg2d.model.ScreenModel.CGBounds.newBuilder(bounds_).mergeFrom(value).buildPartial();
} else {
bounds_ = value;
}
onChanged();
} else {
boundsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public Builder clearBounds() {
if (boundsBuilder_ == null) {
bounds_ = com.laex.cg2d.model.ScreenModel.CGBounds.getDefaultInstance();
onChanged();
} else {
boundsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBounds.Builder getBoundsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getBoundsFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder getBoundsOrBuilder() {
if (boundsBuilder_ != null) {
return boundsBuilder_.getMessageOrBuilder();
} else {
return bounds_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGBounds bounds = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGBounds, com.laex.cg2d.model.ScreenModel.CGBounds.Builder, com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder>
getBoundsFieldBuilder() {
if (boundsBuilder_ == null) {
boundsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGBounds, com.laex.cg2d.model.ScreenModel.CGBounds.Builder, com.laex.cg2d.model.ScreenModel.CGBoundsOrBuilder>(
bounds_,
getParentForChildren(),
isClean());
bounds_ = null;
}
return boundsBuilder_;
}
// optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;
private com.laex.cg2d.model.ScreenModel.CGBodyDef bodyDef_ = com.laex.cg2d.model.ScreenModel.CGBodyDef.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGBodyDef, com.laex.cg2d.model.ScreenModel.CGBodyDef.Builder, com.laex.cg2d.model.ScreenModel.CGBodyDefOrBuilder> bodyDefBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public boolean hasBodyDef() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBodyDef getBodyDef() {
if (bodyDefBuilder_ == null) {
return bodyDef_;
} else {
return bodyDefBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public Builder setBodyDef(com.laex.cg2d.model.ScreenModel.CGBodyDef value) {
if (bodyDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bodyDef_ = value;
onChanged();
} else {
bodyDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public Builder setBodyDef(
com.laex.cg2d.model.ScreenModel.CGBodyDef.Builder builderForValue) {
if (bodyDefBuilder_ == null) {
bodyDef_ = builderForValue.build();
onChanged();
} else {
bodyDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public Builder mergeBodyDef(com.laex.cg2d.model.ScreenModel.CGBodyDef value) {
if (bodyDefBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
bodyDef_ != com.laex.cg2d.model.ScreenModel.CGBodyDef.getDefaultInstance()) {
bodyDef_ =
com.laex.cg2d.model.ScreenModel.CGBodyDef.newBuilder(bodyDef_).mergeFrom(value).buildPartial();
} else {
bodyDef_ = value;
}
onChanged();
} else {
bodyDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public Builder clearBodyDef() {
if (bodyDefBuilder_ == null) {
bodyDef_ = com.laex.cg2d.model.ScreenModel.CGBodyDef.getDefaultInstance();
onChanged();
} else {
bodyDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBodyDef.Builder getBodyDefBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getBodyDefFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGBodyDefOrBuilder getBodyDefOrBuilder() {
if (bodyDefBuilder_ != null) {
return bodyDefBuilder_.getMessageOrBuilder();
} else {
return bodyDef_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGBodyDef bodyDef = 8;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGBodyDef, com.laex.cg2d.model.ScreenModel.CGBodyDef.Builder, com.laex.cg2d.model.ScreenModel.CGBodyDefOrBuilder>
getBodyDefFieldBuilder() {
if (bodyDefBuilder_ == null) {
bodyDefBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGBodyDef, com.laex.cg2d.model.ScreenModel.CGBodyDef.Builder, com.laex.cg2d.model.ScreenModel.CGBodyDefOrBuilder>(
bodyDef_,
getParentForChildren(),
isClean());
bodyDef_ = null;
}
return bodyDefBuilder_;
}
// optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;
private com.laex.cg2d.model.ScreenModel.CGFixtureDef fixtureDef_ = com.laex.cg2d.model.ScreenModel.CGFixtureDef.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGFixtureDef, com.laex.cg2d.model.ScreenModel.CGFixtureDef.Builder, com.laex.cg2d.model.ScreenModel.CGFixtureDefOrBuilder> fixtureDefBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public boolean hasFixtureDef() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFixtureDef getFixtureDef() {
if (fixtureDefBuilder_ == null) {
return fixtureDef_;
} else {
return fixtureDefBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public Builder setFixtureDef(com.laex.cg2d.model.ScreenModel.CGFixtureDef value) {
if (fixtureDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fixtureDef_ = value;
onChanged();
} else {
fixtureDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public Builder setFixtureDef(
com.laex.cg2d.model.ScreenModel.CGFixtureDef.Builder builderForValue) {
if (fixtureDefBuilder_ == null) {
fixtureDef_ = builderForValue.build();
onChanged();
} else {
fixtureDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public Builder mergeFixtureDef(com.laex.cg2d.model.ScreenModel.CGFixtureDef value) {
if (fixtureDefBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
fixtureDef_ != com.laex.cg2d.model.ScreenModel.CGFixtureDef.getDefaultInstance()) {
fixtureDef_ =
com.laex.cg2d.model.ScreenModel.CGFixtureDef.newBuilder(fixtureDef_).mergeFrom(value).buildPartial();
} else {
fixtureDef_ = value;
}
onChanged();
} else {
fixtureDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public Builder clearFixtureDef() {
if (fixtureDefBuilder_ == null) {
fixtureDef_ = com.laex.cg2d.model.ScreenModel.CGFixtureDef.getDefaultInstance();
onChanged();
} else {
fixtureDefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFixtureDef.Builder getFixtureDefBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getFixtureDefFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGFixtureDefOrBuilder getFixtureDefOrBuilder() {
if (fixtureDefBuilder_ != null) {
return fixtureDefBuilder_.getMessageOrBuilder();
} else {
return fixtureDef_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGFixtureDef fixtureDef = 9;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGFixtureDef, com.laex.cg2d.model.ScreenModel.CGFixtureDef.Builder, com.laex.cg2d.model.ScreenModel.CGFixtureDefOrBuilder>
getFixtureDefFieldBuilder() {
if (fixtureDefBuilder_ == null) {
fixtureDefBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGFixtureDef, com.laex.cg2d.model.ScreenModel.CGFixtureDef.Builder, com.laex.cg2d.model.ScreenModel.CGFixtureDefOrBuilder>(
fixtureDef_,
getParentForChildren(),
isClean());
fixtureDef_ = null;
}
return fixtureDefBuilder_;
}
// repeated .com.laex.cg2d.model.CGJoint joints = 10;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGJoint> joints_ =
java.util.Collections.emptyList();
private void ensureJointsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
joints_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGJoint>(joints_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGJoint, com.laex.cg2d.model.ScreenModel.CGJoint.Builder, com.laex.cg2d.model.ScreenModel.CGJointOrBuilder> jointsBuilder_;
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGJoint> getJointsList() {
if (jointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(joints_);
} else {
return jointsBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public int getJointsCount() {
if (jointsBuilder_ == null) {
return joints_.size();
} else {
return jointsBuilder_.getCount();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGJoint getJoints(int index) {
if (jointsBuilder_ == null) {
return joints_.get(index);
} else {
return jointsBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public Builder setJoints(
int index, com.laex.cg2d.model.ScreenModel.CGJoint value) {
if (jointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureJointsIsMutable();
joints_.set(index, value);
onChanged();
} else {
jointsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public Builder setJoints(
int index, com.laex.cg2d.model.ScreenModel.CGJoint.Builder builderForValue) {
if (jointsBuilder_ == null) {
ensureJointsIsMutable();
joints_.set(index, builderForValue.build());
onChanged();
} else {
jointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public Builder addJoints(com.laex.cg2d.model.ScreenModel.CGJoint value) {
if (jointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureJointsIsMutable();
joints_.add(value);
onChanged();
} else {
jointsBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public Builder addJoints(
int index, com.laex.cg2d.model.ScreenModel.CGJoint value) {
if (jointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureJointsIsMutable();
joints_.add(index, value);
onChanged();
} else {
jointsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public Builder addJoints(
com.laex.cg2d.model.ScreenModel.CGJoint.Builder builderForValue) {
if (jointsBuilder_ == null) {
ensureJointsIsMutable();
joints_.add(builderForValue.build());
onChanged();
} else {
jointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public Builder addJoints(
int index, com.laex.cg2d.model.ScreenModel.CGJoint.Builder builderForValue) {
if (jointsBuilder_ == null) {
ensureJointsIsMutable();
joints_.add(index, builderForValue.build());
onChanged();
} else {
jointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public Builder addAllJoints(
java.lang.Iterable<? extends com.laex.cg2d.model.ScreenModel.CGJoint> values) {
if (jointsBuilder_ == null) {
ensureJointsIsMutable();
super.addAll(values, joints_);
onChanged();
} else {
jointsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public Builder clearJoints() {
if (jointsBuilder_ == null) {
joints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
jointsBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public Builder removeJoints(int index) {
if (jointsBuilder_ == null) {
ensureJointsIsMutable();
joints_.remove(index);
onChanged();
} else {
jointsBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGJoint.Builder getJointsBuilder(
int index) {
return getJointsFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGJointOrBuilder getJointsOrBuilder(
int index) {
if (jointsBuilder_ == null) {
return joints_.get(index); } else {
return jointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGJointOrBuilder>
getJointsOrBuilderList() {
if (jointsBuilder_ != null) {
return jointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(joints_);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGJoint.Builder addJointsBuilder() {
return getJointsFieldBuilder().addBuilder(
com.laex.cg2d.model.ScreenModel.CGJoint.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGJoint.Builder addJointsBuilder(
int index) {
return getJointsFieldBuilder().addBuilder(
index, com.laex.cg2d.model.ScreenModel.CGJoint.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGJoint joints = 10;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGJoint.Builder>
getJointsBuilderList() {
return getJointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGJoint, com.laex.cg2d.model.ScreenModel.CGJoint.Builder, com.laex.cg2d.model.ScreenModel.CGJointOrBuilder>
getJointsFieldBuilder() {
if (jointsBuilder_ == null) {
jointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGJoint, com.laex.cg2d.model.ScreenModel.CGJoint.Builder, com.laex.cg2d.model.ScreenModel.CGJointOrBuilder>(
joints_,
((bitField0_ & 0x00000200) == 0x00000200),
getParentForChildren(),
isClean());
joints_ = null;
}
return jointsBuilder_;
}
// optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;
private com.laex.cg2d.model.ScreenModel.CGResourceFile entityRefFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder> entityRefFileBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public boolean hasEntityRefFile() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile getEntityRefFile() {
if (entityRefFileBuilder_ == null) {
return entityRefFile_;
} else {
return entityRefFileBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public Builder setEntityRefFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (entityRefFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
entityRefFile_ = value;
onChanged();
} else {
entityRefFileBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public Builder setEntityRefFile(
com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder builderForValue) {
if (entityRefFileBuilder_ == null) {
entityRefFile_ = builderForValue.build();
onChanged();
} else {
entityRefFileBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public Builder mergeEntityRefFile(com.laex.cg2d.model.ScreenModel.CGResourceFile value) {
if (entityRefFileBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400) &&
entityRefFile_ != com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance()) {
entityRefFile_ =
com.laex.cg2d.model.ScreenModel.CGResourceFile.newBuilder(entityRefFile_).mergeFrom(value).buildPartial();
} else {
entityRefFile_ = value;
}
onChanged();
} else {
entityRefFileBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public Builder clearEntityRefFile() {
if (entityRefFileBuilder_ == null) {
entityRefFile_ = com.laex.cg2d.model.ScreenModel.CGResourceFile.getDefaultInstance();
onChanged();
} else {
entityRefFileBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder getEntityRefFileBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getEntityRefFileFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder getEntityRefFileOrBuilder() {
if (entityRefFileBuilder_ != null) {
return entityRefFileBuilder_.getMessageOrBuilder();
} else {
return entityRefFile_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGResourceFile entityRefFile = 11;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>
getEntityRefFileFieldBuilder() {
if (entityRefFileBuilder_ == null) {
entityRefFileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGResourceFile, com.laex.cg2d.model.ScreenModel.CGResourceFile.Builder, com.laex.cg2d.model.ScreenModel.CGResourceFileOrBuilder>(
entityRefFile_,
getParentForChildren(),
isClean());
entityRefFile_ = null;
}
return entityRefFileBuilder_;
}
// optional string text = 12;
private java.lang.Object text_ = "";
/**
* <code>optional string text = 12;</code>
*/
public boolean hasText() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional string text = 12;</code>
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string text = 12;</code>
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string text = 12;</code>
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
text_ = value;
onChanged();
return this;
}
/**
* <code>optional string text = 12;</code>
*/
public Builder clearText() {
bitField0_ = (bitField0_ & ~0x00000800);
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
* <code>optional string text = 12;</code>
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
text_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGShape)
}
static {
defaultInstance = new CGShape(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGShape)
}
public interface CGLayerOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 id = 1;
/**
* <code>optional int32 id = 1;</code>
*/
boolean hasId();
/**
* <code>optional int32 id = 1;</code>
*/
int getId();
// optional string name = 2;
/**
* <code>optional string name = 2;</code>
*/
boolean hasName();
/**
* <code>optional string name = 2;</code>
*/
java.lang.String getName();
/**
* <code>optional string name = 2;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
// optional bool visible = 3;
/**
* <code>optional bool visible = 3;</code>
*/
boolean hasVisible();
/**
* <code>optional bool visible = 3;</code>
*/
boolean getVisible();
// optional bool locked = 4;
/**
* <code>optional bool locked = 4;</code>
*/
boolean hasLocked();
/**
* <code>optional bool locked = 4;</code>
*/
boolean getLocked();
// repeated .com.laex.cg2d.model.CGShape shape = 5;
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
java.util.List<com.laex.cg2d.model.ScreenModel.CGShape>
getShapeList();
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGShape getShape(int index);
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
int getShapeCount();
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder>
getShapeOrBuilderList();
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder getShapeOrBuilder(
int index);
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGLayer}
*/
public static final class CGLayer extends
com.google.protobuf.GeneratedMessage
implements CGLayerOrBuilder {
// Use CGLayer.newBuilder() to construct.
private CGLayer(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGLayer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGLayer defaultInstance;
public static CGLayer getDefaultInstance() {
return defaultInstance;
}
public CGLayer getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGLayer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
id_ = input.readInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
name_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
visible_ = input.readBool();
break;
}
case 32: {
bitField0_ |= 0x00000008;
locked_ = input.readBool();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
shape_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGShape>();
mutable_bitField0_ |= 0x00000010;
}
shape_.add(input.readMessage(com.laex.cg2d.model.ScreenModel.CGShape.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGLayer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGLayer.class, com.laex.cg2d.model.ScreenModel.CGLayer.Builder.class);
}
public static com.google.protobuf.Parser<CGLayer> PARSER =
new com.google.protobuf.AbstractParser<CGLayer>() {
public CGLayer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGLayer(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGLayer> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* <code>optional int32 id = 1;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 id = 1;</code>
*/
public int getId() {
return id_;
}
// optional string name = 2;
public static final int NAME_FIELD_NUMBER = 2;
private java.lang.Object name_;
/**
* <code>optional string name = 2;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string name = 2;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* <code>optional string name = 2;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool visible = 3;
public static final int VISIBLE_FIELD_NUMBER = 3;
private boolean visible_;
/**
* <code>optional bool visible = 3;</code>
*/
public boolean hasVisible() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool visible = 3;</code>
*/
public boolean getVisible() {
return visible_;
}
// optional bool locked = 4;
public static final int LOCKED_FIELD_NUMBER = 4;
private boolean locked_;
/**
* <code>optional bool locked = 4;</code>
*/
public boolean hasLocked() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool locked = 4;</code>
*/
public boolean getLocked() {
return locked_;
}
// repeated .com.laex.cg2d.model.CGShape shape = 5;
public static final int SHAPE_FIELD_NUMBER = 5;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGShape> shape_;
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGShape> getShapeList() {
return shape_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder>
getShapeOrBuilderList() {
return shape_;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public int getShapeCount() {
return shape_.size();
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGShape getShape(int index) {
return shape_.get(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder getShapeOrBuilder(
int index) {
return shape_.get(index);
}
private void initFields() {
id_ = 0;
name_ = "";
visible_ = false;
locked_ = false;
shape_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getShapeCount(); i++) {
if (!getShape(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, visible_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, locked_);
}
for (int i = 0; i < shape_.size(); i++) {
output.writeMessage(5, shape_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, visible_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, locked_);
}
for (int i = 0; i < shape_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, shape_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGLayer parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGLayer prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGLayer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGLayerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGLayer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGLayer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGLayer.class, com.laex.cg2d.model.ScreenModel.CGLayer.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGLayer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getShapeFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
visible_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
locked_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
if (shapeBuilder_ == null) {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
shapeBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGLayer_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGLayer getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGLayer.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGLayer build() {
com.laex.cg2d.model.ScreenModel.CGLayer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGLayer buildPartial() {
com.laex.cg2d.model.ScreenModel.CGLayer result = new com.laex.cg2d.model.ScreenModel.CGLayer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.visible_ = visible_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.locked_ = locked_;
if (shapeBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
shape_ = java.util.Collections.unmodifiableList(shape_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.shape_ = shape_;
} else {
result.shape_ = shapeBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGLayer) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGLayer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGLayer other) {
if (other == com.laex.cg2d.model.ScreenModel.CGLayer.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasVisible()) {
setVisible(other.getVisible());
}
if (other.hasLocked()) {
setLocked(other.getLocked());
}
if (shapeBuilder_ == null) {
if (!other.shape_.isEmpty()) {
if (shape_.isEmpty()) {
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureShapeIsMutable();
shape_.addAll(other.shape_);
}
onChanged();
}
} else {
if (!other.shape_.isEmpty()) {
if (shapeBuilder_.isEmpty()) {
shapeBuilder_.dispose();
shapeBuilder_ = null;
shape_ = other.shape_;
bitField0_ = (bitField0_ & ~0x00000010);
shapeBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getShapeFieldBuilder() : null;
} else {
shapeBuilder_.addAllMessages(other.shape_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getShapeCount(); i++) {
if (!getShape(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGLayer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGLayer) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 id = 1;
private int id_ ;
/**
* <code>optional int32 id = 1;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 id = 1;</code>
*/
public int getId() {
return id_;
}
/**
* <code>optional int32 id = 1;</code>
*/
public Builder setId(int value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 id = 1;</code>
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
// optional string name = 2;
private java.lang.Object name_ = "";
/**
* <code>optional string name = 2;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string name = 2;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string name = 2;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string name = 2;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
* <code>optional string name = 2;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>optional string name = 2;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
// optional bool visible = 3;
private boolean visible_ ;
/**
* <code>optional bool visible = 3;</code>
*/
public boolean hasVisible() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool visible = 3;</code>
*/
public boolean getVisible() {
return visible_;
}
/**
* <code>optional bool visible = 3;</code>
*/
public Builder setVisible(boolean value) {
bitField0_ |= 0x00000004;
visible_ = value;
onChanged();
return this;
}
/**
* <code>optional bool visible = 3;</code>
*/
public Builder clearVisible() {
bitField0_ = (bitField0_ & ~0x00000004);
visible_ = false;
onChanged();
return this;
}
// optional bool locked = 4;
private boolean locked_ ;
/**
* <code>optional bool locked = 4;</code>
*/
public boolean hasLocked() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool locked = 4;</code>
*/
public boolean getLocked() {
return locked_;
}
/**
* <code>optional bool locked = 4;</code>
*/
public Builder setLocked(boolean value) {
bitField0_ |= 0x00000008;
locked_ = value;
onChanged();
return this;
}
/**
* <code>optional bool locked = 4;</code>
*/
public Builder clearLocked() {
bitField0_ = (bitField0_ & ~0x00000008);
locked_ = false;
onChanged();
return this;
}
// repeated .com.laex.cg2d.model.CGShape shape = 5;
private java.util.List<com.laex.cg2d.model.ScreenModel.CGShape> shape_ =
java.util.Collections.emptyList();
private void ensureShapeIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
shape_ = new java.util.ArrayList<com.laex.cg2d.model.ScreenModel.CGShape>(shape_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGShape, com.laex.cg2d.model.ScreenModel.CGShape.Builder, com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder> shapeBuilder_;
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGShape> getShapeList() {
if (shapeBuilder_ == null) {
return java.util.Collections.unmodifiableList(shape_);
} else {
return shapeBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public int getShapeCount() {
if (shapeBuilder_ == null) {
return shape_.size();
} else {
return shapeBuilder_.getCount();
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGShape getShape(int index) {
if (shapeBuilder_ == null) {
return shape_.get(index);
} else {
return shapeBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public Builder setShape(
int index, com.laex.cg2d.model.ScreenModel.CGShape value) {
if (shapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShapeIsMutable();
shape_.set(index, value);
onChanged();
} else {
shapeBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public Builder setShape(
int index, com.laex.cg2d.model.ScreenModel.CGShape.Builder builderForValue) {
if (shapeBuilder_ == null) {
ensureShapeIsMutable();
shape_.set(index, builderForValue.build());
onChanged();
} else {
shapeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public Builder addShape(com.laex.cg2d.model.ScreenModel.CGShape value) {
if (shapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShapeIsMutable();
shape_.add(value);
onChanged();
} else {
shapeBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public Builder addShape(
int index, com.laex.cg2d.model.ScreenModel.CGShape value) {
if (shapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureShapeIsMutable();
shape_.add(index, value);
onChanged();
} else {
shapeBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public Builder addShape(
com.laex.cg2d.model.ScreenModel.CGShape.Builder builderForValue) {
if (shapeBuilder_ == null) {
ensureShapeIsMutable();
shape_.add(builderForValue.build());
onChanged();
} else {
shapeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public Builder addShape(
int index, com.laex.cg2d.model.ScreenModel.CGShape.Builder builderForValue) {
if (shapeBuilder_ == null) {
ensureShapeIsMutable();
shape_.add(index, builderForValue.build());
onChanged();
} else {
shapeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public Builder addAllShape(
java.lang.Iterable<? extends com.laex.cg2d.model.ScreenModel.CGShape> values) {
if (shapeBuilder_ == null) {
ensureShapeIsMutable();
super.addAll(values, shape_);
onChanged();
} else {
shapeBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public Builder clearShape() {
if (shapeBuilder_ == null) {
shape_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
shapeBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public Builder removeShape(int index) {
if (shapeBuilder_ == null) {
ensureShapeIsMutable();
shape_.remove(index);
onChanged();
} else {
shapeBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGShape.Builder getShapeBuilder(
int index) {
return getShapeFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder getShapeOrBuilder(
int index) {
if (shapeBuilder_ == null) {
return shape_.get(index); } else {
return shapeBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public java.util.List<? extends com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder>
getShapeOrBuilderList() {
if (shapeBuilder_ != null) {
return shapeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(shape_);
}
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGShape.Builder addShapeBuilder() {
return getShapeFieldBuilder().addBuilder(
com.laex.cg2d.model.ScreenModel.CGShape.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGShape.Builder addShapeBuilder(
int index) {
return getShapeFieldBuilder().addBuilder(
index, com.laex.cg2d.model.ScreenModel.CGShape.getDefaultInstance());
}
/**
* <code>repeated .com.laex.cg2d.model.CGShape shape = 5;</code>
*/
public java.util.List<com.laex.cg2d.model.ScreenModel.CGShape.Builder>
getShapeBuilderList() {
return getShapeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGShape, com.laex.cg2d.model.ScreenModel.CGShape.Builder, com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder>
getShapeFieldBuilder() {
if (shapeBuilder_ == null) {
shapeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGShape, com.laex.cg2d.model.ScreenModel.CGShape.Builder, com.laex.cg2d.model.ScreenModel.CGShapeOrBuilder>(
shape_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
shape_ = null;
}
return shapeBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGLayer)
}
static {
defaultInstance = new CGLayer(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGLayer)
}
public interface CGScreenPreferencesOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
boolean hasDebugDrawPrefs();
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences getDebugDrawPrefs();
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferencesOrBuilder getDebugDrawPrefsOrBuilder();
// optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
boolean hasWorldPrefs();
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences getWorldPrefs();
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferencesOrBuilder getWorldPrefsOrBuilder();
// optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
boolean hasCardPrefs();
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences getCardPrefs();
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferencesOrBuilder getCardPrefsOrBuilder();
// optional .com.laex.cg2d.model.CGColor backgroundColor = 4;
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
boolean hasBackgroundColor();
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
com.laex.cg2d.model.ScreenModel.CGColor getBackgroundColor();
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
com.laex.cg2d.model.ScreenModel.CGColorOrBuilder getBackgroundColorOrBuilder();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenPreferences}
*/
public static final class CGScreenPreferences extends
com.google.protobuf.GeneratedMessage
implements CGScreenPreferencesOrBuilder {
// Use CGScreenPreferences.newBuilder() to construct.
private CGScreenPreferences(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGScreenPreferences(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGScreenPreferences defaultInstance;
public static CGScreenPreferences getDefaultInstance() {
return defaultInstance;
}
public CGScreenPreferences getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGScreenPreferences(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = debugDrawPrefs_.toBuilder();
}
debugDrawPrefs_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(debugDrawPrefs_);
debugDrawPrefs_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = worldPrefs_.toBuilder();
}
worldPrefs_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(worldPrefs_);
worldPrefs_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = cardPrefs_.toBuilder();
}
cardPrefs_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cardPrefs_);
cardPrefs_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.laex.cg2d.model.ScreenModel.CGColor.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = backgroundColor_.toBuilder();
}
backgroundColor_ = input.readMessage(com.laex.cg2d.model.ScreenModel.CGColor.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backgroundColor_);
backgroundColor_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.class, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.Builder.class);
}
public static com.google.protobuf.Parser<CGScreenPreferences> PARSER =
new com.google.protobuf.AbstractParser<CGScreenPreferences>() {
public CGScreenPreferences parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGScreenPreferences(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGScreenPreferences> getParserForType() {
return PARSER;
}
public interface CGDebugDrawPreferencesOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool drawBodies = 1;
/**
* <code>optional bool drawBodies = 1;</code>
*/
boolean hasDrawBodies();
/**
* <code>optional bool drawBodies = 1;</code>
*/
boolean getDrawBodies();
// optional bool drawJoints = 2;
/**
* <code>optional bool drawJoints = 2;</code>
*/
boolean hasDrawJoints();
/**
* <code>optional bool drawJoints = 2;</code>
*/
boolean getDrawJoints();
// optional bool drawAABB = 3;
/**
* <code>optional bool drawAABB = 3;</code>
*/
boolean hasDrawAABB();
/**
* <code>optional bool drawAABB = 3;</code>
*/
boolean getDrawAABB();
// optional bool drawInactiveBodies = 4;
/**
* <code>optional bool drawInactiveBodies = 4;</code>
*/
boolean hasDrawInactiveBodies();
/**
* <code>optional bool drawInactiveBodies = 4;</code>
*/
boolean getDrawInactiveBodies();
// optional bool installMouseJoint = 5;
/**
* <code>optional bool installMouseJoint = 5;</code>
*/
boolean hasInstallMouseJoint();
/**
* <code>optional bool installMouseJoint = 5;</code>
*/
boolean getInstallMouseJoint();
// optional bool drawDebugData = 6;
/**
* <code>optional bool drawDebugData = 6;</code>
*/
boolean hasDrawDebugData();
/**
* <code>optional bool drawDebugData = 6;</code>
*/
boolean getDrawDebugData();
// optional bool drawEntities = 7;
/**
* <code>optional bool drawEntities = 7;</code>
*/
boolean hasDrawEntities();
/**
* <code>optional bool drawEntities = 7;</code>
*/
boolean getDrawEntities();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences}
*/
public static final class CGDebugDrawPreferences extends
com.google.protobuf.GeneratedMessage
implements CGDebugDrawPreferencesOrBuilder {
// Use CGDebugDrawPreferences.newBuilder() to construct.
private CGDebugDrawPreferences(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGDebugDrawPreferences(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGDebugDrawPreferences defaultInstance;
public static CGDebugDrawPreferences getDefaultInstance() {
return defaultInstance;
}
public CGDebugDrawPreferences getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGDebugDrawPreferences(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
drawBodies_ = input.readBool();
break;
}
case 16: {
bitField0_ |= 0x00000002;
drawJoints_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000004;
drawAABB_ = input.readBool();
break;
}
case 32: {
bitField0_ |= 0x00000008;
drawInactiveBodies_ = input.readBool();
break;
}
case 40: {
bitField0_ |= 0x00000010;
installMouseJoint_ = input.readBool();
break;
}
case 48: {
bitField0_ |= 0x00000020;
drawDebugData_ = input.readBool();
break;
}
case 56: {
bitField0_ |= 0x00000040;
drawEntities_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.class, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.Builder.class);
}
public static com.google.protobuf.Parser<CGDebugDrawPreferences> PARSER =
new com.google.protobuf.AbstractParser<CGDebugDrawPreferences>() {
public CGDebugDrawPreferences parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGDebugDrawPreferences(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGDebugDrawPreferences> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool drawBodies = 1;
public static final int DRAWBODIES_FIELD_NUMBER = 1;
private boolean drawBodies_;
/**
* <code>optional bool drawBodies = 1;</code>
*/
public boolean hasDrawBodies() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool drawBodies = 1;</code>
*/
public boolean getDrawBodies() {
return drawBodies_;
}
// optional bool drawJoints = 2;
public static final int DRAWJOINTS_FIELD_NUMBER = 2;
private boolean drawJoints_;
/**
* <code>optional bool drawJoints = 2;</code>
*/
public boolean hasDrawJoints() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool drawJoints = 2;</code>
*/
public boolean getDrawJoints() {
return drawJoints_;
}
// optional bool drawAABB = 3;
public static final int DRAWAABB_FIELD_NUMBER = 3;
private boolean drawAABB_;
/**
* <code>optional bool drawAABB = 3;</code>
*/
public boolean hasDrawAABB() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool drawAABB = 3;</code>
*/
public boolean getDrawAABB() {
return drawAABB_;
}
// optional bool drawInactiveBodies = 4;
public static final int DRAWINACTIVEBODIES_FIELD_NUMBER = 4;
private boolean drawInactiveBodies_;
/**
* <code>optional bool drawInactiveBodies = 4;</code>
*/
public boolean hasDrawInactiveBodies() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool drawInactiveBodies = 4;</code>
*/
public boolean getDrawInactiveBodies() {
return drawInactiveBodies_;
}
// optional bool installMouseJoint = 5;
public static final int INSTALLMOUSEJOINT_FIELD_NUMBER = 5;
private boolean installMouseJoint_;
/**
* <code>optional bool installMouseJoint = 5;</code>
*/
public boolean hasInstallMouseJoint() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool installMouseJoint = 5;</code>
*/
public boolean getInstallMouseJoint() {
return installMouseJoint_;
}
// optional bool drawDebugData = 6;
public static final int DRAWDEBUGDATA_FIELD_NUMBER = 6;
private boolean drawDebugData_;
/**
* <code>optional bool drawDebugData = 6;</code>
*/
public boolean hasDrawDebugData() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool drawDebugData = 6;</code>
*/
public boolean getDrawDebugData() {
return drawDebugData_;
}
// optional bool drawEntities = 7;
public static final int DRAWENTITIES_FIELD_NUMBER = 7;
private boolean drawEntities_;
/**
* <code>optional bool drawEntities = 7;</code>
*/
public boolean hasDrawEntities() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional bool drawEntities = 7;</code>
*/
public boolean getDrawEntities() {
return drawEntities_;
}
private void initFields() {
drawBodies_ = false;
drawJoints_ = false;
drawAABB_ = false;
drawInactiveBodies_ = false;
installMouseJoint_ = false;
drawDebugData_ = false;
drawEntities_ = false;
}
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.writeBool(1, drawBodies_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, drawJoints_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, drawAABB_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, drawInactiveBodies_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, installMouseJoint_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, drawDebugData_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, drawEntities_);
}
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
.computeBoolSize(1, drawBodies_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, drawJoints_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, drawAABB_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, drawInactiveBodies_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, installMouseJoint_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, drawDebugData_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, drawEntities_);
}
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 com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferencesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.class, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
drawBodies_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
drawJoints_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
drawAABB_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
drawInactiveBodies_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
installMouseJoint_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
drawDebugData_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
drawEntities_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences build() {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences buildPartial() {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences result = new com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.drawBodies_ = drawBodies_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.drawJoints_ = drawJoints_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.drawAABB_ = drawAABB_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.drawInactiveBodies_ = drawInactiveBodies_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.installMouseJoint_ = installMouseJoint_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.drawDebugData_ = drawDebugData_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.drawEntities_ = drawEntities_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences other) {
if (other == com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.getDefaultInstance()) return this;
if (other.hasDrawBodies()) {
setDrawBodies(other.getDrawBodies());
}
if (other.hasDrawJoints()) {
setDrawJoints(other.getDrawJoints());
}
if (other.hasDrawAABB()) {
setDrawAABB(other.getDrawAABB());
}
if (other.hasDrawInactiveBodies()) {
setDrawInactiveBodies(other.getDrawInactiveBodies());
}
if (other.hasInstallMouseJoint()) {
setInstallMouseJoint(other.getInstallMouseJoint());
}
if (other.hasDrawDebugData()) {
setDrawDebugData(other.getDrawDebugData());
}
if (other.hasDrawEntities()) {
setDrawEntities(other.getDrawEntities());
}
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.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool drawBodies = 1;
private boolean drawBodies_ ;
/**
* <code>optional bool drawBodies = 1;</code>
*/
public boolean hasDrawBodies() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool drawBodies = 1;</code>
*/
public boolean getDrawBodies() {
return drawBodies_;
}
/**
* <code>optional bool drawBodies = 1;</code>
*/
public Builder setDrawBodies(boolean value) {
bitField0_ |= 0x00000001;
drawBodies_ = value;
onChanged();
return this;
}
/**
* <code>optional bool drawBodies = 1;</code>
*/
public Builder clearDrawBodies() {
bitField0_ = (bitField0_ & ~0x00000001);
drawBodies_ = false;
onChanged();
return this;
}
// optional bool drawJoints = 2;
private boolean drawJoints_ ;
/**
* <code>optional bool drawJoints = 2;</code>
*/
public boolean hasDrawJoints() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool drawJoints = 2;</code>
*/
public boolean getDrawJoints() {
return drawJoints_;
}
/**
* <code>optional bool drawJoints = 2;</code>
*/
public Builder setDrawJoints(boolean value) {
bitField0_ |= 0x00000002;
drawJoints_ = value;
onChanged();
return this;
}
/**
* <code>optional bool drawJoints = 2;</code>
*/
public Builder clearDrawJoints() {
bitField0_ = (bitField0_ & ~0x00000002);
drawJoints_ = false;
onChanged();
return this;
}
// optional bool drawAABB = 3;
private boolean drawAABB_ ;
/**
* <code>optional bool drawAABB = 3;</code>
*/
public boolean hasDrawAABB() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional bool drawAABB = 3;</code>
*/
public boolean getDrawAABB() {
return drawAABB_;
}
/**
* <code>optional bool drawAABB = 3;</code>
*/
public Builder setDrawAABB(boolean value) {
bitField0_ |= 0x00000004;
drawAABB_ = value;
onChanged();
return this;
}
/**
* <code>optional bool drawAABB = 3;</code>
*/
public Builder clearDrawAABB() {
bitField0_ = (bitField0_ & ~0x00000004);
drawAABB_ = false;
onChanged();
return this;
}
// optional bool drawInactiveBodies = 4;
private boolean drawInactiveBodies_ ;
/**
* <code>optional bool drawInactiveBodies = 4;</code>
*/
public boolean hasDrawInactiveBodies() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool drawInactiveBodies = 4;</code>
*/
public boolean getDrawInactiveBodies() {
return drawInactiveBodies_;
}
/**
* <code>optional bool drawInactiveBodies = 4;</code>
*/
public Builder setDrawInactiveBodies(boolean value) {
bitField0_ |= 0x00000008;
drawInactiveBodies_ = value;
onChanged();
return this;
}
/**
* <code>optional bool drawInactiveBodies = 4;</code>
*/
public Builder clearDrawInactiveBodies() {
bitField0_ = (bitField0_ & ~0x00000008);
drawInactiveBodies_ = false;
onChanged();
return this;
}
// optional bool installMouseJoint = 5;
private boolean installMouseJoint_ ;
/**
* <code>optional bool installMouseJoint = 5;</code>
*/
public boolean hasInstallMouseJoint() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool installMouseJoint = 5;</code>
*/
public boolean getInstallMouseJoint() {
return installMouseJoint_;
}
/**
* <code>optional bool installMouseJoint = 5;</code>
*/
public Builder setInstallMouseJoint(boolean value) {
bitField0_ |= 0x00000010;
installMouseJoint_ = value;
onChanged();
return this;
}
/**
* <code>optional bool installMouseJoint = 5;</code>
*/
public Builder clearInstallMouseJoint() {
bitField0_ = (bitField0_ & ~0x00000010);
installMouseJoint_ = false;
onChanged();
return this;
}
// optional bool drawDebugData = 6;
private boolean drawDebugData_ ;
/**
* <code>optional bool drawDebugData = 6;</code>
*/
public boolean hasDrawDebugData() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool drawDebugData = 6;</code>
*/
public boolean getDrawDebugData() {
return drawDebugData_;
}
/**
* <code>optional bool drawDebugData = 6;</code>
*/
public Builder setDrawDebugData(boolean value) {
bitField0_ |= 0x00000020;
drawDebugData_ = value;
onChanged();
return this;
}
/**
* <code>optional bool drawDebugData = 6;</code>
*/
public Builder clearDrawDebugData() {
bitField0_ = (bitField0_ & ~0x00000020);
drawDebugData_ = false;
onChanged();
return this;
}
// optional bool drawEntities = 7;
private boolean drawEntities_ ;
/**
* <code>optional bool drawEntities = 7;</code>
*/
public boolean hasDrawEntities() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional bool drawEntities = 7;</code>
*/
public boolean getDrawEntities() {
return drawEntities_;
}
/**
* <code>optional bool drawEntities = 7;</code>
*/
public Builder setDrawEntities(boolean value) {
bitField0_ |= 0x00000040;
drawEntities_ = value;
onChanged();
return this;
}
/**
* <code>optional bool drawEntities = 7;</code>
*/
public Builder clearDrawEntities() {
bitField0_ = (bitField0_ & ~0x00000040);
drawEntities_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences)
}
static {
defaultInstance = new CGDebugDrawPreferences(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences)
}
public interface CGWorldPreferencesOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 ptmRatio = 1;
/**
* <code>optional int32 ptmRatio = 1;</code>
*/
boolean hasPtmRatio();
/**
* <code>optional int32 ptmRatio = 1;</code>
*/
int getPtmRatio();
// optional int32 velocityIterations = 2;
/**
* <code>optional int32 velocityIterations = 2;</code>
*/
boolean hasVelocityIterations();
/**
* <code>optional int32 velocityIterations = 2;</code>
*/
int getVelocityIterations();
// optional int32 positionIterations = 3;
/**
* <code>optional int32 positionIterations = 3;</code>
*/
boolean hasPositionIterations();
/**
* <code>optional int32 positionIterations = 3;</code>
*/
int getPositionIterations();
// optional float timeStep = 4;
/**
* <code>optional float timeStep = 4;</code>
*/
boolean hasTimeStep();
/**
* <code>optional float timeStep = 4;</code>
*/
float getTimeStep();
// optional float gravityX = 5;
/**
* <code>optional float gravityX = 5;</code>
*/
boolean hasGravityX();
/**
* <code>optional float gravityX = 5;</code>
*/
float getGravityX();
// optional float gravityY = 6;
/**
* <code>optional float gravityY = 6;</code>
*/
boolean hasGravityY();
/**
* <code>optional float gravityY = 6;</code>
*/
float getGravityY();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences}
*/
public static final class CGWorldPreferences extends
com.google.protobuf.GeneratedMessage
implements CGWorldPreferencesOrBuilder {
// Use CGWorldPreferences.newBuilder() to construct.
private CGWorldPreferences(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGWorldPreferences(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGWorldPreferences defaultInstance;
public static CGWorldPreferences getDefaultInstance() {
return defaultInstance;
}
public CGWorldPreferences getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGWorldPreferences(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
ptmRatio_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
velocityIterations_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
positionIterations_ = input.readInt32();
break;
}
case 37: {
bitField0_ |= 0x00000008;
timeStep_ = input.readFloat();
break;
}
case 45: {
bitField0_ |= 0x00000010;
gravityX_ = input.readFloat();
break;
}
case 53: {
bitField0_ |= 0x00000020;
gravityY_ = input.readFloat();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.class, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.Builder.class);
}
public static com.google.protobuf.Parser<CGWorldPreferences> PARSER =
new com.google.protobuf.AbstractParser<CGWorldPreferences>() {
public CGWorldPreferences parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGWorldPreferences(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGWorldPreferences> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 ptmRatio = 1;
public static final int PTMRATIO_FIELD_NUMBER = 1;
private int ptmRatio_;
/**
* <code>optional int32 ptmRatio = 1;</code>
*/
public boolean hasPtmRatio() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 ptmRatio = 1;</code>
*/
public int getPtmRatio() {
return ptmRatio_;
}
// optional int32 velocityIterations = 2;
public static final int VELOCITYITERATIONS_FIELD_NUMBER = 2;
private int velocityIterations_;
/**
* <code>optional int32 velocityIterations = 2;</code>
*/
public boolean hasVelocityIterations() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 velocityIterations = 2;</code>
*/
public int getVelocityIterations() {
return velocityIterations_;
}
// optional int32 positionIterations = 3;
public static final int POSITIONITERATIONS_FIELD_NUMBER = 3;
private int positionIterations_;
/**
* <code>optional int32 positionIterations = 3;</code>
*/
public boolean hasPositionIterations() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 positionIterations = 3;</code>
*/
public int getPositionIterations() {
return positionIterations_;
}
// optional float timeStep = 4;
public static final int TIMESTEP_FIELD_NUMBER = 4;
private float timeStep_;
/**
* <code>optional float timeStep = 4;</code>
*/
public boolean hasTimeStep() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float timeStep = 4;</code>
*/
public float getTimeStep() {
return timeStep_;
}
// optional float gravityX = 5;
public static final int GRAVITYX_FIELD_NUMBER = 5;
private float gravityX_;
/**
* <code>optional float gravityX = 5;</code>
*/
public boolean hasGravityX() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float gravityX = 5;</code>
*/
public float getGravityX() {
return gravityX_;
}
// optional float gravityY = 6;
public static final int GRAVITYY_FIELD_NUMBER = 6;
private float gravityY_;
/**
* <code>optional float gravityY = 6;</code>
*/
public boolean hasGravityY() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional float gravityY = 6;</code>
*/
public float getGravityY() {
return gravityY_;
}
private void initFields() {
ptmRatio_ = 0;
velocityIterations_ = 0;
positionIterations_ = 0;
timeStep_ = 0F;
gravityX_ = 0F;
gravityY_ = 0F;
}
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, ptmRatio_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, velocityIterations_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, positionIterations_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFloat(4, timeStep_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFloat(5, gravityX_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeFloat(6, gravityY_);
}
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, ptmRatio_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, velocityIterations_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, positionIterations_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, timeStep_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, gravityX_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(6, gravityY_);
}
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 com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferencesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.class, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
ptmRatio_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
velocityIterations_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
positionIterations_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
timeStep_ = 0F;
bitField0_ = (bitField0_ & ~0x00000008);
gravityX_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
gravityY_ = 0F;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences build() {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences buildPartial() {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences result = new com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.ptmRatio_ = ptmRatio_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.velocityIterations_ = velocityIterations_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.positionIterations_ = positionIterations_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.timeStep_ = timeStep_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gravityX_ = gravityX_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.gravityY_ = gravityY_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences other) {
if (other == com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.getDefaultInstance()) return this;
if (other.hasPtmRatio()) {
setPtmRatio(other.getPtmRatio());
}
if (other.hasVelocityIterations()) {
setVelocityIterations(other.getVelocityIterations());
}
if (other.hasPositionIterations()) {
setPositionIterations(other.getPositionIterations());
}
if (other.hasTimeStep()) {
setTimeStep(other.getTimeStep());
}
if (other.hasGravityX()) {
setGravityX(other.getGravityX());
}
if (other.hasGravityY()) {
setGravityY(other.getGravityY());
}
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.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 ptmRatio = 1;
private int ptmRatio_ ;
/**
* <code>optional int32 ptmRatio = 1;</code>
*/
public boolean hasPtmRatio() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 ptmRatio = 1;</code>
*/
public int getPtmRatio() {
return ptmRatio_;
}
/**
* <code>optional int32 ptmRatio = 1;</code>
*/
public Builder setPtmRatio(int value) {
bitField0_ |= 0x00000001;
ptmRatio_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 ptmRatio = 1;</code>
*/
public Builder clearPtmRatio() {
bitField0_ = (bitField0_ & ~0x00000001);
ptmRatio_ = 0;
onChanged();
return this;
}
// optional int32 velocityIterations = 2;
private int velocityIterations_ ;
/**
* <code>optional int32 velocityIterations = 2;</code>
*/
public boolean hasVelocityIterations() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 velocityIterations = 2;</code>
*/
public int getVelocityIterations() {
return velocityIterations_;
}
/**
* <code>optional int32 velocityIterations = 2;</code>
*/
public Builder setVelocityIterations(int value) {
bitField0_ |= 0x00000002;
velocityIterations_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 velocityIterations = 2;</code>
*/
public Builder clearVelocityIterations() {
bitField0_ = (bitField0_ & ~0x00000002);
velocityIterations_ = 0;
onChanged();
return this;
}
// optional int32 positionIterations = 3;
private int positionIterations_ ;
/**
* <code>optional int32 positionIterations = 3;</code>
*/
public boolean hasPositionIterations() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 positionIterations = 3;</code>
*/
public int getPositionIterations() {
return positionIterations_;
}
/**
* <code>optional int32 positionIterations = 3;</code>
*/
public Builder setPositionIterations(int value) {
bitField0_ |= 0x00000004;
positionIterations_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 positionIterations = 3;</code>
*/
public Builder clearPositionIterations() {
bitField0_ = (bitField0_ & ~0x00000004);
positionIterations_ = 0;
onChanged();
return this;
}
// optional float timeStep = 4;
private float timeStep_ ;
/**
* <code>optional float timeStep = 4;</code>
*/
public boolean hasTimeStep() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional float timeStep = 4;</code>
*/
public float getTimeStep() {
return timeStep_;
}
/**
* <code>optional float timeStep = 4;</code>
*/
public Builder setTimeStep(float value) {
bitField0_ |= 0x00000008;
timeStep_ = value;
onChanged();
return this;
}
/**
* <code>optional float timeStep = 4;</code>
*/
public Builder clearTimeStep() {
bitField0_ = (bitField0_ & ~0x00000008);
timeStep_ = 0F;
onChanged();
return this;
}
// optional float gravityX = 5;
private float gravityX_ ;
/**
* <code>optional float gravityX = 5;</code>
*/
public boolean hasGravityX() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float gravityX = 5;</code>
*/
public float getGravityX() {
return gravityX_;
}
/**
* <code>optional float gravityX = 5;</code>
*/
public Builder setGravityX(float value) {
bitField0_ |= 0x00000010;
gravityX_ = value;
onChanged();
return this;
}
/**
* <code>optional float gravityX = 5;</code>
*/
public Builder clearGravityX() {
bitField0_ = (bitField0_ & ~0x00000010);
gravityX_ = 0F;
onChanged();
return this;
}
// optional float gravityY = 6;
private float gravityY_ ;
/**
* <code>optional float gravityY = 6;</code>
*/
public boolean hasGravityY() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional float gravityY = 6;</code>
*/
public float getGravityY() {
return gravityY_;
}
/**
* <code>optional float gravityY = 6;</code>
*/
public Builder setGravityY(float value) {
bitField0_ |= 0x00000020;
gravityY_ = value;
onChanged();
return this;
}
/**
* <code>optional float gravityY = 6;</code>
*/
public Builder clearGravityY() {
bitField0_ = (bitField0_ & ~0x00000020);
gravityY_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences)
}
static {
defaultInstance = new CGWorldPreferences(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences)
}
public interface CGCardPreferencesOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 cardNoX = 1;
/**
* <code>optional int32 cardNoX = 1;</code>
*/
boolean hasCardNoX();
/**
* <code>optional int32 cardNoX = 1;</code>
*/
int getCardNoX();
// optional int32 cardNoY = 2;
/**
* <code>optional int32 cardNoY = 2;</code>
*/
boolean hasCardNoY();
/**
* <code>optional int32 cardNoY = 2;</code>
*/
int getCardNoY();
// optional int32 cardWidth = 3;
/**
* <code>optional int32 cardWidth = 3;</code>
*/
boolean hasCardWidth();
/**
* <code>optional int32 cardWidth = 3;</code>
*/
int getCardWidth();
// optional int32 cardHeight = 4;
/**
* <code>optional int32 cardHeight = 4;</code>
*/
boolean hasCardHeight();
/**
* <code>optional int32 cardHeight = 4;</code>
*/
int getCardHeight();
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences}
*/
public static final class CGCardPreferences extends
com.google.protobuf.GeneratedMessage
implements CGCardPreferencesOrBuilder {
// Use CGCardPreferences.newBuilder() to construct.
private CGCardPreferences(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CGCardPreferences(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CGCardPreferences defaultInstance;
public static CGCardPreferences getDefaultInstance() {
return defaultInstance;
}
public CGCardPreferences getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CGCardPreferences(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
cardNoX_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
cardNoY_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
cardWidth_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
cardHeight_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.class, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.Builder.class);
}
public static com.google.protobuf.Parser<CGCardPreferences> PARSER =
new com.google.protobuf.AbstractParser<CGCardPreferences>() {
public CGCardPreferences parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CGCardPreferences(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CGCardPreferences> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 cardNoX = 1;
public static final int CARDNOX_FIELD_NUMBER = 1;
private int cardNoX_;
/**
* <code>optional int32 cardNoX = 1;</code>
*/
public boolean hasCardNoX() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 cardNoX = 1;</code>
*/
public int getCardNoX() {
return cardNoX_;
}
// optional int32 cardNoY = 2;
public static final int CARDNOY_FIELD_NUMBER = 2;
private int cardNoY_;
/**
* <code>optional int32 cardNoY = 2;</code>
*/
public boolean hasCardNoY() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 cardNoY = 2;</code>
*/
public int getCardNoY() {
return cardNoY_;
}
// optional int32 cardWidth = 3;
public static final int CARDWIDTH_FIELD_NUMBER = 3;
private int cardWidth_;
/**
* <code>optional int32 cardWidth = 3;</code>
*/
public boolean hasCardWidth() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 cardWidth = 3;</code>
*/
public int getCardWidth() {
return cardWidth_;
}
// optional int32 cardHeight = 4;
public static final int CARDHEIGHT_FIELD_NUMBER = 4;
private int cardHeight_;
/**
* <code>optional int32 cardHeight = 4;</code>
*/
public boolean hasCardHeight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 cardHeight = 4;</code>
*/
public int getCardHeight() {
return cardHeight_;
}
private void initFields() {
cardNoX_ = 0;
cardNoY_ = 0;
cardWidth_ = 0;
cardHeight_ = 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, cardNoX_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, cardNoY_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, cardWidth_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, cardHeight_);
}
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, cardNoX_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, cardNoY_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, cardWidth_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, cardHeight_);
}
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 com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferencesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.class, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
cardNoX_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
cardNoY_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
cardWidth_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
cardHeight_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences build() {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences buildPartial() {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences result = new com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.cardNoX_ = cardNoX_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.cardNoY_ = cardNoY_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.cardWidth_ = cardWidth_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.cardHeight_ = cardHeight_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences other) {
if (other == com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.getDefaultInstance()) return this;
if (other.hasCardNoX()) {
setCardNoX(other.getCardNoX());
}
if (other.hasCardNoY()) {
setCardNoY(other.getCardNoY());
}
if (other.hasCardWidth()) {
setCardWidth(other.getCardWidth());
}
if (other.hasCardHeight()) {
setCardHeight(other.getCardHeight());
}
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.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 cardNoX = 1;
private int cardNoX_ ;
/**
* <code>optional int32 cardNoX = 1;</code>
*/
public boolean hasCardNoX() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int32 cardNoX = 1;</code>
*/
public int getCardNoX() {
return cardNoX_;
}
/**
* <code>optional int32 cardNoX = 1;</code>
*/
public Builder setCardNoX(int value) {
bitField0_ |= 0x00000001;
cardNoX_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 cardNoX = 1;</code>
*/
public Builder clearCardNoX() {
bitField0_ = (bitField0_ & ~0x00000001);
cardNoX_ = 0;
onChanged();
return this;
}
// optional int32 cardNoY = 2;
private int cardNoY_ ;
/**
* <code>optional int32 cardNoY = 2;</code>
*/
public boolean hasCardNoY() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 cardNoY = 2;</code>
*/
public int getCardNoY() {
return cardNoY_;
}
/**
* <code>optional int32 cardNoY = 2;</code>
*/
public Builder setCardNoY(int value) {
bitField0_ |= 0x00000002;
cardNoY_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 cardNoY = 2;</code>
*/
public Builder clearCardNoY() {
bitField0_ = (bitField0_ & ~0x00000002);
cardNoY_ = 0;
onChanged();
return this;
}
// optional int32 cardWidth = 3;
private int cardWidth_ ;
/**
* <code>optional int32 cardWidth = 3;</code>
*/
public boolean hasCardWidth() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 cardWidth = 3;</code>
*/
public int getCardWidth() {
return cardWidth_;
}
/**
* <code>optional int32 cardWidth = 3;</code>
*/
public Builder setCardWidth(int value) {
bitField0_ |= 0x00000004;
cardWidth_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 cardWidth = 3;</code>
*/
public Builder clearCardWidth() {
bitField0_ = (bitField0_ & ~0x00000004);
cardWidth_ = 0;
onChanged();
return this;
}
// optional int32 cardHeight = 4;
private int cardHeight_ ;
/**
* <code>optional int32 cardHeight = 4;</code>
*/
public boolean hasCardHeight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 cardHeight = 4;</code>
*/
public int getCardHeight() {
return cardHeight_;
}
/**
* <code>optional int32 cardHeight = 4;</code>
*/
public Builder setCardHeight(int value) {
bitField0_ |= 0x00000008;
cardHeight_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 cardHeight = 4;</code>
*/
public Builder clearCardHeight() {
bitField0_ = (bitField0_ & ~0x00000008);
cardHeight_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences)
}
static {
defaultInstance = new CGCardPreferences(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences)
}
private int bitField0_;
// optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;
public static final int DEBUGDRAWPREFS_FIELD_NUMBER = 1;
private com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs_;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public boolean hasDebugDrawPrefs() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences getDebugDrawPrefs() {
return debugDrawPrefs_;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferencesOrBuilder getDebugDrawPrefsOrBuilder() {
return debugDrawPrefs_;
}
// optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;
public static final int WORLDPREFS_FIELD_NUMBER = 2;
private com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences worldPrefs_;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public boolean hasWorldPrefs() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences getWorldPrefs() {
return worldPrefs_;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferencesOrBuilder getWorldPrefsOrBuilder() {
return worldPrefs_;
}
// optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;
public static final int CARDPREFS_FIELD_NUMBER = 3;
private com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences cardPrefs_;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public boolean hasCardPrefs() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences getCardPrefs() {
return cardPrefs_;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferencesOrBuilder getCardPrefsOrBuilder() {
return cardPrefs_;
}
// optional .com.laex.cg2d.model.CGColor backgroundColor = 4;
public static final int BACKGROUNDCOLOR_FIELD_NUMBER = 4;
private com.laex.cg2d.model.ScreenModel.CGColor backgroundColor_;
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public boolean hasBackgroundColor() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGColor getBackgroundColor() {
return backgroundColor_;
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGColorOrBuilder getBackgroundColorOrBuilder() {
return backgroundColor_;
}
private void initFields() {
debugDrawPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.getDefaultInstance();
worldPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.getDefaultInstance();
cardPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.getDefaultInstance();
backgroundColor_ = com.laex.cg2d.model.ScreenModel.CGColor.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasBackgroundColor()) {
if (!getBackgroundColor().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.writeMessage(1, debugDrawPrefs_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, worldPrefs_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, cardPrefs_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, backgroundColor_);
}
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
.computeMessageSize(1, debugDrawPrefs_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, worldPrefs_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, cardPrefs_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, backgroundColor_);
}
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 com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.laex.cg2d.model.ScreenModel.CGScreenPreferences parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.laex.cg2d.model.ScreenModel.CGScreenPreferences prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.laex.cg2d.model.CGScreenPreferences}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.laex.cg2d.model.ScreenModel.CGScreenPreferencesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.class, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.Builder.class);
}
// Construct using com.laex.cg2d.model.ScreenModel.CGScreenPreferences.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getDebugDrawPrefsFieldBuilder();
getWorldPrefsFieldBuilder();
getCardPrefsFieldBuilder();
getBackgroundColorFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (debugDrawPrefsBuilder_ == null) {
debugDrawPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.getDefaultInstance();
} else {
debugDrawPrefsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (worldPrefsBuilder_ == null) {
worldPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.getDefaultInstance();
} else {
worldPrefsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (cardPrefsBuilder_ == null) {
cardPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.getDefaultInstance();
} else {
cardPrefsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (backgroundColorBuilder_ == null) {
backgroundColor_ = com.laex.cg2d.model.ScreenModel.CGColor.getDefaultInstance();
} else {
backgroundColorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.laex.cg2d.model.ScreenModel.internal_static_com_laex_cg2d_model_CGScreenPreferences_descriptor;
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences getDefaultInstanceForType() {
return com.laex.cg2d.model.ScreenModel.CGScreenPreferences.getDefaultInstance();
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences build() {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences buildPartial() {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences result = new com.laex.cg2d.model.ScreenModel.CGScreenPreferences(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (debugDrawPrefsBuilder_ == null) {
result.debugDrawPrefs_ = debugDrawPrefs_;
} else {
result.debugDrawPrefs_ = debugDrawPrefsBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (worldPrefsBuilder_ == null) {
result.worldPrefs_ = worldPrefs_;
} else {
result.worldPrefs_ = worldPrefsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (cardPrefsBuilder_ == null) {
result.cardPrefs_ = cardPrefs_;
} else {
result.cardPrefs_ = cardPrefsBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (backgroundColorBuilder_ == null) {
result.backgroundColor_ = backgroundColor_;
} else {
result.backgroundColor_ = backgroundColorBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.laex.cg2d.model.ScreenModel.CGScreenPreferences) {
return mergeFrom((com.laex.cg2d.model.ScreenModel.CGScreenPreferences)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.laex.cg2d.model.ScreenModel.CGScreenPreferences other) {
if (other == com.laex.cg2d.model.ScreenModel.CGScreenPreferences.getDefaultInstance()) return this;
if (other.hasDebugDrawPrefs()) {
mergeDebugDrawPrefs(other.getDebugDrawPrefs());
}
if (other.hasWorldPrefs()) {
mergeWorldPrefs(other.getWorldPrefs());
}
if (other.hasCardPrefs()) {
mergeCardPrefs(other.getCardPrefs());
}
if (other.hasBackgroundColor()) {
mergeBackgroundColor(other.getBackgroundColor());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasBackgroundColor()) {
if (!getBackgroundColor().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.laex.cg2d.model.ScreenModel.CGScreenPreferences parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.laex.cg2d.model.ScreenModel.CGScreenPreferences) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;
private com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferencesOrBuilder> debugDrawPrefsBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public boolean hasDebugDrawPrefs() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences getDebugDrawPrefs() {
if (debugDrawPrefsBuilder_ == null) {
return debugDrawPrefs_;
} else {
return debugDrawPrefsBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public Builder setDebugDrawPrefs(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences value) {
if (debugDrawPrefsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
debugDrawPrefs_ = value;
onChanged();
} else {
debugDrawPrefsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public Builder setDebugDrawPrefs(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.Builder builderForValue) {
if (debugDrawPrefsBuilder_ == null) {
debugDrawPrefs_ = builderForValue.build();
onChanged();
} else {
debugDrawPrefsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public Builder mergeDebugDrawPrefs(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences value) {
if (debugDrawPrefsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
debugDrawPrefs_ != com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.getDefaultInstance()) {
debugDrawPrefs_ =
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.newBuilder(debugDrawPrefs_).mergeFrom(value).buildPartial();
} else {
debugDrawPrefs_ = value;
}
onChanged();
} else {
debugDrawPrefsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public Builder clearDebugDrawPrefs() {
if (debugDrawPrefsBuilder_ == null) {
debugDrawPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.getDefaultInstance();
onChanged();
} else {
debugDrawPrefsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.Builder getDebugDrawPrefsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDebugDrawPrefsFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferencesOrBuilder getDebugDrawPrefsOrBuilder() {
if (debugDrawPrefsBuilder_ != null) {
return debugDrawPrefsBuilder_.getMessageOrBuilder();
} else {
return debugDrawPrefs_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGDebugDrawPreferences debugDrawPrefs = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferencesOrBuilder>
getDebugDrawPrefsFieldBuilder() {
if (debugDrawPrefsBuilder_ == null) {
debugDrawPrefsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGDebugDrawPreferencesOrBuilder>(
debugDrawPrefs_,
getParentForChildren(),
isClean());
debugDrawPrefs_ = null;
}
return debugDrawPrefsBuilder_;
}
// optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;
private com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences worldPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferencesOrBuilder> worldPrefsBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public boolean hasWorldPrefs() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences getWorldPrefs() {
if (worldPrefsBuilder_ == null) {
return worldPrefs_;
} else {
return worldPrefsBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public Builder setWorldPrefs(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences value) {
if (worldPrefsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
worldPrefs_ = value;
onChanged();
} else {
worldPrefsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public Builder setWorldPrefs(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.Builder builderForValue) {
if (worldPrefsBuilder_ == null) {
worldPrefs_ = builderForValue.build();
onChanged();
} else {
worldPrefsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public Builder mergeWorldPrefs(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences value) {
if (worldPrefsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
worldPrefs_ != com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.getDefaultInstance()) {
worldPrefs_ =
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.newBuilder(worldPrefs_).mergeFrom(value).buildPartial();
} else {
worldPrefs_ = value;
}
onChanged();
} else {
worldPrefsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public Builder clearWorldPrefs() {
if (worldPrefsBuilder_ == null) {
worldPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.getDefaultInstance();
onChanged();
} else {
worldPrefsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.Builder getWorldPrefsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getWorldPrefsFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferencesOrBuilder getWorldPrefsOrBuilder() {
if (worldPrefsBuilder_ != null) {
return worldPrefsBuilder_.getMessageOrBuilder();
} else {
return worldPrefs_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGWorldPreferences worldPrefs = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferencesOrBuilder>
getWorldPrefsFieldBuilder() {
if (worldPrefsBuilder_ == null) {
worldPrefsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGWorldPreferencesOrBuilder>(
worldPrefs_,
getParentForChildren(),
isClean());
worldPrefs_ = null;
}
return worldPrefsBuilder_;
}
// optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;
private com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences cardPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferencesOrBuilder> cardPrefsBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public boolean hasCardPrefs() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences getCardPrefs() {
if (cardPrefsBuilder_ == null) {
return cardPrefs_;
} else {
return cardPrefsBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public Builder setCardPrefs(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences value) {
if (cardPrefsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cardPrefs_ = value;
onChanged();
} else {
cardPrefsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public Builder setCardPrefs(
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.Builder builderForValue) {
if (cardPrefsBuilder_ == null) {
cardPrefs_ = builderForValue.build();
onChanged();
} else {
cardPrefsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public Builder mergeCardPrefs(com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences value) {
if (cardPrefsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
cardPrefs_ != com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.getDefaultInstance()) {
cardPrefs_ =
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.newBuilder(cardPrefs_).mergeFrom(value).buildPartial();
} else {
cardPrefs_ = value;
}
onChanged();
} else {
cardPrefsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public Builder clearCardPrefs() {
if (cardPrefsBuilder_ == null) {
cardPrefs_ = com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.getDefaultInstance();
onChanged();
} else {
cardPrefsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.Builder getCardPrefsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCardPrefsFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferencesOrBuilder getCardPrefsOrBuilder() {
if (cardPrefsBuilder_ != null) {
return cardPrefsBuilder_.getMessageOrBuilder();
} else {
return cardPrefs_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGScreenPreferences.CGCardPreferences cardPrefs = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferencesOrBuilder>
getCardPrefsFieldBuilder() {
if (cardPrefsBuilder_ == null) {
cardPrefsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferences.Builder, com.laex.cg2d.model.ScreenModel.CGScreenPreferences.CGCardPreferencesOrBuilder>(
cardPrefs_,
getParentForChildren(),
isClean());
cardPrefs_ = null;
}
return cardPrefsBuilder_;
}
// optional .com.laex.cg2d.model.CGColor backgroundColor = 4;
private com.laex.cg2d.model.ScreenModel.CGColor backgroundColor_ = com.laex.cg2d.model.ScreenModel.CGColor.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGColor, com.laex.cg2d.model.ScreenModel.CGColor.Builder, com.laex.cg2d.model.ScreenModel.CGColorOrBuilder> backgroundColorBuilder_;
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public boolean hasBackgroundColor() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGColor getBackgroundColor() {
if (backgroundColorBuilder_ == null) {
return backgroundColor_;
} else {
return backgroundColorBuilder_.getMessage();
}
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public Builder setBackgroundColor(com.laex.cg2d.model.ScreenModel.CGColor value) {
if (backgroundColorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backgroundColor_ = value;
onChanged();
} else {
backgroundColorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public Builder setBackgroundColor(
com.laex.cg2d.model.ScreenModel.CGColor.Builder builderForValue) {
if (backgroundColorBuilder_ == null) {
backgroundColor_ = builderForValue.build();
onChanged();
} else {
backgroundColorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public Builder mergeBackgroundColor(com.laex.cg2d.model.ScreenModel.CGColor value) {
if (backgroundColorBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
backgroundColor_ != com.laex.cg2d.model.ScreenModel.CGColor.getDefaultInstance()) {
backgroundColor_ =
com.laex.cg2d.model.ScreenModel.CGColor.newBuilder(backgroundColor_).mergeFrom(value).buildPartial();
} else {
backgroundColor_ = value;
}
onChanged();
} else {
backgroundColorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public Builder clearBackgroundColor() {
if (backgroundColorBuilder_ == null) {
backgroundColor_ = com.laex.cg2d.model.ScreenModel.CGColor.getDefaultInstance();
onChanged();
} else {
backgroundColorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGColor.Builder getBackgroundColorBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getBackgroundColorFieldBuilder().getBuilder();
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
public com.laex.cg2d.model.ScreenModel.CGColorOrBuilder getBackgroundColorOrBuilder() {
if (backgroundColorBuilder_ != null) {
return backgroundColorBuilder_.getMessageOrBuilder();
} else {
return backgroundColor_;
}
}
/**
* <code>optional .com.laex.cg2d.model.CGColor backgroundColor = 4;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGColor, com.laex.cg2d.model.ScreenModel.CGColor.Builder, com.laex.cg2d.model.ScreenModel.CGColorOrBuilder>
getBackgroundColorFieldBuilder() {
if (backgroundColorBuilder_ == null) {
backgroundColorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.laex.cg2d.model.ScreenModel.CGColor, com.laex.cg2d.model.ScreenModel.CGColor.Builder, com.laex.cg2d.model.ScreenModel.CGColorOrBuilder>(
backgroundColor_,
getParentForChildren(),
isClean());
backgroundColor_ = null;
}
return backgroundColorBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.laex.cg2d.model.CGScreenPreferences)
}
static {
defaultInstance = new CGScreenPreferences(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.laex.cg2d.model.CGScreenPreferences)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGScreenModel_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGScreenModel_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGJoint_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGJoint_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGDistanceJointDef_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGDistanceJointDef_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGRevoluteJointDef_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGRevoluteJointDef_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGPrismaticJointDef_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGPrismaticJointDef_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGPulleyJointDef_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGPulleyJointDef_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGFrictionJointDef_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGFrictionJointDef_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGWeldJointDef_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGWeldJointDef_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGResourceFile_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGResourceFile_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGEntityAnimation_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGEntityAnimation_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGEntity_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGEntity_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGBounds_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGBounds_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGVector2_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGVector2_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGColor_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGColor_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGBodyDef_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGBodyDef_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGFilter_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGFilter_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGFixtureDef_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGFixtureDef_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGShape_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGShape_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGLayer_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGLayer_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGScreenPreferences_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGScreenPreferences_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n%com/laex/cg2d/model/ScreenModel.proto\022" +
"\023com.laex.cg2d.model\"|\n\rCGScreenModel\022=\n" +
"\013screenPrefs\030\001 \001(\0132(.com.laex.cg2d.model" +
".CGScreenPreferences\022,\n\006layers\030\002 \003(\0132\034.c" +
"om.laex.cg2d.model.CGLayer\"\364\004\n\007CGJoint\022\025" +
"\n\rsourceShapeId\030\001 \001(\t\022\025\n\rtargetShapeId\030\002" +
" \001(\t\022.\n\004type\030\003 \001(\0162 .com.laex.cg2d.model" +
".CGJointType\022A\n\020distanceJointDef\030\005 \001(\0132\'" +
".com.laex.cg2d.model.CGDistanceJointDef\022" +
"A\n\020revoluteJointDef\030\006 \001(\0132\'.com.laex.cg2",
"d.model.CGRevoluteJointDef\022C\n\021prismaticJ" +
"ointDef\030\007 \001(\0132(.com.laex.cg2d.model.CGPr" +
"ismaticJointDef\022=\n\016pulleyJointDef\030\010 \001(\0132" +
"%.com.laex.cg2d.model.CGPulleyJointDef\022A" +
"\n\020frictionJointDef\030\t \001(\0132\'.com.laex.cg2d" +
".model.CGFrictionJointDef\0229\n\014weldJointDe" +
"f\030\n \001(\0132#.com.laex.cg2d.model.CGWeldJoin" +
"tDef\0224\n\014localAnchorA\030\013 \001(\0132\036.com.laex.cg" +
"2d.model.CGVector2\0224\n\014localAnchorB\030\014 \001(\013" +
"2\036.com.laex.cg2d.model.CGVector2\022\027\n\017useL",
"ocalAnchors\030\r \001(\010\"X\n\022CGDistanceJointDef\022" +
"\030\n\020collideConnected\030\001 \001(\010\022\022\n\nfreqencyHz\030" +
"\002 \001(\002\022\024\n\014dampingRatio\030\003 \001(\002\"\304\001\n\022CGRevolu" +
"teJointDef\022\030\n\020collideConnected\030\001 \001(\010\022\026\n\016" +
"referenceAngle\030\002 \001(\002\022\023\n\013enableLimit\030\003 \001(" +
"\010\022\022\n\nlowerAngle\030\004 \001(\002\022\022\n\nupperAngle\030\005 \001(" +
"\002\022\023\n\013enableMotor\030\006 \001(\010\022\022\n\nmotorSpeed\030\007 \001" +
"(\002\022\026\n\016maxMotorTorque\030\010 \001(\002\"\256\002\n\023CGPrismat" +
"icJointDef\022\030\n\020collideConnected\030\001 \001(\010\022.\n\006" +
"anchor\030\002 \001(\0132\036.com.laex.cg2d.model.CGVec",
"tor2\022,\n\004axis\030\003 \001(\0132\036.com.laex.cg2d.model" +
".CGVector2\022\026\n\016referenceAngle\030\005 \001(\002\022\023\n\013en" +
"ableLimit\030\006 \001(\010\022\030\n\020lowerTranslation\030\007 \001(" +
"\002\022\030\n\020upperTranslation\030\010 \001(\002\022\023\n\013enableMot" +
"or\030\t \001(\010\022\025\n\rmaxMotorForce\030\n \001(\002\022\022\n\nmotor" +
"Speed\030\013 \001(\002\"\251\001\n\020CGPulleyJointDef\022\030\n\020coll" +
"ideConnected\030\001 \001(\010\0225\n\rgroundAnchorA\030\002 \001(" +
"\0132\036.com.laex.cg2d.model.CGVector2\0225\n\rgro" +
"undAnchorB\030\003 \001(\0132\036.com.laex.cg2d.model.C" +
"GVector2\022\r\n\005ratio\030\004 \001(\002\"S\n\022CGFrictionJoi",
"ntDef\022\030\n\020collideConnected\030\001 \001(\010\022\020\n\010maxFo" +
"rce\030\002 \001(\002\022\021\n\tmaxTorque\030\003 \001(\002\"*\n\016CGWeldJo" +
"intDef\022\030\n\020collideConnected\030\001 \001(\010\"D\n\016CGRe" +
"sourceFile\022\024\n\014resourceFile\030\001 \001(\t\022\034\n\024reso" +
"urceFileAbsolute\030\002 \001(\t\"c\n\027CGEntitySprite" +
"sheetItem\0224\n\rextractBounds\030\001 \001(\0132\035.com.l" +
"aex.cg2d.model.CGBounds\022\022\n\nframeIndex\030\002 " +
"\001(\005\"\326\003\n\021CGEntityAnimation\022\025\n\ranimationNa" +
"me\030\001 \001(\t\022\031\n\021animationDuration\030\002 \001(\002\022\030\n\020d" +
"efaultAnimation\030\003 \001(\010\022A\n\rcollisionType\030\004",
" \001(\0162*.com.laex.cg2d.model.CGEntityColli" +
"sionType\022<\n\017spritesheetFile\030\005 \001(\0132#.com." +
"laex.cg2d.model.CGResourceFile\022@\n\023sprite" +
"sheetJsonFile\030\006 \001(\0132#.com.laex.cg2d.mode" +
"l.CGResourceFile\0228\n\013fixtureFile\030\007 \001(\0132#." +
"com.laex.cg2d.model.CGResourceFile\0220\n\010ve" +
"rtices\030\010 \003(\0132\036.com.laex.cg2d.model.CGVec" +
"tor2\022F\n\020spritesheetItems\030\t \003(\0132,.com.lae" +
"x.cg2d.model.CGEntitySpritesheetItem\"F\n\010" +
"CGEntity\022:\n\nanimations\030\001 \003(\0132&.com.laex.",
"cg2d.model.CGEntityAnimation\"?\n\010CGBounds" +
"\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005width\030\003 \001(\002\022\016\n" +
"\006height\030\004 \001(\002\"!\n\tCGVector2\022\t\n\001x\030\001 \002(\002\022\t\n" +
"\001y\030\002 \002(\002\"*\n\007CGColor\022\t\n\001r\030\001 \002(\005\022\t\n\001g\030\002 \002(" +
"\005\022\t\n\001b\030\003 \002(\005\"\203\003\n\tCGBodyDef\022\016\n\006active\030\001 \001" +
"(\010\022\022\n\nallowSleep\030\002 \001(\010\022\r\n\005angle\030\003 \001(\002\022\026\n" +
"\016angularDamping\030\004 \001(\002\022\027\n\017angularVelocity" +
"\030\005 \001(\002\022\r\n\005awake\030\006 \001(\010\022\016\n\006bullet\030\007 \001(\010\022\025\n" +
"\rfixedRotation\030\010 \001(\010\022\026\n\016intertialScale\030\t" +
" \001(\002\022\025\n\rlinearDamping\030\n \001(\002\022\024\n\014gravitySc",
"ale\030\013 \001(\002\0226\n\016linearVelocity\030\014 \001(\0132\036.com." +
"laex.cg2d.model.CGVector2\022-\n\004type\030\r \001(\0162" +
"\037.com.laex.cg2d.model.CGBodyType\0220\n\010posi" +
"tion\030\016 \001(\0132\036.com.laex.cg2d.model.CGVecto" +
"r2\"F\n\010CGFilter\022\024\n\014categoryBits\030\001 \001(\005\022\020\n\010" +
"maskBits\030\002 \001(\005\022\022\n\ngroupIndex\030\003 \001(\005\"\205\001\n\014C" +
"GFixtureDef\022\017\n\007density\030\001 \001(\002\022\020\n\010friction" +
"\030\002 \001(\002\022\023\n\013restitution\030\003 \001(\002\022\016\n\006sensor\030\004 " +
"\001(\010\022-\n\006filter\030\005 \001(\0132\035.com.laex.cg2d.mode" +
"l.CGFilter\"\337\003\n\007CGShape\022\n\n\002id\030\001 \001(\t\022\017\n\007vi",
"sible\030\002 \001(\010\022\016\n\006locked\030\003 \001(\010\022\022\n\nbackgroun" +
"d\030\004 \001(\010\022C\n\026backgroundResourceFile\030\005 \001(\0132" +
"#.com.laex.cg2d.model.CGResourceFile\022?\n\017" +
"editorShapeType\030\006 \001(\0162&.com.laex.cg2d.mo" +
"del.CGEditorShapeType\022-\n\006bounds\030\007 \001(\0132\035." +
"com.laex.cg2d.model.CGBounds\022/\n\007bodyDef\030" +
"\010 \001(\0132\036.com.laex.cg2d.model.CGBodyDef\0225\n" +
"\nfixtureDef\030\t \001(\0132!.com.laex.cg2d.model." +
"CGFixtureDef\022,\n\006joints\030\n \003(\0132\034.com.laex." +
"cg2d.model.CGJoint\022:\n\rentityRefFile\030\013 \001(",
"\0132#.com.laex.cg2d.model.CGResourceFile\022\014" +
"\n\004text\030\014 \001(\t\"q\n\007CGLayer\022\n\n\002id\030\001 \001(\005\022\014\n\004n" +
"ame\030\002 \001(\t\022\017\n\007visible\030\003 \001(\010\022\016\n\006locked\030\004 \001" +
"(\010\022+\n\005shape\030\005 \003(\0132\034.com.laex.cg2d.model." +
"CGShape\"\363\005\n\023CGScreenPreferences\022W\n\016debug" +
"DrawPrefs\030\001 \001(\0132?.com.laex.cg2d.model.CG" +
"ScreenPreferences.CGDebugDrawPreferences" +
"\022O\n\nworldPrefs\030\002 \001(\0132;.com.laex.cg2d.mod" +
"el.CGScreenPreferences.CGWorldPreference" +
"s\022M\n\tcardPrefs\030\003 \001(\0132:.com.laex.cg2d.mod",
"el.CGScreenPreferences.CGCardPreferences" +
"\0225\n\017backgroundColor\030\004 \001(\0132\034.com.laex.cg2" +
"d.model.CGColor\032\266\001\n\026CGDebugDrawPreferenc" +
"es\022\022\n\ndrawBodies\030\001 \001(\010\022\022\n\ndrawJoints\030\002 \001" +
"(\010\022\020\n\010drawAABB\030\003 \001(\010\022\032\n\022drawInactiveBodi" +
"es\030\004 \001(\010\022\031\n\021installMouseJoint\030\005 \001(\010\022\025\n\rd" +
"rawDebugData\030\006 \001(\010\022\024\n\014drawEntities\030\007 \001(\010" +
"\032\224\001\n\022CGWorldPreferences\022\020\n\010ptmRatio\030\001 \001(" +
"\005\022\032\n\022velocityIterations\030\002 \001(\005\022\032\n\022positio" +
"nIterations\030\003 \001(\005\022\020\n\010timeStep\030\004 \001(\002\022\020\n\010g",
"ravityX\030\005 \001(\002\022\020\n\010gravityY\030\006 \001(\002\032\\\n\021CGCar" +
"dPreferences\022\017\n\007cardNoX\030\001 \001(\005\022\017\n\007cardNoY" +
"\030\002 \001(\005\022\021\n\tcardWidth\030\003 \001(\005\022\022\n\ncardHeight\030" +
"\004 \001(\005*\223\001\n\013CGJointType\022\013\n\007UNKNOWN\020\001\022\014\n\010RE" +
"VOLUTE\020\002\022\r\n\tPRISMATIC\020\003\022\014\n\010DISTANCE\020\004\022\n\n" +
"\006PULLEY\020\005\022\t\n\005MOUSE\020\006\022\010\n\004GEAR\020\007\022\t\n\005WHEEL\020" +
"\010\022\010\n\004WELD\020\t\022\014\n\010FRICTION\020\n\022\010\n\004ROPE\020\013*B\n\025C" +
"GEntityCollisionType\022\010\n\004NONE\020\000\022\007\n\003BOX\020\001\022" +
"\n\n\006CIRCLE\020\002\022\n\n\006CUSTOM\020\003*4\n\nCGBodyType\022\n\n" +
"\006STATIC\020\001\022\r\n\tKINEMATIC\020\002\022\013\n\007DYNAMIC\020\003*\232\001",
"\n\021CGEditorShapeType\022\027\n\023SIMPLE_SHAPE_CIRC" +
"LE\020\001\022\024\n\020SIMPLE_SHAPE_BOX\020\002\022\026\n\022SIMPLE_SHA" +
"PE_HEDGE\020\003\022\026\n\022SIMPLE_SHAPE_VEDGE\020\004\022\024\n\020BA" +
"CKGROUND_SHAPE\020\005\022\020\n\014ENTITY_SHAPE\020\006"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_com_laex_cg2d_model_CGScreenModel_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_laex_cg2d_model_CGScreenModel_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGScreenModel_descriptor,
new java.lang.String[] { "ScreenPrefs", "Layers", });
internal_static_com_laex_cg2d_model_CGJoint_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_laex_cg2d_model_CGJoint_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGJoint_descriptor,
new java.lang.String[] { "SourceShapeId", "TargetShapeId", "Type", "DistanceJointDef", "RevoluteJointDef", "PrismaticJointDef", "PulleyJointDef", "FrictionJointDef", "WeldJointDef", "LocalAnchorA", "LocalAnchorB", "UseLocalAnchors", });
internal_static_com_laex_cg2d_model_CGDistanceJointDef_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_laex_cg2d_model_CGDistanceJointDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGDistanceJointDef_descriptor,
new java.lang.String[] { "CollideConnected", "FreqencyHz", "DampingRatio", });
internal_static_com_laex_cg2d_model_CGRevoluteJointDef_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_laex_cg2d_model_CGRevoluteJointDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGRevoluteJointDef_descriptor,
new java.lang.String[] { "CollideConnected", "ReferenceAngle", "EnableLimit", "LowerAngle", "UpperAngle", "EnableMotor", "MotorSpeed", "MaxMotorTorque", });
internal_static_com_laex_cg2d_model_CGPrismaticJointDef_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_laex_cg2d_model_CGPrismaticJointDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGPrismaticJointDef_descriptor,
new java.lang.String[] { "CollideConnected", "Anchor", "Axis", "ReferenceAngle", "EnableLimit", "LowerTranslation", "UpperTranslation", "EnableMotor", "MaxMotorForce", "MotorSpeed", });
internal_static_com_laex_cg2d_model_CGPulleyJointDef_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_com_laex_cg2d_model_CGPulleyJointDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGPulleyJointDef_descriptor,
new java.lang.String[] { "CollideConnected", "GroundAnchorA", "GroundAnchorB", "Ratio", });
internal_static_com_laex_cg2d_model_CGFrictionJointDef_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_com_laex_cg2d_model_CGFrictionJointDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGFrictionJointDef_descriptor,
new java.lang.String[] { "CollideConnected", "MaxForce", "MaxTorque", });
internal_static_com_laex_cg2d_model_CGWeldJointDef_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_com_laex_cg2d_model_CGWeldJointDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGWeldJointDef_descriptor,
new java.lang.String[] { "CollideConnected", });
internal_static_com_laex_cg2d_model_CGResourceFile_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_com_laex_cg2d_model_CGResourceFile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGResourceFile_descriptor,
new java.lang.String[] { "ResourceFile", "ResourceFileAbsolute", });
internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGEntitySpritesheetItem_descriptor,
new java.lang.String[] { "ExtractBounds", "FrameIndex", });
internal_static_com_laex_cg2d_model_CGEntityAnimation_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_com_laex_cg2d_model_CGEntityAnimation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGEntityAnimation_descriptor,
new java.lang.String[] { "AnimationName", "AnimationDuration", "DefaultAnimation", "CollisionType", "SpritesheetFile", "SpritesheetJsonFile", "FixtureFile", "Vertices", "SpritesheetItems", });
internal_static_com_laex_cg2d_model_CGEntity_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_com_laex_cg2d_model_CGEntity_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGEntity_descriptor,
new java.lang.String[] { "Animations", });
internal_static_com_laex_cg2d_model_CGBounds_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_com_laex_cg2d_model_CGBounds_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGBounds_descriptor,
new java.lang.String[] { "X", "Y", "Width", "Height", });
internal_static_com_laex_cg2d_model_CGVector2_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_com_laex_cg2d_model_CGVector2_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGVector2_descriptor,
new java.lang.String[] { "X", "Y", });
internal_static_com_laex_cg2d_model_CGColor_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_com_laex_cg2d_model_CGColor_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGColor_descriptor,
new java.lang.String[] { "R", "G", "B", });
internal_static_com_laex_cg2d_model_CGBodyDef_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_com_laex_cg2d_model_CGBodyDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGBodyDef_descriptor,
new java.lang.String[] { "Active", "AllowSleep", "Angle", "AngularDamping", "AngularVelocity", "Awake", "Bullet", "FixedRotation", "IntertialScale", "LinearDamping", "GravityScale", "LinearVelocity", "Type", "Position", });
internal_static_com_laex_cg2d_model_CGFilter_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_com_laex_cg2d_model_CGFilter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGFilter_descriptor,
new java.lang.String[] { "CategoryBits", "MaskBits", "GroupIndex", });
internal_static_com_laex_cg2d_model_CGFixtureDef_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_com_laex_cg2d_model_CGFixtureDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGFixtureDef_descriptor,
new java.lang.String[] { "Density", "Friction", "Restitution", "Sensor", "Filter", });
internal_static_com_laex_cg2d_model_CGShape_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_com_laex_cg2d_model_CGShape_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGShape_descriptor,
new java.lang.String[] { "Id", "Visible", "Locked", "Background", "BackgroundResourceFile", "EditorShapeType", "Bounds", "BodyDef", "FixtureDef", "Joints", "EntityRefFile", "Text", });
internal_static_com_laex_cg2d_model_CGLayer_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_com_laex_cg2d_model_CGLayer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGLayer_descriptor,
new java.lang.String[] { "Id", "Name", "Visible", "Locked", "Shape", });
internal_static_com_laex_cg2d_model_CGScreenPreferences_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_com_laex_cg2d_model_CGScreenPreferences_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGScreenPreferences_descriptor,
new java.lang.String[] { "DebugDrawPrefs", "WorldPrefs", "CardPrefs", "BackgroundColor", });
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_descriptor =
internal_static_com_laex_cg2d_model_CGScreenPreferences_descriptor.getNestedTypes().get(0);
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGDebugDrawPreferences_descriptor,
new java.lang.String[] { "DrawBodies", "DrawJoints", "DrawAABB", "DrawInactiveBodies", "InstallMouseJoint", "DrawDebugData", "DrawEntities", });
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_descriptor =
internal_static_com_laex_cg2d_model_CGScreenPreferences_descriptor.getNestedTypes().get(1);
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGWorldPreferences_descriptor,
new java.lang.String[] { "PtmRatio", "VelocityIterations", "PositionIterations", "TimeStep", "GravityX", "GravityY", });
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_descriptor =
internal_static_com_laex_cg2d_model_CGScreenPreferences_descriptor.getNestedTypes().get(2);
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_laex_cg2d_model_CGScreenPreferences_CGCardPreferences_descriptor,
new java.lang.String[] { "CardNoX", "CardNoY", "CardWidth", "CardHeight", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}