/** * <code>optional .alluxio.grpc.file.FileSystemMasterCommonPOptions commonOptions = 5;</code> */ public Builder setCommonOptions(alluxio.grpc.FileSystemMasterCommonPOptions value) { if (commonOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commonOptions_ = value; onChanged(); } else { commonOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional string fileReadLocationPolicy = 3;</code> */ public Builder setFileReadLocationPolicyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fileReadLocationPolicy_ = value; onChanged(); return this; }
/** * <code>optional string fileReadLocationPolicy = 3;</code> */ public Builder setFileReadLocationPolicy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fileReadLocationPolicy_ = value; onChanged(); return this; } /**
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; }
/** * <code>optional .alluxio.grpc.file.FileSystemMasterCommonPOptions commonOptions = 5;</code> */ public Builder mergeCommonOptions(alluxio.grpc.FileSystemMasterCommonPOptions value) { if (commonOptionsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && commonOptions_ != null && commonOptions_ != alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance()) { commonOptions_ = alluxio.grpc.FileSystemMasterCommonPOptions.newBuilder(commonOptions_).mergeFrom(value).buildPartial(); } else { commonOptions_ = value; } onChanged(); } else { commonOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .alluxio.grpc.file.FileSystemMasterCommonPOptions commonOptions = 5;</code> */ public Builder setCommonOptions( alluxio.grpc.FileSystemMasterCommonPOptions.Builder builderForValue) { if (commonOptionsBuilder_ == null) { commonOptions_ = builderForValue.build(); onChanged(); } else { commonOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional .alluxio.grpc.file.FileSystemMasterCommonPOptions commonOptions = 5;</code> */ public Builder clearCommonOptions() { if (commonOptionsBuilder_ == null) { commonOptions_ = null; onChanged(); } else { commonOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /**
/** * <code>optional .alluxio.grpc.file.ReadPType readType = 1;</code> */ public Builder setReadType(alluxio.grpc.ReadPType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; readType_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional string fileReadLocationPolicy = 3;</code> */ public Builder clearFileReadLocationPolicy() { bitField0_ = (bitField0_ & ~0x00000004); fileReadLocationPolicy_ = getDefaultInstance().getFileReadLocationPolicy(); onChanged(); return this; } /**
/** * <code>optional int32 hashingNumberOfShards = 4;</code> */ public Builder clearHashingNumberOfShards() { bitField0_ = (bitField0_ & ~0x00000008); hashingNumberOfShards_ = 0; onChanged(); return this; }
/** * <code>optional int32 maxUfsReadConcurrency = 2;</code> */ public Builder clearMaxUfsReadConcurrency() { bitField0_ = (bitField0_ & ~0x00000002); maxUfsReadConcurrency_ = 0; onChanged(); return this; }
/** * <code>optional .alluxio.grpc.file.ReadPType readType = 1;</code> */ public Builder clearReadType() { bitField0_ = (bitField0_ & ~0x00000001); readType_ = 1; onChanged(); return this; }
/** * <code>optional int32 hashingNumberOfShards = 4;</code> */ public Builder setHashingNumberOfShards(int value) { bitField0_ |= 0x00000008; hashingNumberOfShards_ = value; onChanged(); return this; } /**
/** * <code>optional int32 maxUfsReadConcurrency = 2;</code> */ public Builder setMaxUfsReadConcurrency(int value) { bitField0_ |= 0x00000002; maxUfsReadConcurrency_ = value; onChanged(); return this; } /**
/** * <code>optional .alluxio.grpc.file.FileSystemMasterCommonPOptions commonOptions = 5;</code> */ public alluxio.grpc.FileSystemMasterCommonPOptions.Builder getCommonOptionsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCommonOptionsFieldBuilder().getBuilder(); } /**