public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt64(1, storeId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, action_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, key_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, value_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, incrementBy_); } 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.computeUInt64Size(1, storeId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, key_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, value_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, incrementBy_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }