public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, readType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, maxUfsReadConcurrency_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fileReadLocationPolicy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, hashingNumberOfShards_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getCommonOptions()); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, readType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, maxUfsReadConcurrency_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fileReadLocationPolicy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, hashingNumberOfShards_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCommonOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
hash = (53 * hash) + getCommonOptions().hashCode();
result = result && getCommonOptions() .equals(other.getCommonOptions());
public Builder mergeFrom(alluxio.grpc.OpenFilePOptions other) { if (other == alluxio.grpc.OpenFilePOptions.getDefaultInstance()) return this; if (other.hasReadType()) { setReadType(other.getReadType()); } if (other.hasMaxUfsReadConcurrency()) { setMaxUfsReadConcurrency(other.getMaxUfsReadConcurrency()); } if (other.hasFileReadLocationPolicy()) { bitField0_ |= 0x00000004; fileReadLocationPolicy_ = other.fileReadLocationPolicy_; onChanged(); } if (other.hasHashingNumberOfShards()) { setHashingNumberOfShards(other.getHashingNumberOfShards()); } if (other.hasCommonOptions()) { mergeCommonOptions(other.getCommonOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }