/** * <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 .alluxio.grpc.PMode mode = 3;</code> */ public Builder setMode(alluxio.grpc.PMode value) { if (modeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mode_ = value; onChanged(); } else { modeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional .alluxio.grpc.PMode mode = 3;</code> */ public alluxio.grpc.PMode.Builder getModeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getModeFieldBuilder().getBuilder(); } /**
/** * <code>optional .alluxio.grpc.PMode mode = 3;</code> */ public Builder mergeMode(alluxio.grpc.PMode value) { if (modeBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && mode_ != null && mode_ != alluxio.grpc.PMode.getDefaultInstance()) { mode_ = alluxio.grpc.PMode.newBuilder(mode_).mergeFrom(value).buildPartial(); } else { mode_ = value; } onChanged(); } else { modeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public Builder mergeFrom(alluxio.grpc.CreateDirectoryPOptions other) { if (other == alluxio.grpc.CreateDirectoryPOptions.getDefaultInstance()) return this; if (other.hasRecursive()) { setRecursive(other.getRecursive()); } if (other.hasAllowExists()) { setAllowExists(other.getAllowExists()); } if (other.hasMode()) { mergeMode(other.getMode()); } if (other.hasWriteType()) { setWriteType(other.getWriteType()); } 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.PMode mode = 3;</code> */ public Builder setMode( alluxio.grpc.PMode.Builder builderForValue) { if (modeBuilder_ == null) { mode_ = builderForValue.build(); onChanged(); } else { modeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; 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.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.PMode mode = 3;</code> */ public Builder clearMode() { if (modeBuilder_ == null) { mode_ = null; onChanged(); } else { modeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
/** * <code>optional .alluxio.grpc.file.WritePType writeType = 4;</code> */ public Builder setWriteType(alluxio.grpc.WritePType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; writeType_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional .alluxio.grpc.file.FileSystemMasterCommonPOptions commonOptions = 5;</code> */ public alluxio.grpc.FileSystemMasterCommonPOptions.Builder getCommonOptionsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCommonOptionsFieldBuilder().getBuilder(); } /**
/** * <code>optional .alluxio.grpc.file.WritePType writeType = 4;</code> */ public Builder clearWriteType() { bitField0_ = (bitField0_ & ~0x00000008); writeType_ = 1; onChanged(); return this; }
/** * <code>optional bool allowExists = 2;</code> */ public Builder setAllowExists(boolean value) { bitField0_ |= 0x00000002; allowExists_ = value; onChanged(); return this; } /**
/** * <code>optional bool recursive = 1;</code> */ public Builder setRecursive(boolean value) { bitField0_ |= 0x00000001; recursive_ = value; onChanged(); return this; } /**
/** * <code>optional bool recursive = 1;</code> */ public Builder clearRecursive() { bitField0_ = (bitField0_ & ~0x00000001); recursive_ = false; onChanged(); return this; }
/** * <code>optional bool allowExists = 2;</code> */ public Builder clearAllowExists() { bitField0_ = (bitField0_ & ~0x00000002); allowExists_ = false; onChanged(); return this; }