public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!name_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, name_); } for (int i = 0; i < keyPermission_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, keyPermission_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getBlockInfo()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, offset_); } for (int i = 0; i < ufsLocations_.size(); i++) { output.writeMessage(3, ufsLocations_.get(i)); } for (int i = 0; i < ufsStringLocations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ufsStringLocations_.getRaw(i)); } unknownFields.writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < key_.size(); i++) { output.writeBytes(1, key_.getByteString(i)); } for (int i = 0; i < value_.size(); i++) { output.writeBytes(2, value_.getByteString(i)); } getUnknownFields().writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, blockId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, promote_); } unknownFields.writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, jobId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, taskId_); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (batchId_ != 0L) { output.writeInt64(1, batchId_); } for (int i = 0; i < messages_.size(); i++) { output.writeBytes(2, messages_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (errorCodePresentCase_ == 1) { output.writeInt32( 1, (int)((java.lang.Integer) errorCodePresent_)); } if (!getErrorMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); } unknownFields.writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!name_.isEmpty()) { output.writeBytes(1, name_); } if (!password_.isEmpty()) { output.writeBytes(2, password_); } for (int i = 0; i < roles_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, roles_.getRaw(i)); } unknownFields.writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (permType_ != authpb.Auth.Permission.Type.READ.getNumber()) { output.writeEnum(1, permType_); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!rangeEnd_.isEmpty()) { output.writeBytes(3, rangeEnd_); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (permType_ != authpb.Auth.Permission.Type.READ.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, permType_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!rangeEnd_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, rangeEnd_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, rawValue_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!name_.isEmpty()) { output.writeBytes(1, name_); } for (int i = 0; i < keyPermission_.size(); i++) { output.writeMessage(2, keyPermission_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } if (ackDeadlineSeconds_ != 0) { output.writeInt32(3, ackDeadlineSeconds_); } for (int i = 0; i < ackIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ackIds_.getRaw(i)); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, diff_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, header_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, entryType_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, storeValue_); } getUnknownFields().writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!name_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, name_); } if (!password_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, password_); } { int dataSize = 0; for (int i = 0; i < roles_.size(); i++) { dataSize += computeStringSizeNoTag(roles_.getRaw(i)); } size += dataSize; size += 1 * getRolesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getFooBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, blah_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getFooBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, blah_); } getUnknownFields().writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (errorCodePresentCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 1, (int)((java.lang.Integer) errorCodePresent_)); } if (!getErrorMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }