public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, data_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeFixed64(2, steamId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeFixed64(3, signature_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, version_); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(2, steamId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(3, signature_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, version_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public skadistats.clarity.wire.common.proto.Demo.CDemoSaveGame buildPartial() { skadistats.clarity.wire.common.proto.Demo.CDemoSaveGame result = new skadistats.clarity.wire.common.proto.Demo.CDemoSaveGame(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.steamId_ = steamId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.signature_ = signature_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.version_ = version_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(skadistats.clarity.wire.common.proto.Demo.CDemoSaveGame other) { if (other == skadistats.clarity.wire.common.proto.Demo.CDemoSaveGame.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } if (other.hasSteamId()) { setSteamId(other.getSteamId()); } if (other.hasSignature()) { setSignature(other.getSignature()); } if (other.hasVersion()) { setVersion(other.getVersion()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public skadistats.clarity.wire.common.proto.Demo.CDemoSaveGame getDefaultInstanceForType() { return skadistats.clarity.wire.common.proto.Demo.CDemoSaveGame.getDefaultInstance(); }
/** * <code>optional bytes data = 1;</code> */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = getDefaultInstance().getData(); onChanged(); return this; }