Diversion based on a specially named cookie, "GOOGAPPUID." The cookie
must be set by the application itself or no diversion will occur.
Generated from protobuf enumCOOKIE = 1;
IP
Value: 2
Diversion based on applying the modulus operation to a fingerprint
of the IP address.
Generated from protobuf enumIP = 2;
RANDOM
Value: 3
Diversion based on weighted random assignment. An incoming request is
randomly routed to a version in the traffic split, with probability
proportional to the version's traffic share.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Appengine Admin V1 Client - Class ShardBy (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-appengine-admin/latest/V1.TrafficSplit.ShardBy)\n- [2.0.3](/php/docs/reference/cloud-appengine-admin/2.0.3/V1.TrafficSplit.ShardBy)\n- [1.3.5](/php/docs/reference/cloud-appengine-admin/1.3.5/V1.TrafficSplit.ShardBy)\n- [1.2.2](/php/docs/reference/cloud-appengine-admin/1.2.2/V1.TrafficSplit.ShardBy)\n- [1.1.1](/php/docs/reference/cloud-appengine-admin/1.1.1/V1.TrafficSplit.ShardBy)\n- [1.0.6](/php/docs/reference/cloud-appengine-admin/1.0.6/V1.TrafficSplit.ShardBy) \nReference documentation and code samples for the Google Cloud Appengine Admin V1 Client class ShardBy.\n\nAvailable sharding mechanisms.\n\nProtobuf type `google.appengine.v1.TrafficSplit.ShardBy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AppEngine \\\\ V1 \\\\ TrafficSplit\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### UNSPECIFIED\n\n Value: 0\n\nDiversion method unspecified.\n\nGenerated from protobuf enum `UNSPECIFIED = 0;`\n\n### COOKIE\n\n Value: 1\n\nDiversion based on a specially named cookie, \"GOOGAPPUID.\" The cookie\nmust be set by the application itself or no diversion will occur.\n\nGenerated from protobuf enum `COOKIE = 1;`\n\n### IP\n\n Value: 2\n\nDiversion based on applying the modulus operation to a fingerprint\nof the IP address.\n\nGenerated from protobuf enum `IP = 2;`\n\n### RANDOM\n\n Value: 3\n\nDiversion based on weighted random assignment. An incoming request is\nrandomly routed to a version in the traffic split, with probability\nproportional to the version's traffic share.\n\nGenerated from protobuf enum `RANDOM = 3;`"]]