Struct google_api_proto::google::cloud::bigquery::v2::ConnectionProperty
source · pub struct ConnectionProperty {
pub key: String,
pub value: String,
}
Expand description
A connection-level property to customize query behavior. Under JDBC, these correspond directly to connection properties passed to the DriverManager. Under ODBC, these correspond to properties in the connection string.
Currently supported connection properties:
-
dataset_project_id: represents the default project for datasets that are used in the query. Setting the system variable
@@dataset_project_id
achieves the same behavior. For more information about system variables, see: https://cloud.google.com/bigquery/docs/reference/system-variables -
time_zone: represents the default timezone used to run the query.
-
session_id: associates the query with a given session.
-
query_label: associates the query with a given job label. If set, all subsequent queries in a script or session will have this label. For the format in which a you can specify a query label, see labels in the JobConfiguration resource type: https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfiguration
-
service_account: indicates the service account to use to run a continuous query. If set, the query job uses the service account to access Google Cloud resources. Service account access is bounded by the IAM permissions that you have granted to the service account.
Additional properties are allowed, but ignored. Specifying multiple connection properties with the same key returns an error.
Fields§
§key: String
The key of the property to set.
value: String
The value of the property to set.
Trait Implementations§
source§impl Clone for ConnectionProperty
impl Clone for ConnectionProperty
source§fn clone(&self) -> ConnectionProperty
fn clone(&self) -> ConnectionProperty
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConnectionProperty
impl Debug for ConnectionProperty
source§impl Default for ConnectionProperty
impl Default for ConnectionProperty
source§impl Message for ConnectionProperty
impl Message for ConnectionProperty
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ConnectionProperty
impl PartialEq for ConnectionProperty
source§fn eq(&self, other: &ConnectionProperty) -> bool
fn eq(&self, other: &ConnectionProperty) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectionProperty
Auto Trait Implementations§
impl Freeze for ConnectionProperty
impl RefUnwindSafe for ConnectionProperty
impl Send for ConnectionProperty
impl Sync for ConnectionProperty
impl Unpin for ConnectionProperty
impl UnwindSafe for ConnectionProperty
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request