Google Cloud BigQuery Analytics Hub V1 Client - Class PushConfig (1.5.0)

Reference documentation and code samples for the Google Cloud BigQuery Analytics Hub V1 Client class PushConfig.

Configuration for a push delivery endpoint.

Generated from protobuf messagegoogle.cloud.bigquery.analyticshub.v1.PushConfig

Namespace

Google \ Cloud \ BigQuery \ AnalyticsHub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ oidc_tokenPushConfig\OidcToken

Optional. If specified, Pub/Sub will generate and attach an OIDC JWT token as anAuthorization header in the HTTP request for every pushed message.

↳ pubsub_wrapperPushConfig\PubsubWrapper

Optional. When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).

↳ no_wrapperPushConfig\NoWrapper

Optional. When set, the payload to the push endpoint is not wrapped.

↳ push_endpointstring

Optional. A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might usehttps://example.com/push.

↳ attributesarray|Google\Protobuf\Internal\MapField

Optional. Endpoint configuration attributes that can be used to control different aspects of the message delivery. The only currently supported attribute isx-goog-version, which you can use to change the format of the pushed message. This attribute indicates the version of the data expected by the endpoint. This controls the shape of the pushed message (i.e., its fields and metadata). If not present during theCreateSubscription call, it will default to the version of the Pub/Sub API used to make such call. If not present in aModifyPushConfig call, its value will not be changed.GetSubscription calls will always return a valid version, even if the subscription was created without this attribute. The only supported values for thex-goog-version attribute are: * *v1beta1: uses the push format defined in the v1beta1 Pub/Sub API. * *v1 orv1beta2: uses the push format defined in the v1 Pub/Sub API. For example:attributes { "x-goog-version": "v1" }

getOidcToken

Optional. If specified, Pub/Sub will generate and attach an OIDC JWTtoken as anAuthorization header in the HTTP request for every pushedmessage.

Returns
TypeDescription
PushConfig\OidcToken|null

hasOidcToken

setOidcToken

Optional. If specified, Pub/Sub will generate and attach an OIDC JWTtoken as anAuthorization header in the HTTP request for every pushedmessage.

Parameter
NameDescription
varPushConfig\OidcToken
Returns
TypeDescription
$this

getPubsubWrapper

Returns
TypeDescription
PushConfig\PubsubWrapper|null

hasPubsubWrapper

setPubsubWrapper

Optional. When set, the payload to the push endpoint is in the form ofthe JSON representation of a PubsubMessage(https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).

Parameter
NameDescription
varPushConfig\PubsubWrapper
Returns
TypeDescription
$this

getNoWrapper

Optional. When set, the payload to the push endpoint is not wrapped.

Returns
TypeDescription
PushConfig\NoWrapper|null

hasNoWrapper

setNoWrapper

Optional. When set, the payload to the push endpoint is not wrapped.

Parameter
NameDescription
varPushConfig\NoWrapper
Returns
TypeDescription
$this

getPushEndpoint

Optional. A URL locating the endpoint to which messages should be pushed.

For example, a Webhook endpoint might usehttps://example.com/push.

Returns
TypeDescription
string

setPushEndpoint

Optional. A URL locating the endpoint to which messages should be pushed.

For example, a Webhook endpoint might usehttps://example.com/push.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getAttributes

Optional. Endpoint configuration attributes that can be used to controldifferent aspects of the message delivery.

The only currently supported attribute isx-goog-version, which you canuse to change the format of the pushed message. This attributeindicates the version of the data expected by the endpoint. Thiscontrols the shape of the pushed message (i.e., its fields and metadata).If not present during theCreateSubscription call, it will default tothe version of the Pub/Sub API used to make such call. If not present in aModifyPushConfig call, its value will not be changed.GetSubscriptioncalls will always return a valid version, even if the subscription wascreated without this attribute.The only supported values for thex-goog-version attribute are:

  • v1beta1: uses the push format defined in the v1beta1 Pub/Sub API.
  • v1 orv1beta2: uses the push format defined in the v1 Pub/Sub API.For example:attributes { "x-goog-version": "v1" }
Returns
TypeDescription
Google\Protobuf\Internal\MapField

setAttributes

Optional. Endpoint configuration attributes that can be used to controldifferent aspects of the message delivery.

The only currently supported attribute isx-goog-version, which you canuse to change the format of the pushed message. This attributeindicates the version of the data expected by the endpoint. Thiscontrols the shape of the pushed message (i.e., its fields and metadata).If not present during theCreateSubscription call, it will default tothe version of the Pub/Sub API used to make such call. If not present in aModifyPushConfig call, its value will not be changed.GetSubscriptioncalls will always return a valid version, even if the subscription wascreated without this attribute.The only supported values for thex-goog-version attribute are:

  • v1beta1: uses the push format defined in the v1beta1 Pub/Sub API.
  • v1 orv1beta2: uses the push format defined in the v1 Pub/Sub API.For example:attributes { "x-goog-version": "v1" }
Parameter
NameDescription
vararray|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getAuthenticationMethod

Returns
TypeDescription
string

getWrapper

Returns
TypeDescription
string

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-08 UTC.