@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (product_ != null) { output.writeMessage(2, getProduct()); } if (!getProductIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, productId_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getParentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (product_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProduct()); } if (!getProductIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (product_ != null) { output.writeMessage(2, getProduct()); } if (!getProductIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, productId_); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getParentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (product_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProduct()); } if (!getProductIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, productId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }