Reference documentation and code samples for the Google BigQuery Storage V1 Client class ResponseCompressionCodec.
Specifies which compression codec to attempt on the entire serialized
response payload (either Arrow record batch or Avro rows). This is
not to be confused with the Apache Arrow native compression codecs
specified in ArrowSerializationOptions. For performance reasons, when
creating a read session requesting Arrow responses, setting both native
Arrow compression and application-level response compression will not be
allowed - choose, at most, one kind of compression.
Protobuf type google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.ResponseCompressionCodec
[[["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 BigQuery Storage V1 Client - Class ResponseCompressionCodec (2.1.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.5 (latest)](/php/docs/reference/cloud-bigquery-storage/latest/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [2.1.4](/php/docs/reference/cloud-bigquery-storage/2.1.4/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [2.0.0](/php/docs/reference/cloud-bigquery-storage/2.0.0/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [1.10.4](/php/docs/reference/cloud-bigquery-storage/1.10.4/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [1.9.0](/php/docs/reference/cloud-bigquery-storage/1.9.0/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [1.8.0](/php/docs/reference/cloud-bigquery-storage/1.8.0/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [1.7.1](/php/docs/reference/cloud-bigquery-storage/1.7.1/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [1.6.0](/php/docs/reference/cloud-bigquery-storage/1.6.0/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [1.5.0](/php/docs/reference/cloud-bigquery-storage/1.5.0/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [1.4.1](/php/docs/reference/cloud-bigquery-storage/1.4.1/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [1.3.2](/php/docs/reference/cloud-bigquery-storage/1.3.2/V1.ReadSession.TableReadOptions.ResponseCompressionCodec)\n- [1.2.12](/php/docs/reference/cloud-bigquery-storage/1.2.12/V1.ReadSession.TableReadOptions.ResponseCompressionCodec) \nReference documentation and code samples for the Google BigQuery Storage V1 Client class ResponseCompressionCodec.\n\nSpecifies which compression codec to attempt on the entire serialized\nresponse payload (either Arrow record batch or Avro rows). This is\nnot to be confused with the Apache Arrow native compression codecs\nspecified in ArrowSerializationOptions. For performance reasons, when\ncreating a read session requesting Arrow responses, setting both native\nArrow compression and application-level response compression will not be\nallowed - choose, at most, one kind of compression.\n\nProtobuf type `google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.ResponseCompressionCodec`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery \\\\ Storage \\\\ V1 \\\\ ReadSession \\\\ TableReadOptions\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### RESPONSE_COMPRESSION_CODEC_UNSPECIFIED\n\n Value: 0\n\nDefault is no compression.\n\nGenerated from protobuf enum `RESPONSE_COMPRESSION_CODEC_UNSPECIFIED = 0;`\n\n### RESPONSE_COMPRESSION_CODEC_LZ4\n\n Value: 2\n\nUse raw LZ4 compression.\n\nGenerated from protobuf enum `RESPONSE_COMPRESSION_CODEC_LZ4 = 2;`"]]