/** * <code>optional .exec.Roles roles = 5;</code> */ public Builder setRoles(org.apache.drill.exec.proto.CoordinationProtos.Roles value) { if (rolesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } roles_ = value; onChanged(); } else { rolesBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional string version = 6;</code> */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; version_ = value; onChanged(); return this; }
/** * <code>optional string address = 1;</code> */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; address_ = value; onChanged(); return this; }
/** * <code>optional .exec.Roles roles = 5;</code> */ public Builder clearRoles() { if (rolesBuilder_ == null) { roles_ = org.apache.drill.exec.proto.CoordinationProtos.Roles.getDefaultInstance(); onChanged(); } else { rolesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /**
/** * <code>optional .exec.Roles roles = 5;</code> */ public Builder setRoles( org.apache.drill.exec.proto.CoordinationProtos.Roles.Builder builderForValue) { if (rolesBuilder_ == null) { roles_ = builderForValue.build(); onChanged(); } else { rolesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /**
/** * <code>optional string address = 1;</code> */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; address_ = value; onChanged(); return this; } /**
/** * <code>optional string version = 6;</code> */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; version_ = value; onChanged(); return this; } /**
/** * <code>optional .exec.DrillbitEndpoint.State state = 7;</code> */ public Builder setState(org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; state_ = value; onChanged(); return this; } /**
/** * <code>optional int32 http_port = 8;</code> */ public Builder clearHttpPort() { bitField0_ = (bitField0_ & ~0x00000080); httpPort_ = 0; onChanged(); return this; }
/** * <code>optional int32 http_port = 8;</code> */ public Builder setHttpPort(int value) { bitField0_ |= 0x00000080; httpPort_ = value; onChanged(); return this; } /**
/** * <code>optional int32 control_port = 3;</code> */ public Builder clearControlPort() { bitField0_ = (bitField0_ & ~0x00000004); controlPort_ = 0; onChanged(); return this; }
/** * <code>optional string address = 1;</code> */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000001); address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /**
/** * <code>optional int32 control_port = 3;</code> */ public Builder setControlPort(int value) { bitField0_ |= 0x00000004; controlPort_ = value; onChanged(); return this; } /**
/** * <code>optional int32 user_port = 2;</code> */ public Builder clearUserPort() { bitField0_ = (bitField0_ & ~0x00000002); userPort_ = 0; onChanged(); return this; }
/** * <code>optional int32 data_port = 4;</code> */ public Builder clearDataPort() { bitField0_ = (bitField0_ & ~0x00000008); dataPort_ = 0; onChanged(); return this; }
/** * <code>optional int32 user_port = 2;</code> */ public Builder setUserPort(int value) { bitField0_ |= 0x00000002; userPort_ = value; onChanged(); return this; } /**
/** * <code>optional string version = 6;</code> */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000020); version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /**
/** * <code>optional .exec.DrillbitEndpoint.State state = 7;</code> */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000040); state_ = org.apache.drill.exec.proto.CoordinationProtos.DrillbitEndpoint.State.STARTUP; onChanged(); return this; }
/** * <code>optional .exec.Roles roles = 5;</code> */ public org.apache.drill.exec.proto.CoordinationProtos.Roles.Builder getRolesBuilder() { bitField0_ |= 0x00000010; onChanged(); return getRolesFieldBuilder().getBuilder(); } /**
/** * <code>optional int32 data_port = 4;</code> */ public Builder setDataPort(int value) { bitField0_ |= 0x00000008; dataPort_ = value; onChanged(); return this; } /**