@@ -127,6 +127,11 @@ def application_name(self) -> Optional[str]:
127127 The recommended format is ``"application-name/major.minor.patch_version"``
128128 or ``"(gpn:PartnerName;)"`` for official Google partners.
129129
130+ **Examples:**
131+
132+ >>> import bigframes.pandas as bpd
133+ >>> bpd.options.bigquery.application_name = "my-app/1.0.0" # doctest: +SKIP
134+
130135 Returns:
131136 None or str:
132137 Application name as a string if exists; otherwise None.
@@ -145,6 +150,13 @@ def application_name(self, value: Optional[str]):
145150 def credentials (self ) -> Optional [google .auth .credentials .Credentials ]:
146151 """The OAuth2 credentials to use for this client.
147152
153+ **Examples:**
154+
155+ >>> import bigframes.pandas as bpd
156+ >>> import google.auth
157+ >>> credentials, project = google.auth.default() # doctest: +SKIP
158+ >>> bpd.options.bigquery.credentials = credentials # doctest: +SKIP
159+
148160 Returns:
149161 None or google.auth.credentials.Credentials:
150162 google.auth.credentials.Credentials if exists; otherwise None.
@@ -163,6 +175,11 @@ def location(self) -> Optional[str]:
163175
164176 For more information, see https://cloud.google.com/bigquery/docs/locations BigQuery locations.
165177
178+ **Examples:**
179+
180+ >>> import bigframes.pandas as bpd
181+ >>> bpd.options.bigquery.location = "US" # doctest: +SKIP
182+
166183 Returns:
167184 None or str:
168185 Default location as a string; otherwise None.
@@ -179,6 +196,11 @@ def location(self, value: Optional[str]):
179196 def project (self ) -> Optional [str ]:
180197 """Google Cloud project ID to use for billing and as the default project.
181198
199+ **Examples:**
200+
201+ >>> import bigframes.pandas as bpd
202+ >>> bpd.options.bigquery.project = "my-project" # doctest: +SKIP
203+
182204 Returns:
183205 None or str:
184206 Google Cloud project ID as a string; otherwise None.
@@ -206,6 +228,11 @@ def bq_connection(self) -> Optional[str]:
206228 If this option isn't provided, or project or location aren't provided,
207229 session will use its default project/location/connection_id as default connection.
208230
231+ **Examples:**
232+
233+ >>> import bigframes.pandas as bpd
234+ >>> bpd.options.bigquery.bq_connection = "my-project.us.my-connection" # doctest: +SKIP
235+
209236 Returns:
210237 None or str:
211238 Name of the BigQuery connection as a string; otherwise None.
@@ -228,6 +255,11 @@ def skip_bq_connection_check(self) -> bool:
228255 necessary permissions set up to support BigQuery DataFrames operations,
229256 then a runtime error will be reported.
230257
258+ **Examples:**
259+
260+ >>> import bigframes.pandas as bpd
261+ >>> bpd.options.bigquery.skip_bq_connection_check = True # doctest: +SKIP
262+
231263 Returns:
232264 bool:
233265 A boolean value, where True indicates a BigQuery connection is
@@ -300,6 +332,12 @@ def use_regional_endpoints(self) -> bool:
300332 does not promise any guarantee on the request remaining within the
301333 location during transit.
302334
335+ **Examples:**
336+
337+ >>> import bigframes.pandas as bpd
338+ >>> bpd.options.bigquery.location = "europe-west3" # doctest: +SKIP
339+ >>> bpd.options.bigquery.use_regional_endpoints = True # doctest: +SKIP
340+
303341 Returns:
304342 bool:
305343 A boolean value, where True indicates that regional endpoints
@@ -339,6 +377,11 @@ def kms_key_name(self) -> Optional[str]:
339377 For more information, see https://cloud.google.com/bigquery/docs/customer-managed-encryption#assign_role
340378 Assign the Encrypter/Decrypter.
341379
380+ **Examples:**
381+
382+ >>> import bigframes.pandas as bpd
383+ >>> bpd.options.bigquery.kms_key_name = "projects/my-project/locations/us/keyRings/my-ring/cryptoKeys/my-key" # doctest: +SKIP
384+
342385 Returns:
343386 None or str:
344387 Name of the customer managed encryption key as a string; otherwise None.
@@ -356,6 +399,11 @@ def kms_key_name(self, value: str):
356399 def ordering_mode (self ) -> Literal ["strict" , "partial" ]:
357400 """Controls whether total row order is always maintained for DataFrame/Series.
358401
402+ **Examples:**
403+
404+ >>> import bigframes.pandas as bpd
405+ >>> bpd.options.bigquery.ordering_mode = "partial" # doctest: +SKIP
406+
359407 Returns:
360408 Literal:
361409 A literal string value of either strict or partial ordering mode.
@@ -432,7 +480,14 @@ def requests_transport_adapters(
432480
433481 @property
434482 def enable_polars_execution (self ) -> bool :
435- """If True, will use polars to execute some simple query plans locally."""
483+ """If True, will use polars to execute some simple query plans locally.
484+
485+ **Examples:**
486+
487+ >>> import bigframes.pandas as bpd
488+ >>> bpd.options.bigquery.enable_polars_execution = True # doctest: +SKIP
489+
490+ """
436491 return self ._enable_polars_execution
437492
438493 @enable_polars_execution .setter
0 commit comments