grpc.gcp.AffinityConfig */ class AffinityConfig extends \Google\Protobuf\Internal\Message { /** * The affinity command applies on the selected gRPC methods. * * Generated from protobuf field .grpc.gcp.AffinityConfig.Command command = 2; */ private $command = 0; /** * The field path of the affinity key in the request/response message. * For example: "f.a", "f.b.d", etc. * * Generated from protobuf field string affinity_key = 3; */ private $affinity_key = ''; public function __construct() { \GPBMetadata\GrpcGcp::initOnce(); parent::__construct(); } /** * The affinity command applies on the selected gRPC methods. * * Generated from protobuf field .grpc.gcp.AffinityConfig.Command command = 2; * @return int */ public function getCommand() { return $this->command; } /** * The affinity command applies on the selected gRPC methods. * * Generated from protobuf field .grpc.gcp.AffinityConfig.Command command = 2; * @param int $var * @return $this */ public function setCommand($var) { GPBUtil::checkEnum($var, \Grpc\Gcp\AffinityConfig_Command::class); $this->command = $var; return $this; } /** * The field path of the affinity key in the request/response message. * For example: "f.a", "f.b.d", etc. * * Generated from protobuf field string affinity_key = 3; * @return string */ public function getAffinityKey() { return $this->affinity_key; } /** * The field path of the affinity key in the request/response message. * For example: "f.a", "f.b.d", etc. * * Generated from protobuf field string affinity_key = 3; * @param string $var * @return $this */ public function setAffinityKey($var) { GPBUtil::checkString($var, true); $this->affinity_key = $var; return $this; } }