19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_SCHEMA_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_SCHEMA_CLIENT_H
22#include "google/cloud/pubsub/schema_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/options.h"
25#include "google/cloud/polling_policy.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/version.h"
33GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
79 return a.connection_ == b.connection_;
122 std::string
const& parent,
google::pubsub::v1::Schema
const& schema,
123 std::string
const& schema_id,
Options opts
= {});
154 google::pubsub::v1::CreateSchemaRequest
const& request,
181 StatusOr<
google::pubsub::v1::Schema>
GetSchema(std::string
const& name,
364 google::pubsub::v1::ListSchemaRevisionsRequest request,
393 std::string
const& name,
google::pubsub::v1::Schema
const& schema,
425 google::pubsub::v1::CommitSchemaRequest
const& request,
456 std::string
const& name, std::string
const& revision_id,
488 google::pubsub::v1::RollbackSchemaRequest
const& request,
521 std::string
const& name, std::string
const& revision_id,
553 google::pubsub::v1::DeleteSchemaRevisionRequest
const& request,
633 std::string
const& parent,
google::pubsub::v1::Schema
const& schema,
665 google::pubsub::v1::ValidateSchemaRequest
const& request,
697 google::pubsub::v1::ValidateMessageRequest
const& request,
705GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Service for doing schema-related operations.
Definition: schema_client.h:61
StatusOr< google::pubsub::v1::Schema > CommitSchema(std::string const &name, google::pubsub::v1::Schema const &schema, Options opts={})
Commits a new schema revision to an existing schema.
StatusOr< google::pubsub::v1::Schema > RollbackSchema(std::string const &name, std::string const &revision_id, Options opts={})
Creates a new schema revision that is a copy of the provided revision_id.
StatusOr< google::pubsub::v1::Schema > DeleteSchemaRevision(std::string const &name, std::string const &revision_id, Options opts={})
Deletes a specific schema revision.
StreamRange< google::pubsub::v1::Schema > ListSchemaRevisions(std::string const &name, Options opts={})
Lists all schema revisions for the named schema.
StatusOr< google::pubsub::v1::Schema > GetSchema(std::string const &name, Options opts={})
Gets a schema.
StatusOr< google::pubsub::v1::ValidateSchemaResponse > ValidateSchema(std::string const &parent, google::pubsub::v1::Schema const &schema, Options opts={})
Validates a schema.
StreamRange< google::pubsub::v1::Schema > ListSchemaRevisions(google::pubsub::v1::ListSchemaRevisionsRequest request, Options opts={})
Lists all schema revisions for the named schema.
StatusOr< google::pubsub::v1::Schema > DeleteSchemaRevision(google::pubsub::v1::DeleteSchemaRevisionRequest const &request, Options opts={})
Deletes a specific schema revision.
StatusOr< google::pubsub::v1::ValidateMessageResponse > ValidateMessage(google::pubsub::v1::ValidateMessageRequest const &request, Options opts={})
Validates a message against a schema.
Status DeleteSchema(google::pubsub::v1::DeleteSchemaRequest const &request, Options opts={})
Deletes a schema.
StreamRange< google::pubsub::v1::Schema > ListSchemas(std::string const &parent, Options opts={})
Lists schemas in a project.
SchemaServiceClient(SchemaServiceClient &&)=default
StatusOr< google::pubsub::v1::Schema > CreateSchema(google::pubsub::v1::CreateSchemaRequest const &request, Options opts={})
Creates a schema.
StatusOr< google::pubsub::v1::ValidateSchemaResponse > ValidateSchema(google::pubsub::v1::ValidateSchemaRequest const &request, Options opts={})
Validates a schema.
SchemaServiceClient & operator=(SchemaServiceClient const &)=default
StatusOr< google::pubsub::v1::Schema > GetSchema(google::pubsub::v1::GetSchemaRequest const &request, Options opts={})
Gets a schema.
friend bool operator!=(SchemaServiceClient const &a, SchemaServiceClient const &b)
Definition: schema_client.h:81
StatusOr< google::pubsub::v1::Schema > CreateSchema(std::string const &parent, google::pubsub::v1::Schema const &schema, std::string const &schema_id, Options opts={})
Creates a schema.
SchemaServiceClient(std::shared_ptr< SchemaServiceConnection > connection, Options opts={})
SchemaServiceClient(SchemaServiceClient const &)=default
SchemaServiceClient & operator=(SchemaServiceClient &&)=default
StatusOr< google::pubsub::v1::Schema > RollbackSchema(google::pubsub::v1::RollbackSchemaRequest const &request, Options opts={})
Creates a new schema revision that is a copy of the provided revision_id.
StatusOr< google::pubsub::v1::Schema > CommitSchema(google::pubsub::v1::CommitSchemaRequest const &request, Options opts={})
Commits a new schema revision to an existing schema.
Status DeleteSchema(std::string const &name, Options opts={})
Deletes a schema.
friend bool operator==(SchemaServiceClient const &a, SchemaServiceClient const &b)
Definition: schema_client.h:77
StreamRange< google::pubsub::v1::Schema > ListSchemas(google::pubsub::v1::ListSchemasRequest request, Options opts={})
Lists schemas in a project.
The SchemaServiceConnection object for SchemaServiceClient.
Definition: schema_connection.h:61
Contains all the Cloud Pub/Sub C++ client types and functions.
Definition: ack_handler.h:25
The namespace Google Cloud Platform C++ client libraries.