public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, callbackIndex_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, data_); } getUnknownFields().writeTo(output); }
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, callbackIndex_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder toBuilder() { return newBuilder(this); }
public skadistats.clarity.wire.common.proto.Demo.CDemoCustomData buildPartial() { skadistats.clarity.wire.common.proto.Demo.CDemoCustomData result = new skadistats.clarity.wire.common.proto.Demo.CDemoCustomData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.callbackIndex_ = callbackIndex_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(skadistats.clarity.wire.common.proto.Demo.CDemoCustomData prototype) {
public skadistats.clarity.wire.common.proto.Demo.CDemoCustomData getDefaultInstanceForType() { return skadistats.clarity.wire.common.proto.Demo.CDemoCustomData.getDefaultInstance(); }
public static Builder newBuilder(skadistats.clarity.wire.common.proto.Demo.CDemoCustomData prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
@Override public Demo.CDemoCustomData parse(Source source) throws IOException { return Demo.CDemoCustomData.newBuilder() .setData(ZeroCopy.wrap(readPacket(source))) .build(); } @Override
/** * <code>optional bytes data = 2;</code> */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; }
@Override public Demo.CDemoCustomData parse(Source source) throws IOException { return Demo.CDemoCustomData.newBuilder() .setData(ZeroCopy.wrap(readPacket(source))) .build(); } @Override
public Builder mergeFrom(skadistats.clarity.wire.common.proto.Demo.CDemoCustomData other) { if (other == skadistats.clarity.wire.common.proto.Demo.CDemoCustomData.getDefaultInstance()) return this; if (other.hasCallbackIndex()) { setCallbackIndex(other.getCallbackIndex()); } if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }