Cloud Dataplex v1 API - Class BusinessGlossaryServiceClient (3.10.0)

public abstract class BusinessGlossaryServiceClient

Reference documentation and code samples for the Cloud Dataplex v1 API class BusinessGlossaryServiceClient.

BusinessGlossaryService client wrapper, for convenient use.

Inheritance

object > BusinessGlossaryServiceClient

Namespace

Google.Cloud.Dataplex.V1

Assembly

Google.Cloud.Dataplex.V1.dll

Remarks

BusinessGlossaryService provides APIs for managing business glossary resources for enterprise customers. The resources currently supported in Business Glossary are:

  1. Glossary
  2. GlossaryCategory
  3. GlossaryTerm

Properties

CreateGlossaryOperationsClient

public virtual OperationsClient CreateGlossaryOperationsClient { get; }

The long-running operations client for CreateGlossary.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the BusinessGlossaryService service, which is a host of "dataplex.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default BusinessGlossaryService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default BusinessGlossaryService scopes are:

DeleteGlossaryOperationsClient

public virtual OperationsClient DeleteGlossaryOperationsClient { get; }

The long-running operations client for DeleteGlossary.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual BusinessGlossaryService.BusinessGlossaryServiceClient GrpcClient { get; }

The underlying gRPC BusinessGlossaryService client

Property Value
Type Description
BusinessGlossaryServiceBusinessGlossaryServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateGlossaryOperationsClient

public virtual OperationsClient UpdateGlossaryOperationsClient { get; }

The long-running operations client for UpdateGlossary.

Property Value
Type Description
OperationsClient

Methods

Create()

public static BusinessGlossaryServiceClient Create()

Synchronously creates a BusinessGlossaryServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BusinessGlossaryServiceClientBuilder.

Returns
Type Description
BusinessGlossaryServiceClient

The created BusinessGlossaryServiceClient.

CreateAsync(CancellationToken)

public static Task<BusinessGlossaryServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a BusinessGlossaryServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BusinessGlossaryServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskBusinessGlossaryServiceClient

The task representing the created BusinessGlossaryServiceClient.

CreateGlossary(LocationName, Glossary, string, CallSettings)

public virtual Operation<Glossary, OperationMetadata> CreateGlossary(LocationName parent, Glossary glossary, string glossaryId, CallSettings callSettings = null)

Creates a new Glossary resource.

Parameters
Name Description
parent LocationName

Required. The parent resource where this Glossary will be created. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

glossary Glossary

Required. The Glossary to create.

glossaryId string

Required. Glossary ID: Glossary identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGlossaryOperationMetadata

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::Glossary glossary = new gcdv::Glossary();
string glossaryId = "";
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = businessGlossaryServiceClient.CreateGlossary(parent, glossary, glossaryId);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = businessGlossaryServiceClient.PollOnceCreateGlossary(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

CreateGlossary(CreateGlossaryRequest, CallSettings)

public virtual Operation<Glossary, OperationMetadata> CreateGlossary(CreateGlossaryRequest request, CallSettings callSettings = null)

Creates a new Glossary resource.

Parameters
Name Description
request CreateGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGlossaryOperationMetadata

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateGlossaryRequest request = new gcdv::CreateGlossaryRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GlossaryId = "",
    Glossary = new gcdv::Glossary(),
    ValidateOnly = false,
};
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = businessGlossaryServiceClient.CreateGlossary(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = businessGlossaryServiceClient.PollOnceCreateGlossary(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

CreateGlossary(string, Glossary, string, CallSettings)

public virtual Operation<Glossary, OperationMetadata> CreateGlossary(string parent, Glossary glossary, string glossaryId, CallSettings callSettings = null)

Creates a new Glossary resource.

Parameters
Name Description
parent string

Required. The parent resource where this Glossary will be created. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

glossary Glossary

Required. The Glossary to create.

glossaryId string

Required. Glossary ID: Glossary identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGlossaryOperationMetadata

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::Glossary glossary = new gcdv::Glossary();
string glossaryId = "";
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = businessGlossaryServiceClient.CreateGlossary(parent, glossary, glossaryId);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = businessGlossaryServiceClient.PollOnceCreateGlossary(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

CreateGlossaryAsync(LocationName, Glossary, string, CallSettings)

public virtual Task<Operation<Glossary, OperationMetadata>> CreateGlossaryAsync(LocationName parent, Glossary glossary, string glossaryId, CallSettings callSettings = null)

Creates a new Glossary resource.

Parameters
Name Description
parent LocationName

Required. The parent resource where this Glossary will be created. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

glossary Glossary

Required. The Glossary to create.

glossaryId string

Required. Glossary ID: Glossary identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::Glossary glossary = new gcdv::Glossary();
string glossaryId = "";
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.CreateGlossaryAsync(parent, glossary, glossaryId);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceCreateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

CreateGlossaryAsync(LocationName, Glossary, string, CancellationToken)

public virtual Task<Operation<Glossary, OperationMetadata>> CreateGlossaryAsync(LocationName parent, Glossary glossary, string glossaryId, CancellationToken cancellationToken)

Creates a new Glossary resource.

Parameters
Name Description
parent LocationName

Required. The parent resource where this Glossary will be created. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

glossary Glossary

Required. The Glossary to create.

glossaryId string

Required. Glossary ID: Glossary identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::Glossary glossary = new gcdv::Glossary();
string glossaryId = "";
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.CreateGlossaryAsync(parent, glossary, glossaryId);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceCreateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

CreateGlossaryAsync(CreateGlossaryRequest, CallSettings)

public virtual Task<Operation<Glossary, OperationMetadata>> CreateGlossaryAsync(CreateGlossaryRequest request, CallSettings callSettings = null)

Creates a new Glossary resource.

Parameters
Name Description
request CreateGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateGlossaryRequest request = new gcdv::CreateGlossaryRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GlossaryId = "",
    Glossary = new gcdv::Glossary(),
    ValidateOnly = false,
};
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.CreateGlossaryAsync(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceCreateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

CreateGlossaryAsync(CreateGlossaryRequest, CancellationToken)

public virtual Task<Operation<Glossary, OperationMetadata>> CreateGlossaryAsync(CreateGlossaryRequest request, CancellationToken cancellationToken)

Creates a new Glossary resource.

Parameters
Name Description
request CreateGlossaryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateGlossaryRequest request = new gcdv::CreateGlossaryRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GlossaryId = "",
    Glossary = new gcdv::Glossary(),
    ValidateOnly = false,
};
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.CreateGlossaryAsync(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceCreateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

CreateGlossaryAsync(string, Glossary, string, CallSettings)

public virtual Task<Operation<Glossary, OperationMetadata>> CreateGlossaryAsync(string parent, Glossary glossary, string glossaryId, CallSettings callSettings = null)

Creates a new Glossary resource.

Parameters
Name Description
parent string

Required. The parent resource where this Glossary will be created. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

glossary Glossary

Required. The Glossary to create.

glossaryId string

Required. Glossary ID: Glossary identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::Glossary glossary = new gcdv::Glossary();
string glossaryId = "";
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.CreateGlossaryAsync(parent, glossary, glossaryId);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceCreateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

CreateGlossaryAsync(string, Glossary, string, CancellationToken)

public virtual Task<Operation<Glossary, OperationMetadata>> CreateGlossaryAsync(string parent, Glossary glossary, string glossaryId, CancellationToken cancellationToken)

Creates a new Glossary resource.

Parameters
Name Description
parent string

Required. The parent resource where this Glossary will be created. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

glossary Glossary

Required. The Glossary to create.

glossaryId string

Required. Glossary ID: Glossary identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::Glossary glossary = new gcdv::Glossary();
string glossaryId = "";
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.CreateGlossaryAsync(parent, glossary, glossaryId);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceCreateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

CreateGlossaryCategory(CreateGlossaryCategoryRequest, CallSettings)

public virtual GlossaryCategory CreateGlossaryCategory(CreateGlossaryCategoryRequest request, CallSettings callSettings = null)

Creates a new GlossaryCategory resource.

Parameters
Name Description
request CreateGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryCategory

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateGlossaryCategoryRequest request = new gcdv::CreateGlossaryCategoryRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    CategoryId = "",
    Category = new gcdv::GlossaryCategory(),
};
// Make the request
gcdv::GlossaryCategory response = businessGlossaryServiceClient.CreateGlossaryCategory(request);

CreateGlossaryCategory(GlossaryName, GlossaryCategory, string, CallSettings)

public virtual GlossaryCategory CreateGlossaryCategory(GlossaryName parent, GlossaryCategory category, string categoryId, CallSettings callSettings = null)

Creates a new GlossaryCategory resource.

Parameters
Name Description
parent GlossaryName

Required. The parent resource where this GlossaryCategory will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where locationId refers to a Google Cloud region.

category GlossaryCategory

Required. The GlossaryCategory to create.

categoryId string

Required. GlossaryCategory identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryCategory

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
gcdv::GlossaryCategory category = new gcdv::GlossaryCategory();
string categoryId = "";
// Make the request
gcdv::GlossaryCategory response = businessGlossaryServiceClient.CreateGlossaryCategory(parent, category, categoryId);

CreateGlossaryCategory(string, GlossaryCategory, string, CallSettings)

public virtual GlossaryCategory CreateGlossaryCategory(string parent, GlossaryCategory category, string categoryId, CallSettings callSettings = null)

Creates a new GlossaryCategory resource.

Parameters
Name Description
parent string

Required. The parent resource where this GlossaryCategory will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where locationId refers to a Google Cloud region.

category GlossaryCategory

Required. The GlossaryCategory to create.

categoryId string

Required. GlossaryCategory identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryCategory

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
gcdv::GlossaryCategory category = new gcdv::GlossaryCategory();
string categoryId = "";
// Make the request
gcdv::GlossaryCategory response = businessGlossaryServiceClient.CreateGlossaryCategory(parent, category, categoryId);

CreateGlossaryCategoryAsync(CreateGlossaryCategoryRequest, CallSettings)

public virtual Task<GlossaryCategory> CreateGlossaryCategoryAsync(CreateGlossaryCategoryRequest request, CallSettings callSettings = null)

Creates a new GlossaryCategory resource.

Parameters
Name Description
request CreateGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateGlossaryCategoryRequest request = new gcdv::CreateGlossaryCategoryRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    CategoryId = "",
    Category = new gcdv::GlossaryCategory(),
};
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.CreateGlossaryCategoryAsync(request);

CreateGlossaryCategoryAsync(CreateGlossaryCategoryRequest, CancellationToken)

public virtual Task<GlossaryCategory> CreateGlossaryCategoryAsync(CreateGlossaryCategoryRequest request, CancellationToken cancellationToken)

Creates a new GlossaryCategory resource.

Parameters
Name Description
request CreateGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateGlossaryCategoryRequest request = new gcdv::CreateGlossaryCategoryRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    CategoryId = "",
    Category = new gcdv::GlossaryCategory(),
};
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.CreateGlossaryCategoryAsync(request);

CreateGlossaryCategoryAsync(GlossaryName, GlossaryCategory, string, CallSettings)

public virtual Task<GlossaryCategory> CreateGlossaryCategoryAsync(GlossaryName parent, GlossaryCategory category, string categoryId, CallSettings callSettings = null)

Creates a new GlossaryCategory resource.

Parameters
Name Description
parent GlossaryName

Required. The parent resource where this GlossaryCategory will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where locationId refers to a Google Cloud region.

category GlossaryCategory

Required. The GlossaryCategory to create.

categoryId string

Required. GlossaryCategory identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
gcdv::GlossaryCategory category = new gcdv::GlossaryCategory();
string categoryId = "";
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.CreateGlossaryCategoryAsync(parent, category, categoryId);

CreateGlossaryCategoryAsync(GlossaryName, GlossaryCategory, string, CancellationToken)

public virtual Task<GlossaryCategory> CreateGlossaryCategoryAsync(GlossaryName parent, GlossaryCategory category, string categoryId, CancellationToken cancellationToken)

Creates a new GlossaryCategory resource.

Parameters
Name Description
parent GlossaryName

Required. The parent resource where this GlossaryCategory will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where locationId refers to a Google Cloud region.

category GlossaryCategory

Required. The GlossaryCategory to create.

categoryId string

Required. GlossaryCategory identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
gcdv::GlossaryCategory category = new gcdv::GlossaryCategory();
string categoryId = "";
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.CreateGlossaryCategoryAsync(parent, category, categoryId);

CreateGlossaryCategoryAsync(string, GlossaryCategory, string, CallSettings)

public virtual Task<GlossaryCategory> CreateGlossaryCategoryAsync(string parent, GlossaryCategory category, string categoryId, CallSettings callSettings = null)

Creates a new GlossaryCategory resource.

Parameters
Name Description
parent string

Required. The parent resource where this GlossaryCategory will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where locationId refers to a Google Cloud region.

category GlossaryCategory

Required. The GlossaryCategory to create.

categoryId string

Required. GlossaryCategory identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
gcdv::GlossaryCategory category = new gcdv::GlossaryCategory();
string categoryId = "";
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.CreateGlossaryCategoryAsync(parent, category, categoryId);

CreateGlossaryCategoryAsync(string, GlossaryCategory, string, CancellationToken)

public virtual Task<GlossaryCategory> CreateGlossaryCategoryAsync(string parent, GlossaryCategory category, string categoryId, CancellationToken cancellationToken)

Creates a new GlossaryCategory resource.

Parameters
Name Description
parent string

Required. The parent resource where this GlossaryCategory will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where locationId refers to a Google Cloud region.

category GlossaryCategory

Required. The GlossaryCategory to create.

categoryId string

Required. GlossaryCategory identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
gcdv::GlossaryCategory category = new gcdv::GlossaryCategory();
string categoryId = "";
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.CreateGlossaryCategoryAsync(parent, category, categoryId);

CreateGlossaryTerm(CreateGlossaryTermRequest, CallSettings)

public virtual GlossaryTerm CreateGlossaryTerm(CreateGlossaryTermRequest request, CallSettings callSettings = null)

Creates a new GlossaryTerm resource.

Parameters
Name Description
request CreateGlossaryTermRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryTerm

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateGlossaryTermRequest request = new gcdv::CreateGlossaryTermRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    TermId = "",
    Term = new gcdv::GlossaryTerm(),
};
// Make the request
gcdv::GlossaryTerm response = businessGlossaryServiceClient.CreateGlossaryTerm(request);

CreateGlossaryTerm(GlossaryName, GlossaryTerm, string, CallSettings)

public virtual GlossaryTerm CreateGlossaryTerm(GlossaryName parent, GlossaryTerm term, string termId, CallSettings callSettings = null)

Creates a new GlossaryTerm resource.

Parameters
Name Description
parent GlossaryName

Required. The parent resource where the GlossaryTerm will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

term GlossaryTerm

Required. The GlossaryTerm to create.

termId string

Required. GlossaryTerm identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryTerm

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
gcdv::GlossaryTerm term = new gcdv::GlossaryTerm();
string termId = "";
// Make the request
gcdv::GlossaryTerm response = businessGlossaryServiceClient.CreateGlossaryTerm(parent, term, termId);

CreateGlossaryTerm(string, GlossaryTerm, string, CallSettings)

public virtual GlossaryTerm CreateGlossaryTerm(string parent, GlossaryTerm term, string termId, CallSettings callSettings = null)

Creates a new GlossaryTerm resource.

Parameters
Name Description
parent string

Required. The parent resource where the GlossaryTerm will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

term GlossaryTerm

Required. The GlossaryTerm to create.

termId string

Required. GlossaryTerm identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryTerm

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
gcdv::GlossaryTerm term = new gcdv::GlossaryTerm();
string termId = "";
// Make the request
gcdv::GlossaryTerm response = businessGlossaryServiceClient.CreateGlossaryTerm(parent, term, termId);

CreateGlossaryTermAsync(CreateGlossaryTermRequest, CallSettings)

public virtual Task<GlossaryTerm> CreateGlossaryTermAsync(CreateGlossaryTermRequest request, CallSettings callSettings = null)

Creates a new GlossaryTerm resource.

Parameters
Name Description
request CreateGlossaryTermRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateGlossaryTermRequest request = new gcdv::CreateGlossaryTermRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    TermId = "",
    Term = new gcdv::GlossaryTerm(),
};
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.CreateGlossaryTermAsync(request);

CreateGlossaryTermAsync(CreateGlossaryTermRequest, CancellationToken)

public virtual Task<GlossaryTerm> CreateGlossaryTermAsync(CreateGlossaryTermRequest request, CancellationToken cancellationToken)

Creates a new GlossaryTerm resource.

Parameters
Name Description
request CreateGlossaryTermRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateGlossaryTermRequest request = new gcdv::CreateGlossaryTermRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    TermId = "",
    Term = new gcdv::GlossaryTerm(),
};
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.CreateGlossaryTermAsync(request);

CreateGlossaryTermAsync(GlossaryName, GlossaryTerm, string, CallSettings)

public virtual Task<GlossaryTerm> CreateGlossaryTermAsync(GlossaryName parent, GlossaryTerm term, string termId, CallSettings callSettings = null)

Creates a new GlossaryTerm resource.

Parameters
Name Description
parent GlossaryName

Required. The parent resource where the GlossaryTerm will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

term GlossaryTerm

Required. The GlossaryTerm to create.

termId string

Required. GlossaryTerm identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
gcdv::GlossaryTerm term = new gcdv::GlossaryTerm();
string termId = "";
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.CreateGlossaryTermAsync(parent, term, termId);

CreateGlossaryTermAsync(GlossaryName, GlossaryTerm, string, CancellationToken)

public virtual Task<GlossaryTerm> CreateGlossaryTermAsync(GlossaryName parent, GlossaryTerm term, string termId, CancellationToken cancellationToken)

Creates a new GlossaryTerm resource.

Parameters
Name Description
parent GlossaryName

Required. The parent resource where the GlossaryTerm will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

term GlossaryTerm

Required. The GlossaryTerm to create.

termId string

Required. GlossaryTerm identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
gcdv::GlossaryTerm term = new gcdv::GlossaryTerm();
string termId = "";
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.CreateGlossaryTermAsync(parent, term, termId);

CreateGlossaryTermAsync(string, GlossaryTerm, string, CallSettings)

public virtual Task<GlossaryTerm> CreateGlossaryTermAsync(string parent, GlossaryTerm term, string termId, CallSettings callSettings = null)

Creates a new GlossaryTerm resource.

Parameters
Name Description
parent string

Required. The parent resource where the GlossaryTerm will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

term GlossaryTerm

Required. The GlossaryTerm to create.

termId string

Required. GlossaryTerm identifier.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
gcdv::GlossaryTerm term = new gcdv::GlossaryTerm();
string termId = "";
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.CreateGlossaryTermAsync(parent, term, termId);

CreateGlossaryTermAsync(string, GlossaryTerm, string, CancellationToken)

public virtual Task<GlossaryTerm> CreateGlossaryTermAsync(string parent, GlossaryTerm term, string termId, CancellationToken cancellationToken)

Creates a new GlossaryTerm resource.

Parameters
Name Description
parent string

Required. The parent resource where the GlossaryTerm will be created. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

term GlossaryTerm

Required. The GlossaryTerm to create.

termId string

Required. GlossaryTerm identifier.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
gcdv::GlossaryTerm term = new gcdv::GlossaryTerm();
string termId = "";
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.CreateGlossaryTermAsync(parent, term, termId);

DeleteGlossary(DeleteGlossaryRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGlossary(DeleteGlossaryRequest request, CallSettings callSettings = null)

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

Parameters
Name Description
request DeleteGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteGlossaryRequest request = new gcdv::DeleteGlossaryRequest
{
    GlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = businessGlossaryServiceClient.DeleteGlossary(request);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = businessGlossaryServiceClient.PollOnceDeleteGlossary(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGlossary(GlossaryName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGlossary(GlossaryName name, CallSettings callSettings = null)

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

Parameters
Name Description
name GlossaryName

Required. The name of the Glossary to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryName name = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = businessGlossaryServiceClient.DeleteGlossary(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = businessGlossaryServiceClient.PollOnceDeleteGlossary(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGlossary(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGlossary(string name, CallSettings callSettings = null)

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

Parameters
Name Description
name string

Required. The name of the Glossary to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = businessGlossaryServiceClient.DeleteGlossary(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = businessGlossaryServiceClient.PollOnceDeleteGlossary(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGlossaryAsync(DeleteGlossaryRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGlossaryAsync(DeleteGlossaryRequest request, CallSettings callSettings = null)

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

Parameters
Name Description
request DeleteGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteGlossaryRequest request = new gcdv::DeleteGlossaryRequest
{
    GlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.DeleteGlossaryAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceDeleteGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGlossaryAsync(DeleteGlossaryRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGlossaryAsync(DeleteGlossaryRequest request, CancellationToken cancellationToken)

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

Parameters
Name Description
request DeleteGlossaryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteGlossaryRequest request = new gcdv::DeleteGlossaryRequest
{
    GlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.DeleteGlossaryAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceDeleteGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGlossaryAsync(GlossaryName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGlossaryAsync(GlossaryName name, CallSettings callSettings = null)

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

Parameters
Name Description
name GlossaryName

Required. The name of the Glossary to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName name = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.DeleteGlossaryAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceDeleteGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGlossaryAsync(GlossaryName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGlossaryAsync(GlossaryName name, CancellationToken cancellationToken)

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

Parameters
Name Description
name GlossaryName

Required. The name of the Glossary to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName name = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.DeleteGlossaryAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceDeleteGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGlossaryAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGlossaryAsync(string name, CallSettings callSettings = null)

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

Parameters
Name Description
name string

Required. The name of the Glossary to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.DeleteGlossaryAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceDeleteGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGlossaryAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGlossaryAsync(string name, CancellationToken cancellationToken)

Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.

Parameters
Name Description
name string

Required. The name of the Glossary to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.DeleteGlossaryAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceDeleteGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGlossaryCategory(DeleteGlossaryCategoryRequest, CallSettings)

public virtual void DeleteGlossaryCategory(DeleteGlossaryCategoryRequest request, CallSettings callSettings = null)

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

Parameters
Name Description
request DeleteGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteGlossaryCategoryRequest request = new gcdv::DeleteGlossaryCategoryRequest
{
    GlossaryCategoryName = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]"),
};
// Make the request
businessGlossaryServiceClient.DeleteGlossaryCategory(request);

DeleteGlossaryCategory(GlossaryCategoryName, CallSettings)

public virtual void DeleteGlossaryCategory(GlossaryCategoryName name, CallSettings callSettings = null)

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

Parameters
Name Description
name GlossaryCategoryName

Required. The name of the GlossaryCategory to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryCategoryName name = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]");
// Make the request
businessGlossaryServiceClient.DeleteGlossaryCategory(name);

DeleteGlossaryCategory(string, CallSettings)

public virtual void DeleteGlossaryCategory(string name, CallSettings callSettings = null)

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

Parameters
Name Description
name string

Required. The name of the GlossaryCategory to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/categories/[GLOSSARY_CATEGORY]";
// Make the request
businessGlossaryServiceClient.DeleteGlossaryCategory(name);

DeleteGlossaryCategoryAsync(DeleteGlossaryCategoryRequest, CallSettings)

public virtual Task DeleteGlossaryCategoryAsync(DeleteGlossaryCategoryRequest request, CallSettings callSettings = null)

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

Parameters
Name Description
request DeleteGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteGlossaryCategoryRequest request = new gcdv::DeleteGlossaryCategoryRequest
{
    GlossaryCategoryName = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]"),
};
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryCategoryAsync(request);

DeleteGlossaryCategoryAsync(DeleteGlossaryCategoryRequest, CancellationToken)

public virtual Task DeleteGlossaryCategoryAsync(DeleteGlossaryCategoryRequest request, CancellationToken cancellationToken)

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

Parameters
Name Description
request DeleteGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteGlossaryCategoryRequest request = new gcdv::DeleteGlossaryCategoryRequest
{
    GlossaryCategoryName = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]"),
};
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryCategoryAsync(request);

DeleteGlossaryCategoryAsync(GlossaryCategoryName, CallSettings)

public virtual Task DeleteGlossaryCategoryAsync(GlossaryCategoryName name, CallSettings callSettings = null)

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

Parameters
Name Description
name GlossaryCategoryName

Required. The name of the GlossaryCategory to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryCategoryName name = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]");
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryCategoryAsync(name);

DeleteGlossaryCategoryAsync(GlossaryCategoryName, CancellationToken)

public virtual Task DeleteGlossaryCategoryAsync(GlossaryCategoryName name, CancellationToken cancellationToken)

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

Parameters
Name Description
name GlossaryCategoryName

Required. The name of the GlossaryCategory to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryCategoryName name = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]");
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryCategoryAsync(name);

DeleteGlossaryCategoryAsync(string, CallSettings)

public virtual Task DeleteGlossaryCategoryAsync(string name, CallSettings callSettings = null)

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

Parameters
Name Description
name string

Required. The name of the GlossaryCategory to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/categories/[GLOSSARY_CATEGORY]";
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryCategoryAsync(name);

DeleteGlossaryCategoryAsync(string, CancellationToken)

public virtual Task DeleteGlossaryCategoryAsync(string name, CancellationToken cancellationToken)

Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.

Parameters
Name Description
name string

Required. The name of the GlossaryCategory to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/categories/[GLOSSARY_CATEGORY]";
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryCategoryAsync(name);

DeleteGlossaryTerm(DeleteGlossaryTermRequest, CallSettings)

public virtual void DeleteGlossaryTerm(DeleteGlossaryTermRequest request, CallSettings callSettings = null)

Deletes a GlossaryTerm resource.

Parameters
Name Description
request DeleteGlossaryTermRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteGlossaryTermRequest request = new gcdv::DeleteGlossaryTermRequest
{
    GlossaryTermName = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]"),
};
// Make the request
businessGlossaryServiceClient.DeleteGlossaryTerm(request);

DeleteGlossaryTerm(GlossaryTermName, CallSettings)

public virtual void DeleteGlossaryTerm(GlossaryTermName name, CallSettings callSettings = null)

Deletes a GlossaryTerm resource.

Parameters
Name Description
name GlossaryTermName

Required. The name of the GlossaryTerm to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryTermName name = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]");
// Make the request
businessGlossaryServiceClient.DeleteGlossaryTerm(name);

DeleteGlossaryTerm(string, CallSettings)

public virtual void DeleteGlossaryTerm(string name, CallSettings callSettings = null)

Deletes a GlossaryTerm resource.

Parameters
Name Description
name string

Required. The name of the GlossaryTerm to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/terms/[GLOSSARY_TERM]";
// Make the request
businessGlossaryServiceClient.DeleteGlossaryTerm(name);

DeleteGlossaryTermAsync(DeleteGlossaryTermRequest, CallSettings)

public virtual Task DeleteGlossaryTermAsync(DeleteGlossaryTermRequest request, CallSettings callSettings = null)

Deletes a GlossaryTerm resource.

Parameters
Name Description
request DeleteGlossaryTermRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteGlossaryTermRequest request = new gcdv::DeleteGlossaryTermRequest
{
    GlossaryTermName = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]"),
};
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryTermAsync(request);

DeleteGlossaryTermAsync(DeleteGlossaryTermRequest, CancellationToken)

public virtual Task DeleteGlossaryTermAsync(DeleteGlossaryTermRequest request, CancellationToken cancellationToken)

Deletes a GlossaryTerm resource.

Parameters
Name Description
request DeleteGlossaryTermRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteGlossaryTermRequest request = new gcdv::DeleteGlossaryTermRequest
{
    GlossaryTermName = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]"),
};
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryTermAsync(request);

DeleteGlossaryTermAsync(GlossaryTermName, CallSettings)

public virtual Task DeleteGlossaryTermAsync(GlossaryTermName name, CallSettings callSettings = null)

Deletes a GlossaryTerm resource.

Parameters
Name Description
name GlossaryTermName

Required. The name of the GlossaryTerm to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryTermName name = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]");
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryTermAsync(name);

DeleteGlossaryTermAsync(GlossaryTermName, CancellationToken)

public virtual Task DeleteGlossaryTermAsync(GlossaryTermName name, CancellationToken cancellationToken)

Deletes a GlossaryTerm resource.

Parameters
Name Description
name GlossaryTermName

Required. The name of the GlossaryTerm to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryTermName name = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]");
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryTermAsync(name);

DeleteGlossaryTermAsync(string, CallSettings)

public virtual Task DeleteGlossaryTermAsync(string name, CallSettings callSettings = null)

Deletes a GlossaryTerm resource.

Parameters
Name Description
name string

Required. The name of the GlossaryTerm to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/terms/[GLOSSARY_TERM]";
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryTermAsync(name);

DeleteGlossaryTermAsync(string, CancellationToken)

public virtual Task DeleteGlossaryTermAsync(string name, CancellationToken cancellationToken)

Deletes a GlossaryTerm resource.

Parameters
Name Description
name string

Required. The name of the GlossaryTerm to delete. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/terms/[GLOSSARY_TERM]";
// Make the request
await businessGlossaryServiceClient.DeleteGlossaryTermAsync(name);

GetGlossary(GetGlossaryRequest, CallSettings)

public virtual Glossary GetGlossary(GetGlossaryRequest request, CallSettings callSettings = null)

Gets a Glossary resource.

Parameters
Name Description
request GetGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Glossary

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GetGlossaryRequest request = new gcdv::GetGlossaryRequest
{
    GlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
};
// Make the request
gcdv::Glossary response = businessGlossaryServiceClient.GetGlossary(request);

GetGlossary(GlossaryName, CallSettings)

public virtual Glossary GetGlossary(GlossaryName name, CallSettings callSettings = null)

Gets a Glossary resource.

Parameters
Name Description
name GlossaryName

Required. The name of the Glossary to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Glossary

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryName name = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
gcdv::Glossary response = businessGlossaryServiceClient.GetGlossary(name);

GetGlossary(string, CallSettings)

public virtual Glossary GetGlossary(string name, CallSettings callSettings = null)

Gets a Glossary resource.

Parameters
Name Description
name string

Required. The name of the Glossary to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Glossary

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
gcdv::Glossary response = businessGlossaryServiceClient.GetGlossary(name);

GetGlossaryAsync(GetGlossaryRequest, CallSettings)

public virtual Task<Glossary> GetGlossaryAsync(GetGlossaryRequest request, CallSettings callSettings = null)

Gets a Glossary resource.

Parameters
Name Description
request GetGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossary

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetGlossaryRequest request = new gcdv::GetGlossaryRequest
{
    GlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
};
// Make the request
gcdv::Glossary response = await businessGlossaryServiceClient.GetGlossaryAsync(request);

GetGlossaryAsync(GetGlossaryRequest, CancellationToken)

public virtual Task<Glossary> GetGlossaryAsync(GetGlossaryRequest request, CancellationToken cancellationToken)

Gets a Glossary resource.

Parameters
Name Description
request GetGlossaryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossary

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetGlossaryRequest request = new gcdv::GetGlossaryRequest
{
    GlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
};
// Make the request
gcdv::Glossary response = await businessGlossaryServiceClient.GetGlossaryAsync(request);

GetGlossaryAsync(GlossaryName, CallSettings)

public virtual Task<Glossary> GetGlossaryAsync(GlossaryName name, CallSettings callSettings = null)

Gets a Glossary resource.

Parameters
Name Description
name GlossaryName

Required. The name of the Glossary to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossary

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName name = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
gcdv::Glossary response = await businessGlossaryServiceClient.GetGlossaryAsync(name);

GetGlossaryAsync(GlossaryName, CancellationToken)

public virtual Task<Glossary> GetGlossaryAsync(GlossaryName name, CancellationToken cancellationToken)

Gets a Glossary resource.

Parameters
Name Description
name GlossaryName

Required. The name of the Glossary to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossary

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName name = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
gcdv::Glossary response = await businessGlossaryServiceClient.GetGlossaryAsync(name);

GetGlossaryAsync(string, CallSettings)

public virtual Task<Glossary> GetGlossaryAsync(string name, CallSettings callSettings = null)

Gets a Glossary resource.

Parameters
Name Description
name string

Required. The name of the Glossary to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossary

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
gcdv::Glossary response = await businessGlossaryServiceClient.GetGlossaryAsync(name);

GetGlossaryAsync(string, CancellationToken)

public virtual Task<Glossary> GetGlossaryAsync(string name, CancellationToken cancellationToken)

Gets a Glossary resource.

Parameters
Name Description
name string

Required. The name of the Glossary to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossary

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
gcdv::Glossary response = await businessGlossaryServiceClient.GetGlossaryAsync(name);

GetGlossaryCategory(GetGlossaryCategoryRequest, CallSettings)

public virtual GlossaryCategory GetGlossaryCategory(GetGlossaryCategoryRequest request, CallSettings callSettings = null)

Gets a GlossaryCategory resource.

Parameters
Name Description
request GetGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryCategory

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GetGlossaryCategoryRequest request = new gcdv::GetGlossaryCategoryRequest
{
    GlossaryCategoryName = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]"),
};
// Make the request
gcdv::GlossaryCategory response = businessGlossaryServiceClient.GetGlossaryCategory(request);

GetGlossaryCategory(GlossaryCategoryName, CallSettings)

public virtual GlossaryCategory GetGlossaryCategory(GlossaryCategoryName name, CallSettings callSettings = null)

Gets a GlossaryCategory resource.

Parameters
Name Description
name GlossaryCategoryName

Required. The name of the GlossaryCategory to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryCategory

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryCategoryName name = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]");
// Make the request
gcdv::GlossaryCategory response = businessGlossaryServiceClient.GetGlossaryCategory(name);

GetGlossaryCategory(string, CallSettings)

public virtual GlossaryCategory GetGlossaryCategory(string name, CallSettings callSettings = null)

Gets a GlossaryCategory resource.

Parameters
Name Description
name string

Required. The name of the GlossaryCategory to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryCategory

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/categories/[GLOSSARY_CATEGORY]";
// Make the request
gcdv::GlossaryCategory response = businessGlossaryServiceClient.GetGlossaryCategory(name);

GetGlossaryCategoryAsync(GetGlossaryCategoryRequest, CallSettings)

public virtual Task<GlossaryCategory> GetGlossaryCategoryAsync(GetGlossaryCategoryRequest request, CallSettings callSettings = null)

Gets a GlossaryCategory resource.

Parameters
Name Description
request GetGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetGlossaryCategoryRequest request = new gcdv::GetGlossaryCategoryRequest
{
    GlossaryCategoryName = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]"),
};
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.GetGlossaryCategoryAsync(request);

GetGlossaryCategoryAsync(GetGlossaryCategoryRequest, CancellationToken)

public virtual Task<GlossaryCategory> GetGlossaryCategoryAsync(GetGlossaryCategoryRequest request, CancellationToken cancellationToken)

Gets a GlossaryCategory resource.

Parameters
Name Description
request GetGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetGlossaryCategoryRequest request = new gcdv::GetGlossaryCategoryRequest
{
    GlossaryCategoryName = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]"),
};
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.GetGlossaryCategoryAsync(request);

GetGlossaryCategoryAsync(GlossaryCategoryName, CallSettings)

public virtual Task<GlossaryCategory> GetGlossaryCategoryAsync(GlossaryCategoryName name, CallSettings callSettings = null)

Gets a GlossaryCategory resource.

Parameters
Name Description
name GlossaryCategoryName

Required. The name of the GlossaryCategory to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryCategoryName name = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]");
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.GetGlossaryCategoryAsync(name);

GetGlossaryCategoryAsync(GlossaryCategoryName, CancellationToken)

public virtual Task<GlossaryCategory> GetGlossaryCategoryAsync(GlossaryCategoryName name, CancellationToken cancellationToken)

Gets a GlossaryCategory resource.

Parameters
Name Description
name GlossaryCategoryName

Required. The name of the GlossaryCategory to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryCategoryName name = gcdv::GlossaryCategoryName.FromProjectLocationGlossaryGlossaryCategory("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_CATEGORY]");
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.GetGlossaryCategoryAsync(name);

GetGlossaryCategoryAsync(string, CallSettings)

public virtual Task<GlossaryCategory> GetGlossaryCategoryAsync(string name, CallSettings callSettings = null)

Gets a GlossaryCategory resource.

Parameters
Name Description
name string

Required. The name of the GlossaryCategory to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/categories/[GLOSSARY_CATEGORY]";
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.GetGlossaryCategoryAsync(name);

GetGlossaryCategoryAsync(string, CancellationToken)

public virtual Task<GlossaryCategory> GetGlossaryCategoryAsync(string name, CancellationToken cancellationToken)

Gets a GlossaryCategory resource.

Parameters
Name Description
name string

Required. The name of the GlossaryCategory to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/categories/[GLOSSARY_CATEGORY]";
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.GetGlossaryCategoryAsync(name);

GetGlossaryTerm(GetGlossaryTermRequest, CallSettings)

public virtual GlossaryTerm GetGlossaryTerm(GetGlossaryTermRequest request, CallSettings callSettings = null)

Gets a GlossaryTerm resource.

Parameters
Name Description
request GetGlossaryTermRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryTerm

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GetGlossaryTermRequest request = new gcdv::GetGlossaryTermRequest
{
    GlossaryTermName = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]"),
};
// Make the request
gcdv::GlossaryTerm response = businessGlossaryServiceClient.GetGlossaryTerm(request);

GetGlossaryTerm(GlossaryTermName, CallSettings)

public virtual GlossaryTerm GetGlossaryTerm(GlossaryTermName name, CallSettings callSettings = null)

Gets a GlossaryTerm resource.

Parameters
Name Description
name GlossaryTermName

Required. The name of the GlossaryTerm to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryTerm

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryTermName name = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]");
// Make the request
gcdv::GlossaryTerm response = businessGlossaryServiceClient.GetGlossaryTerm(name);

GetGlossaryTerm(string, CallSettings)

public virtual GlossaryTerm GetGlossaryTerm(string name, CallSettings callSettings = null)

Gets a GlossaryTerm resource.

Parameters
Name Description
name string

Required. The name of the GlossaryTerm to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryTerm

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/terms/[GLOSSARY_TERM]";
// Make the request
gcdv::GlossaryTerm response = businessGlossaryServiceClient.GetGlossaryTerm(name);

GetGlossaryTermAsync(GetGlossaryTermRequest, CallSettings)

public virtual Task<GlossaryTerm> GetGlossaryTermAsync(GetGlossaryTermRequest request, CallSettings callSettings = null)

Gets a GlossaryTerm resource.

Parameters
Name Description
request GetGlossaryTermRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetGlossaryTermRequest request = new gcdv::GetGlossaryTermRequest
{
    GlossaryTermName = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]"),
};
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.GetGlossaryTermAsync(request);

GetGlossaryTermAsync(GetGlossaryTermRequest, CancellationToken)

public virtual Task<GlossaryTerm> GetGlossaryTermAsync(GetGlossaryTermRequest request, CancellationToken cancellationToken)

Gets a GlossaryTerm resource.

Parameters
Name Description
request GetGlossaryTermRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetGlossaryTermRequest request = new gcdv::GetGlossaryTermRequest
{
    GlossaryTermName = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]"),
};
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.GetGlossaryTermAsync(request);

GetGlossaryTermAsync(GlossaryTermName, CallSettings)

public virtual Task<GlossaryTerm> GetGlossaryTermAsync(GlossaryTermName name, CallSettings callSettings = null)

Gets a GlossaryTerm resource.

Parameters
Name Description
name GlossaryTermName

Required. The name of the GlossaryTerm to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryTermName name = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]");
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.GetGlossaryTermAsync(name);

GetGlossaryTermAsync(GlossaryTermName, CancellationToken)

public virtual Task<GlossaryTerm> GetGlossaryTermAsync(GlossaryTermName name, CancellationToken cancellationToken)

Gets a GlossaryTerm resource.

Parameters
Name Description
name GlossaryTermName

Required. The name of the GlossaryTerm to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryTermName name = gcdv::GlossaryTermName.FromProjectLocationGlossaryGlossaryTerm("[PROJECT]", "[LOCATION]", "[GLOSSARY]", "[GLOSSARY_TERM]");
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.GetGlossaryTermAsync(name);

GetGlossaryTermAsync(string, CallSettings)

public virtual Task<GlossaryTerm> GetGlossaryTermAsync(string name, CallSettings callSettings = null)

Gets a GlossaryTerm resource.

Parameters
Name Description
name string

Required. The name of the GlossaryTerm to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/terms/[GLOSSARY_TERM]";
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.GetGlossaryTermAsync(name);

GetGlossaryTermAsync(string, CancellationToken)

public virtual Task<GlossaryTerm> GetGlossaryTermAsync(string name, CancellationToken cancellationToken)

Gets a GlossaryTerm resource.

Parameters
Name Description
name string

Required. The name of the GlossaryTerm to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]/terms/[GLOSSARY_TERM]";
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.GetGlossaryTermAsync(name);

