schemas_validate_message {googlePubsubR}R Documentation

Validates a message against a schema

Description

Validates a message against a schema

Usage

schemas_validate_message(
  schema,
  message,
  encoding = c("ENCODING_UNSPECIFIED", "JSON", "BINARY"),
  project = ps_project_get()
)

Arguments

schema

character, Schema Required, schema name or instance of a Schema object

message

PubsubMessage Required, an instance of a PubsubMessage, can be created using PubsubMessage

encoding

character The encoding of the message

project

character A GCP project id

Value

logical TRUE if successfully validated

See Also

Other Schema functions: schemas_create(), schemas_delete(), schemas_exists(), schemas_get(), schemas_list(), schemas_validate()


[Package googlePubsubR version 0.0.4 Index]