allocations = $allocations; } public function getAllocations() { return $this->allocations; } /** * Mechanism used to determine which version a request is sent to. The traffic * selection algorithm will be stable for either type until allocations are * changed. * * Accepted values: UNSPECIFIED, COOKIE, IP, RANDOM * * @param self::SHARD_BY_* $shardBy */ public function setShardBy($shardBy) { $this->shardBy = $shardBy; } /** * @return self::SHARD_BY_* */ public function getShardBy() { return $this->shardBy; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(TrafficSplit::class, 'Google_Service_Appengine_TrafficSplit');