public class Pubsub.Projects.Schemas extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Pubsub.Projects.Schemas.Create |
class |
Pubsub.Projects.Schemas.Delete |
class |
Pubsub.Projects.Schemas.Get |
class |
Pubsub.Projects.Schemas.List |
class |
Pubsub.Projects.Schemas.Validate |
class |
Pubsub.Projects.Schemas.ValidateMessage |
| Constructor and Description |
|---|
Schemas() |
| Modifier and Type | Method and Description |
|---|---|
Pubsub.Projects.Schemas.Create |
create(String parent,
Schema content)
Creates a schema.
|
Pubsub.Projects.Schemas.Delete |
delete(String name)
Deletes a schema.
|
Pubsub.Projects.Schemas.Get |
get(String name)
Gets a schema.
|
Pubsub.Projects.Schemas.List |
list(String parent)
Lists schemas in a project.
|
Pubsub.Projects.Schemas.Validate |
validate(String parent,
ValidateSchemaRequest content)
Validates a schema.
|
Pubsub.Projects.Schemas.ValidateMessage |
validateMessage(String parent,
ValidateMessageRequest content)
Validates a message against a schema.
|
public Pubsub.Projects.Schemas.Create create(String parent, Schema content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The name of the project in which to create the schema. Format is `projects/{project-id}`.content - the SchemaIOExceptionpublic Pubsub.Projects.Schemas.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Name of the schema to delete. Format is `projects/{project}/schemas/{schema}`.IOExceptionpublic Pubsub.Projects.Schemas.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The name of the schema to get. Format is `projects/{project}/schemas/{schema}`.IOExceptionpublic Pubsub.Projects.Schemas.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The name of the project in which to list schemas. Format is `projects/{project-id}`.IOExceptionpublic Pubsub.Projects.Schemas.Validate validate(String parent, ValidateSchemaRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The name of the project in which to validate schemas. Format is `projects/{project-id}`.content - the ValidateSchemaRequestIOExceptionpublic Pubsub.Projects.Schemas.ValidateMessage validateMessage(String parent, ValidateMessageRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The name of the project in which to validate schemas. Format is `projects/{project-id}`.content - the ValidateMessageRequestIOExceptionCopyright © 2011–2021 Google. All rights reserved.