public abstract class SchemaServiceClient
Reference documentation and code samples for the Cloud Pub/Sub v1 API class SchemaServiceClient.
SchemaService client wrapper, for convenient use.
Derived Types
Namespace
GoogleGoogle.CloudGoogle.Cloud.PubSubV1Assembly
Google.Cloud.PubSub.V1.dll
Remarks
Service for doing schema-related operations.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the SchemaService service, which is a host of "pubsub.googleapis.com" and a port of 443.
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default SchemaService scopes.
Type | Description |
IReadOnlyListstring |
The default SchemaService scopes are:
GrpcClient
public virtual SchemaService.SchemaServiceClient GrpcClient { get; }
The underlying gRPC SchemaService client
Type | Description |
SchemaServiceSchemaServiceClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Type | Description |
IAMPolicyClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Type | Description |
ServiceMetadata |
Methods
CommitSchema(CommitSchemaRequest, CallSettings)
public virtual Schema CommitSchema(CommitSchemaRequest request, CallSettings callSettings = null)
Commits a new schema revision to an existing schema.
Name | Description |
request | CommitSchemaRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
CommitSchemaRequest request = new CommitSchemaRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
Schema = new Schema(),
};
// Make the request
Schema response = schemaServiceClient.CommitSchema(request);
CommitSchema(SchemaName, Schema, CallSettings)
public virtual Schema CommitSchema(SchemaName name, Schema schema, CallSettings callSettings = null)
Commits a new schema revision to an existing schema.
Name | Description |
name | SchemaName Required. The name of the schema we are revising.
Format is |
schema | Schema Required. The schema revision to commit. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
Schema schema = new Schema();
// Make the request
Schema response = schemaServiceClient.CommitSchema(name, schema);
CommitSchema(string, Schema, CallSettings)
public virtual Schema CommitSchema(string name, Schema schema, CallSettings callSettings = null)
Commits a new schema revision to an existing schema.
Name | Description |
name | string Required. The name of the schema we are revising.
Format is |
schema | Schema Required. The schema revision to commit. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
Schema schema = new Schema();
// Make the request
Schema response = schemaServiceClient.CommitSchema(name, schema);
CommitSchemaAsync(CommitSchemaRequest, CallSettings)
public virtual Task<Schema> CommitSchemaAsync(CommitSchemaRequest request, CallSettings callSettings = null)
Commits a new schema revision to an existing schema.
Name | Description |
request | CommitSchemaRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
CommitSchemaRequest request = new CommitSchemaRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
Schema = new Schema(),
};
// Make the request
Schema response = await schemaServiceClient.CommitSchemaAsync(request);
CommitSchemaAsync(CommitSchemaRequest, CancellationToken)
public virtual Task<Schema> CommitSchemaAsync(CommitSchemaRequest request, CancellationToken cancellationToken)
Commits a new schema revision to an existing schema.
Name | Description |
request | CommitSchemaRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
CommitSchemaRequest request = new CommitSchemaRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
Schema = new Schema(),
};
// Make the request
Schema response = await schemaServiceClient.CommitSchemaAsync(request);
CommitSchemaAsync(SchemaName, Schema, CallSettings)
public virtual Task<Schema> CommitSchemaAsync(SchemaName name, Schema schema, CallSettings callSettings = null)
Commits a new schema revision to an existing schema.
Name | Description |
name | SchemaName Required. The name of the schema we are revising.
Format is |
schema | Schema Required. The schema revision to commit. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
Schema schema = new Schema();
// Make the request
Schema response = await schemaServiceClient.CommitSchemaAsync(name, schema);
CommitSchemaAsync(SchemaName, Schema, CancellationToken)
public virtual Task<Schema> CommitSchemaAsync(SchemaName name, Schema schema, CancellationToken cancellationToken)
Commits a new schema revision to an existing schema.
Name | Description |
name | SchemaName Required. The name of the schema we are revising.
Format is |
schema | Schema Required. The schema revision to commit. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
Schema schema = new Schema();
// Make the request
Schema response = await schemaServiceClient.CommitSchemaAsync(name, schema);
CommitSchemaAsync(string, Schema, CallSettings)
public virtual Task<Schema> CommitSchemaAsync(string name, Schema schema, CallSettings callSettings = null)
Commits a new schema revision to an existing schema.
Name | Description |
name | string Required. The name of the schema we are revising.
Format is |
schema | Schema Required. The schema revision to commit. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
Schema schema = new Schema();
// Make the request
Schema response = await schemaServiceClient.CommitSchemaAsync(name, schema);
CommitSchemaAsync(string, Schema, CancellationToken)
public virtual Task<Schema> CommitSchemaAsync(string name, Schema schema, CancellationToken cancellationToken)
Commits a new schema revision to an existing schema.
Name | Description |
name | string Required. The name of the schema we are revising.
Format is |
schema | Schema Required. The schema revision to commit. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
Schema schema = new Schema();
// Make the request
Schema response = await schemaServiceClient.CommitSchemaAsync(name, schema);
Create()
public static SchemaServiceClient Create()
Synchronously creates a SchemaServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SchemaServiceClientBuilder.
Type | Description |
SchemaServiceClient | The created SchemaServiceClient. |
CreateAsync(CancellationToken)
public static Task<SchemaServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a SchemaServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SchemaServiceClientBuilder.
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Type | Description |
TaskSchemaServiceClient | The task representing the created SchemaServiceClient. |
CreateSchema(ProjectName, Schema, string, CallSettings)
public virtual Schema CreateSchema(ProjectName parent, Schema schema, string schemaId, CallSettings callSettings = null)
Creates a schema.
Name | Description |
parent | ProjectName Required. The name of the project in which to create the schema.
Format is |
schema | Schema Required. The schema object to create. This schema's |
schemaId | string The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Schema schema = new Schema();
string schemaId = "";
// Make the request
Schema response = schemaServiceClient.CreateSchema(parent, schema, schemaId);
CreateSchema(CreateSchemaRequest, CallSettings)
public virtual Schema CreateSchema(CreateSchemaRequest request, CallSettings callSettings = null)
Creates a schema.
Name | Description |
request | CreateSchemaRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
CreateSchemaRequest request = new CreateSchemaRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
Schema = new Schema(),
SchemaId = "",
};
// Make the request
Schema response = schemaServiceClient.CreateSchema(request);
CreateSchema(string, Schema, string, CallSettings)
public virtual Schema CreateSchema(string parent, Schema schema, string schemaId, CallSettings callSettings = null)
Creates a schema.
Name | Description |
parent | string Required. The name of the project in which to create the schema.
Format is |
schema | Schema Required. The schema object to create. This schema's |
schemaId | string The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
Schema schema = new Schema();
string schemaId = "";
// Make the request
Schema response = schemaServiceClient.CreateSchema(parent, schema, schemaId);
CreateSchemaAsync(ProjectName, Schema, string, CallSettings)
public virtual Task<Schema> CreateSchemaAsync(ProjectName parent, Schema schema, string schemaId, CallSettings callSettings = null)
Creates a schema.
Name | Description |
parent | ProjectName Required. The name of the project in which to create the schema.
Format is |
schema | Schema Required. The schema object to create. This schema's |
schemaId | string The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Schema schema = new Schema();
string schemaId = "";
// Make the request
Schema response = await schemaServiceClient.CreateSchemaAsync(parent, schema, schemaId);
CreateSchemaAsync(ProjectName, Schema, string, CancellationToken)
public virtual Task<Schema> CreateSchemaAsync(ProjectName parent, Schema schema, string schemaId, CancellationToken cancellationToken)
Creates a schema.
Name | Description |
parent | ProjectName Required. The name of the project in which to create the schema.
Format is |
schema | Schema Required. The schema object to create. This schema's |
schemaId | string The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
Schema schema = new Schema();
string schemaId = "";
// Make the request
Schema response = await schemaServiceClient.CreateSchemaAsync(parent, schema, schemaId);
CreateSchemaAsync(CreateSchemaRequest, CallSettings)
public virtual Task<Schema> CreateSchemaAsync(CreateSchemaRequest request, CallSettings callSettings = null)
Creates a schema.
Name | Description |
request | CreateSchemaRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSchemaRequest request = new CreateSchemaRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
Schema = new Schema(),
SchemaId = "",
};
// Make the request
Schema response = await schemaServiceClient.CreateSchemaAsync(request);
CreateSchemaAsync(CreateSchemaRequest, CancellationToken)
public virtual Task<Schema> CreateSchemaAsync(CreateSchemaRequest request, CancellationToken cancellationToken)
Creates a schema.
Name | Description |
request | CreateSchemaRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSchemaRequest request = new CreateSchemaRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
Schema = new Schema(),
SchemaId = "",
};
// Make the request
Schema response = await schemaServiceClient.CreateSchemaAsync(request);
CreateSchemaAsync(string, Schema, string, CallSettings)
public virtual Task<Schema> CreateSchemaAsync(string parent, Schema schema, string schemaId, CallSettings callSettings = null)
Creates a schema.
Name | Description |
parent | string Required. The name of the project in which to create the schema.
Format is |
schema | Schema Required. The schema object to create. This schema's |
schemaId | string The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
Schema schema = new Schema();
string schemaId = "";
// Make the request
Schema response = await schemaServiceClient.CreateSchemaAsync(parent, schema, schemaId);
CreateSchemaAsync(string, Schema, string, CancellationToken)
public virtual Task<Schema> CreateSchemaAsync(string parent, Schema schema, string schemaId, CancellationToken cancellationToken)
Creates a schema.
Name | Description |
parent | string Required. The name of the project in which to create the schema.
Format is |
schema | Schema Required. The schema object to create. This schema's |
schemaId | string The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
Schema schema = new Schema();
string schemaId = "";
// Make the request
Schema response = await schemaServiceClient.CreateSchemaAsync(parent, schema, schemaId);
DeleteSchema(DeleteSchemaRequest, CallSettings)
public virtual void DeleteSchema(DeleteSchemaRequest request, CallSettings callSettings = null)
Deletes a schema.
Name | Description |
request | DeleteSchemaRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
DeleteSchemaRequest request = new DeleteSchemaRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
};
// Make the request
schemaServiceClient.DeleteSchema(request);
DeleteSchema(SchemaName, CallSettings)
public virtual void DeleteSchema(SchemaName name, CallSettings callSettings = null)
Deletes a schema.
Name | Description |
name | SchemaName Required. Name of the schema to delete.
Format is |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
// Make the request
schemaServiceClient.DeleteSchema(name);
DeleteSchema(string, CallSettings)
public virtual void DeleteSchema(string name, CallSettings callSettings = null)
Deletes a schema.
Name | Description |
name | string Required. Name of the schema to delete.
Format is |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
// Make the request
schemaServiceClient.DeleteSchema(name);
DeleteSchemaAsync(DeleteSchemaRequest, CallSettings)
public virtual Task DeleteSchemaAsync(DeleteSchemaRequest request, CallSettings callSettings = null)
Deletes a schema.
Name | Description |
request | DeleteSchemaRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSchemaRequest request = new DeleteSchemaRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
};
// Make the request
await schemaServiceClient.DeleteSchemaAsync(request);
DeleteSchemaAsync(DeleteSchemaRequest, CancellationToken)
public virtual Task DeleteSchemaAsync(DeleteSchemaRequest request, CancellationToken cancellationToken)
Deletes a schema.
Name | Description |
request | DeleteSchemaRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSchemaRequest request = new DeleteSchemaRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
};
// Make the request
await schemaServiceClient.DeleteSchemaAsync(request);
DeleteSchemaAsync(SchemaName, CallSettings)
public virtual Task DeleteSchemaAsync(SchemaName name, CallSettings callSettings = null)
Deletes a schema.
Name | Description |
name | SchemaName Required. Name of the schema to delete.
Format is |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
// Make the request
await schemaServiceClient.DeleteSchemaAsync(name);
DeleteSchemaAsync(SchemaName, CancellationToken)
public virtual Task DeleteSchemaAsync(SchemaName name, CancellationToken cancellationToken)
Deletes a schema.
Name | Description |
name | SchemaName Required. Name of the schema to delete.
Format is |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
// Make the request
await schemaServiceClient.DeleteSchemaAsync(name);
DeleteSchemaAsync(string, CallSettings)
public virtual Task DeleteSchemaAsync(string name, CallSettings callSettings = null)
Deletes a schema.
Name | Description |
name | string Required. Name of the schema to delete.
Format is |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
// Make the request
await schemaServiceClient.DeleteSchemaAsync(name);
DeleteSchemaAsync(string, CancellationToken)
public virtual Task DeleteSchemaAsync(string name, CancellationToken cancellationToken)
Deletes a schema.
Name | Description |
name | string Required. Name of the schema to delete.
Format is |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
// Make the request
await schemaServiceClient.DeleteSchemaAsync(name);
DeleteSchemaRevision(DeleteSchemaRevisionRequest, CallSettings)
public virtual Schema DeleteSchemaRevision(DeleteSchemaRevisionRequest request, CallSettings callSettings = null)
Deletes a specific schema revision.
Name | Description |
request | DeleteSchemaRevisionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
DeleteSchemaRevisionRequest request = new DeleteSchemaRevisionRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
};
// Make the request
Schema response = schemaServiceClient.DeleteSchemaRevision(request);
DeleteSchemaRevision(SchemaName, string, CallSettings)
[Obsolete]
public virtual Schema DeleteSchemaRevision(SchemaName name, string revisionId, CallSettings callSettings = null)
Deletes a specific schema revision.
Name | Description |
name | SchemaName Required. The name of the schema revision to be deleted, with a revision ID explicitly included. Example: |
revisionId | string Optional. This field is deprecated and should not be used for specifying
the revision ID. The revision ID should be specified via the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
string revisionId = "";
// Make the request
#pragma warning disable CS0612
Schema response = schemaServiceClient.DeleteSchemaRevision(name, revisionId);
#pragma warning restore CS0612
DeleteSchemaRevision(string, string, CallSettings)
[Obsolete]
public virtual Schema DeleteSchemaRevision(string name, string revisionId, CallSettings callSettings = null)
Deletes a specific schema revision.
Name | Description |
name | string Required. The name of the schema revision to be deleted, with a revision ID explicitly included. Example: |
revisionId | string Optional. This field is deprecated and should not be used for specifying
the revision ID. The revision ID should be specified via the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
string revisionId = "";
// Make the request
#pragma warning disable CS0612
Schema response = schemaServiceClient.DeleteSchemaRevision(name, revisionId);
#pragma warning restore CS0612
DeleteSchemaRevisionAsync(DeleteSchemaRevisionRequest, CallSettings)
public virtual Task<Schema> DeleteSchemaRevisionAsync(DeleteSchemaRevisionRequest request, CallSettings callSettings = null)
Deletes a specific schema revision.
Name | Description |
request | DeleteSchemaRevisionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSchemaRevisionRequest request = new DeleteSchemaRevisionRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
};
// Make the request
Schema response = await schemaServiceClient.DeleteSchemaRevisionAsync(request);
DeleteSchemaRevisionAsync(DeleteSchemaRevisionRequest, CancellationToken)
public virtual Task<Schema> DeleteSchemaRevisionAsync(DeleteSchemaRevisionRequest request, CancellationToken cancellationToken)
Deletes a specific schema revision.
Name | Description |
request | DeleteSchemaRevisionRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSchemaRevisionRequest request = new DeleteSchemaRevisionRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
};
// Make the request
Schema response = await schemaServiceClient.DeleteSchemaRevisionAsync(request);
DeleteSchemaRevisionAsync(SchemaName, string, CallSettings)
[Obsolete]
public virtual Task<Schema> DeleteSchemaRevisionAsync(SchemaName name, string revisionId, CallSettings callSettings = null)
Deletes a specific schema revision.
Name | Description |
name | SchemaName Required. The name of the schema revision to be deleted, with a revision ID explicitly included. Example: |
revisionId | string Optional. This field is deprecated and should not be used for specifying
the revision ID. The revision ID should be specified via the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
string revisionId = "";
// Make the request
#pragma warning disable CS0612
Schema response = await schemaServiceClient.DeleteSchemaRevisionAsync(name, revisionId);
#pragma warning restore CS0612
DeleteSchemaRevisionAsync(SchemaName, string, CancellationToken)
[Obsolete]
public virtual Task<Schema> DeleteSchemaRevisionAsync(SchemaName name, string revisionId, CancellationToken cancellationToken)
Deletes a specific schema revision.
Name | Description |
name | SchemaName Required. The name of the schema revision to be deleted, with a revision ID explicitly included. Example: |
revisionId | string Optional. This field is deprecated and should not be used for specifying
the revision ID. The revision ID should be specified via the |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
string revisionId = "";
// Make the request
#pragma warning disable CS0612
Schema response = await schemaServiceClient.DeleteSchemaRevisionAsync(name, revisionId);
#pragma warning restore CS0612
DeleteSchemaRevisionAsync(string, string, CallSettings)
[Obsolete]
public virtual Task<Schema> DeleteSchemaRevisionAsync(string name, string revisionId, CallSettings callSettings = null)
Deletes a specific schema revision.
Name | Description |
name | string Required. The name of the schema revision to be deleted, with a revision ID explicitly included. Example: |
revisionId | string Optional. This field is deprecated and should not be used for specifying
the revision ID. The revision ID should be specified via the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
string revisionId = "";
// Make the request
#pragma warning disable CS0612
Schema response = await schemaServiceClient.DeleteSchemaRevisionAsync(name, revisionId);
#pragma warning restore CS0612
DeleteSchemaRevisionAsync(string, string, CancellationToken)
[Obsolete]
public virtual Task<Schema> DeleteSchemaRevisionAsync(string name, string revisionId, CancellationToken cancellationToken)
Deletes a specific schema revision.
Name | Description |
name | string Required. The name of the schema revision to be deleted, with a revision ID explicitly included. Example: |
revisionId | string Optional. This field is deprecated and should not be used for specifying
the revision ID. The revision ID should be specified via the |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
string revisionId = "";
// Make the request
#pragma warning disable CS0612
Schema response = await schemaServiceClient.DeleteSchemaRevisionAsync(name, revisionId);
#pragma warning restore CS0612
GetSchema(GetSchemaRequest, CallSettings)
public virtual Schema GetSchema(GetSchemaRequest request, CallSettings callSettings = null)
Gets a schema.
Name | Description |
request | GetSchemaRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
GetSchemaRequest request = new GetSchemaRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
View = SchemaView.Unspecified,
};
// Make the request
Schema response = schemaServiceClient.GetSchema(request);
GetSchema(SchemaName, CallSettings)
public virtual Schema GetSchema(SchemaName name, CallSettings callSettings = null)
Gets a schema.
Name | Description |
name | SchemaName Required. The name of the schema to get.
Format is |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
// Make the request
Schema response = schemaServiceClient.GetSchema(name);
GetSchema(string, CallSettings)
public virtual Schema GetSchema(string name, CallSettings callSettings = null)
Gets a schema.
Name | Description |
name | string Required. The name of the schema to get.
Format is |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Schema | The RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
// Make the request
Schema response = schemaServiceClient.GetSchema(name);
GetSchemaAsync(GetSchemaRequest, CallSettings)
public virtual Task<Schema> GetSchemaAsync(GetSchemaRequest request, CallSettings callSettings = null)
Gets a schema.
Name | Description |
request | GetSchemaRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
GetSchemaRequest request = new GetSchemaRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
View = SchemaView.Unspecified,
};
// Make the request
Schema response = await schemaServiceClient.GetSchemaAsync(request);
GetSchemaAsync(GetSchemaRequest, CancellationToken)
public virtual Task<Schema> GetSchemaAsync(GetSchemaRequest request, CancellationToken cancellationToken)
Gets a schema.
Name | Description |
request | GetSchemaRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
GetSchemaRequest request = new GetSchemaRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
View = SchemaView.Unspecified,
};
// Make the request
Schema response = await schemaServiceClient.GetSchemaAsync(request);
GetSchemaAsync(SchemaName, CallSettings)
public virtual Task<Schema> GetSchemaAsync(SchemaName name, CallSettings callSettings = null)
Gets a schema.
Name | Description |
name | SchemaName Required. The name of the schema to get.
Format is |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
// Make the request
Schema response = await schemaServiceClient.GetSchemaAsync(name);
GetSchemaAsync(SchemaName, CancellationToken)
public virtual Task<Schema> GetSchemaAsync(SchemaName name, CancellationToken cancellationToken)
Gets a schema.
Name | Description |
name | SchemaName Required. The name of the schema to get.
Format is |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
// Make the request
Schema response = await schemaServiceClient.GetSchemaAsync(name);
GetSchemaAsync(string, CallSettings)
public virtual Task<Schema> GetSchemaAsync(string name, CallSettings callSettings = null)
Gets a schema.
Name | Description |
name | string Required. The name of the schema to get.
Format is |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
// Make the request
Schema response = await schemaServiceClient.GetSchemaAsync(name);
GetSchemaAsync(string, CancellationToken)
public virtual Task<Schema> GetSchemaAsync(string name, CancellationToken cancellationToken)
Gets a schema.
Name | Description |
name | string Required. The name of the schema to get.
Format is |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
TaskSchema | A Task containing the RPC response. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
// Make the request
Schema response = await schemaServiceClient.GetSchemaAsync(name);
ListSchemaRevisions(ListSchemaRevisionsRequest, CallSettings)
public virtual PagedEnumerable<ListSchemaRevisionsResponse, Schema> ListSchemaRevisions(ListSchemaRevisionsRequest request, CallSettings callSettings = null)
Lists all schema revisions for the named schema.
Name | Description |
request | ListSchemaRevisionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
PagedEnumerableListSchemaRevisionsResponseSchema | A pageable sequence of Schema resources. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
ListSchemaRevisionsRequest request = new ListSchemaRevisionsRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
View = SchemaView.Unspecified,
};
// Make the request
PagedEnumerable<ListSchemaRevisionsResponse, Schema> response = schemaServiceClient.ListSchemaRevisions(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Schema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSchemaRevisionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Schema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Schema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Schema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSchemaRevisions(SchemaName, string, int?, CallSettings)
public virtual PagedEnumerable<ListSchemaRevisionsResponse, Schema> ListSchemaRevisions(SchemaName name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all schema revisions for the named schema.
Name | Description |
name | SchemaName Required. The name of the schema to list revisions for. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
PagedEnumerableListSchemaRevisionsResponseSchema | A pageable sequence of Schema resources. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
// Make the request
PagedEnumerable<ListSchemaRevisionsResponse, Schema> response = schemaServiceClient.ListSchemaRevisions(name);
// Iterate over all response items, lazily performing RPCs as required
foreach (Schema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSchemaRevisionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Schema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Schema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Schema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSchemaRevisions(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListSchemaRevisionsResponse, Schema> ListSchemaRevisions(string name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all schema revisions for the named schema.
Name | Description |
name | string Required. The name of the schema to list revisions for. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
PagedEnumerableListSchemaRevisionsResponseSchema | A pageable sequence of Schema resources. |
// Create client
SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
// Make the request
PagedEnumerable<ListSchemaRevisionsResponse, Schema> response = schemaServiceClient.ListSchemaRevisions(name);
// Iterate over all response items, lazily performing RPCs as required
foreach (Schema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSchemaRevisionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Schema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Schema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Schema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSchemaRevisionsAsync(ListSchemaRevisionsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListSchemaRevisionsResponse, Schema> ListSchemaRevisionsAsync(ListSchemaRevisionsRequest request, CallSettings callSettings = null)
Lists all schema revisions for the named schema.
Name | Description |
request | ListSchemaRevisionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
PagedAsyncEnumerableListSchemaRevisionsResponseSchema | A pageable asynchronous sequence of Schema resources. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
ListSchemaRevisionsRequest request = new ListSchemaRevisionsRequest
{
SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
View = SchemaView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListSchemaRevisionsResponse, Schema> response = schemaServiceClient.ListSchemaRevisionsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Schema item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSchemaRevisionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Schema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Schema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Schema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSchemaRevisionsAsync(SchemaName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSchemaRevisionsResponse, Schema> ListSchemaRevisionsAsync(SchemaName name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all schema revisions for the named schema.
Name | Description |
name | SchemaName Required. The name of the schema to list revisions for. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
PagedAsyncEnumerableListSchemaRevisionsResponseSchema | A pageable asynchronous sequence of Schema resources. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");
// Make the request
PagedAsyncEnumerable<ListSchemaRevisionsResponse, Schema> response = schemaServiceClient.ListSchemaRevisionsAsync(name);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Schema item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSchemaRevisionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Schema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Schema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Schema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSchemaRevisionsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSchemaRevisionsResponse, Schema> ListSchemaRevisionsAsync(string name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all schema revisions for the named schema.
Name | Description |
name | string Required. The name of the schema to list revisions for. |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
PagedAsyncEnumerableListSchemaRevisionsResponseSchema | A pageable asynchronous sequence of Schema resources. |
// Create client
SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/schemas/[SCHEMA]";
// Make the request
PagedAsyncEnumerable<ListSchemaRevisionsResponse, Schema> response = schemaServiceClient.ListSchemaRevisionsAsync(name);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Schema item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSchemaRevisionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Schema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Schema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Schema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListSchemas(ProjectName, string, int?, CallSettings)
public virtual