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

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

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






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












com.google.api.services.pubsub.model

Class ValidateMessageRequest

    • Constructor Detail

      • ValidateMessageRequest

        public ValidateMessageRequest()
    • Method Detail

      • getEncoding

        public String getEncoding()
        The encoding expected for messages
        Returns:
        value or null for none
      • setEncoding

        public ValidateMessageRequest setEncoding(String encoding)
        The encoding expected for messages
        Parameters:
        encoding - encoding or null for none
      • getMessage

        public String getMessage()
        Message to validate against the provided `schema_spec`.
        Returns:
        value or null for none
        See Also:
        decodeMessage()
      • decodeMessage

        public byte[] decodeMessage()
        Message to validate against the provided `schema_spec`.
        Returns:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getMessage()
      • setMessage

        public ValidateMessageRequest setMessage(String message)
        Message to validate against the provided `schema_spec`.
        Parameters:
        message - message or null for none
        See Also:
        #encodeMessage()
      • encodeMessage

        public ValidateMessageRequest encodeMessage(byte[] message)
        Message to validate against the provided `schema_spec`.
        Since:
        1.14
        See Also:

        The value is encoded Base64 or {@code null} for none.

      • getName

        public String getName()
        Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
        Returns:
        value or null for none
      • setName

        public ValidateMessageRequest setName(String name)
        Name of the schema against which to validate. Format is `projects/{project}/schemas/{schema}`.
        Parameters:
        name - name or null for none
      • getSchema

        public Schema getSchema()
        Ad-hoc schema against which to validate
        Returns:
        value or null for none
      • setSchema

        public ValidateMessageRequest setSchema(Schema schema)
        Ad-hoc schema against which to validate
        Parameters:
        schema - schema or null for none
      • clone

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