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

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

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






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












com.google.api.services.pubsub.model

Class SchemaSettings

    • Constructor Detail

      • SchemaSettings

        public SchemaSettings()
    • Method Detail

      • getEncoding

        public String getEncoding()
        Optional. The encoding of messages validated against `schema`.
        Returns:
        value or null for none
      • setEncoding

        public SchemaSettings setEncoding(String encoding)
        Optional. The encoding of messages validated against `schema`.
        Parameters:
        encoding - encoding or null for none
      • getFirstRevisionId

        public String getFirstRevisionId()
        Optional. The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.
        Returns:
        value or null for none
      • setFirstRevisionId

        public SchemaSettings setFirstRevisionId(String firstRevisionId)
        Optional. The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.
        Parameters:
        firstRevisionId - firstRevisionId or null for none
      • getLastRevisionId

        public String getLastRevisionId()
        Optional. The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.
        Returns:
        value or null for none
      • setLastRevisionId

        public SchemaSettings setLastRevisionId(String lastRevisionId)
        Optional. The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.
        Parameters:
        lastRevisionId - lastRevisionId or null for none
      • getSchema

        public String getSchema()
        Required. The name of the schema that messages published should be validated against. Format is `projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if the schema has been deleted.
        Returns:
        value or null for none
      • setSchema

        public SchemaSettings setSchema(String schema)
        Required. The name of the schema that messages published should be validated against. Format is `projects/{project}/schemas/{schema}`. The value of this field will be `_deleted-schema_` if the schema has been deleted.
        Parameters:
        schema - schema or null for none
      • set

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

        public SchemaSettings 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