attributes = $attributes; } /** * @return string[] */ public function getAttributes() { return $this->attributes; } /** * Optional. When set, the payload to the push endpoint is not wrapped. * * @param NoWrapper $noWrapper */ public function setNoWrapper(NoWrapper $noWrapper) { $this->noWrapper = $noWrapper; } /** * @return NoWrapper */ public function getNoWrapper() { return $this->noWrapper; } /** * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT token * as an `Authorization` header in the HTTP request for every pushed message. * * @param OidcToken $oidcToken */ public function setOidcToken(OidcToken $oidcToken) { $this->oidcToken = $oidcToken; } /** * @return OidcToken */ public function getOidcToken() { return $this->oidcToken; } /** * 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/doc * s/reference/rpc/google.pubsub.v1#pubsubmessage). * * @param PubsubWrapper $pubsubWrapper */ public function setPubsubWrapper(PubsubWrapper $pubsubWrapper) { $this->pubsubWrapper = $pubsubWrapper; } /** * @return PubsubWrapper */ public function getPubsubWrapper() { return $this->pubsubWrapper; } /** * Optional. A URL locating the endpoint to which messages should be pushed. * For example, a Webhook endpoint might use `https://example.com/push`. * * @param string $pushEndpoint */ public function setPushEndpoint($pushEndpoint) { $this->pushEndpoint = $pushEndpoint; } /** * @return string */ public function getPushEndpoint() { return $this->pushEndpoint; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PushConfig::class, 'Google_Service_Pubsub_PushConfig');