All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.pubsub.model.PushConfig.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240730-2.0.0
Show newest version






PushConfig (Cloud Pub/Sub API v1-rev20240918-2.0.0)












com.google.api.services.pubsub.model

Class PushConfig

    • Constructor Detail

      • PushConfig

        public PushConfig()
    • Method Detail

      • getAttributes

        public Map<String,String> getAttributes()
        Optional. Endpoint configuration attributes that can be used to control different aspects of the message delivery. The only currently supported attribute is `x-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 the `CreateSubscription` call, it will default to the version of the Pub/Sub API used to make such call. If not present in a `ModifyPushConfig` 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 the `x-goog-version` attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. For example: `attributes { "x-goog-version": "v1" }`
        Returns:
        value or null for none
      • setAttributes

        public PushConfig setAttributes(Map<String,String> attributes)
        Optional. Endpoint configuration attributes that can be used to control different aspects of the message delivery. The only currently supported attribute is `x-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 the `CreateSubscription` call, it will default to the version of the Pub/Sub API used to make such call. If not present in a `ModifyPushConfig` 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 the `x-goog-version` attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. For example: `attributes { "x-goog-version": "v1" }`
        Parameters:
        attributes - attributes or null for none
      • getNoWrapper

        public NoWrapper getNoWrapper()
        Optional. When set, the payload to the push endpoint is not wrapped.
        Returns:
        value or null for none
      • setNoWrapper

        public PushConfig setNoWrapper(NoWrapper noWrapper)
        Optional. When set, the payload to the push endpoint is not wrapped.
        Parameters:
        noWrapper - noWrapper or null for none
      • getOidcToken

        public OidcToken getOidcToken()
        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.
        Returns:
        value or null for none
      • setOidcToken

        public PushConfig setOidcToken(OidcToken oidcToken)
        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.
        Parameters:
        oidcToken - oidcToken or null for none
      • getPubsubWrapper

        public PubsubWrapper getPubsubWrapper()
        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).
        Returns:
        value or null for none
      • setPubsubWrapper

        public PushConfig setPubsubWrapper(PubsubWrapper 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).
        Parameters:
        pubsubWrapper - pubsubWrapper or null for none
      • getPushEndpoint

        public String getPushEndpoint()
        Optional. A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use `https://example.com/push`.
        Returns:
        value or null for none
      • setPushEndpoint

        public PushConfig setPushEndpoint(String pushEndpoint)
        Optional. A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use `https://example.com/push`.
        Parameters:
        pushEndpoint - pushEndpoint or null for none
      • set

        public PushConfig set(String fieldName,
                              Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public PushConfig clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy