/** * <code>optional .alluxio.grpc.WorkerNetAddress workerAddress = 2;</code> */ public Builder setWorkerAddress(alluxio.grpc.WorkerNetAddress value) { if (workerAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workerAddress_ = value; onChanged(); } else { workerAddressBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional string tierAlias = 3;</code> */ public Builder setTierAlias( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tierAlias_ = value; onChanged(); return this; } /**
/** * <code>optional string tierAlias = 3;</code> */ public Builder setTierAliasBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tierAlias_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional .alluxio.grpc.WorkerNetAddress workerAddress = 2;</code> */ public Builder mergeWorkerAddress(alluxio.grpc.WorkerNetAddress value) { if (workerAddressBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && workerAddress_ != null && workerAddress_ != alluxio.grpc.WorkerNetAddress.getDefaultInstance()) { workerAddress_ = alluxio.grpc.WorkerNetAddress.newBuilder(workerAddress_).mergeFrom(value).buildPartial(); } else { workerAddress_ = value; } onChanged(); } else { workerAddressBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
public Builder mergeFrom(alluxio.grpc.BlockLocation other) { if (other == alluxio.grpc.BlockLocation.getDefaultInstance()) return this; if (other.hasWorkerId()) { setWorkerId(other.getWorkerId()); } if (other.hasWorkerAddress()) { mergeWorkerAddress(other.getWorkerAddress()); } if (other.hasTierAlias()) { bitField0_ |= 0x00000004; tierAlias_ = other.tierAlias_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>optional .alluxio.grpc.WorkerNetAddress workerAddress = 2;</code> */ public Builder setWorkerAddress( alluxio.grpc.WorkerNetAddress.Builder builderForValue) { if (workerAddressBuilder_ == null) { workerAddress_ = builderForValue.build(); onChanged(); } else { workerAddressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional string tierAlias = 3;</code> */ public Builder clearTierAlias() { bitField0_ = (bitField0_ & ~0x00000004); tierAlias_ = getDefaultInstance().getTierAlias(); onChanged(); return this; } /**
/** * <code>optional .alluxio.grpc.WorkerNetAddress workerAddress = 2;</code> */ public alluxio.grpc.WorkerNetAddress.Builder getWorkerAddressBuilder() { bitField0_ |= 0x00000002; onChanged(); return getWorkerAddressFieldBuilder().getBuilder(); } /**
/** * <code>optional int64 workerId = 1;</code> */ public Builder setWorkerId(long value) { bitField0_ |= 0x00000001; workerId_ = value; onChanged(); return this; } /**
/** * <code>optional .alluxio.grpc.WorkerNetAddress workerAddress = 2;</code> */ public Builder clearWorkerAddress() { if (workerAddressBuilder_ == null) { workerAddress_ = null; onChanged(); } else { workerAddressBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /**
/** * <code>optional int64 workerId = 1;</code> */ public Builder clearWorkerId() { bitField0_ = (bitField0_ & ~0x00000001); workerId_ = 0L; onChanged(); return this; }