[[["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-08-28 UTC."],[],[],null,["# Google Cloud Dataflow V1beta3 Client - Class DataSamplingBehavior (0.8.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.2 (latest)](/php/docs/reference/cloud-dataflow/latest/V1beta3.DataSamplingConfig.DataSamplingBehavior)\n- [0.8.1](/php/docs/reference/cloud-dataflow/0.8.1/V1beta3.DataSamplingConfig.DataSamplingBehavior)\n- [0.7.1](/php/docs/reference/cloud-dataflow/0.7.1/V1beta3.DataSamplingConfig.DataSamplingBehavior)\n- [0.6.6](/php/docs/reference/cloud-dataflow/0.6.6/V1beta3.DataSamplingConfig.DataSamplingBehavior)\n- [0.5.1](/php/docs/reference/cloud-dataflow/0.5.1/V1beta3.DataSamplingConfig.DataSamplingBehavior)\n- [0.4.1](/php/docs/reference/cloud-dataflow/0.4.1/V1beta3.DataSamplingConfig.DataSamplingBehavior)\n- [0.3.10](/php/docs/reference/cloud-dataflow/0.3.10/V1beta3.DataSamplingConfig.DataSamplingBehavior) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Dataflow V1beta3 Client class DataSamplingBehavior.\n\nThe following enum defines what to sample for a running job.\n\nProtobuf type `google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataflow \\\\ V1beta3 \\\\ DataSamplingConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### DATA_SAMPLING_BEHAVIOR_UNSPECIFIED\n\n Value: 0\n\nIf given, has no effect on sampling behavior. Used as an unknown or unset\nsentinel value.\n\nGenerated from protobuf enum `DATA_SAMPLING_BEHAVIOR_UNSPECIFIED = 0;`\n\n### DISABLED\n\n Value: 1\n\nWhen given, disables element sampling. Has same behavior as not setting\nthe behavior.\n\nGenerated from protobuf enum `DISABLED = 1;`\n\n### ALWAYS_ON\n\n Value: 2\n\nWhen given, enables sampling in-flight from all PCollections.\n\nGenerated from protobuf enum `ALWAYS_ON = 2;`\n\n### EXCEPTIONS\n\n Value: 3\n\nWhen given, enables sampling input elements when a user-defined DoFn\ncauses an exception.\n\nGenerated from protobuf enum `EXCEPTIONS = 3;`"]]