/** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public Builder mergeMoverData(com.chaoslabgames.packet.MoverDataPkg value) { if (moverDataBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && moverData_ != com.chaoslabgames.packet.MoverDataPkg.getDefaultInstance()) { moverData_ = com.chaoslabgames.packet.MoverDataPkg.newBuilder(moverData_) .mergeFrom(value) .buildPartial(); } else { moverData_ = value; } onChanged(); } else { moverDataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; }
/** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public Builder clearMoverData() { if (moverDataBuilder_ == null) { moverData_ = com.chaoslabgames.packet.MoverDataPkg.getDefaultInstance(); onChanged(); } else { moverDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; }
public Builder clear() { super.clear(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); tickId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); if (moverDataBuilder_ == null) { moverData_ = com.chaoslabgames.packet.MoverDataPkg.getDefaultInstance(); } else { moverDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; }
/** Protobuf type {@code com.chaoslabgames.packet.UpdateMoverEventPkg} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:com.chaoslabgames.packet.UpdateMoverEventPkg) com.chaoslabgames.packet.UpdateMoverEventPkgOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.chaoslabgames.packet.Packet .internal_static_com_chaoslabgames_packet_UpdateMoverEventPkg_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.chaoslabgames.packet.Packet .internal_static_com_chaoslabgames_packet_UpdateMoverEventPkg_fieldAccessorTable .ensureFieldAccessorsInitialized( com.chaoslabgames.packet.UpdateMoverEventPkg.class, com.chaoslabgames.packet.UpdateMoverEventPkg.Builder.class); } // Construct using com.chaoslabgames.packet.UpdateMoverEventPkg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMoverDataFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); tickId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); if (moverDataBuilder_ == null) { moverData_ = com.chaoslabgames.packet.MoverDataPkg.getDefaultInstance(); } else { moverDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.chaoslabgames.packet.Packet .internal_static_com_chaoslabgames_packet_UpdateMoverEventPkg_descriptor; } public com.chaoslabgames.packet.UpdateMoverEventPkg getDefaultInstanceForType() { return com.chaoslabgames.packet.UpdateMoverEventPkg.getDefaultInstance(); } public com.chaoslabgames.packet.UpdateMoverEventPkg build() { com.chaoslabgames.packet.UpdateMoverEventPkg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.chaoslabgames.packet.UpdateMoverEventPkg buildPartial() { com.chaoslabgames.packet.UpdateMoverEventPkg result = new com.chaoslabgames.packet.UpdateMoverEventPkg(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.tickId_ = tickId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (moverDataBuilder_ == null) { result.moverData_ = moverData_; } else { result.moverData_ = moverDataBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.chaoslabgames.packet.UpdateMoverEventPkg) { return mergeFrom((com.chaoslabgames.packet.UpdateMoverEventPkg) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.chaoslabgames.packet.UpdateMoverEventPkg other) { if (other == com.chaoslabgames.packet.UpdateMoverEventPkg.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasTickId()) { setTickId(other.getTickId()); } if (other.hasMoverData()) { mergeMoverData(other.getMoverData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasTickId()) { return false; } if (!hasMoverData()) { return false; } if (!getMoverData().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.chaoslabgames.packet.UpdateMoverEventPkg parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.chaoslabgames.packet.UpdateMoverEventPkg) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long id_; /** <code>required int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** <code>required int64 id = 1;</code> */ public long getId() { return id_; } /** <code>required int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** <code>required int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } private long tickId_; /** <code>required int64 tickId = 2;</code> */ public boolean hasTickId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** <code>required int64 tickId = 2;</code> */ public long getTickId() { return tickId_; } /** <code>required int64 tickId = 2;</code> */ public Builder setTickId(long value) { bitField0_ |= 0x00000002; tickId_ = value; onChanged(); return this; } /** <code>required int64 tickId = 2;</code> */ public Builder clearTickId() { bitField0_ = (bitField0_ & ~0x00000002); tickId_ = 0L; onChanged(); return this; } private com.chaoslabgames.packet.MoverDataPkg moverData_ = com.chaoslabgames.packet.MoverDataPkg.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.chaoslabgames.packet.MoverDataPkg, com.chaoslabgames.packet.MoverDataPkg.Builder, com.chaoslabgames.packet.MoverDataPkgOrBuilder> moverDataBuilder_; /** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public boolean hasMoverData() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public com.chaoslabgames.packet.MoverDataPkg getMoverData() { if (moverDataBuilder_ == null) { return moverData_; } else { return moverDataBuilder_.getMessage(); } } /** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public Builder setMoverData(com.chaoslabgames.packet.MoverDataPkg value) { if (moverDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } moverData_ = value; onChanged(); } else { moverDataBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public Builder setMoverData(com.chaoslabgames.packet.MoverDataPkg.Builder builderForValue) { if (moverDataBuilder_ == null) { moverData_ = builderForValue.build(); onChanged(); } else { moverDataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public Builder mergeMoverData(com.chaoslabgames.packet.MoverDataPkg value) { if (moverDataBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && moverData_ != com.chaoslabgames.packet.MoverDataPkg.getDefaultInstance()) { moverData_ = com.chaoslabgames.packet.MoverDataPkg.newBuilder(moverData_) .mergeFrom(value) .buildPartial(); } else { moverData_ = value; } onChanged(); } else { moverDataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public Builder clearMoverData() { if (moverDataBuilder_ == null) { moverData_ = com.chaoslabgames.packet.MoverDataPkg.getDefaultInstance(); onChanged(); } else { moverDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public com.chaoslabgames.packet.MoverDataPkg.Builder getMoverDataBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMoverDataFieldBuilder().getBuilder(); } /** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ public com.chaoslabgames.packet.MoverDataPkgOrBuilder getMoverDataOrBuilder() { if (moverDataBuilder_ != null) { return moverDataBuilder_.getMessageOrBuilder(); } else { return moverData_; } } /** <code>required .com.chaoslabgames.packet.MoverDataPkg moverData = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< com.chaoslabgames.packet.MoverDataPkg, com.chaoslabgames.packet.MoverDataPkg.Builder, com.chaoslabgames.packet.MoverDataPkgOrBuilder> getMoverDataFieldBuilder() { if (moverDataBuilder_ == null) { moverDataBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.chaoslabgames.packet.MoverDataPkg, com.chaoslabgames.packet.MoverDataPkg.Builder, com.chaoslabgames.packet.MoverDataPkgOrBuilder>( getMoverData(), getParentForChildren(), isClean()); moverData_ = null; } return moverDataBuilder_; } // @@protoc_insertion_point(builder_scope:com.chaoslabgames.packet.UpdateMoverEventPkg) }
private void initFields() { id_ = 0L; tickId_ = 0L; moverData_ = com.chaoslabgames.packet.MoverDataPkg.getDefaultInstance(); }