Class PubsubTopicSchemaSettings.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • schema

        @Stability(Stable)
        public PubsubTopicSchemaSettings.Builder schema​(String schema)
        Parameters:
        schema - The name of the schema that messages published should be validated against. This parameter is required. Format is projects/{project}/schemas/{schema}. The value of this field will be *deleted-schema* if the schema has been deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_topic#schema PubsubTopic#schema}
        Returns:
        this
      • encoding

        @Stability(Stable)
        public PubsubTopicSchemaSettings.Builder encoding​(String encoding)
        Parameters:
        encoding - The encoding of messages validated against schema. Default value: "ENCODING_UNSPECIFIED" Possible values: ["ENCODING_UNSPECIFIED", "JSON", "BINARY"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_topic#encoding PubsubTopic#encoding}
        Returns:
        this