ListGlossaries(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGlossariesResponse, Glossary> ListGlossaries(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Glossary resources in a project and location.

Parameters
Name Description
parent LocationName

Required. The parent, which has this collection of Glossaries. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossariesResponseGlossary

A pageable sequence of Glossary resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<gcdv::ListGlossariesResponse, gcdv::Glossary> response = businessGlossaryServiceClient.ListGlossaries(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Glossary 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 (gcdv::ListGlossariesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Glossary 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<gcdv::Glossary> 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 (gcdv::Glossary 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;

ListGlossaries(ListGlossariesRequest, CallSettings)

public virtual PagedEnumerable<ListGlossariesResponse, Glossary> ListGlossaries(ListGlossariesRequest request, CallSettings callSettings = null)

Lists Glossary resources in a project and location.

Parameters
Name Description
request ListGlossariesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossariesResponseGlossary

A pageable sequence of Glossary resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::ListGlossariesRequest request = new gcdv::ListGlossariesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<gcdv::ListGlossariesResponse, gcdv::Glossary> response = businessGlossaryServiceClient.ListGlossaries(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Glossary 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 (gcdv::ListGlossariesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Glossary 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<gcdv::Glossary> 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 (gcdv::Glossary 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;

ListGlossaries(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGlossariesResponse, Glossary> ListGlossaries(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Glossary resources in a project and location.

Parameters
Name Description
parent string

Required. The parent, which has this collection of Glossaries. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossariesResponseGlossary

A pageable sequence of Glossary resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<gcdv::ListGlossariesResponse, gcdv::Glossary> response = businessGlossaryServiceClient.ListGlossaries(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Glossary 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 (gcdv::ListGlossariesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Glossary 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<gcdv::Glossary> 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 (gcdv::Glossary 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;

ListGlossariesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGlossariesResponse, Glossary> ListGlossariesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Glossary resources in a project and location.

Parameters
Name Description
parent LocationName

Required. The parent, which has this collection of Glossaries. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossariesResponseGlossary

A pageable asynchronous sequence of Glossary resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<gcdv::ListGlossariesResponse, gcdv::Glossary> response = businessGlossaryServiceClient.ListGlossariesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Glossary 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((gcdv::ListGlossariesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Glossary 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<gcdv::Glossary> 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 (gcdv::Glossary 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;

ListGlossariesAsync(ListGlossariesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGlossariesResponse, Glossary> ListGlossariesAsync(ListGlossariesRequest request, CallSettings callSettings = null)

Lists Glossary resources in a project and location.

Parameters
Name Description
request ListGlossariesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossariesResponseGlossary

A pageable asynchronous sequence of Glossary resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListGlossariesRequest request = new gcdv::ListGlossariesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListGlossariesResponse, gcdv::Glossary> response = businessGlossaryServiceClient.ListGlossariesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Glossary 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((gcdv::ListGlossariesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Glossary 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<gcdv::Glossary> 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 (gcdv::Glossary 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;

ListGlossariesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGlossariesResponse, Glossary> ListGlossariesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Glossary resources in a project and location.

Parameters
Name Description
parent string

Required. The parent, which has this collection of Glossaries. Format: projects/{project_id_or_number}/locations/{location_id} where location_id refers to a Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossariesResponseGlossary

A pageable asynchronous sequence of Glossary resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<gcdv::ListGlossariesResponse, gcdv::Glossary> response = businessGlossaryServiceClient.ListGlossariesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Glossary 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((gcdv::ListGlossariesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Glossary 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<gcdv::Glossary> 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 (gcdv::Glossary 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;

ListGlossaryCategories(GlossaryName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGlossaryCategoriesResponse, GlossaryCategory> ListGlossaryCategories(GlossaryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GlossaryCategory resources in a Glossary.

Parameters
Name Description
parent GlossaryName

Required. The parent, which has this collection of GlossaryCategories. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} Location is the Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossaryCategoriesResponseGlossaryCategory

A pageable sequence of GlossaryCategory resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
PagedEnumerable<gcdv::ListGlossaryCategoriesResponse, gcdv::GlossaryCategory> response = businessGlossaryServiceClient.ListGlossaryCategories(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::GlossaryCategory 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 (gcdv::ListGlossaryCategoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryCategory 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<gcdv::GlossaryCategory> 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 (gcdv::GlossaryCategory 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;

ListGlossaryCategories(ListGlossaryCategoriesRequest, CallSettings)

public virtual PagedEnumerable<ListGlossaryCategoriesResponse, GlossaryCategory> ListGlossaryCategories(ListGlossaryCategoriesRequest request, CallSettings callSettings = null)

Lists GlossaryCategory resources in a Glossary.

Parameters
Name Description
request ListGlossaryCategoriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossaryCategoriesResponseGlossaryCategory

A pageable sequence of GlossaryCategory resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::ListGlossaryCategoriesRequest request = new gcdv::ListGlossaryCategoriesRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<gcdv::ListGlossaryCategoriesResponse, gcdv::GlossaryCategory> response = businessGlossaryServiceClient.ListGlossaryCategories(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::GlossaryCategory 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 (gcdv::ListGlossaryCategoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryCategory 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<gcdv::GlossaryCategory> 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 (gcdv::GlossaryCategory 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;

ListGlossaryCategories(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGlossaryCategoriesResponse, GlossaryCategory> ListGlossaryCategories(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GlossaryCategory resources in a Glossary.

Parameters
Name Description
parent string

Required. The parent, which has this collection of GlossaryCategories. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} Location is the Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossaryCategoriesResponseGlossaryCategory

A pageable sequence of GlossaryCategory resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
PagedEnumerable<gcdv::ListGlossaryCategoriesResponse, gcdv::GlossaryCategory> response = businessGlossaryServiceClient.ListGlossaryCategories(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::GlossaryCategory 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 (gcdv::ListGlossaryCategoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryCategory 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<gcdv::GlossaryCategory> 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 (gcdv::GlossaryCategory 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;

ListGlossaryCategoriesAsync(GlossaryName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGlossaryCategoriesResponse, GlossaryCategory> ListGlossaryCategoriesAsync(GlossaryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GlossaryCategory resources in a Glossary.

Parameters
Name Description
parent GlossaryName

Required. The parent, which has this collection of GlossaryCategories. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} Location is the Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossaryCategoriesResponseGlossaryCategory

A pageable asynchronous sequence of GlossaryCategory resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
PagedAsyncEnumerable<gcdv::ListGlossaryCategoriesResponse, gcdv::GlossaryCategory> response = businessGlossaryServiceClient.ListGlossaryCategoriesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::GlossaryCategory 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((gcdv::ListGlossaryCategoriesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryCategory 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<gcdv::GlossaryCategory> 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 (gcdv::GlossaryCategory 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;

ListGlossaryCategoriesAsync(ListGlossaryCategoriesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGlossaryCategoriesResponse, GlossaryCategory> ListGlossaryCategoriesAsync(ListGlossaryCategoriesRequest request, CallSettings callSettings = null)

Lists GlossaryCategory resources in a Glossary.

Parameters
Name Description
request ListGlossaryCategoriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossaryCategoriesResponseGlossaryCategory

A pageable asynchronous sequence of GlossaryCategory resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListGlossaryCategoriesRequest request = new gcdv::ListGlossaryCategoriesRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListGlossaryCategoriesResponse, gcdv::GlossaryCategory> response = businessGlossaryServiceClient.ListGlossaryCategoriesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::GlossaryCategory 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((gcdv::ListGlossaryCategoriesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryCategory 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<gcdv::GlossaryCategory> 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 (gcdv::GlossaryCategory 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;

ListGlossaryCategoriesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGlossaryCategoriesResponse, GlossaryCategory> ListGlossaryCategoriesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GlossaryCategory resources in a Glossary.

Parameters
Name Description
parent string

Required. The parent, which has this collection of GlossaryCategories. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} Location is the Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossaryCategoriesResponseGlossaryCategory

A pageable asynchronous sequence of GlossaryCategory resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
PagedAsyncEnumerable<gcdv::ListGlossaryCategoriesResponse, gcdv::GlossaryCategory> response = businessGlossaryServiceClient.ListGlossaryCategoriesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::GlossaryCategory 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((gcdv::ListGlossaryCategoriesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryCategory 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<gcdv::GlossaryCategory> 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 (gcdv::GlossaryCategory 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;

ListGlossaryTerms(GlossaryName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGlossaryTermsResponse, GlossaryTerm> ListGlossaryTerms(GlossaryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GlossaryTerm resources in a Glossary.

Parameters
Name Description
parent GlossaryName

Required. The parent, which has this collection of GlossaryTerms. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossaryTermsResponseGlossaryTerm

A pageable sequence of GlossaryTerm resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
PagedEnumerable<gcdv::ListGlossaryTermsResponse, gcdv::GlossaryTerm> response = businessGlossaryServiceClient.ListGlossaryTerms(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::GlossaryTerm 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 (gcdv::ListGlossaryTermsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryTerm 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<gcdv::GlossaryTerm> 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 (gcdv::GlossaryTerm 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;

ListGlossaryTerms(ListGlossaryTermsRequest, CallSettings)

public virtual PagedEnumerable<ListGlossaryTermsResponse, GlossaryTerm> ListGlossaryTerms(ListGlossaryTermsRequest request, CallSettings callSettings = null)

Lists GlossaryTerm resources in a Glossary.

Parameters
Name Description
request ListGlossaryTermsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossaryTermsResponseGlossaryTerm

A pageable sequence of GlossaryTerm resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::ListGlossaryTermsRequest request = new gcdv::ListGlossaryTermsRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<gcdv::ListGlossaryTermsResponse, gcdv::GlossaryTerm> response = businessGlossaryServiceClient.ListGlossaryTerms(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::GlossaryTerm 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 (gcdv::ListGlossaryTermsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryTerm 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<gcdv::GlossaryTerm> 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 (gcdv::GlossaryTerm 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;

ListGlossaryTerms(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGlossaryTermsResponse, GlossaryTerm> ListGlossaryTerms(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GlossaryTerm resources in a Glossary.

Parameters
Name Description
parent string

Required. The parent, which has this collection of GlossaryTerms. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGlossaryTermsResponseGlossaryTerm

A pageable sequence of GlossaryTerm resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
PagedEnumerable<gcdv::ListGlossaryTermsResponse, gcdv::GlossaryTerm> response = businessGlossaryServiceClient.ListGlossaryTerms(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::GlossaryTerm 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 (gcdv::ListGlossaryTermsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryTerm 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<gcdv::GlossaryTerm> 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 (gcdv::GlossaryTerm 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;

ListGlossaryTermsAsync(GlossaryName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGlossaryTermsResponse, GlossaryTerm> ListGlossaryTermsAsync(GlossaryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GlossaryTerm resources in a Glossary.

Parameters
Name Description
parent GlossaryName

Required. The parent, which has this collection of GlossaryTerms. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossaryTermsResponseGlossaryTerm

A pageable asynchronous sequence of GlossaryTerm resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryName parent = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]");
// Make the request
PagedAsyncEnumerable<gcdv::ListGlossaryTermsResponse, gcdv::GlossaryTerm> response = businessGlossaryServiceClient.ListGlossaryTermsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::GlossaryTerm 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((gcdv::ListGlossaryTermsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryTerm 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<gcdv::GlossaryTerm> 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 (gcdv::GlossaryTerm 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;

ListGlossaryTermsAsync(ListGlossaryTermsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGlossaryTermsResponse, GlossaryTerm> ListGlossaryTermsAsync(ListGlossaryTermsRequest request, CallSettings callSettings = null)

Lists GlossaryTerm resources in a Glossary.

Parameters
Name Description
request ListGlossaryTermsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossaryTermsResponseGlossaryTerm

A pageable asynchronous sequence of GlossaryTerm resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListGlossaryTermsRequest request = new gcdv::ListGlossaryTermsRequest
{
    ParentAsGlossaryName = gcdv::GlossaryName.FromProjectLocationGlossary("[PROJECT]", "[LOCATION]", "[GLOSSARY]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListGlossaryTermsResponse, gcdv::GlossaryTerm> response = businessGlossaryServiceClient.ListGlossaryTermsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::GlossaryTerm 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((gcdv::ListGlossaryTermsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryTerm 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<gcdv::GlossaryTerm> 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 (gcdv::GlossaryTerm 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;

ListGlossaryTermsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGlossaryTermsResponse, GlossaryTerm> ListGlossaryTermsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GlossaryTerm resources in a Glossary.

Parameters
Name Description
parent string

Required. The parent, which has this collection of GlossaryTerms. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} where location_id refers to a Google Cloud region.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGlossaryTermsResponseGlossaryTerm

A pageable asynchronous sequence of GlossaryTerm resources.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/glossaries/[GLOSSARY]";
// Make the request
PagedAsyncEnumerable<gcdv::ListGlossaryTermsResponse, gcdv::GlossaryTerm> response = businessGlossaryServiceClient.ListGlossaryTermsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::GlossaryTerm 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((gcdv::ListGlossaryTermsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::GlossaryTerm 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<gcdv::GlossaryTerm> 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 (gcdv::GlossaryTerm 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;

PollOnceCreateGlossary(string, CallSettings)

public virtual Operation<Glossary, OperationMetadata> PollOnceCreateGlossary(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateGlossary.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGlossaryOperationMetadata

The result of polling the operation.

PollOnceCreateGlossaryAsync(string, CallSettings)

public virtual Task<Operation<Glossary, OperationMetadata>> PollOnceCreateGlossaryAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateGlossary.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteGlossary(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteGlossary(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteGlossary.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteGlossaryAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteGlossaryAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteGlossary.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateGlossary(string, CallSettings)

public virtual Operation<Glossary, OperationMetadata> PollOnceUpdateGlossary(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateGlossary.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGlossaryOperationMetadata

The result of polling the operation.

PollOnceUpdateGlossaryAsync(string, CallSettings)

public virtual Task<Operation<Glossary, OperationMetadata>> PollOnceUpdateGlossaryAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateGlossary.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateGlossary(Glossary, FieldMask, CallSettings)

public virtual Operation<Glossary, OperationMetadata> UpdateGlossary(Glossary glossary, FieldMask updateMask, CallSettings callSettings = null)

Updates a Glossary resource.

Parameters
Name Description
glossary Glossary

Required. The Glossary to update. The Glossary's name field is used to identify the Glossary to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

updateMask FieldMask

Required. The list of fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGlossaryOperationMetadata

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::Glossary glossary = new gcdv::Glossary();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = businessGlossaryServiceClient.UpdateGlossary(glossary, updateMask);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = businessGlossaryServiceClient.PollOnceUpdateGlossary(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

UpdateGlossary(UpdateGlossaryRequest, CallSettings)

public virtual Operation<Glossary, OperationMetadata> UpdateGlossary(UpdateGlossaryRequest request, CallSettings callSettings = null)

Updates a Glossary resource.

Parameters
Name Description
request UpdateGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGlossaryOperationMetadata

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::UpdateGlossaryRequest request = new gcdv::UpdateGlossaryRequest
{
    Glossary = new gcdv::Glossary(),
    UpdateMask = new FieldMask(),
    ValidateOnly = false,
};
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = businessGlossaryServiceClient.UpdateGlossary(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = businessGlossaryServiceClient.PollOnceUpdateGlossary(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

UpdateGlossaryAsync(Glossary, FieldMask, CallSettings)

public virtual Task<Operation<Glossary, OperationMetadata>> UpdateGlossaryAsync(Glossary glossary, FieldMask updateMask, CallSettings callSettings = null)

Updates a Glossary resource.

Parameters
Name Description
glossary Glossary

Required. The Glossary to update. The Glossary's name field is used to identify the Glossary to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

updateMask FieldMask

Required. The list of fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::Glossary glossary = new gcdv::Glossary();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.UpdateGlossaryAsync(glossary, updateMask);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceUpdateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

UpdateGlossaryAsync(Glossary, FieldMask, CancellationToken)

public virtual Task<Operation<Glossary, OperationMetadata>> UpdateGlossaryAsync(Glossary glossary, FieldMask updateMask, CancellationToken cancellationToken)

Updates a Glossary resource.

Parameters
Name Description
glossary Glossary

Required. The Glossary to update. The Glossary's name field is used to identify the Glossary to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}

updateMask FieldMask

Required. The list of fields to update.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::Glossary glossary = new gcdv::Glossary();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.UpdateGlossaryAsync(glossary, updateMask);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceUpdateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

UpdateGlossaryAsync(UpdateGlossaryRequest, CallSettings)

public virtual Task<Operation<Glossary, OperationMetadata>> UpdateGlossaryAsync(UpdateGlossaryRequest request, CallSettings callSettings = null)

Updates a Glossary resource.

Parameters
Name Description
request UpdateGlossaryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateGlossaryRequest request = new gcdv::UpdateGlossaryRequest
{
    Glossary = new gcdv::Glossary(),
    UpdateMask = new FieldMask(),
    ValidateOnly = false,
};
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.UpdateGlossaryAsync(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceUpdateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

UpdateGlossaryAsync(UpdateGlossaryRequest, CancellationToken)

public virtual Task<Operation<Glossary, OperationMetadata>> UpdateGlossaryAsync(UpdateGlossaryRequest request, CancellationToken cancellationToken)

Updates a Glossary resource.

Parameters
Name Description
request UpdateGlossaryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGlossaryOperationMetadata

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateGlossaryRequest request = new gcdv::UpdateGlossaryRequest
{
    Glossary = new gcdv::Glossary(),
    UpdateMask = new FieldMask(),
    ValidateOnly = false,
};
// Make the request
Operation<gcdv::Glossary, gcdv::OperationMetadata> response = await businessGlossaryServiceClient.UpdateGlossaryAsync(request);

// Poll until the returned long-running operation is complete
Operation<gcdv::Glossary, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::Glossary result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::Glossary, gcdv::OperationMetadata> retrievedResponse = await businessGlossaryServiceClient.PollOnceUpdateGlossaryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    gcdv::Glossary retrievedResult = retrievedResponse.Result;
}

UpdateGlossaryCategory(GlossaryCategory, FieldMask, CallSettings)

public virtual GlossaryCategory UpdateGlossaryCategory(GlossaryCategory category, FieldMask updateMask, CallSettings callSettings = null)

Updates a GlossaryCategory resource.

Parameters
Name Description
category GlossaryCategory

Required. The GlossaryCategory to update. The GlossaryCategory's name field is used to identify the GlossaryCategory to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

updateMask FieldMask

Required. The list of fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryCategory

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryCategory category = new gcdv::GlossaryCategory();
FieldMask updateMask = new FieldMask();
// Make the request
gcdv::GlossaryCategory response = businessGlossaryServiceClient.UpdateGlossaryCategory(category, updateMask);

UpdateGlossaryCategory(UpdateGlossaryCategoryRequest, CallSettings)

public virtual GlossaryCategory UpdateGlossaryCategory(UpdateGlossaryCategoryRequest request, CallSettings callSettings = null)

Updates a GlossaryCategory resource.

Parameters
Name Description
request UpdateGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryCategory

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::UpdateGlossaryCategoryRequest request = new gcdv::UpdateGlossaryCategoryRequest
{
    Category = new gcdv::GlossaryCategory(),
    UpdateMask = new FieldMask(),
};
// Make the request
gcdv::GlossaryCategory response = businessGlossaryServiceClient.UpdateGlossaryCategory(request);

UpdateGlossaryCategoryAsync(GlossaryCategory, FieldMask, CallSettings)

public virtual Task<GlossaryCategory> UpdateGlossaryCategoryAsync(GlossaryCategory category, FieldMask updateMask, CallSettings callSettings = null)

Updates a GlossaryCategory resource.

Parameters
Name Description
category GlossaryCategory

Required. The GlossaryCategory to update. The GlossaryCategory's name field is used to identify the GlossaryCategory to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

updateMask FieldMask

Required. The list of fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryCategory category = new gcdv::GlossaryCategory();
FieldMask updateMask = new FieldMask();
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.UpdateGlossaryCategoryAsync(category, updateMask);

UpdateGlossaryCategoryAsync(GlossaryCategory, FieldMask, CancellationToken)

public virtual Task<GlossaryCategory> UpdateGlossaryCategoryAsync(GlossaryCategory category, FieldMask updateMask, CancellationToken cancellationToken)

Updates a GlossaryCategory resource.

Parameters
Name Description
category GlossaryCategory

Required. The GlossaryCategory to update. The GlossaryCategory's name field is used to identify the GlossaryCategory to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}

updateMask FieldMask

Required. The list of fields to update.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryCategory category = new gcdv::GlossaryCategory();
FieldMask updateMask = new FieldMask();
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.UpdateGlossaryCategoryAsync(category, updateMask);

UpdateGlossaryCategoryAsync(UpdateGlossaryCategoryRequest, CallSettings)

public virtual Task<GlossaryCategory> UpdateGlossaryCategoryAsync(UpdateGlossaryCategoryRequest request, CallSettings callSettings = null)

Updates a GlossaryCategory resource.

Parameters
Name Description
request UpdateGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateGlossaryCategoryRequest request = new gcdv::UpdateGlossaryCategoryRequest
{
    Category = new gcdv::GlossaryCategory(),
    UpdateMask = new FieldMask(),
};
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.UpdateGlossaryCategoryAsync(request);

UpdateGlossaryCategoryAsync(UpdateGlossaryCategoryRequest, CancellationToken)

public virtual Task<GlossaryCategory> UpdateGlossaryCategoryAsync(UpdateGlossaryCategoryRequest request, CancellationToken cancellationToken)

Updates a GlossaryCategory resource.

Parameters
Name Description
request UpdateGlossaryCategoryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryCategory

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateGlossaryCategoryRequest request = new gcdv::UpdateGlossaryCategoryRequest
{
    Category = new gcdv::GlossaryCategory(),
    UpdateMask = new FieldMask(),
};
// Make the request
gcdv::GlossaryCategory response = await businessGlossaryServiceClient.UpdateGlossaryCategoryAsync(request);

UpdateGlossaryTerm(GlossaryTerm, FieldMask, CallSettings)

public virtual GlossaryTerm UpdateGlossaryTerm(GlossaryTerm term, FieldMask updateMask, CallSettings callSettings = null)

Updates a GlossaryTerm resource.

Parameters
Name Description
term GlossaryTerm

Required. The GlossaryTerm to update. The GlossaryTerm's name field is used to identify the GlossaryTerm to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

updateMask FieldMask

Required. The list of fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryTerm

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::GlossaryTerm term = new gcdv::GlossaryTerm();
FieldMask updateMask = new FieldMask();
// Make the request
gcdv::GlossaryTerm response = businessGlossaryServiceClient.UpdateGlossaryTerm(term, updateMask);

UpdateGlossaryTerm(UpdateGlossaryTermRequest, CallSettings)

public virtual GlossaryTerm UpdateGlossaryTerm(UpdateGlossaryTermRequest request, CallSettings callSettings = null)

Updates a GlossaryTerm resource.

Parameters
Name Description
request UpdateGlossaryTermRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GlossaryTerm

The RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = gcdv::BusinessGlossaryServiceClient.Create();
// Initialize request argument(s)
gcdv::UpdateGlossaryTermRequest request = new gcdv::UpdateGlossaryTermRequest
{
    Term = new gcdv::GlossaryTerm(),
    UpdateMask = new FieldMask(),
};
// Make the request
gcdv::GlossaryTerm response = businessGlossaryServiceClient.UpdateGlossaryTerm(request);

UpdateGlossaryTermAsync(GlossaryTerm, FieldMask, CallSettings)

public virtual Task<GlossaryTerm> UpdateGlossaryTermAsync(GlossaryTerm term, FieldMask updateMask, CallSettings callSettings = null)

Updates a GlossaryTerm resource.

Parameters
Name Description
term GlossaryTerm

Required. The GlossaryTerm to update. The GlossaryTerm's name field is used to identify the GlossaryTerm to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

updateMask FieldMask

Required. The list of fields to update.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryTerm term = new gcdv::GlossaryTerm();
FieldMask updateMask = new FieldMask();
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.UpdateGlossaryTermAsync(term, updateMask);

UpdateGlossaryTermAsync(GlossaryTerm, FieldMask, CancellationToken)

public virtual Task<GlossaryTerm> UpdateGlossaryTermAsync(GlossaryTerm term, FieldMask updateMask, CancellationToken cancellationToken)

Updates a GlossaryTerm resource.

Parameters
Name Description
term GlossaryTerm

Required. The GlossaryTerm to update. The GlossaryTerm's name field is used to identify the GlossaryTerm to update. Format: projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id}

updateMask FieldMask

Required. The list of fields to update.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GlossaryTerm term = new gcdv::GlossaryTerm();
FieldMask updateMask = new FieldMask();
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.UpdateGlossaryTermAsync(term, updateMask);

UpdateGlossaryTermAsync(UpdateGlossaryTermRequest, CallSettings)

public virtual Task<GlossaryTerm> UpdateGlossaryTermAsync(UpdateGlossaryTermRequest request, CallSettings callSettings = null)

Updates a GlossaryTerm resource.

Parameters
Name Description
request UpdateGlossaryTermRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateGlossaryTermRequest request = new gcdv::UpdateGlossaryTermRequest
{
    Term = new gcdv::GlossaryTerm(),
    UpdateMask = new FieldMask(),
};
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.UpdateGlossaryTermAsync(request);

UpdateGlossaryTermAsync(UpdateGlossaryTermRequest, CancellationToken)

public virtual Task<GlossaryTerm> UpdateGlossaryTermAsync(UpdateGlossaryTermRequest request, CancellationToken cancellationToken)

Updates a GlossaryTerm resource.

Parameters
Name Description
request UpdateGlossaryTermRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGlossaryTerm

A Task containing the RPC response.

Example
// Create client
gcdv::BusinessGlossaryServiceClient businessGlossaryServiceClient = await gcdv::BusinessGlossaryServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateGlossaryTermRequest request = new gcdv::UpdateGlossaryTermRequest
{
    Term = new gcdv::GlossaryTerm(),
    UpdateMask = new FieldMask(),
};
// Make the request
gcdv::GlossaryTerm response = await businessGlossaryServiceClient.UpdateGlossaryTermAsync(request);